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/jenkins564296615999326712.sh
+ /home/CI_package_check/analyseCI.sh /home/yunohost.app/ssh_chroot_directories/josue/data/synapse_ynh synapse_ynh (josue)

Sat Dec 14 17:18:08 UTC 2019
Wait for work starting...
....
Sat Dec 14 17:20:08 UTC 2019
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: 15 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: 5 seconds.
Working time: 5 seconds.
Debian GNU/Linux 9
yunohost: 
  repo: stable
  version: 3.6.5.3
yunohost-admin: 
  repo: stable
  version: 3.6.5.1
moulinette: 
  repo: stable
  version: 3.6.4.1
ssowat: 
  repo: stable
  version: 3.6.4
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

    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 

 [Misc File Checks]


 [Sources Management]


 [Manifest]


 [Install Script]


 [Remove Script]


 [Upgrade Script]

? [YEP-2.4] 'ynh_die' or 'exit' command is executed with system modification before (cmd 'rm').
This system modification is an issue if a verification exit the script.
You should move this verification before any system modification. 

 [Backup Script]


 [Restore Script]

--- SUCCESS ---


>> Installation in a sub path... [Test 2/9]
A LXC container is already running.
Working time: 1 second.
Working time: 6 minutes, 11 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [974.1] Installing application synapse…
Info:  [....................] > Validating installation parameters...
Info:  [....................] > Storing installation settings...
Info:  [++..................] > Configuring firewall...
Info:  [##..................] > Creating a dh file...
Info:  [##++++++++..........] > Installing dependencies...
Warning: yunohost.hook <lambda> - [974.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [974.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Warning: yunohost.hook <lambda> - [974.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [974.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Error: : Could not find a version that satisfies the requirement matrix-synapse==1.6.1 (from versions: 0.33.5, 0.33.5.1, 0.33.6rc1, 0.33.6, 0.33.7rc1, 0.33.7rc2, 0.33.7, 0.33.8rc2, 0.33.8, 0.33.9, 0.34.0rc1, 0.34.0rc2, 0.34.0, 0.34.0.1, 0.34.1.1, 0.99.0rc1, 0.99.0rc2, 0.99.0rc3, 0.99.0rc4, 0.99.0, 0.99.1rc1, 0.99.1rc2, 0.99.1, 0.99.1.1, 0.99.2rc1, 0.99.2, 0.99.3rc1, 0.99.3, 0.99.3.1, 0.99.3.2, 0.99.4rc1, 0.99.4, 0.99.5rc1, 0.99.5, 0.99.5.1, 0.99.5.2, 1.0.0rc1, 1.0.0rc2, 1.0.0rc3, 1.0.0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc1, 1.3.0, 1.3.1, 1.4.0rc1, 1.4.0rc2, 1.4.0)
Error: : No matching distribution found for matrix-synapse==1.6.1
Warning: yunohost.hook <lambda> - [974.1] [ERR] !!
Warning: yunohost.hook <lambda> - [974.1]   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [974.1] !!
Warning: yunohost.hook <lambda> - [974.1] Please find here an extract of the log before the crash:
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   - Collecting MarkupSafe>=0.23 (from jinja2)
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Downloading https://files.pythonhosted.org/packages/6e/57/d40124076756c19ff2269678de7ae25a14ebbb3f6314eb5ce9477f191350/MarkupSafe-1.1.1-cp35-cp35m-manylinux1_x86_64.whl
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   - Collecting six>=1.5.2 (from PyOpenSSL->ndg-httpsclient)
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   - Collecting cryptography>=2.3 (from PyOpenSSL->ndg-httpsclient)
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Downloading https://files.pythonhosted.org/packages/97/18/c6557f63a6abde34707196fb2cad1c6dc0dbff25a200d5044922496668a4/cryptography-2.7-cp34-abi3-manylinux1_x86_64.whl (2.3MB)
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   - Collecting asn1crypto>=0.21.0 (from cryptography>=2.3->PyOpenSSL->ndg-httpsclient)
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Downloading https://files.pythonhosted.org/packages/6e/1e/fb0e487b5229e5fb7b15c6d00b4e8082a3414fe62b1da4c9a905b106e672/asn1crypto-1.1.0-py2.py3-none-any.whl (103kB)
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   - Building wheels for collected packages: psycopg2, pycparser
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Building wheel for psycopg2 (setup.py): started
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Building wheel for psycopg2 (setup.py): finished with status 'done'
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Created wheel for psycopg2: filename=psycopg2-2.8.3-cp35-cp35m-linux_x86_64.whl size=423970 sha256=66be3d89429a81d621467888d64920407d87a877e631d1c28d561fb9967fd2ba
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Stored in directory: /root/.cache/pip/wheels/48/06/67/475967017d99b988421b87bf7ee5fad0dad789dc349561786b
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Building wheel for pycparser (setup.py): started
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Building wheel for pycparser (setup.py): finished with status 'done'
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Created wheel for pycparser: filename=pycparser-2.19-py2.py3-none-any.whl size=111029 sha256=9da1f6d87aedb4aa2f17ca78e93ebde9b7674f8466fca45a4e367a51e3d52d68
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   -   Stored in directory: /root/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   - Successfully built psycopg2 pycparser
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   - Installing collected packages: pycparser, cffi, six, asn1crypto, cryptography, PyOpenSSL, pyasn1, ndg-httpsclient, psycopg2, lxml, MarkupSafe, jinja2
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   - Successfully installed MarkupSafe-1.1.1 PyOpenSSL-19.0.0 asn1crypto-1.1.0 cffi-1.12.3 cryptography-2.7 jinja2-2.10.3 lxml-4.4.1 ndg-httpsclient-0.5.1 psycopg2-2.8.3 pyasn1-0.4.7 pycparser-2.19 six-1.12.0
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   - + pip3 install --upgrade matrix-synapse==1.6.1 matrix-synapse-ldap3
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   - Collecting matrix-synapse==1.6.1
Error: : Could not find a version that satisfies the requirement matrix-synapse==1.6.1 (from versions: 0.33.5, 0.33.5.1, 0.33.6rc1, 0.33.6, 0.33.7rc1, 0.33.7rc2, 0.33.7, 0.33.8rc2, 0.33.8, 0.33.9, 0.34.0rc1, 0.34.0rc2, 0.34.0, 0.34.0.1, 0.34.1.1, 0.99.0rc1, 0.99.0rc2, 0.99.0rc3, 0.99.0rc4, 0.99.0, 0.99.1rc1, 0.99.1rc2, 0.99.1, 0.99.1.1, 0.99.2rc1, 0.99.2, 0.99.3rc1, 0.99.3, 0.99.3.1, 0.99.3.2, 0.99.4rc1, 0.99.4, 0.99.5rc1, 0.99.5, 0.99.5.1, 0.99.5.2, 1.0.0rc1, 1.0.0rc2, 1.0.0rc3, 1.0.0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc1, 1.3.0, 1.3.1, 1.4.0rc1, 1.4.0rc2, 1.4.0)
Error: : No matching distribution found for matrix-synapse==1.6.1
Warning: yunohost.hook <lambda> - [974.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Info: yunohost.log close - [974.1] The operation 'Install 'synapse' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191214-172043-app_install-synapse --share'
Info:  [+...................] > Loading installation settings...
Error: yunohost cli - Unknown service 'matrix-synapse'
Error: yunohost cli - Unknown service 'coturn-synapse'
Info:  [#+..................] > Stopping and removing the systemd service
Info:  [##+.................] > Removing the PostgreSQL database
Warning: yunohost.hook <lambda> - [974.1] FATAL:  terminating connection due to administrator command
Warning: yunohost.hook <lambda> - [974.1] server closed the connection unexpectedly
Warning: yunohost.hook <lambda> - [974.1] 	This probably means the server terminated abnormally
Warning: yunohost.hook <lambda> - [974.1] 	before or while processing the request.
Warning: yunohost.hook <lambda> - [974.1] connection to server was lost
Info:  [###++++++++.........] > Removing dependencies
Warning: yunohost.hook <lambda> - [974.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [974.1]   File "../conf/remove_sso_conf.py", line 5, in <module>
Warning: yunohost.hook <lambda> - [974.1]     data["skipped_urls"].remove("/_matrix")
Warning: yunohost.hook <lambda> - [974.1] KeyError: 'skipped_urls'
Info:  [###########+........] > Removing app main directory
Info:  /etc/default/matrix-synapse wasn't deleted because it doesn't exist.
Info:  /etc/default/coturn-synapse wasn't deleted because it doesn't exist.
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/nginx/conf.d/sous.domain.tld.d/synapse.conf wasn't deleted because it doesn't exist.
Info:  [#############+......] > Removing logrotate configuration
Info:  [##############......] > Closing port 8448
Warning: yunohost.firewall firewall_disallow - [9889.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [9889.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
Info:  [####################] > Removal of synapse completed
Error: yunohost cli - The operation 'Install 'synapse' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191214-172043-app_install-synapse --share'

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: 3 seconds.
Deleting failed. (1)
Error: yunohost cli - synapse is not installed
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 26 seconds.
Working time for this test: 6 minutes, 47 seconds.


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


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


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


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


>> Backup/Restore... [Test 7/9]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 15 seconds.
Working time for this test: 15 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.
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: 8 minutes, 19 seconds.
Disable iptables rules.
Disable the network bridge.
The complete log for this application was duplicated and is accessible at /home/CI_package_check/dev_CI/../logs/_home_yunohost.app_ssh_chroot_directories_josue_data_synapse_ynh_complete.log

Sat Dec 14 17:30:09 UTC 2019
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE