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

Sat Jun  1 22:14:01 UTC 2019
Wait for work starting...
...
Sat Jun  1 22:15:31 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: 54 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: 8 seconds.
Debian GNU/Linux 9
yunohost: 
  repo: stable
  version: 3.5.2.2
yunohost-admin: 
  repo: stable
  version: 3.5.2
moulinette: 
  repo: stable
  version: 3.5.2
ssowat: 
  repo: stable
  version: 3.5.2.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

    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]

! Consider adding an 'help' key for argument 'is_public' to explain to the user what it means for *this* app to be public or private :
    "help": {
       "en": "Some explanation"
    } 

 [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: 2 seconds.
Working time: 2 minutes, 45 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [1023.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> - [1023.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [1023.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Info:  [##########..........] > Configuring system user...
Warning: yunohost.hook <lambda> - [1023.1] experimental_helper.sh: line 144: synapse_db_pwd=fe6JMwmE3yT9jvSrrKKisrtdAAN9SS: command not found
Warning: yunohost.hook <lambda> - [1023.1] !!
Warning: yunohost.hook <lambda> - [1023.1]   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1023.1] !!
Info:  [##########..........] > Creating a PostgreSQL database...
Info: yunohost.log close - [1023.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 20190601-221630-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
Warning: yunohost.hook <lambda> - [1023.1] cat: /etc/yunohost/psql: No such file or directory
Info:  [##..................] > Removing the PostgreSQL database
Warning: yunohost.hook <lambda> - [1023.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [1023.1] Database matrix_synapse not found
Warning: yunohost.hook <lambda> - [1023.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [1023.1] User matrix_synapse not found
Info:  [###.................] > Removing dependencies
Warning: yunohost.hook <lambda> - [1023.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [1023.1]   File "../conf/remove_sso_conf.py", line 5, in <module>
Warning: yunohost.hook <lambda> - [1023.1]     data["skipped_urls"].remove("/_matrix")
Warning: yunohost.hook <lambda> - [1023.1] KeyError: 'skipped_urls'
Warning: yunohost.hook <lambda> - [1023.1] /opt/yunohost/matrix-synapse wasn't deleted because it doesn't exist.
Warning:Warning: yunohost.hook <lambda> - [1023.1] /var/lib/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [1023.1] /var/log/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [1023.1] /etc/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [1023.1] /etc/default/matrix-synapse wasn't deleted because it doesn't exist.
Info:  [###########.........] > Removing app main directory
Warning: yunohost.hook <lambda> - [1023.1] /etc/default/coturn-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [1023.1] /etc/nginx/conf.d/sous.domain.tld.d/synapse.conf wasn't deleted because it doesn't exist.
Info:  [############........] > Removing nginx web server configuration
Info:  Reload the service nginx
Info:  [#############.......] > Removing logrotate configuration
Info:  [##############......] > Closing port 8448
Warning: yunohost.firewall firewall_disallow - [9629.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [9629.1] Port 8448 is already closed for IPv6 connections
Info:  [##############......] > Closing port 5349
Info:  [###############.....] > Closing port 5350
Warning: yunohost.hook <lambda> - [1023.1] /etc/fail2ban/jail.d/synapse.conf wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [1023.1] /etc/fail2ban/filter.d/synapse.conf wasn't deleted because it doesn't exist.
Info:  [###############.....] > Removing fail2ban configuration...
Warning: yunohost.hook <lambda> - [1023.1] Remove the user matrix-synapse
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 20190601-221630-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: 6 seconds.
Deleting failed. (1)
Error: yunohost cli - synapse is not installed
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, 1 second.
Working time for this test: 3 minutes, 59 seconds.


>> Upgrade from the same version... [Test 3/9]

Preliminary install...
Start the LXC container..
Create witness files...
Working time: 10 seconds.
Working time: 4 minutes, 16 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [898.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> - [898.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [898.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Info:  [##########..........] > Configuring system user...
Warning: yunohost.hook <lambda> - [898.1] experimental_helper.sh: line 144: synapse_db_pwd=DCRSh21GqUD1cK1wlVXssNWsoLQHrD: command not found
Warning: yunohost.hook <lambda> - [898.1] !!
Warning: yunohost.hook <lambda> - [898.1]   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [898.1] !!
Info:  [##########..........] > Creating a PostgreSQL database...
Info: yunohost.log close - [898.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 20190601-222040-app_install-synapse --share'
Info:  [....................] > Loading installation settings...
Error: yunohost cli - Unknown service 'matrix-synapse'
Error: yunohost cli - Unknown service 'coturn-synapse'
Warning: yunohost.hook <lambda> - [898.1] cat: /etc/yunohost/psql: No such file or directory
Info:  [#...................] > Stopping and removing the systemd service
Info:  [##..................] > Removing the PostgreSQL database
Warning: yunohost.hook <lambda> - [898.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [898.1] Database matrix_synapse not found
Warning: yunohost.hook <lambda> - [898.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [898.1] User matrix_synapse not found
Info:  [###.................] > Removing dependencies
Warning: yunohost.hook <lambda> - [898.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [898.1]   File "../conf/remove_sso_conf.py", line 5, in <module>
Warning: yunohost.hook <lambda> - [898.1]     data["skipped_urls"].remove("/_matrix")
Warning: yunohost.hook <lambda> - [898.1] KeyError: 'skipped_urls'
Warning: yunohost.hook <lambda> - [898.1] /opt/yunohost/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [898.1] /var/lib/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [898.1] /var/log/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [898.1] /etc/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [898.1] /etc/default/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [898.1] /etc/default/coturn-synapse wasn't deleted because it doesn't exist.
Info:  [###########.........] > Removing app main directory
Warning: yunohost.hook <lambda> - [898.1] /etc/nginx/conf.d/sous.domain.tld.d/synapse.conf wasn't deleted because it doesn't exist.
Info:  [############........] > Removing nginx web server configuration
Info:  Reload the service nginx
Info:  [#############.......] > Removing logrotate configuration
Info:  [##############......] > Closing port 8448
Warning: yunohost.firewall firewall_disallow - [9496.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [9496.1] Port 8448 is already closed for IPv6 connections
Info:  [##############......] > Closing port 5349
Info:  [###############.....] > Closing port 5350
Warning: yunohost.hook <lambda> - [898.1] /etc/fail2ban/jail.d/synapse.conf wasn't deleted because it doesn't exist.
Info:  [###############.....] > Removing fail2ban configuration...
Warning: yunohost.hook <lambda> - [898.1] /etc/fail2ban/filter.d/synapse.conf wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [898.1] Remove the user matrix-synapse
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 20190601-222040-app_install-synapse --share'

Installation failed...
--- FAIL ---

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 6 seconds.
Deleting failed. (1)
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, 4 seconds.


>> Upgrade from Fix postgresql helper from old_version_for_CI_2 branch... [Test 4/9]

Preliminary install...
Start the LXC container..
Create witness files...
Working time: 9 seconds.
Working time: 7 minutes, 29 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [914.1] Installing application synapse…
Warning: yunohost.hook <lambda> - [914.1] Generating DH parameters, 2048 bit long safe prime, generator 2
Warning: yunohost.hook <lambda> - [914.1] This is going to take a long time
Warning: yunohost.hook <lambda> - [914.1] ....................................................................................................................+...............................+.................................................+.....................................................+......+...............................................+...........................+.......................................................+..........+............................................................................................................+...............+.............................................................................................................................................................................+...............................................................................+...........+............................................+....................+.................................................+....................+..................+.................................................................................+........................................................................................................................+........+............................................................................................................................................+..........................................................................................................+.....................................................................................................................................................+.............................................+...........................................................................................................................+...........+............................................................+..............................+...............+..........................................+.........................................................................................................................+.............................................................................................................................................................................................................+...................................................................+.....................................................................+......................................................................................................+............................................................................+........+.................................+........................+...............................................................................................................................................+.......................................................................................+..................................+..............................................+................................................................................................................................................+..................................+......................+..................................................................................+................................................................................................................................................................+.............................................+........................+...........................................................................................+...........................................................................+........................................................................+.............................................................................................................+...................................+...................................................................+.............+..............................+........................................................................................................................................................................................................................................................................................+..............................................................................................+..................................................................................................................................................................................................................................................................................................................................................................................................................................+........................+..............................................................................................................+..........................+.....................................+...........................+..+.....+......................................................................+..................................................+..............................................................................................................+................................................+.....................................+.....................................+..................................................................................+.........................................................................................+...........................+..............................................................................................................................................................................+..........................................................................+..............................................................+..............+...............................................................................................................................................+....................................................................................................................................................................................................................................................................................................................+......................................................................................................................+..................................................................+...........................................................................+...............+............................................................................................................+.........+..................................................+..........................................................+...........................................................................................+..............................................................................................................................................................................................................................................................................................................................................................................................................+..................................................................................................................................................................................................+......................................+...........+............................................................................+..........................+.........................................................................................................................................+.......................................+.......................................+..........................................+....................+.....................................................................................+.....+..................................................................................................................................................+.....................................+........................................................................................................................+...................................................................................+..................++*++*++*++*
Warning: yunohost.hook <lambda> - [914.1] dh_install: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [914.1] dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [914.1] dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [914.1] 
Extracting templates from packages: 93%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [914.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "build-essential" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "python2.7-dev" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "libffi-dev" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "python-pip" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "python-setuptools" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "sqlite3" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "libssl-dev" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "python-virtualenv" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "libxml2-dev" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "libxslt1-dev" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "python-lxml" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "libjpeg-dev" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "libpq-dev" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "postgresql" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] [WARN] Too many arguments ! "acl" will be ignored.
Warning: yunohost.hook <lambda> - [914.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [914.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Warning: yunohost.hook <lambda> - [914.1] DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Warning: yunohost.hook <lambda> - [914.1] DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Warning: yunohost.hook <lambda> - [914.1] DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Warning: yunohost.hook <lambda> - [914.1] DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Warning: yunohost.hook <lambda> - [914.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.

Upgrade...
A LXC container is already running.
Working time: 1 second.
Working time: 5 minutes, 28 seconds.
Upgrade failed. (1)
Info: yunohost.app app_upgrade - [20347.1] Now upgrading app synapse…
Info:  [....................] > Loading installation settings...
Warning: yunohost.hook <lambda> - [20347.1] experimental_helper.sh: line 144: synapse_db_pwd=MUBleNEfJZIFyxuEL11SEkyKopbQ7S: command not found
Warning: yunohost.hook <lambda> - [20347.1] experimental_helper.sh: line 144: turnserver_pwd=AOzUSDwuTIoyjEAXZxUU63WymtkNbq: command not found
Info:  [....................] > Ensuring downward compatibility...
Info:  [#...................] > Backing up the app before upgrading (may take a while)...
Info:  Stop the service matrix-synapse.service
Info: yunohost.backup _collect_app_files - [20722.1] Collecting files to be backuped for synapse…
Warning: yunohost.hook <lambda> - [20722.1] /var/lib/matrix-synapse will not be saved, because backup_core_only is set.
Warning: yunohost.hook <lambda> - [20347.1] 1187 /var/lib/matrix-synapse will not be saved, because backup_core_only is set.
Warning: yunohost.hook <lambda> - [20722.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [20347.1] 1412 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Info: yunohost.backup backup_create - [20722.1] Now creating a backup archive from the files collected…
Info:  [#########...........] > Upgrading dependencies...
Info:  [###########.........] > Upgrading source files...
Warning: yunohost.hook <lambda> - [20347.1] Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20347.1]   Cache entry deserialization failed, entry ignored
Info:  [############........] > Generating synapse secret...
Info:  [#############.......] > Updating synapse config...
Warning: yunohost.hook <lambda> - [20347.1] ./upgrade: line 179: synapse_db_pwd: unbound variable
Warning: yunohost.hook <lambda> - [20347.1] !!
Warning: yunohost.hook <lambda> - [20347.1]   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [20347.1] !!
Warning: yunohost.hook <lambda> - [20347.1] Upgrade failed.
Info: yunohost.app app_remove - [23217.1] Removing application synapse…
Warning: yunohost.hook <lambda> - [23217.1] python: can't open file '/opt/yunohost/matrix-synapse/remove_sso_conf.py': [Errno 2] No such file or directory
Warning: yunohost.hook <lambda> - [20347.1] python: can't open file '/opt/yunohost/matrix-synapse/remove_sso_conf.py': [Errno 2] No such file or directory
Warning: yunohost.hook <lambda> - [23217.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [20347.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [23217.1] Remove the user matrix-synapse
Warning: yunohost.hook <lambda> - [20347.1] Remove the user matrix-synapse
Info: yunohost.backup backup_restore - [24422.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [24422.1] Restoring application synapse…
Warning: yunohost.firewall firewall_allow - [24720.1] Port 5349 is already opened for IPv4 connections
Warning: yunohost.firewall firewall_allow - [24720.1] Port 5349 is already opened for IPv6 connections
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "build-essential" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "python2.7-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "libffi-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "python-pip" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "python-setuptools" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "sqlite3" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "libssl-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "python-virtualenv" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "libxml2-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "libxslt1-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "python-lxml" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56923 [WARN] Too many arguments ! "build-essential" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56924 [WARN] Too many arguments ! "python2.7-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56926 [WARN] Too many arguments ! "libffi-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56931 [WARN] Too many arguments ! "python-pip" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56931 [WARN] Too many arguments ! "python-setuptools" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "libjpeg-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56932 [WARN] Too many arguments ! "sqlite3" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56935 [WARN] Too many arguments ! "libssl-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56935 [WARN] Too many arguments ! "python-virtualenv" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56936 [WARN] Too many arguments ! "libxml2-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56937 [WARN] Too many arguments ! "libxslt1-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56944 [WARN] Too many arguments ! "python-lxml" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56958 [WARN] Too many arguments ! "libjpeg-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "libpq-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56972 [WARN] Too many arguments ! "libpq-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "postgresql" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 56985 [WARN] Too many arguments ! "postgresql" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] [WARN] Too many arguments ! "acl" will be ignored.
Warning: yunohost.hook <lambda> - [20347.1] 57000 [WARN] Too many arguments ! "acl" will be ignored.
Warning: yunohost.hook <lambda> - [24422.1] ../settings/scripts/_common.sh: line 128: Creating directory ': command not found
Warning: yunohost.hook <lambda> - [20347.1] 64535 ../settings/scripts/_common.sh: line 128: Creating directory ': command not found
Warning: yunohost.hook <lambda> - [24422.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [20347.1] 66891 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [24422.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [20347.1] 70978 Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [20347.1] The app was restored to the way it was before the failed upgrade.
Error: yunohost.app app_upgrade - [20347.1] Unable to upgrade synapse
Info: yunohost.log close - [20347.1] The operation 'Upgrade 'synapse' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190601-223353-app_upgrade-synapse --share'
Error: yunohost cli - The following apps were not upgraded: synapse

Try to access by url...
Test url: sous.domain.tld
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: sous.domain.tld/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
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: 34 seconds.
Deleting successful. (0)
Stop the LXC container
Restore the previous snapshot.
Working time: 58 seconds.


>> Upgrade from Migrate from self signed certificate to cert managed by Yunohost... [Test 5/9]

Preliminary install...
Start the LXC container.
Create witness files...
Working time: 6 seconds.
Working time: 4 minutes, 21 seconds.
Installation successful. (0)
Warning: yunohost.service _run_service_command - [183.1] Unable to execute command 'systemctl reload fail2ban'
Info: yunohost.app app_install - [906.1] Installing application synapse…
Warning: yunohost.hook <lambda> - [906.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [906.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Warning: yunohost.hook <lambda> - [906.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [906.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Warning: yunohost.hook <lambda> - [906.1] /opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/config/_base.py:169: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Warning: yunohost.hook <lambda> - [906.1]   config = yaml.load(default_config)
Warning: yunohost.hook <lambda> - [906.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [906.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Info:  Reload the service nginx
Warning: yunohost.hook <lambda> - [906.1] Starting of matrix-synapse
Warning: yunohost.hook <lambda> - [906.1] tail: cannot open '/var/log/matrix-synapse/homeserver.log' for reading: No such file or directory
Warning: yunohost.hook <lambda> - [906.1] ...tail: '/var/log/matrix-synapse/homeserver.log' has appeared;  following new file
Warning: yunohost.hook <lambda> - [906.1] ....The service matrix-synapse has correctly started.
Error: moulinette.core translate - unable to retrieve key 'service_description_coturn-synapse' for default locale 'en'
Error: moulinette.core translate - unable to retrieve key 'service_description_matrix-synapse' for default locale 'en'

Upgrade...
A LXC container is already running.
Working time: 2 seconds.
Working time: 4 minutes, 28 seconds.
Upgrade failed. (1)
Info: yunohost.app app_upgrade - [9039.1] Now upgrading app synapse…
Info:  [....................] > Loading installation settings...
Warning: yunohost.hook <lambda> - [9039.1] experimental_helper.sh: line 144: synapse_db_pwd=5aON6qSxWyISsHiBWfkYA61omfZ8FG: command not found
Warning: yunohost.hook <lambda> - [9039.1] experimental_helper.sh: line 144: turnserver_pwd=ohzC5UzOc61yclw8DIHN4w7DkJaoMF: command not found
Info:  [....................] > Ensuring downward compatibility...
Info:  [#...................] > Backing up the app before upgrading (may take a while)...
Info:  Stop the service matrix-synapse.service
Info: yunohost.backup _collect_app_files - [9416.1] Collecting files to be backuped for synapse…
Warning: yunohost.hook <lambda> - [9416.1] /var/lib/matrix-synapse will not be saved, because backup_core_only is set.
Warning: yunohost.hook <lambda> - [9039.1] 1685 /var/lib/matrix-synapse will not be saved, because backup_core_only is set.
Warning: yunohost.hook <lambda> - [9416.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [9039.1] 1815 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Info: yunohost.backup backup_create - [9416.1] Now creating a backup archive from the files collected…
Info:  [#########...........] > Upgrading dependencies...
Info:  [###########.........] > Upgrading source files...
Info:  [############........] > Updating synapse config...
Warning: yunohost.hook <lambda> - [9039.1] ./upgrade: line 179: synapse_db_pwd: unbound variable
Warning: yunohost.hook <lambda> - [9039.1] !!
Warning: yunohost.hook <lambda> - [9039.1]   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [9039.1] !!
Warning: yunohost.hook <lambda> - [9039.1] Upgrade failed.
Info: yunohost.app app_remove - [10148.1] Removing application synapse…
Warning: yunohost.hook <lambda> - [10148.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Info:  Stop the service matrix-synapse
Warning: yunohost.hook <lambda> - [9039.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Info:  Stop the service coturn-synapse
Warning: yunohost.hook <lambda> - [10148.1] Removed /etc/systemd/system/multi-user.target.wants/coturn-synapse.service.
Warning: yunohost.hook <lambda> - [9039.1] Removed /etc/systemd/system/multi-user.target.wants/coturn-synapse.service.
Warning: yunohost.firewall firewall_disallow - [10371.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [10371.1] Port 8448 is already closed for IPv6 connections
Warning: yunohost.hook <lambda> - [10148.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.hook <lambda> - [10148.1] Port 8448 is already closed for IPv6 connections
Warning: yunohost.hook <lambda> - [9039.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.hook <lambda> - [9039.1] Port 8448 is already closed for IPv6 connections
Warning: yunohost.hook <lambda> - [9039.1] Process AsynchronousFileReader-3:
Warning: yunohost.hook <lambda> - [9039.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [9039.1]   File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
Warning: yunohost.hook <lambda> - [9039.1]     self.run()
Warning: yunohost.hook <lambda> - [9039.1]   File "/usr/lib/python2.7/dist-packages/moulinette/utils/stream.py", line 47, in run
Warning: yunohost.hook <lambda> - [9039.1]     data += os.read(self._fd, 50)
Warning: yunohost.hook <lambda> - [9039.1] OSError: [Errno 11] Resource temporarily unavailable
Warning: yunohost.hook <lambda> - [10148.1] could not change directory to "/tmp/yunohost_remove/scripts": Permission denied
Warning: yunohost.hook <lambda> - [9039.1] could not change directory to "/tmp/yunohost_remove/scripts": Permission denied
Warning: yunohost.hook <lambda> - [10148.1] could not change directory to "/tmp/yunohost_remove/scripts": Permission denied
Warning: yunohost.hook <lambda> - [9039.1] could not change directory to "/tmp/yunohost_remove/scripts": Permission denied
Warning: yunohost.hook <lambda> - [10148.1] Remove the user matrix-synapse
Warning: yunohost.hook <lambda> - [9039.1] Remove the user matrix-synapse
Info: yunohost.backup backup_restore - [12439.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [12439.1] Restoring application synapse…
Warning: yunohost.hook <lambda> - [12439.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [9039.1] 79352 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [12439.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [9039.1] 79461 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [12439.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [9039.1] 80172 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [12439.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [9039.1] 84221 Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [12439.1] chown: cannot access '/var/lib/matrix-synapse': No such file or directory
Warning: yunohost.hook <lambda> - [12439.1] !!
Warning: yunohost.hook <lambda> - [12439.1]   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [12439.1] !!
Warning: yunohost.hook <lambda> - [9039.1] 84745 chown: cannot access '/var/lib/matrix-synapse': No such file or directory
Warning: yunohost.hook <lambda> - [9039.1] 84745 !!
Warning: yunohost.hook <lambda> - [9039.1] 84746   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [9039.1] 84747 !!
Warning: yunohost.hook <lambda> - [9039.1] 84748
Error: yunohost.backup _restore_app - [12439.1] Unable to restore the app 'synapse'
Info: yunohost.log close - [12439.1] The operation 'Restore 'synapse' from a backup archive' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190601-224801-backup_restore_app-synapse --share'
Warning: yunohost.hook <lambda> - [9039.1] 84881 Unable to restore the app 'synapse'
Warning: yunohost.hook <lambda> - [9039.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [9039.1]   File "/usr/lib/moulinette/yunohost/backup.py", line 1325, in _restore_app
Warning: yunohost.hook <lambda> - [9039.1]     env=env_dict)[0]
Warning: yunohost.hook <lambda> - [9039.1]   File "/usr/lib/moulinette/yunohost/hook.py", line 396, in hook_exec
Warning: yunohost.hook <lambda> - [9039.1]     raise YunohostError('hook_exec_failed', path=path)
Warning: yunohost.hook <lambda> - [9039.1] YunohostError: Script execution failed: /tmp/restoreLiuBtC/restore
Info:  Stop the service matrix-synapse
Warning: yunohost.hook <lambda> - [12439.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [9039.1] 86543 Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Info:  Stop the service coturn-synapse
Warning: yunohost.firewall firewall_disallow - [15934.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [15934.1] Port 8448 is already closed for IPv6 connections
Warning: yunohost.hook <lambda> - [12439.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.hook <lambda> - [12439.1] Port 8448 is already closed for IPv6 connections
Warning: yunohost.hook <lambda> - [9039.1] 88327 Port 8448 is already closed for IPv4 connections
Warning: yunohost.hook <lambda> - [9039.1] 88328 Port 8448 is already closed for IPv6 connections
Warning: yunohost.hook <lambda> - [12439.1] /var/lib/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [9039.1] 126188 /var/lib/matrix-synapse wasn't deleted because it doesn't exist.
Info:  Reload the service nginx
Warning: yunohost.hook <lambda> - [12439.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/settings/scripts": Permission denied
Warning: yunohost.hook <lambda> - [9039.1] 126765 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/settings/scripts": Permission denied
Warning: yunohost.hook <lambda> - [12439.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/settings/scripts": Permission denied
Warning: yunohost.hook <lambda> - [12439.1] Remove the user matrix-synapse
Warning: yunohost.hook <lambda> - [9039.1] 127072 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/settings/scripts": Permission denied
Warning: yunohost.hook <lambda> - [9039.1] 127072 Remove the user matrix-synapse
Error: yunohost cli - Unknown service 'matrix-synapse'
Warning: yunohost.hook <lambda> - [12439.1] Unknown service 'matrix-synapse'
Warning: yunohost.hook <lambda> - [9039.1] 128008 Unknown service 'matrix-synapse'
Error: yunohost cli - Unknown service 'coturn-synapse'
Warning: yunohost.hook <lambda> - [12439.1] Unknown service 'coturn-synapse'
Warning: yunohost.backup _restore_app - [12439.1] synapse has not been properly removed
Info: yunohost.log close - [12439.1] The operation 'Remove 'synapse' after a failed restore from a backup archive' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190601-224910-remove_on_failed_restore-synapse --share'
Error: yunohost cli - Nothing has been restored
Warning: yunohost.hook <lambda> - [9039.1] 128513 Unknown service 'coturn-synapse'
Warning: yunohost.hook <lambda> - [9039.1] 128535 synapse has not been properly removed
Warning: yunohost.hook <lambda> - [9039.1] 128554 Nothing has been restored
Warning: yunohost.hook <lambda> - [9039.1] The app was restored to the way it was before the failed upgrade.
Error: yunohost.app app_upgrade - [9039.1] Unable to upgrade synapse
Info: yunohost.log close - [9039.1] The operation 'Upgrade 'synapse' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190601-224533-app_upgrade-synapse --share'
Error: yunohost cli - The following apps were not upgraded: synapse

Try to access by url...
Test url: sous.domain.tld
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: sous.domain.tld/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
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: 1 second.
Working time: 6 seconds.
Deleting failed. (1)
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, 1 second.
Restore the previous snapshot.
Working time: 51 seconds.
Working time for this test: 31 minutes, 36 seconds.


>> Installation in public mode... [Test 6/9]
Root install failed, impossible to perform this test...
Sub path install failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 49 seconds.
Working time for this test: 49 seconds.


>> Multi-instance installations... [Test 7/9]
First installation: path=domain.tld
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 3 minutes, 23 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [919.1] Installing application synapse…
Info:  [....................] > Validating installation parameters...
Info:  [....................] > Storing installation settings...
Info:  [....................] > Configuring firewall...
Warning: yunohost.firewall firewall_reload - [1319.1] Some firewall rules commands have failed. For more information, see the log.
Info:  [##..................] > Creating a dh file...
Info:  [##..................] > Installing dependencies...
Warning: yunohost.hook <lambda> - [919.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [919.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Info:  [##########..........] > Configuring system user...
Warning: yunohost.hook <lambda> - [919.1] experimental_helper.sh: line 144: synapse_db_pwd=ujui9bCgM4BtRokA9X2DkT3XFHhBcH: command not found
Info:  [##########..........] > Creating a PostgreSQL database...
Warning: yunohost.hook <lambda> - [919.1] !!
Warning: yunohost.hook <lambda> - [919.1]   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [919.1] !!
Info: yunohost.log close - [919.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 20190601-225306-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> - [919.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [919.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [919.1] Database matrix_synapse not found
Warning: yunohost.hook <lambda> - [919.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [919.1] User matrix_synapse not found
Info:  [###.................] > Removing dependencies
Warning: yunohost.hook <lambda> - [919.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [919.1]   File "../conf/remove_sso_conf.py", line 5, in <module>
Warning: yunohost.hook <lambda> - [919.1]     data["skipped_urls"].remove("/_matrix")
Warning: yunohost.hook <lambda> - [919.1] KeyError: 'skipped_urls'
Warning: yunohost.hook <lambda> - [919.1] /opt/yunohost/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [919.1] /var/lib/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [919.1] /var/log/matrix-synapse wasn't deleted because it doesn't exist.
Info:  [###########.........] > Removing app main directory
Warning: yunohost.hook <lambda> - [919.1] /etc/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [919.1] /etc/default/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [919.1] /etc/default/coturn-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [919.1] /etc/nginx/conf.d/domain.tld.d/synapse.conf wasn't deleted because it doesn't exist.
Info:  [############........] > Removing nginx web server configuration
Info:  Reload the service nginx
Info:  [#############.......] > Removing logrotate configuration
Info:  [##############......] > Closing port 8448
Warning: yunohost.firewall firewall_disallow - [9519.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [9519.1] Port 8448 is already closed for IPv6 connections
Info:  [##############......] > Closing port 5349
Info:  [###############.....] > Closing port 5350
Warning: yunohost.hook <lambda> - [919.1] /etc/fail2ban/jail.d/synapse.conf wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [919.1] /etc/fail2ban/filter.d/synapse.conf wasn't deleted because it doesn't exist.
Info:  [###############.....] > Removing fail2ban configuration...
Warning: yunohost.hook <lambda> - [919.1] Remove the user matrix-synapse
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 20190601-225306-app_install-synapse --share'
Second installation: path=sous.domain.tld
A LXC container is already running.
Working time: 1 second.
Working time: 1 minute, 47 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [10411.1] Installing application synapse…
Info:  [....................] > Validating installation parameters...
Info:  [....................] > Storing installation settings...
Info:  [....................] > Configuring firewall...
Info:  [##..................] > Creating a dh file...
Info:  [##..................] > Installing dependencies...
Info:  [##########..........] > Configuring system user...
Warning: yunohost.hook <lambda> - [10411.1] experimental_helper.sh: line 144: synapse_db_pwd=d8NhEVEzkBCT6kXO0WbuO2A52l1EAh: command not found
Warning: yunohost.hook <lambda> - [10411.1] !!
Warning: yunohost.hook <lambda> - [10411.1]   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [10411.1] !!
Info:  [##########..........] > Creating a PostgreSQL database...
Info: yunohost.log close - [10411.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 20190601-225633-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> - [10411.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [10411.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [10411.1] Database matrix_synapse not found
Warning: yunohost.hook <lambda> - [10411.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [10411.1] User matrix_synapse not found
Info:  [###.................] > Removing dependencies
Warning: yunohost.hook <lambda> - [10411.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [10411.1]   File "../conf/remove_sso_conf.py", line 5, in <module>
Warning: yunohost.hook <lambda> - [10411.1]     data["skipped_urls"].remove("/_matrix")
Warning: yunohost.hook <lambda> - [10411.1] KeyError: 'skipped_urls'
Warning: yunohost.hook <lambda> - [10411.1] /opt/yunohost/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [10411.1] /var/lib/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [10411.1] /var/log/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [10411.1] /etc/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [10411.1] /etc/default/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [10411.1] /etc/default/coturn-synapse wasn't deleted because it doesn't exist.
Info:  [###########.........] > Removing app main directory
Warning: yunohost.hook <lambda> - [10411.1] /etc/nginx/conf.d/sous.domain.tld.d/synapse.conf wasn't deleted because it doesn't exist.
Info:  [############........] > Removing nginx web server configuration
Info:  Reload the service nginx
Info:  [#############.......] > Removing logrotate configuration
Info:  [##############......] > Closing port 8448
Warning: yunohost.firewall firewall_disallow - [14594.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [14594.1] Port 8448 is already closed for IPv6 connections
Info:  [##############......] > Closing port 5349
Info:  [###############.....] > Closing port 5350
Warning: yunohost.hook <lambda> - [10411.1] /etc/fail2ban/jail.d/synapse.conf wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [10411.1] /etc/fail2ban/filter.d/synapse.conf wasn't deleted because it doesn't exist.
Info:  [###############.....] > Removing fail2ban configuration...
Warning: yunohost.hook <lambda> - [10411.1] Remove the user matrix-synapse
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 20190601-225633-app_install-synapse --share'

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

Try to access by url...
Test url: sous.domain.tld
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: sous.domain.tld/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 58 seconds.
Working time for this test: 6 minutes, 26 seconds.


>> Port already used... [Test 8/9]
Start the LXC container.Start the LXC container.
Create witness files...
Working time: 9 seconds.
Working time: 7 seconds.
A LXC container is already running.
Working time: 1 second.
Working time: 3 minutes, 44 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [985.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> - [985.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [985.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Info:  [##########..........] > Configuring system user...
Warning: yunohost.hook <lambda> - [985.1] experimental_helper.sh: line 144: synapse_db_pwd=ydBv5WOtIe5SzdQzZra2IXmO1RtnJE: command not found
Warning: yunohost.hook <lambda> - [985.1] !!
Warning: yunohost.hook <lambda> - [985.1]   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [985.1] !!
Info:  [##########..........] > Creating a PostgreSQL database...
Info: yunohost.log close - [985.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 20190601-225937-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> - [985.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [985.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [985.1] Database matrix_synapse not found
Warning: yunohost.hook <lambda> - [985.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [985.1] User matrix_synapse not found
Info:  [###.................] > Removing dependencies
Warning: yunohost.hook <lambda> - [985.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [985.1]   File "../conf/remove_sso_conf.py", line 5, in <module>
Warning: yunohost.hook <lambda> - [985.1]     data["skipped_urls"].remove("/_matrix")
Warning: yunohost.hook <lambda> - [985.1] KeyError: 'skipped_urls'
Warning: yunohost.hook <lambda> - [985.1] /opt/yunohost/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [985.1] /var/lib/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [985.1] /var/log/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [985.1] /etc/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [985.1] /etc/default/matrix-synapse wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [985.1] /etc/default/coturn-synapse wasn't deleted because it doesn't exist.
Info:  [###########.........] > Removing app main directory
Warning: yunohost.hook <lambda> - [985.1] /etc/nginx/conf.d/sous.domain.tld.d/synapse.conf wasn't deleted because it doesn't exist.
Info:  [############........] > Removing nginx web server configuration
Info:  Reload the service nginx
Info:  [#############.......] > Removing logrotate configuration
Warning: yunohost.firewall firewall_disallow - [9586.1] Port 8449 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [9586.1] Port 8449 is already closed for IPv6 connections
Info:  [##############......] > Closing port 8449
Info:  [##############......] > Closing port 5349
Info:  [###############.....] > Closing port 5350
Warning: yunohost.hook <lambda> - [985.1] /etc/fail2ban/jail.d/synapse.conf wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [985.1] /etc/fail2ban/filter.d/synapse.conf wasn't deleted because it doesn't exist.
Info:  [###############.....] > Removing fail2ban configuration...
Warning: yunohost.hook <lambda> - [985.1] Remove the user matrix-synapse
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 20190601-225937-app_install-synapse --share'

Try to access by url...
Test url: sous.domain.tld
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: sous.domain.tld/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, .
Working time for this test: 5 minutes, 3 seconds.


>> Backup/Restore... [Test 9/9]
Root install failed, impossible to perform this test...
Sub path install failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 49 seconds.
Working time for this test: 49 seconds.



Package linter:                  SUCCESS
Installation:                    FAIL
Deleting:                        FAIL
Installation in a sub path:      FAIL
Deleting from a sub path:        FAIL
Installation on the root:        Deleting from root:              Not evaluated.
Upgrade:                         FAIL
Installation in private mode:    Not evaluated.
Installation in public mode:     Not evaluated.
Multi-instance installations:    FAIL
Malformed path:                  Not evaluated.
Port already used:               FAIL
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: 49 minutes, 4 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 Jun  1 23:07:05 UTC 2019
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE