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

Tue Nov 12 21:29:00 UTC 2019
Wait for work starting...
...
Tue Nov 12 21:30:31 UTC 2019
Package check currently test the package
Start a test
Loads functions from launcher.sh
Loads functions from testing_process.sh
Loads functions from log_extractor.sh
Restore the previous snapshot.
Working time: 9 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: 12 seconds.
Working time: 6 seconds.
Debian GNU/Linux 9
yunohost: 
  repo: stable
  version: 3.6.5.3
yunohost-admin: 
  repo: stable
  version: 3.6.5
moulinette: 
  repo: stable
  version: 3.6.4.1
ssowat: 
  repo: stable
  version: 3.6.4
Connection to 10.1.4.2 closed.


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

    [YunoHost App Package Linter]

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

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

 [Loading App]

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

 [Misc File Checks]


 [Sources Management]


 [Manifest]


 [Install Script]


 [Remove Script]


 [Upgrade Script]

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

 [Backup Script]


 [Restore Script]

--- SUCCESS ---


>> Installation in a sub path... [Test 2/9]
A LXC container is already running.
Working time: 2 seconds.
Working time: 7 minutes, 6 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [1379.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> - [1379.1] E: The repository 'http://forge.yunohost.org/debian stretch Release' does no longer have a Release file.
Warning: yunohost.hook <lambda> - [1379.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [1379.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> - [1379.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [1379.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> - [1379.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [1379.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Info:  [################+...] > Configuring nginx web server...
Info:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################+..] > Restarting synapse services...
Warning: yunohost.hook <lambda> - [1379.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_matrix-synapse' 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' 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/


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..Start the LXC container..
Create witness files...
Working time: 10 seconds.
Working time: 5 seconds.

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 43 seconds.
Deleting successful. (0)
Info: yunohost.app app_remove - [1057.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'
Info:  [#+..................] > Stopping and removing the systemd service
Warning: yunohost.hook <lambda> - [1057.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [1057.1] Removed /etc/systemd/system/multi-user.target.wants/coturn-synapse.service.
Info:  [##+.................] > Removing the PostgreSQL database
Warning: yunohost.hook <lambda> - [1057.1] FATAL:  terminating connection due to administrator command
Warning: yunohost.hook <lambda> - [1057.1] server closed the connection unexpectedly
Warning: yunohost.hook <lambda> - [1057.1] 	This probably means the server terminated abnormally
Warning: yunohost.hook <lambda> - [1057.1] 	before or while processing the request.
Warning: yunohost.hook <lambda> - [1057.1] connection to server was lost
Info:  [###++++++++.........] > Removing dependencies
Info:  [###########+........] > Removing app main directory
Info:  [############+.......] > Removing nginx web server configuration
Info:  [#############+......] > Removing logrotate configuration
Info:  [##############......] > Closing port 8448
Warning: yunohost.firewall firewall_disallow - [2967.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [2967.1] Port 8448 is already closed for IPv6 connections
Warning: yunohost.service _run_service_command - [2967.1] Unable to execute command 'systemctl reload fail2ban'
Info:  [##############+.....] > Closing port 5349
Warning: yunohost.service _run_service_command - [3072.1] Unable to execute command 'systemctl reload fail2ban'
Info:  [###############.....] > Closing port 5350
Warning: yunohost.service _run_service_command - [3169.1] Unable to execute command 'systemctl reload fail2ban'
Info:  [###############+++++] > Removing fail2ban configuration...
Info:  [####################] > Removing the dedicated system user
--- SUCCESS ---

Reinstall the application after a removing.
A LXC container is already running.
Working time: 2 seconds.
Working time: 3 minutes, 14 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [3479.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> - [3479.1] E: The repository 'http://forge.yunohost.org/debian stretch Release' does no longer have a Release file.
Info:  [##########..........] > Configuring system user...
Info:  [##########+.........] > Creating a PostgreSQL database...
Info:  [###########+++++....] > Setting up source files...
Warning: yunohost.hook <lambda> - [3479.1] Cache entry deserialization failed, entry ignored
Info:  [################....] > Creating synapse config...
Info:  [################....] > Configuring a systemd service...
Warning: yunohost.hook <lambda> - [3479.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [3479.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Info:  [################+...] > Configuring nginx web server...
Info:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################+..] > Restarting synapse services...
Warning: yunohost.hook <lambda> - [3479.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_matrix-synapse' 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' 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/


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: 20 seconds.
Working time for this test: 12 minutes, 16 seconds.


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

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

Upgrade...
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 2 minutes, 58 seconds.
Upgrade successful. (0)
Info: yunohost.app app_upgrade - [1017.1] Now upgrading app synapse…
Info:  [....................] > Loading installation settings...
Info:  Upgrade forced for package check.
Info:  [+...................] > Ensuring downward compatibility...
Info:  [#++++++++...........] > Backing up the app before upgrading (may take a while)...
Info: yunohost.backup _collect_app_files - [1393.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:  [#################+..] > Backing up synapse hook...
Info: yunohost.backup backup_create - [1393.1] Now creating a backup archive from the files collected…
Info:  [#########++.........] > Upgrading dependencies...
Warning: yunohost.hook <lambda> - [1017.1] E: The repository 'http://forge.yunohost.org/debian stretch Release' does no longer have a Release file.
Info:  [###########+........] > Upgrading source files...
Info:  [############+.......] > Updating synapse config...
Info:  [#############.......] > Upgrading nginx web server configuration...
Info:  [#############+......] > Updating coturn config...
Info:  [##############+.....] > Upgrading systemd configuration...
Info:  [###############++...] > Reconfiguring fail2ban...
Info:  [#################+..] > Restarting synapse services...
Warning: yunohost.hook <lambda> - [1017.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/


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: 1 second.
Working time: 46 seconds.
Deleting successful. (0)
Stop the LXC container
Restore the previous snapshot.
Working time: 19 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: 6 minutes, 52 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [906.1] Installing application synapse…
Warning: yunohost.hook <lambda> - [906.1] Generating DH parameters, 2048 bit long safe prime, generator 2
Warning: yunohost.hook <lambda> - [906.1] This is going to take a long time
Warning: yunohost.hook <lambda> - [906.1] ...............................+........................................................................................................+..................+......................................................+.........................................................................................................................................................................................................................................................................................+......................................................+.................................................................................................................................................................................................+.....................................................+.................................+......................................+.....................................................................................................................................................+.........+.................................................................................................................................................................................+.............................................................................................................................+...........................................................................+................................................................................................................................................................................................................................................................................+...............................................................+...........................................................................................................................................................................+..............................................................................................................+...........................................................................................................................................................................................+.....................................................................+...........+................................................+..........+....................................................................................................................................................................................................................................................+.............................................+......................................................................................................................................................................+....+.....+............................................................................+......................................................................................................................+..................................................................................................................+......+...........................................................................................+................+......................................................................................+................................................+...................................................................................................................+.......................+.....................................+..........................................................................................+...................................................................................................+........+............................................+....................+...............+....................................................+.....................................................................................................................................................................................................................................+..............................................+.............................+..................................+...............................................+................................................................................................................................................................+.....................................................................................................................................................................................................................................................................................................+.......................................................+...................................................................................................................................................................+................................................................+.+..................................................................+...........................+..........+................+........................+.......+..................................................................................+.................................++*++*++*++*
Warning: yunohost.hook <lambda> - [906.1] W: Failed to fetch http://forge.yunohost.org/debian/dists/stretch/InRelease  Cannot initiate the connection to forge.yunohost.org:80 (2a03:7220:8080:5c00::1). - connect (101: Network is unreachable) [IP: 2a03:7220:8080:5c00::1 80]
Warning: yunohost.hook <lambda> - [906.1] W: Some index files failed to download. They have been ignored, or old ones used instead.
Warning: yunohost.hook <lambda> - [906.1] dh_install: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [906.1] dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [906.1] dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [906.1] 
Extracting templates from packages: 93%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [906.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "build-essential" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "python2.7-dev" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "libffi-dev" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "python-pip" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "python-setuptools" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "sqlite3" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "libssl-dev" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "python-virtualenv" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "libxml2-dev" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "libxslt1-dev" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "python-lxml" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "libjpeg-dev" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "libpq-dev" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "postgresql" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] [WARN] Too many arguments ! "acl" will be ignored.
Warning: yunohost.hook <lambda> - [906.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [906.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Warning: yunohost.hook <lambda> - [906.1] 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. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Warning: yunohost.hook <lambda> - [906.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. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Warning: yunohost.hook <lambda> - [906.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. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Warning: yunohost.hook <lambda> - [906.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. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Warning: yunohost.hook <lambda> - [906.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
This test was aborted because of a network error.
The test will restart.
Stop the LXC container
Restore the previous snapshot.
Working time: 16 seconds.
Working time for this test: 11 minutes, 58 seconds.


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

Preliminary install...
Uses an existing snapshot for sub path installation.
Working time: 20 seconds.
This test was aborted because of a network error.
The test will restart.
Restore the previous snapshot.
Working time: 8 seconds.
Working time for this test: 28 seconds.


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

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

Upgrade...
Start the LXC container.Start the LXC container..
Create witness files...
Working time: 11 seconds.
Working time: 3 minutes, 47 seconds.
Upgrade failed. (1)
Info: yunohost.app app_upgrade - [1027.1] Now upgrading app synapse…
Info: yunohost.backup _collect_app_files - [1186.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:  [#################+..] > Backing up synapse hook...
Info: yunohost.backup backup_create - [1186.1] Now creating a backup archive from the files collected…
Error: : Command errored out with exit status 1:
Warning: yunohost.hook <lambda> - [1027.1]      command: /opt/yunohost/matrix-synapse/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-6umblw1l/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-6umblw1l/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-req-build-6umblw1l/pip-egg-info
Warning: yunohost.hook <lambda> - [1027.1]          cwd: /tmp/pip-req-build-6umblw1l/
Warning: yunohost.hook <lambda> - [1027.1]     Complete output (24 lines):
Warning: yunohost.hook <lambda> - [1027.1]     Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [1027.1]       File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/setuptools/dist.py", line 221, in assert_string_list
Warning: yunohost.hook <lambda> - [1027.1]         assert isinstance(value, (list, tuple))
Warning: yunohost.hook <lambda> - [1027.1]     AssertionError
Warning: yunohost.hook <lambda> - [1027.1]     During handling of the above exception, another exception occurred:
Warning: yunohost.hook <lambda> - [1027.1]     Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [1027.1]       File "<string>", line 1, in <module>
Warning: yunohost.hook <lambda> - [1027.1]       File "/tmp/pip-req-build-6umblw1l/setup.py", line 96, in <module>
Warning: yunohost.hook <lambda> - [1027.1]         cmdclass={'test': TestCommand},
Warning: yunohost.hook <lambda> - [1027.1]       File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/setuptools/__init__.py", line 144, in setup
Warning: yunohost.hook <lambda> - [1027.1]         _install_setup_requires(attrs)
Warning: yunohost.hook <lambda> - [1027.1]       File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/setuptools/__init__.py", line 133, in _install_setup_requires
Warning: yunohost.hook <lambda> - [1027.1]         (k, v) for k, v in attrs.items()
Warning: yunohost.hook <lambda> - [1027.1]       File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/setuptools/dist.py", line 447, in __init__
Warning: yunohost.hook <lambda> - [1027.1]         k: v for k, v in attrs.items()
Warning: yunohost.hook <lambda> - [1027.1]       File "/usr/lib/python3.5/distutils/dist.py", line 281, in __init__
Warning: yunohost.hook <lambda> - [1027.1]         self.finalize_options()
Warning: yunohost.hook <lambda> - [1027.1]       File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/setuptools/dist.py", line 735, in finalize_options
Warning: yunohost.hook <lambda> - [1027.1]         ep.load()(self, ep.name, value)
Warning: yunohost.hook <lambda> - [1027.1]       File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/setuptools/dist.py", line 226, in assert_string_list
Warning: yunohost.hook <lambda> - [1027.1]         "%r must be a list of strings (got %r)" % (attr, value)
Warning: yunohost.hook <lambda> - [1027.1]     distutils.errors.DistutilsSetupError: 'dependency_links' must be a list of strings (got dict_values([]))
Warning: yunohost.hook <lambda> - [1027.1]     ----------------------------------------
Error: : Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Warning: yunohost.hook <lambda> - [1027.1] [ERR] !!
Warning: yunohost.hook <lambda> - [1027.1]   synapse's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1027.1] !!
Warning: yunohost.hook <lambda> - [1027.1] Please find here an extract of the log before the crash:
Warning: -         assert isinstance(value, (list, tuple))
Warning: -     AssertionError
Warning: -
Warning: -     During handling of the above exception, another exception occurred:
Warning: -
Warning: -     Traceback (most recent call last):
Warning: -       File "<string>", line 1, in <module>
Warning: -       File "/tmp/pip-req-build-6umblw1l/setup.py", line 96, in <module>
Warning: -         cmdclass={'test': TestCommand},
Warning: -       File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/setuptools/__init__.py", line 144, in setup
Warning: -         _install_setup_requires(attrs)
Warning: -       File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/setuptools/__init__.py", line 133, in _install_setup_requires
Warning: -         (k, v) for k, v in attrs.items()
Warning: -       File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/setuptools/dist.py", line 447, in __init__
Warning: -         k: v for k, v in attrs.items()
Warning: -       File "/usr/lib/python3.5/distutils/dist.py", line 281, in __init__
Warning: -         self.finalize_options()
Warning: -       File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/setuptools/dist.py", line 735, in finalize_options
Warning: -         ep.load()(self, ep.name, value)
Warning: -       File "/opt/yunohost/matrix-synapse/lib/python3.5/site-packages/setuptools/dist.py", line 226, in assert_string_list
Warning: -         "%r must be a list of strings (got %r)" % (attr, value)
Warning: -))
Warning: -     ----------------------------------------
Error: : Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Warning: yunohost.hook <lambda> - [1027.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Warning: yunohost.hook <lambda> - [1027.1] [ERR] Upgrade failed.
Info: yunohost.app app_remove - [1723.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> - [1723.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Info:  [#+..................] > Stopping and removing the systemd service
Warning: yunohost.hook <lambda> - [1027.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [1723.1] Removed /etc/systemd/system/multi-user.target.wants/coturn-synapse.service.
Warning: yunohost.hook <lambda> - [1027.1] Removed /etc/systemd/system/multi-user.target.wants/coturn-synapse.service.
Info:  [##+.................] > Removing the PostgreSQL database
Warning: yunohost.hook <lambda> - [1723.1] FATAL:  terminating connection due to administrator command
Warning: yunohost.hook <lambda> - [1723.1] server closed the connection unexpectedly
Warning: yunohost.hook <lambda> - [1723.1] 	This probably means the server terminated abnormally
Warning: yunohost.hook <lambda> - [1723.1] 	before or while processing the request.
Warning: yunohost.hook <lambda> - [1723.1] connection to server was lost
Warning: yunohost.hook <lambda> - [1027.1] FATAL:  terminating connection due to administrator command
Warning: yunohost.hook <lambda> - [1027.1] server closed the connection unexpectedly
Warning: yunohost.hook <lambda> - [1027.1] 	This probably means the server terminated abnormally
Warning: yunohost.hook <lambda> - [1027.1] 	before or while processing the request.
Warning: yunohost.hook <lambda> - [1027.1] connection to server was lost
Info:  [###++++++++.........] > Removing dependencies
Info:  [###########+........] > Removing app main directory
Info:  [############+.......] > Removing nginx web server configuration
Info:Info:  [#############+......] > Removing logrotate configuration
Info:  [##############......] > Closing port 8448
Warning: yunohost.firewall firewall_disallow - [3584.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [3584.1] Port 8448 is already closed for IPv6 connections
Warning: yunohost.service _run_service_command - [3584.1] Unable to execute command 'systemctl reload fail2ban'
Info:  [##############+.....] > Closing port 5349
Warning: yunohost.service _run_service_command - [3689.1] Unable to execute command 'systemctl reload fail2ban'
Warning: yunohost.service _run_service_command - [3786.1] Unable to execute command 'systemctl reload fail2ban'
Info:  [###############.....] > Closing port 5350
Info:  [###############+++++] > Removing fail2ban configuration...
Info:  [####################] > Removing the dedicated system user
Info: yunohost.backup backup_restore - [4055.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [4055.1] Restoring application synapse…
Info:  [....................] > Loading settings...
Info:  [....................] > Validating restoration parameters...
Info:  [+...................] > Restoring directory and configuration...
Info:  [#+..................] > Reload fail2ban...
Info:  [##+++++++...........] > Reinstalling dependencies...
Info:  [#########+..........] > Recreating the dedicated system user...
Info:  [##########+.........] > Restoring the PostgreSQL database...
Warning: yunohost.hook <lambda> - [4055.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> - [1027.1] 66036 Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [4055.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Warning: yunohost.hook <lambda> - [1027.1] 66150 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...
Warning: yunohost.firewall firewall_reload - [7345.1] Some firewall rules commands have failed. For more information, see the log.
Info:  [##################..] > Configuring SSOwat...
Info:  [##################+.] > Configuring log rotation...
Info:  [###################.] > Restarting synapse services...
Warning: yunohost.hook <lambda> - [4055.1] Please wait, the service matrix-synapse is restarting..
Info:  The service matrix-synapse has correctly started.
Warning: yunohost.hook <lambda> - [1027.1] 105209 Please wait, the service matrix-synapse is restarting..
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_postgresql' for default locale 'en'
Error: moulinette.core translate - unable to retrieve key 'service_description_coturn-synapse' for default locale 'en'
Info:  [###################.] > Reloading nginx web server...
Info:  [####################] > Restoration completed for synapse
Warning: yunohost.hook <lambda> - [1027.1] The app was restored to the way it was before the failed upgrade.
Error: yunohost.app app_upgrade - [1027.1] Unable to upgrade synapse
Info: yunohost.log close - [1027.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 20191112-215611-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: 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/


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/


--- FAIL ---

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: 16 seconds.


>> Upgrade from the commit db374d2bff981d2660ebdac52ee77c684383c00d... [Test 5/9]

Preliminary install...
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 6 minutes, 39 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [902.1] Installing application synapse…
Warning: yunohost.hook <lambda> - [902.1] Generating DH parameters, 2048 bit long safe prime, generator 2
Warning: yunohost.hook <lambda> - [902.1] This is going to take a long time
Warning: yunohost.hook <lambda> - [902.1] ....................................................................................................................+...........................+.....................................................................................+..................................+...................................+.....................................................+.....................................................................................................................................................................................................................................................................+.................+......................+...........................................................................................................+............................................................................................+.......................................................................................................+.......................................................................................................................................+...........+...+...........................................................................+....................................................+.........................................................+...........................................+................................................................................................................................................................+..............................................+.............................................................................................................+..................................................................................................+................................................................................................................+.............................................................................................................................................+....................................................................................................+...........................................................+.........................+..........+...................................................................................................+................................................................................................................+.....................+...........................+.................................................................................................+..............................................................+..................................................................+......................+..............................................................+.................................................+.............................................................................+.............................................................................................................................+...............................................................+.............................................................................................................................................................................................+.....................................................................................................................................................................................................................................................+.......................+...............................................+.....................................................................................................................................................................................................................................................................................................................+....+....................................................................................................................................................+...+..................................++*++*++*++*
Warning: yunohost.hook <lambda> - [902.1] dh_install: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [902.1] dh_installdocs: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [902.1] dh_installdeb: Compatibility levels before 9 are deprecated (level 7 in use)
Warning: yunohost.hook <lambda> - [902.1] 
Extracting templates from packages: 93%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [902.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "build-essential" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "python2.7-dev" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "libffi-dev" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "python-pip" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "python-setuptools" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "sqlite3" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "libssl-dev" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "python-virtualenv" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "libxml2-dev" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "libxslt1-dev" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "python-lxml" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "libjpeg-dev" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "libpq-dev" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "postgresql" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] [WARN] Too many arguments ! "acl" will be ignored.
Warning: yunohost.hook <lambda> - [902.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [902.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Warning: yunohost.hook <lambda> - [902.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. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Warning: yunohost.hook <lambda> - [902.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. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Warning: yunohost.hook <lambda> - [902.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. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Warning: yunohost.hook <lambda> - [902.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. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Warning: yunohost.hook <lambda> - [902.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: 2 seconds.
Working time: 5 minutes, 58 seconds.
Upgrade successful. (0)
Info: yunohost.app app_upgrade - [20320.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: yunohost.backup _collect_app_files - [20699.1] Collecting files to be backuped for synapse…
Warning: yunohost.hook <lambda> - [20699.1] [WARN] /var/lib/matrix-synapse will not be saved, because 'BACKUP_CORE_ONLY' is set.
Warning: yunohost.hook <lambda> - [20320.1] 2516 [WARN] /var/lib/matrix-synapse will not be saved, because 'BACKUP_CORE_ONLY' is set.
Warning: yunohost.hook <lambda> - [20699.1] could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Warning: yunohost.hook <lambda> - [20320.1] 2728 could not change directory to "/home/yunohost.backup/tmp/synapse-pre-upgrade1/apps/synapse/backup": Permission denied
Info: yunohost.backup backup_create - [20699.1] Now creating a backup archive from the files collected…
Info:  [#########++.........] > Upgrading dependencies...
Info:  [###########+........] > Upgrading source files...
Warning: yunohost.hook <lambda> - [20320.1] Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Warning: yunohost.hook <lambda> - [20320.1]   Cache entry deserialization failed, entry ignored
Info:  [############+.......] > Generating synapse secret...
Info:  [#############.......] > Updating synapse config...
Info:  [#############.......] > Creating an independant service for coturn...
Info:  [#############+......] > Use standard access for certificate...
Info:  [##############......] > Creating a dh file...
Info:  [##############+.....] > Upgrading nginx web server configuration...
Info:  [###############.....] > Updating coturn config...
Info:  [###############+....] > Upgrading systemd configuration...
Warning: yunohost.hook <lambda> - [20320.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Info:  [################++..] > Reconfiguring fail2ban...
Info:  [##################+.] > Restarting synapse services...
Warning: yunohost.hook <lambda> - [20320.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/


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: 47 seconds.
Deleting successful. (0)
Stop the LXC container
Restore the previous snapshot.
Working time: 16 seconds.


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

Preliminary install...
Start the LXC container..
Create witness files...
Working time: 10 seconds.
Working time: 4 minutes, 22 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [918.1] Installing application synapse…
Warning: yunohost.hook <lambda> - [918.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [918.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Warning: yunohost.hook <lambda> - [918.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [918.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Warning: yunohost.hook <lambda> - [918.1] /opt/yunohost/matrix-synapse/lib/python3.5/site-packages/synapse/config/_base.py:310: 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> - [918.1]   config = yaml.load(config_str)
Warning: yunohost.hook <lambda> - [918.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [918.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Warning: yunohost.hook <lambda> - [918.1] sed: -e expression #1, char 77: unterminated `s' command
Warning: yunohost.hook <lambda> - [918.1] /usr/share/yunohost/helpers.d/logging: line 90: args_array: readonly variable
Info: yunohost.log close - [918.1] The operation 'Install 'synapse' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191112-221524-app_install-synapse --share'
Warning: yunohost.hook <lambda> - [918.1] Removed /etc/systemd/system/multi-user.target.wants/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [918.1] Removed /etc/systemd/system/multi-user.target.wants/coturn-synapse.service.
Warning: yunohost.firewall firewall_disallow - [8557.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.firewall firewall_disallow - [8557.1] Port 8448 is already closed for IPv6 connections
Warning: yunohost.hook <lambda> - [918.1] Port 8448 is already closed for IPv4 connections
Warning: yunohost.hook <lambda> - [918.1] Port 8448 is already closed for IPv6 connections
Warning: yunohost.hook <lambda> - [918.1] python3: can't open file '/opt/yunohost/matrix-synapse/remove_sso_conf.py': [Errno 2] No such file or directory
Error: yunohost cli - Unknown service 'matrix-synapse'
Warning: yunohost.hook <lambda> - [918.1] Unknown service 'matrix-synapse'
Error: yunohost cli - Unknown service 'coturn-synapse'
Warning: yunohost.hook <lambda> - [918.1] Unknown service 'coturn-synapse'
Warning:Warning: yunohost.app app_install - [918.1] synapse has not been properly removed
Info: yunohost.log close - [918.1] The operation 'Remove 'synapse' after a failed installation' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191112-221850-remove_on_failed_install-synapse --share'
Error: yunohost cli - The operation 'Install 'synapse' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191112-221524-app_install-synapse --share'

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

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 12 seconds.
Deleting failed. (1)
Stop the LXC container
Restore the previous snapshot.
Working time: 14 seconds.
Restore the previous snapshot.
Working time: 4 seconds.
Working time for this test: 24 minutes, 34 seconds.


>> Installation in public mode... [Test 7/9]
Root install failed, impossible to perform this test...
Start the LXC container.
Create witness files...
Working time: 5 seconds.
Working time: 5 minutes, 13 seconds.
Installation successful. (0)
Warning: yunohost.service _run_service_command - [200.1] Unable to execute command 'systemctl reload fail2ban'
Info: yunohost.app app_install - [907.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> - [907.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [907.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> - [907.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [907.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> - [907.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [907.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Info:  [################+...] > Configuring nginx web server...
Info:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################+..] > Restarting synapse services...
Warning: yunohost.hook <lambda> - [907.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_matrix-synapse' 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' 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/


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: 4 seconds.
Working time for this test: 5 minutes, 43 seconds.


>> Multi-instance installations... [Test 8/9]
First installation: path=domain.tld/_matrix/static/
Start the LXC container.
Create witness files...
Working time: 6 seconds.
Working time: 4 minutes, 50 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [914.1] Installing application synapse…
Info:  [....................] > Validating installation parameters...
Info:  [....................] > Storing installation settings...
Info:  [++..................] > Configuring firewall...
Warning: yunohost.firewall firewall_reload - [1306.1] Some firewall rules commands have failed. For more information, see the log.
Info:  [##..................] > Creating a dh file...
Info:  [##++++++++..........] > Installing dependencies...
Warning: yunohost.hook <lambda> - [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:  [##########..........] > Configuring system user...
Info:  [##########+.........] > Creating a 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:  [###########+++++....] > Setting up source files...
Info:  [################....] > Creating synapse config...
Info:  [################....] > Configuring a systemd service...
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:  [################+...] > Configuring nginx web server...
Info:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################+..] > Restarting synapse services...
Warning: yunohost.hook <lambda> - [914.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_matrix-synapse' 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' 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, 39 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [9650.1] Installing application synapse…
Info:  [....................] > Validating installation parameters...
Info:  [....................] > Storing installation settings...
Info:  [++..................] > Configuring firewall...
Warning: yunohost.firewall firewall_allow - [10074.1] Port 5350 is already opened for IPv4 connections
Warning: yunohost.firewall firewall_allow - [10074.1] Port 5350 is already opened for IPv6 connections
Warning: yunohost.firewall firewall_allow - [10074.1] Port 5350 is already opened for IPv4 connections
Warning: yunohost.firewall firewall_allow - [10074.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> - [9650.1] Cache entry deserialization failed, entry ignored
Info:  [################....] > Creating synapse config...
Info:  [################....] > Configuring a systemd service...
Warning: yunohost.hook <lambda> - [9650.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> - [9650.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:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################+..] > Restarting synapse services...
Warning: yunohost.hook <lambda> - [9650.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'
Info:  [####################] > Installation of synapse__2 completed

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/


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/


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.
Working time for this test: 7 minutes, 59 seconds.


>> Port already used... [Test 9/9]
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 14 seconds.
A LXC container is already running.
Working time: 2 seconds.
Working time: 11 minutes, 44 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [974.1] Installing application synapse…
Info:  [....................] > Validating installation parameters...
Info:  [....................] > Storing installation settings...
Info:  [++..................] > Configuring firewall...
Info:  [##..................] > Creating a dh file...
Info:  [##++++++++..........] > Installing dependencies...
Warning: yunohost.hook <lambda> - [974.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [974.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Info:  [##########..........] > Configuring system user...
Info:  [##########+.........] > Creating a PostgreSQL database...
Warning: yunohost.hook <lambda> - [974.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [974.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Info:  [###########+++++....] > Setting up source files...
Info:  [################....] > Creating synapse config...
Info:  [################....] > Configuring a systemd service...
Warning: yunohost.hook <lambda> - [974.1] Created symlink /etc/systemd/system/multi-user.target.wants/matrix-synapse.service → /etc/systemd/system/matrix-synapse.service.
Warning: yunohost.hook <lambda> - [974.1] Created symlink /etc/systemd/system/multi-user.target.wants/coturn-synapse.service → /etc/systemd/system/coturn-synapse.service.
Info:  [################+...] > Configuring nginx web server...
Info:  [#################...] > Configuring synapse...
Info:  [#################...] > Configuring coturn...
Info:  [#################...] > Configuring log rotation...
Info:  [#################...] > Configuring SSOwat...
Info:  [#################+..] > Restarting synapse services...
Warning: yunohost.hook <lambda> - [974.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_matrix-synapse' 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' 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/


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: 20 seconds.
Working time for this test: 12 minutes, 32 seconds.


>> Backup/Restore... [Test 10/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: 20 seconds.

Backup of the application...
Start the LXC container..
Create witness files...
Working time: 10 seconds.
Working time: 1 minute, 16 seconds.
Backup successful. (0)
Info: yunohost.backup _collect_app_files - [1026.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:  [#################+..] > Backing up synapse hook...
Info: yunohost.backup backup_create - [1026.1] Now creating a backup archive from the files collected…
--- SUCCESS ---

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

Restore after removing the application...
A LXC container is already running.
Working time: 1 second.
Working time: 1 minute, 57 seconds.
Restore successful. (0)
Info: yunohost.backup backup_restore - [4059.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [4059.1] Restoring application synapse…
Info:  [....................] > Loading settings...
Info:  [....................] > Validating restoration parameters...
Info:  [+...................] > Restoring directory and configuration...
Info:  [#+..................] > Reload fail2ban...
Info:  [##+++++++...........] > Reinstalling dependencies...
Info:  [#########+..........] > Recreating the dedicated system user...
Info:  [##########+.........] > Restoring the PostgreSQL database...
Warning: yunohost.hook <lambda> - [4059.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> - [4059.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...
Warning: yunohost.hook <lambda> - [4059.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_matrix-synapse' 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' for default locale 'en'
Info:  [###################.] > Reloading nginx web server...

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/


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: 19 seconds.
Restore the previous snapshot.
Working time: 10 seconds.

Restore on a clean YunoHost system...
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 2 minutes, 57 seconds.
Restore successful. (0)
Info: yunohost.backup backup_restore - [923.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [923.1] Restoring application synapse…
Info:  [....................] > Loading settings...
Info:  [....................] > Validating restoration parameters...
Info:  [+...................] > Restoring directory and configuration...
Info:  [#+..................] > Reload fail2ban...
Info:  [##+++++++...........] > Reinstalling dependencies...
Warning: yunohost.hook <lambda> - [923.1] 
Extracting templates from packages: 62%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [923.1] /bin/bash: BASH_XTRACEFD: 11: invalid value for trace file descriptor
Info:  [#########+..........] > Recreating the dedicated system user...
Info:  [##########+.........] > Restoring the PostgreSQL database...
Warning: yunohost.hook <lambda> - [923.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [923.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Warning: yunohost.hook <lambda> - [923.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> - [923.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...
Warning: yunohost.hook <lambda> - [923.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_matrix-synapse' 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' for default locale 'en'
Info:  [###################.] > Reloading nginx web server...
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/


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: 19 seconds.
Restore the previous snapshot.
Working time: 4 seconds.
Working time for this test: 8 minutes, 40 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, 24 minutes, 38 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

Tue Nov 12 22:56:08 UTC 2019
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE