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

Sun Jun  2 09:29:01 UTC 2019
Wait for work starting...
..
Sun Jun  2 09:30:01 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: 55 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: 6 seconds.
Working time: 7 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: 1 second.
Working time: 4 minutes, 52 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [1062.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> - [1062.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [1062.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> - [1062.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [1062.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> - [1062.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [1062.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:  Reload the service nginx
Info:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################...] > Restarting synapse services...
Info:  Restart the service coturn-synapse.service
Info:  Restart the service matrix-synapse
Warning: yunohost.hook <lambda> - [1062.1] Please wait, the service matrix-synapse is restarting......
Info:  The service matrix-synapse has correctly started.
Info:  [##################..] > Configuring fail2ban...
Error: moulinette.core translate - unable to retrieve key 'service_description_postgresql' for default locale 'en'
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'
Info:  [####################] > Installation of synapse completed

Try to access by url...
Test url: sous.domain.tld/_matrix/static
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/

Resource unreachable (Code 302) sous.domain.tld/_matrix/static
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/_matrix/static/
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/


--- SUCCESS ---
Create a snapshot for sub path installation.
Working time: 27 seconds.
Start the LXC container..
Create witness files...
Working time: 11 seconds.
Working time: 4 seconds.

Deleting...
A LXC container is already running.A LXC container is already running.
Working time: 2 seconds.
Working time: 43 seconds.
Deleting successful. (0)
Info: yunohost.app app_remove - [1071.1] Removing application synapse…
Info:  [....................] > Loading installation settings...
Error: moulinette.core translate - unable to retrieve key 'service_description_matrix-synapse' for default locale 'en'
Error: moulinette.core translate - unable to retrieve key 'service_description_coturn-synapse' for default locale 'en'
Warning: yunohost.hook <lambda> - [1071.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Info:  [#...................] > Stopping and removing the systemd service
Info:  Stop the service matrix-synapse
Info:  Stop the service coturn-synapse
Warning: yunohost.hook <lambda> - [1071.1] Removed /etc/systemd/system/multi-user.target.wants/coturn-synapse.service.
Info:  [##..................] > Removing the PostgreSQL database
Warning: yunohost.hook <lambda> - [1071.1] Removing database matrix_synapse
Warning: yunohost.hook <lambda> - [1071.1] Removing user matrix_synapse
Info:  [###.................] > Removing dependencies
Info:  [###########.........] > Removing app main directory
Info:  [############........] > Removing nginx web server configuration
Info:  Reload the service nginx
Info:  [#############.......] > Removing logrotate configuration
Info:  [##############......] > Closing port 8448
Warning: yunohost.firewall firewall_disallow - [3018.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [3018.1] Port 8448 is already closed for IPv6 connections
Warning: yunohost.service _run_service_command - [3018.1] Unable to execute command 'systemctl reload fail2ban'
Info:  [##############......] > Closing port 5349
Warning: yunohost.service _run_service_command - [3137.1] Unable to execute command 'systemctl reload fail2ban'
Info:  [###############.....] > Closing port 5350
Warning: yunohost.service _run_service_command - [3248.1] Unable to execute command 'systemctl reload fail2ban'
Info:  [###############.....] > Removing fail2ban configuration...
Warning: yunohost.hook <lambda> - [1071.1] Remove the user matrix-synapse
Info:  [####################] > Removing the dedicated system user
Info:  [####################] > Removal of synapse completed
--- SUCCESS ---

Reinstall the application after a removing.
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 minutes, 37 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [3592.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...
Info:  [##########..........] > Creating a PostgreSQL database...
Info:  [###########.........] > Setting up source files...
Warning: yunohost.hook <lambda> - [3592.1] Cache entry deserialization failed, entry ignored
Info:  [################....] > Creating synapse config...
Info:  [################....] > Configuring a systemd service...
Warning: yunohost.hook <lambda> - [3592.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [3592.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:  Reload the service nginx
Info:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################...] > Restarting synapse services...
Info:  Restart the service coturn-synapse.service
Info:  Restart the service matrix-synapse
Warning: yunohost.hook <lambda> - [3592.1] Please wait, the service matrix-synapse is restarting......
Info:  The service matrix-synapse has correctly started.
Info:  [##################..] > Configuring fail2ban...
Error: moulinette.core translate - unable to retrieve key 'service_description_postgresql' for default locale 'en'
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'
Info:  [####################] > Installation of synapse completed

Try to access by url...
Test url: sous.domain.tld/_matrix/static
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/

Resource unreachable (Code 302) sous.domain.tld/_matrix/static
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/_matrix/static/
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, 3 seconds.
Working time for this test: 10 minutes, 8 seconds.


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

Preliminary install...
Uses an existing snapshot for sub path installation.
Working time: 17 seconds.

Upgrade...
Start the LXC container.
Create witness files...
Working time: 5 seconds.
Working time: 1 minute, 48 seconds.
Upgrade successful. (0)
Warning: yunohost.service _run_service_command - [207.1] Unable to execute command 'systemctl reload fail2ban'
Info: yunohost.app app_upgrade - [1012.1] Now upgrading app synapse…
Info:  [....................] > Loading installation settings...
Warning: yunohost.hook <lambda> - [1012.1] Upgrade forced for package check.
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 - [1411.1] Collecting files to be backuped for synapse…
Info:  [....................] > Loading installation settings...
Info:  [###.................] > Backing up the main app directory...
Info:  [####................] > Backing up nginx web server configuration...
Info:  [######..............] > Backing up the PostgreSQL database...
Info:  [#########...........] > Backing up fail2ban configuration
Info:  [##########..........] > Backing up synapse configuration...
Info:  [#############.......] > Backing up systemd configuration...
Warning: yunohost.hook <lambda> - [1411.1] /var/lib/matrix-synapse will not be saved, because backup_core_only is set.
Warning: yunohost.hook <lambda> - [1012.1] 3196 /var/lib/matrix-synapse will not be saved, because backup_core_only is set.
Info:  [###############.....] > Backing up synapse data...
Info:  [################....] > Backing up synapse log...
Info:  [####################] > Backup script completed for synapse. (YunoHost will then actually copy those files to the archive).
Info: yunohost.backup backup_create - [1411.1] Now creating a backup archive from the files collected…
Info:  [#########...........] > Upgrading dependencies...
Info:  [###########.........] > Upgrading source files...
Info:  [############........] > Updating synapse config...
Info:  [#############.......] > Upgrading nginx web server configuration...
Info:  Reload the service nginx
Info:  [#############.......] > Updating coturn config...
Info:  [##############......] > Upgrading systemd configuration...
Info:  [###############.....] > Reconfiguring fail2ban...
Info:  [#################...] > Restarting synapse services...
Info:  Restart the service coturn-synapse.service
Info:  Restart the service matrix-synapse
Warning: yunohost.hook <lambda> - [1012.1] Please wait, the service matrix-synapse is restarting..
Info:  The service matrix-synapse has correctly started.
Info:  [####################] > Upgrade of synapse completed

Try to access by url...
Test url: sous.domain.tld/_matrix/static
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/

Resource unreachable (Code 302) sous.domain.tld/_matrix/static
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/_matrix/static/
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/


--- SUCCESS ---

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 43 seconds.
Deleting successful. (0)
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, 6 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: 10 seconds.
Working time: 9 minutes, 20 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [922.1] Installing application synapse…
Warning: yunohost.hook <lambda> - [922.1] Generating DH parameters, 2048 bit long safe prime, generator 2
Warning: yunohost.hook <lambda> - [922.1] This is going to take a long time
Warning: yunohost.hook <lambda> - [922.1] .................................................................+...............................................................................................+..............................................................................................................+..........+.............+..............................................................................................+...+............................................+......................................................................................................................................................................................................................+.......................................................................................................................................................................+............+..................................................................................................................................................................................................................................................................................................+........................................................................................+.....+.......................................................................................................+..+.........................................+..................................+.......+................................................................+..........................................................................................+....................................................................................................................................................................................................................................+..............+................................+........+...............................................................................................................................................+.............................................................................................+...........................................................................................................+...........................................................................................................................+.......................+.............................................................................................................................................................................+.....................................................................................+....................................+.............................................+.................................+............................................................................................+.............+..................................................................................................+......................................................+.........................................+...........................................................+............+..........................+..................................................................................................+..........................................................................................+..........................................................+........................................................................................................+..................+....+.........................+............................................................................................................................................+.................................+....................................................................................................................................................................................................................+..........................................................................................................................................................................................................................................................................................................................................................................+.............................................................................................................................................................................................+.......................................................................................................................................................................................................................................................................................................................................................................+..................................................+.........................................................................................................................................+...............................................+.........+.............................................+..............................+..+............................................................................................................+...................................................................................................................................................................+........................................................................................................................................................+.......................................................................................................................................................................................+..............................................................................................+...............................................................................+.......................................................................................+..............................................................................................................................+..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................+..+...................+..............................................................................................................................................................................................................+...............................................+................................................+............................................+..................................................................................................................................+................................................................................................................................................................................+...................................................................................................................................................................................................................................................................................................+.........................................................................................................................................................................+...........................................................................................+...............................................................................................................................................................................................................................................................................+...........................................+................................................................................+...........+...................................................................................................................................................+..............................................................................+...........................+...............................................................................................+.............+.....................+.....................................................................+.....................+.............................................................+..................................................+.................................................................................................................+...................................................................................................................................................................................................................................................................................................+............................................................................................................................+............................+....................................+.......................+.....................................................................................................................................................................+................+...........................................................................................................................+.......................................................................................................................................................................................................+..................................+............................................................................................................................................................................+........................................+............................+............+...........................................................+....+................................................................................................+.........................................................................................+............................................................................................................................................................................................................+...............................................................................................+......................................................................................................................................................................................................................................................+.......+........................................................................................................+..................................................................................................................+...................................................................................................................................................+..........................................................................+..........+..............................+...............................................................................+................................................................................+...............................................................+...........................................+.........................+.........................................................................................................................................+.........+.........................................................................+..............+..........................................+.............................................................................................................................+.+.........................................+...........................................+..........+.....................................................+.........................................................................+....................................................+................+..........................................................................................................................+..........................................................+......................................................................................................................+..................+......................+.......................................................................+.......................................+....................................................................+..........................................+.............+.....................................................................................................................................................................................................................................................................................+.......................................................................................................................................................+.............................................................................................................................................................................................+..............................................................................................................+.........................................................+...........................+.................................+..................................................+...................................................................................................................................................+....+............................................................+......+................................+..............................................+.............................................................+..............+.................................+...................................................................................................................+....+..........................................................................................+............+.....................................................................................................................+.............................................................................................+.+......................................................+..........................................................................................................................................................................+............................................................+..................................................................................................................................................................+...........................+.............................................+.............................................................................................................................................................+................+.........................................................................................................................................................................+...................................+............................+.................+................................+...................................................+.......................+...............+...................................................................................................................+...............+..........+...............................................................................+.........................................................................................................................+..................................................................................+.................+..........................+......................................................................................................................................................................................................................................................................................................................................................................+...++*++*++*++*
Warning: yunohost.hook <lambda> - [922.1] E: The repository 'http://forge.yunohost.org/debian stretch Release' does no longer have a Release file.
Warning: yunohost.hook <lambda> - [922.1] E: The repository 'http://httpredir.debian.org/debian stretch Release' does no longer have a Release file.
Warning: yunohost.hook <lambda> - [922.1] dh_install: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [922.1] dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [922.1] dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [922.1] 
Extracting templates from packages: 93%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [922.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "build-essential" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "python2.7-dev" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "libffi-dev" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "python-pip" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "python-setuptools" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "sqlite3" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "libssl-dev" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "python-virtualenv" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "libxml2-dev" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "libxslt1-dev" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "python-lxml" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "libjpeg-dev" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "libpq-dev" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "postgresql" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] [WARN] Too many arguments ! "acl" will be ignored.
Warning: yunohost.hook <lambda> - [922.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [922.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Warning: yunohost.hook <lambda> - [922.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> - [922.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> - [922.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> - [922.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> - [922.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: 6 minutes, 44 seconds.
Upgrade failed. (1)
Info: yunohost.app app_upgrade - [20226.1] Now upgrading app synapse…
Info:  [....................] > Loading installation settings...
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 - [20599.1] Collecting files to be backuped for synapse…
Warning: yunohost.hook <lambda> - [20599.1] /var/lib/matrix-synapse will not be saved, because backup_core_only is set.
Warning: yunohost.hook <lambda> - [20226.1] 1068 /var/lib/matrix-synapse will not be saved, because backup_core_only is set.
Warning: yunohost.hook <lambda> - [20599.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [20226.1] 1295 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Info: yunohost.backup backup_create - [20599.1] Now creating a backup archive from the files collected…
Info:  [#########...........] > Upgrading dependencies...
Info:  [###########.........] > Upgrading source files...
Warning: yunohost.hook <lambda> - [20226.1] Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20226.1] Exception:
Warning: yunohost.hook <lambda> - [20226.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connection.py", line 138, in _new_conn
Warning: yunohost.hook <lambda> - [20226.1]     (self.host, self.port), self.timeout, **extra_kw)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/connection.py", line 98, in create_connection
Warning: yunohost.hook <lambda> - [20226.1]     raise err
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/connection.py", line 88, in create_connection
Warning: yunohost.hook <lambda> - [20226.1]     sock.connect(sa)
Warning: yunohost.hook <lambda> - [20226.1] OSError: [Errno 101] Network is unreachable
Warning: yunohost.hook <lambda> - [20226.1] During handling of the above exception, another exception occurred:
Warning: yunohost.hook <lambda> - [20226.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 594, in urlopen
Warning: yunohost.hook <lambda> - [20226.1]     chunked=chunked)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 350, in _make_request
Warning: yunohost.hook <lambda> - [20226.1]     self._validate_conn(conn)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 837, in _validate_conn
Warning: yunohost.hook <lambda> - [20226.1]     conn.connect()
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connection.py", line 281, in connect
Warning: yunohost.hook <lambda> - [20226.1]     conn = self._new_conn()
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connection.py", line 147, in _new_conn
Warning: yunohost.hook <lambda> - [20226.1]     self, "Failed to establish a new connection: %s" % e)
Warning: yunohost.hook <lambda> - [20226.1] requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f400c051cc0>: Failed to establish a new connection: [Errno 101] Network is unreachable
Warning: yunohost.hook <lambda> - [20226.1] During handling of the above exception, another exception occurred:
Warning: yunohost.hook <lambda> - [20226.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
Warning: yunohost.hook <lambda> - [20226.1]     status = self.run(options, args)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/commands/install.py", line 353, in run
Warning: yunohost.hook <lambda> - [20226.1]     wb.build(autobuilding=True)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/wheel.py", line 749, in build
Warning: yunohost.hook <lambda> - [20226.1]     self.requirement_set.prepare_files(self.finder)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/req/req_set.py", line 380, in prepare_files
Warning: yunohost.hook <lambda> - [20226.1]     ignore_dependencies=self.ignore_dependencies))
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/req/req_set.py", line 554, in _prepare_file
Warning: yunohost.hook <lambda> - [20226.1]     require_hashes
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/req/req_install.py", line 278, in populate_link
Warning: yunohost.hook <lambda> - [20226.1]     self.link = finder.find_requirement(self, upgrade)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/index.py", line 465, in find_requirement
Warning: yunohost.hook <lambda> - [20226.1]     all_candidates = self.find_all_candidates(req.name)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/index.py", line 423, in find_all_candidates
Warning: yunohost.hook <lambda> - [20226.1]     for page in self._get_pages(url_locations, project_name):
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/index.py", line 568, in _get_pages
Warning: yunohost.hook <lambda> - [20226.1]     page = self._get_page(location)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/index.py", line 683, in _get_page
Warning: yunohost.hook <lambda> - [20226.1]     return HTMLPage.get_page(link, session=self.session)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/index.py", line 792, in get_page
Warning: yunohost.hook <lambda> - [20226.1]     "Cache-Control": "max-age=600",
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get
Warning: yunohost.hook <lambda> - [20226.1]     return self.request('GET', url, **kwargs)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/pip/download.py", line 386, in request
Warning: yunohost.hook <lambda> - [20226.1]     return super(PipSession, self).request(method, url, *args, **kwargs)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request
Warning: yunohost.hook <lambda> - [20226.1]     resp = self.send(prep, **send_kwargs)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send
Warning: yunohost.hook <lambda> - [20226.1]     r = adapter.send(request, **kwargs)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send
Warning: yunohost.hook <lambda> - [20226.1]     resp = super(CacheControlAdapter, self).send(request, **kw)
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send
Warning: yunohost.hook <lambda> - [20226.1]     timeout=timeout
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen
Warning: yunohost.hook <lambda> - [20226.1]     _stacktrace=sys.exc_info()[2])
Warning: yunohost.hook <lambda> - [20226.1]   File "/opt/yunohost/matrix-synapse/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment
Warning: yunohost.hook <lambda> - [20226.1]     total -= 1
Warning: yunohost.hook <lambda> - [20226.1] TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
Warning: yunohost.hook <lambda> - [20226.1] !!
Warning: yunohost.hook <lambda> - [20226.1]   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [20226.1] !!
Warning: yunohost.hook <lambda> - [20226.1] Upgrade failed.
Info: yunohost.app app_remove - [22899.1] Removing application synapse…
Warning: yunohost.hook <lambda> - [22899.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> - [20226.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> - [22899.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [20226.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [22899.1] Remove the user matrix-synapse
Warning: yunohost.hook <lambda> - [20226.1] Remove the user matrix-synapse
Info: yunohost.backup backup_restore - [24103.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [24103.1] Restoring application synapse…
Warning: yunohost.firewall firewall_allow - [24413.1] Port 5349 is already opened for IPv4 connections
Warning: yunohost.firewall firewall_allow - [24413.1] Port 5349 is already opened for IPv6 connections
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "build-essential" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "python2.7-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "libffi-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "python-pip" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "python-setuptools" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "sqlite3" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "libssl-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "python-virtualenv" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "libxml2-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "libxslt1-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "python-lxml" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60445 [WARN] Too many arguments ! "build-essential" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60446 [WARN] Too many arguments ! "python2.7-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60447 [WARN] Too many arguments ! "libffi-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60448 [WARN] Too many arguments ! "python-pip" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60449 [WARN] Too many arguments ! "python-setuptools" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60450 [WARN] Too many arguments ! "sqlite3" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60451 [WARN] Too many arguments ! "libssl-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60452 [WARN] Too many arguments ! "python-virtualenv" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "libjpeg-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60453 [WARN] Too many arguments ! "libxml2-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60454 [WARN] Too many arguments ! "libxslt1-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60477 [WARN] Too many arguments ! "python-lxml" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60507 [WARN] Too many arguments ! "libjpeg-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "libpq-dev" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "postgresql" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] [WARN] Too many arguments ! "acl" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60621 [WARN] Too many arguments ! "libpq-dev" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60622 [WARN] Too many arguments ! "postgresql" will be ignored.
Warning: yunohost.hook <lambda> - [20226.1] 60622 [WARN] Too many arguments ! "acl" will be ignored.
Warning: yunohost.hook <lambda> - [24103.1] ../settings/scripts/_common.sh: line 128: Creating directory ': command not found
Warning: yunohost.hook <lambda> - [20226.1] 68229 ../settings/scripts/_common.sh: line 128: Creating directory ': command not found
Warning: yunohost.hook <lambda> - [24103.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [20226.1] 70489 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [24103.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [20226.1] 74394 Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [20226.1] The app was restored to the way it was before the failed upgrade.
Error: yunohost.app app_upgrade - [20226.1] Unable to upgrade synapse
Info: yunohost.log close - [20226.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 20190602-095517-app_upgrade-synapse --share'
Error: yunohost cli - The following apps were not upgraded: synapse

Try to access by url...
Test url: sous.domain.tld/_matrix/static
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Directory listing for /_matrix/static/
Extract of the page:
                     Directory listing for /_matrix/static/

    Filename  Size Content type Content encoding
   [1]client/      [Directory]

References

   1. file:///home/CI_package_check/package_check/client/

Resource unreachable (Code 302) sous.domain.tld/_matrix/static
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/_matrix/static/
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Directory listing for /_matrix/static/
Extract of the page:
                     Directory listing for /_matrix/static/

    Filename  Size Content type Content encoding
   [1]client/      [Directory]

References

   1. file:///home/CI_package_check/package_check/client/


--- FAIL ---

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 38 seconds.
Deleting successful. (0)
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, 2 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: 10 seconds.
Working time: 4 minutes, 18 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [908.1] Installing application synapse…
Warning: yunohost.hook <lambda> - [908.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [908.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Warning: yunohost.hook <lambda> - [908.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [908.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Warning: yunohost.hook <lambda> - [908.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> - [908.1]   config = yaml.load(default_config)
Warning: yunohost.hook <lambda> - [908.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [908.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> - [908.1] Starting of matrix-synapse
Warning: yunohost.hook <lambda> - [908.1] tail: cannot open '/var/log/matrix-synapse/homeserver.log' for reading: No such file or directory
Warning: yunohost.hook <lambda> - [908.1] ...tail: '/var/log/matrix-synapse/homeserver.log' has appeared;  following new file
Warning: yunohost.hook <lambda> - [908.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: 2 minutes, 41 seconds.
Upgrade successful. (0)
Info: yunohost.app app_upgrade - [9035.1] Now upgrading app synapse…
Info:  [....................] > Loading installation settings...
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 - [9410.1] Collecting files to be backuped for synapse…
Warning: yunohost.hook <lambda> - [9410.1] /var/lib/matrix-synapse will not be saved, because backup_core_only is set.
Warning: yunohost.hook <lambda> - [9035.1] 1616 /var/lib/matrix-synapse will not be saved, because backup_core_only is set.
Warning: yunohost.hook <lambda> - [9410.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [9035.1] 1847 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Info: yunohost.backup backup_create - [9410.1] Now creating a backup archive from the files collected…
Info:  [#########...........] > Upgrading dependencies...
Info:  [###########.........] > Upgrading source files...
Info:  [############........] > Updating synapse config...
Info:  [#############.......] > Creating a dh file...
Info:  [#############.......] > Upgrading nginx web server configuration...
Info:  Reload the service nginx
Info:  [##############......] > Updating coturn config...
Info:  [##############......] > Upgrading systemd configuration...
Info:  [###############.....] > Reconfiguring fail2ban...
Info:  [#################...] > Restarting synapse services...
Info:  Restart the service coturn-synapse.service
Info:  Restart the service matrix-synapse
Warning: yunohost.hook <lambda> - [9035.1] Please wait, the service matrix-synapse is restarting..
Info:  The service matrix-synapse has correctly started.

Try to access by url...
Test url: sous.domain.tld/_matrix/static
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/

Resource unreachable (Code 302) sous.domain.tld/_matrix/static
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/_matrix/static/
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/


--- SUCCESS ---

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 42 seconds.
Deleting successful. (0)
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, 1 second.
Restore the previous snapshot.
Working time: 48 seconds.
Working time for this test: 32 minutes, 4 seconds.


>> Installation in public mode... [Test 6/9]
Root install failed, impossible to perform this test...
Start the LXC container.
Create witness files...
Working time: 9 seconds.
Working time: 6 minutes, 31 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [910.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> - [910.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [910.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> - [910.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [910.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> - [910.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [910.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Info:  [################....] > Configuring nginx web server...
Warning: yunohost.hook <lambda> - [910.1] Please wait, the service matrix-synapse is restarting......
Error: moulinette.core translate - unable to retrieve key 'service_description_postgresql' for default locale 'en'
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'

Try to access by url...
Test url: sous.domain.tld/_matrix/static
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/

Resource unreachable (Code 302) sous.domain.tld/_matrix/static
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/_matrix/static/
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, .
Restore the previous snapshot.
Working time: 49 seconds.
Working time for this test: 8 minutes, 31 seconds.


>> Multi-instance installations... [Test 7/9]
First installation: path=domain.tld/_matrix/static/
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 8 minutes, 43 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [911.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> - [911.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [911.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> - [911.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [911.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> - [911.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [911.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:  Reload the service nginx
Info:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################...] > Restarting synapse services...
Info:  Restart the service coturn-synapse.service
Info:  Restart the service matrix-synapse
Warning: yunohost.hook <lambda> - [911.1] Please wait, the service matrix-synapse is restarting.....
Info:  The service matrix-synapse has correctly started.
Info:  [##################..] > Configuring fail2ban...
Error: moulinette.core translate - unable to retrieve key 'service_description_postgresql' for default locale 'en'
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'
Info:  [####################] > Installation of synapse completed
Second installation: path=sous.domain.tld/_matrix/static/
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 minutes, 51 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [9820.1] Installing application synapse…
Info:  [....................] > Validating installation parameters...
Info:  [....................] > Storing installation settings...
Info:  [....................] > Configuring firewall...
Warning: yunohost.firewall firewall_allow - [10249.1] Port 5350 is already opened for IPv4 connections
Warning: yunohost.firewall firewall_allow - [10249.1] Port 5350 is already opened for IPv6 connections
Warning: yunohost.firewall firewall_allow - [10249.1] Port 5350 is already opened for IPv4 connections
Warning: yunohost.firewall firewall_allow - [10249.1] Port 5350 is already opened for IPv6 connections
Info:  [##..................] > Creating a dh file...
Info:  [##..................] > Installing dependencies...
Info:  [##########..........] > Configuring system user...
Info:  [##########..........] > Creating a PostgreSQL database...
Info:  [###########.........] > Setting up source files...
Warning: yunohost.hook <lambda> - [9820.1] Cache entry deserialization failed, entry ignored
Info:  [################....] > Creating synapse config...
Info:  [################....] > Configuring a systemd service...
Warning: yunohost.hook <lambda> - [9820.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse__2.service → /etc/systemd/system/matrix-synapse__2.service.
Warning: yunohost.hook <lambda> - [9820.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse__2.service → /etc/systemd/system/coturn-synapse__2.service.
Info:  [################....] > Configuring nginx web server...
Info:  Reload the service nginx
Info:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################...] > Restarting synapse services...
Info:  Restart the service coturn-synapse__2.service
Info:  Restart the service matrix-synapse__2
Warning: yunohost.hook <lambda> - [9820.1] Please wait, the service matrix-synapse__2 is restarting......
Info:  The service matrix-synapse__2 has correctly started.
Info:  [##################..] > Configuring fail2ban...
Error: moulinette.core translate - unable to retrieve key 'service_description_matrix-synapse__2' for default locale 'en'
Error: moulinette.core translate - unable to retrieve key 'service_description_postgresql' for default locale 'en'
Error: moulinette.core translate - unable to retrieve key 'service_description_coturn-synapse__2' for default locale 'en'
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'

Try to access by url...
Test url: domain.tld/_matrix/static
Real url: http://domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/

Resource unreachable (Code 302) domain.tld/_matrix/static
Ressource ignored: domain.tld/robots.txt

Test url: domain.tld/_matrix/static/
Real url: http://domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/



Try to access by url...
Test url: sous.domain.tld/_matrix/static
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/

Resource unreachable (Code 302) sous.domain.tld/_matrix/static
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/_matrix/static/
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, 2 seconds.
Working time for this test: 12 minutes, 52 seconds.


>> Port already used... [Test 8/9]
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 6 seconds.
A LXC container is already running.
Working time: 1 second.
Working time: 7 minutes, 59 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [960.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> - [960.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [960.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> - [960.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [960.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> - [960.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [960.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:  Reload the service nginx
Info:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################...] > Restarting synapse services...
Info:  Restart the service coturn-synapse.service
Info:  Restart the service matrix-synapse
Warning: yunohost.hook <lambda> - [960.1] Please wait, the service matrix-synapse is restarting......
Info:  The service matrix-synapse has correctly started.
Info:  [##################..] > Configuring fail2ban...
Error: moulinette.core translate - unable to retrieve key 'service_description_postgresql' for default locale 'en'
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'

Try to access by url...
Test url: sous.domain.tld/_matrix/static
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/

Resource unreachable (Code 302) sous.domain.tld/_matrix/static
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/_matrix/static/
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 58 seconds.
Working time for this test: 9 minutes, 17 seconds.


>> Backup/Restore... [Test 9/9]
Root install failed, impossible to perform this test...

Preliminary installation in a sub path...
Uses an existing snapshot for sub path installation.
Working time: 17 seconds.

Backup of the application...
Start the LXC container..
Create witness files...
Working time: 10 seconds.
Working time: 58 seconds.
Backup successful. (0)
Warning: yunohost.hook <lambda> - [1039.1] ls: cannot access '/etc/cron.d/yunohost*': No such file or directory
Info: yunohost.backup _collect_app_files - [1039.1] Collecting files to be backuped for synapse…
Info:  [....................] > Loading installation settings...
Info:  [###.................] > Backing up the main app directory...
Info:  [####................] > Backing up nginx web server configuration...
Info:  [######..............] > Backing up the PostgreSQL database...
Info:  [#########...........] > Backing up fail2ban configuration
Info:  [##########..........] > Backing up synapse configuration...
Info:  [#############.......] > Backing up systemd configuration...
Info:  [###############.....] > Backing up synapse data...
Info:  [################....] > Backing up synapse log...
Info: yunohost.backup backup_create - [1039.1] Now creating a backup archive from the files collected…
--- SUCCESS ---

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 42 seconds.
Deleting successful. (0)

Restore after removing the application...
A LXC container is already running.A LXC container is already running.
Working time: 1 second.
Working time: 1 minute, 54 seconds.
Restore successful. (0)
Info: yunohost.backup backup_restore - [4231.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [4231.1] Restoring application synapse…
Info:  [....................] > Loading settings...
Info:  [....................] > Validating restoration parameters...
Info:  [....................] > Restoring directory and configuration...
Info:  [#...................] > Reload fail2ban...
Info:  Restart the service fail2ban
Info:  [##..................] > Reinstalling dependencies...
Info:  [#########...........] > Recreating the dedicated system user...
Info:  [##########..........] > Restoring the PostgreSQL database...
Warning: yunohost.hook <lambda> - [4231.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Info:  [###########.........] > Enable systemd services
Warning: yunohost.hook <lambda> - [4231.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Info:  [###########.........] > Creating a dh file...
Info:  [################....] > Reconfiguring coturn...
Info:  [##################..] > Configuring SSOwat...
Info:  [##################..] > Configuring log rotation...
Info:  [###################.] > Restarting synapse services...
Info:  Restart the service coturn-synapse.service
Info:  Restart the service matrix-synapse
Warning: yunohost.hook <lambda> - [4231.1] Please wait, the service matrix-synapse is restarting..
Info:  The service matrix-synapse has correctly started.
Error: moulinette.core translate - unable to retrieve key 'service_description_postgresql' for default locale 'en'
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'
Info:  [###################.] > Reloading nginx web server...
Info:  Reload the service nginx
Info:  [####################] > Restoration completed for synapse

Try to access by url...
Test url: sous.domain.tld/_matrix/static
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/

Resource unreachable (Code 302) sous.domain.tld/_matrix/static
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/_matrix/static/
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 18 seconds.
Restore the previous snapshot.
Working time: 52 seconds.

Restore on a clean YunoHost system...
Start the LXC container.Start the LXC container.
Create witness files...
Working time: 6 seconds.
Working time: 12 minutes, 23 seconds.
Restore successful. (0)
Warning: yunohost.service _run_service_command - [181.1] Unable to execute command 'systemctl reload fail2ban'
Info: yunohost.backup backup_restore - [914.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [914.1] Restoring application synapse…
Info:  [....................] > Loading settings...
Info:  [....................] > Validating restoration parameters...
Info:  [....................] > Restoring directory and configuration...
Info:  [#...................] > Reload fail2ban...
Info:  Restart the service fail2ban
Info:  [##..................] > Reinstalling dependencies...
Warning: yunohost.hook <lambda> - [914.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [914.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Info:  [#########...........] > Recreating the dedicated system user...
Info:  [##########..........] > Restoring the PostgreSQL database...
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
Info:  [###########.........] > Enable systemd services
Warning: yunohost.hook <lambda> - [914.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [914.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Info:  [###########.........] > Creating a dh file...
Info:  [################....] > Reconfiguring coturn...
Info:  [##################..] > Configuring SSOwat...
Info:  [##################..] > Configuring log rotation...
Info:  [###################.] > Restarting synapse services...
Info:  Restart the service coturn-synapse.service
Info:  Restart the service matrix-synapse
Warning: yunohost.hook <lambda> - [914.1] Please wait, the service matrix-synapse is restarting..
Info:  The service matrix-synapse has correctly started.
Error: moulinette.core translate - unable to retrieve key 'service_description_postgresql' for default locale 'en'
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'
Info:  [###################.] > Reloading nginx web server...
Info:  Reload the service nginx

Try to access by url...
Test url: sous.domain.tld/_matrix/static
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/

Resource unreachable (Code 302) sous.domain.tld/_matrix/static
Ressource ignored: sous.domain.tld/robots.txt

Test url: sous.domain.tld/_matrix/static/
Real url: http://sous.domain.tld/_matrix/static/
HTTP code: 200
Title of the page: Synapse is running
Extract of the page:
                          It works! Synapse is running

   Your Synapse server is listening on this port and is ready for
   messages.

   To use this server you'll need [1]a Matrix client.

   Welcome to the Matrix universe :)
     __________________________________________________________________

   [2]matrix.org

References

   1. https://matrix.org/docs/projects/try-matrix-now.html#clients
   2. https://matrix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, 1 second.
Restore the previous snapshot.
Working time: 50 seconds.
Working time for this test: 19 minutes, 42 seconds.



Package linter:                  SUCCESS
Installation:                    SUCCESS
Deleting:                        SUCCESS
Installation in a sub path:      SUCCESS
Deleting from a sub path:        SUCCESS
Installation on the root:        Not evaluated.
Deleting from root:              Not evaluated.
Upgrade:                         FAIL
Installation in private mode:    Not evaluated.
Installation in public mode:     SUCCESS
Multi-instance installations:    SUCCESS
Malformed path:                  Not evaluated.
Port already used:               SUCCESS
Backup:                          SUCCESS
Restore:                         SUCCESS
Change URL:                      Not evaluated.
Level of this application: 2 (Installable in all situations)
	   Level 1: 1
	   Level 2: 1
	   Level 3: 0
	   Level 4: 1
	   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: 1 hour, 32 minutes, 57 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

Sun Jun  2 11:04:08 UTC 2019
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE