FailedConsole Output

[FSTrigger] Triggered by a change to a folder (log)
Building in workspace /var/lib/jenkins/jobs/synapse_ynh (josue)/workspace
[workspace] $ /bin/sh -xe /tmp/jenkins3444050659048967901.sh
+ /home/CI_package_check/analyseCI.sh /home/yunohost.app/ssh_chroot_directories/josue/data/synapse_ynh synapse_ynh (josue)

Sat Apr 11 12:56:06 UTC 2020
Wait for work starting...
........
Sat Apr 11 13:00:06 UTC 2020
Package check currently test the package
Start a test
Loads functions from launcher.sh
Loads functions from testing_process.sh
Loads functions from log_extractor.sh
Restore the previous snapshot.
Working time: 4 seconds.
Disable iptables rules.
Disable the network bridge.
Pick up the package which will be tested.
Initialize network for LXC.
RTNETLINK answers: File exists
ifup: failed to bring up lxc-pchecker
Activate iptables rules.
Parsing of check_process file

Tests serie: General

>> YunoHost versions:
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 1 second.
Debian GNU/Linux 9
yunohost: 
  repo: stable
  version: 3.7.1
yunohost-admin: 
  repo: stable
  version: 3.7.1.1
moulinette: 
  repo: stable
  version: 3.7.1
ssowat: 
  repo: stable
  version: 3.7.1
Connection to 10.1.4.2 closed.


>> Package linter... [Test 1/9]

    [YunoHost App Package Linter]

 App packaging documentation - https://yunohost.org/#/packaging_apps
 App package example         - https://github.com/YunoHost/example_ynh
 Official helpers            - https://yunohost.org/#/packaging_apps_helpers_en
 Experimental helpers        - https://github.com/YunoHost-Apps/Experimental_helpers

 If you believe this linter returns false negative (warnings / errors which shouldn't happen),
 please report them on https://github.com/YunoHost/package_linter/issues

    Analyzing package /home/CI_package_check/dev_CI/../package_check/synapse_ynh_check

 [Loading App]

Some lines could not be parsed in script install. (That's probably not really critical)
? No closing quotation : echo "If your server name is identical to the domain on which synapse is installed, and the default port 8448 is used, your server is normally already accessible by the federation. 
? No closing quotation : You also need to open the TCP port $synapse_tls_port on your ISP box if it's not automatically done. 
? No closing quotation : If you're facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/synapse_ynh 
Some lines could not be parsed in script restore. (That's probably not really critical)
? No closing quotation : ynh_psql_execute_as_root --sql="CREATE DATABASE $synapse_db_name 
? No closing quotation : OWNER $synapse_db_user;" 
? No closing quotation : echo "To federate this app you need to add this line in your DNS configuration: 
? No closing quotation : You also need to open the TCP port $synapse_tls_port on your ISP box if it's not automatically done. 
? No closing quotation : If you're facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/synapse_ynh" > mail_to_send 

 [Manifest]


 [Misc File Checks]


 [Helpers Usage]


 [_Common.Sh Script]


 [Install Script]


 [Remove Script]


 [Upgrade Script]


 [Backup Script]


 [Restore Script]

☺  Not even a warning! Congratz and thank you for keeping that package up to date with good practices ! ♥
--- SUCCESS ---


>> Installation in a sub path... [Test 2/9]
A LXC container is already running.
Working time: 1 second.
Working time: 5 minutes, 21 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [975.1] Installing the app 'synapse'…
Info:  [....................] > Validating installation parameters...
Info:  [....................] > Storing installation settings...
Info:  [++..................] > Configuring firewall...
Warning: yunohost.firewall firewall_reload - [1586.1] Some firewall rules commands have failed. More info in log.
Info:  [##..................] > Creating a dh file...
Info:  [##++++++++..........] > Installing dependencies...
Warning: yunohost.hook <lambda> - [975.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [975.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Info:  [##########..........] > Configuring system user...
Info:  [##########+.........] > Creating a PostgreSQL database...
Warning: yunohost.hook <lambda> - [975.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [975.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Info:  [###########+++++....] > Setting up source files...
Info:  [################....] > Creating synapse config...
Info:  [################....] > Configuring a systemd service...
Warning: yunohost.hook <lambda> - [975.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [975.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Info:  [################+...] > Configuring nginx web server...
Info:  [#################...] > Configuring application...
Info:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################+..] > Restarting synapse services...
Warning: yunohost.hook <lambda> - [975.1] Job for matrix-synapse.service failed because the control process exited with error code.
Warning: yunohost.hook <lambda> - [975.1] See "systemctl status matrix-synapse.service" and "journalctl -xe" for details.
Warning: yunohost.hook <lambda> - [975.1] -- Logs begin at Sat 2020-04-11 13:00:13 UTC, end at Sat 2020-04-11 13:04:57 UTC. --
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/app/homeserver.py", line 651, in <module>
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:     main()
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/app/homeserver.py", line 646, in main
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:     hs = setup(sys.argv[1:])
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/app/homeserver.py", line 324, in setup
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:     "Synapse Homeserver", config_options
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/config/_base.py", line 625, in load_or_generate_config
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:     obj.generate_missing_files(config_dict, config_dir_path)
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/config/_base.py", line 655, in generate_missing_files
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:     self.invoke_all("generate_files", config_dict, config_dir_path)
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/config/_base.py", line 266, in invoke_all
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:     res[name] = getattr(config, func_name)(*args, **kwargs)
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/config/key.py", line 328, in generate_files
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]:     write_signing_keys(signing_key_file, (generate_signing_key(key_id),))
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]: OSError: [Errno 122] Disk quota exceeded
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc python[8853]: Generating signing key file /etc/matrix-synapse/homeserver.signing.key
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc systemd[1]: matrix-synapse.service: Control process exited, code=exited status=1
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc systemd[1]: Failed to start Synapse Matrix homeserver.
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc systemd[1]: matrix-synapse.service: Unit entered failed state.
Warning: yunohost.hook <lambda> - [975.1] Apr 11 13:04:57 pchecker_lxc systemd[1]: matrix-synapse.service: Failed with result 'exit-code'.
Error: yunohost.app app_install - [975.1] Could not install synapse: An error occurred inside the app installation script
Info: yunohost.log close - [975.1] The operation 'Install the 'synapse' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20200411-130035-app_install-synapse --share' to get help
Warning: yunohost.app dump_app_log_extract_for_debugging - [975.1] Here's an extract of the logs before the crash. It might help debugging the error:
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + local service_name=matrix-synapse
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + local action=restart
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + local log_path=/var/log/matrix-synapse/homeserver.log
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + local length=20
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + local timeout=300
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + [[ -n Synapse now listening on TCP port 8448 ]]
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - ++ mktemp
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + local templog=/tmp/tmp.MRh96RbxM4
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + '[' /var/log/matrix-synapse/homeserver.log == systemd ']'
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + local pid_tail=8850
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + '[' restart == reload ']'
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + tail -F -n0 /var/log/matrix-synapse/homeserver.log
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + systemctl restart matrix-synapse
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + journalctl --no-pager --lines=20 -u matrix-synapse
Warning: - Job for matrix-synapse.service failed because the control process exited with error code.
Warning: - See "systemctl status matrix-synapse.service" and "journalctl -xe" for details.
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + test -e /var/log/matrix-synapse/homeserver.log
Warning: - -- Logs begin at Sat 2020-04-11 13:00:13 UTC, end at Sat 2020-04-11 13:04:57 UTC. --
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + false
Warning: - Apr 11 13:04:57 pchecker_lxc python[8853]:   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/app/homeserver.py", line 651, in <module>
Info: yunohost.app dump_app_log_extract_for_debugging - [975.1] DEBUG - + ynh_exit_properly
Warning: yunohost.app app_install - [975.1] Removing the app following the installation failure…
Info:  [+...................] > Loading installation settings...
Warning: yunohost.hook <lambda> - [975.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Info:  [#+..................] > Stopping and removing the systemd service
Warning: yunohost.hook <lambda> - [975.1] Removed /etc/systemd/system/multi-user.target.wants/coturn-synapse.service.
Info:  [##+.................] > Removing the PostgreSQL database
Warning: yunohost.hook <lambda> - [975.1] FATAL:  terminating connection due to administrator command
Warning: yunohost.hook <lambda> - [975.1] server closed the connection unexpectedly
Warning: yunohost.hook <lambda> - [975.1] 	This probably means the server terminated abnormally
Warning: yunohost.hook <lambda> - [975.1] 	before or while processing the request.
Warning: yunohost.hook <lambda> - [975.1] connection to server was lost
Info:  [###++++++++.........] > Removing dependencies
Info:  [###########+........] > Removing app main directory
Info:  '/etc/nginx/conf.d/domain2.tld.d/synapse_server_name.conf' wasn't deleted because it doesn't exist.
Info:  [############+.......] > Removing nginx web server configuration
Info:  '/etc/php/7.0/fpm/conf.d/20-synapse.ini' wasn't deleted because it doesn't exist.
Info:  [#############+......] > Removing logrotate configuration
Info:  [##############......] > Closing port 8448
Warning: yunohost.firewall firewall_disallow - [10475.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [10475.1] Port 8448 is already closed for IPv6 connections
Info:  [##############+.....] > Closing port 5349
Info:  [###############.....] > Closing port 5350
Info:  [###############+++++] > Removing fail2ban configuration...
Info:  '/etc/fail2ban/jail.d/synapse.conf' wasn't deleted because it doesn't exist.
Info:  '/etc/fail2ban/filter.d/synapse.conf' wasn't deleted because it doesn't exist.
Info:  [####################] > Removing the dedicated system user
Error: yunohost cli - The operation 'Install the 'synapse' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20200411-130035-app_install-synapse --share' to get help

Try to access by url...
Test url: sous.domain.tld/_matrix/static
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQvX21hdHJpeC9zdGF0aWM=
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: sous.domain.tld/_matrix/static/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQvX21hdHJpeC9zdGF0aWMv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
--- FAIL ---

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 4 seconds.
Deleting failed. (1)
Error: yunohost cli - Could not find the app 'synapse' in the list of installed apps:
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 14 seconds.
Working time for this test: 5 minutes, 46 seconds.


>> Upgrade from the same version... [Test 3/9]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 5 seconds.
Working time for this test: 5 seconds.


>> Installation in public mode... [Test 4/9]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 4 seconds.
Working time for this test: 4 seconds.


>> Multi-instance installations... [Test 5/9]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 4 seconds.
Working time for this test: 4 seconds.


>> Port already used... [Test 6/9]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 5 seconds.
Working time for this test: 5 seconds.


>> Backup/Restore... [Test 7/9]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 4 seconds.
Working time for this test: 4 seconds.



Package linter:                  SUCCESS
Installation:                    FAIL
Deleting:                        FAIL
Installation in a sub path:      FAIL
Deleting from a sub path:        FAIL
Installation on the root:        Not evaluated.
Deleting from root:              Not evaluated.
Upgrade:                         Not evaluated.
Installation in private mode:    Not evaluated.
Installation in public mode:     Not evaluated.
Multi-instance installations:    Not evaluated.
Malformed path:                  Not evaluated.
Port already used:               Not evaluated.
Backup:                          Not evaluated.
Restore:                         Not evaluated.
Change URL:                      Not evaluated.
Actions and config-panel:        Not evaluated.
Level of this application: 0 (Broken)
	   Level 1: 0
	   Level 2: 0
	   Level 3: 0
	   Level 4: 0
	   Level 5: 1
	   Level 6: 1
	   Level 7: 0
	   Level 8: 0
	   Level 9: 0
	   Level 10: 0
You can find the complete log of these tests in /home/CI_package_check/dev_CI/../package_check/Complete.log
Global working time for all tests: 6 minutes, 27 seconds.
Disable iptables rules.
Disable the network bridge.
The complete log for this application was duplicated and is accessible at https://ci-apps-dev.yunohost.org/jenkins/logs/_home_yunohost.app_ssh_chroot_directories_josue_data_synapse_ynh_complete.log

Sat Apr 11 13:08:07 UTC 2020
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE