FailedConsole Output

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

Sun Oct 27 12:53:05 UTC 2019
Wait for work starting...
..............
Sun Oct 27 13:00:05 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: 4 seconds.
Disable iptables rules.
Disable the network bridge.
Pick up the package which will be tested.
Initialize network for LXC.
RTNETLINK answers: File exists
ifup: failed to bring up lxc-pchecker
Activate iptables rules.
Parsing of check_process file

Tests serie: General

>> YunoHost versions:
Start the LXC container.
Create witness files...
Working time: 6 seconds.
Working time: 5 seconds.
Debian GNU/Linux 9
yunohost: 
  repo: stable
  version: 3.6.5.2
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/8]

    [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/monitorix_ynh_check

 [Loading App]


 [Misc File Checks]


 [Sources Management]


 [Manifest]


 [Install 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. 

 [Remove Script]


 [Upgrade Script]


 [Backup Script]


 [Restore 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. 
--- SUCCESS ---


>> Installation in a sub path... [Test 2/8]
A LXC container is already running.
Working time: 2 seconds.
Working time: 1 minute, 32 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [1003.1] Installing application monitorix…
Info:  [....................] > Validating installation parameters...
Info:  [+...................] > Finding available ports...
Info:  [#+..................] > Storing installation settings...
Info:  [##+++++.............] > Installing dependencies...
Warning: yunohost.hook <lambda> - [1003.1] 
Extracting templates from packages: 88%
Extracting templates from packages: 100%
Info:  [#######+++++........] > Installing sources files...
Info:  [############+.......] > Configuring MySQL database...
Info:  [#############+......] > Configuring nginx...
Info:  [##############++....] > Configuring application...
Info:  [################+...] > Protecting directory...
Info:  [#################++.] > Starting monitorix services...
Warning: yunohost.hook <lambda> - [1003.1] Please wait, the service monitorix is starting................................................
Info:  The service monitorix has correctly started.

Try to access by url...
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
A LXC container is already running.
Working time: 1 second.
Working time: 3 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld/path
Real url: http://sous.domain.tld/path
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


Test url: sous.domain.tld/path/
Real url: http://sous.domain.tld/path/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


--- SUCCESS ---
Create a snapshot for sub path installation.
Working time: 19 seconds.
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 2 seconds.

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 17 seconds.
Deleting successful. (0)
Info: yunohost.app app_remove - [1202.1] Removing application monitorix…
Info:  [+...................] > Loading installation settings...
Info:  [#+..................] > Stoping services...
Info:  [##++................] > Removing databases...
Error: 1008 (HY000) at line 1: Can't drop database 'monitorix'; database doesn't exist
Info:  [####+...............] > Removing logs...
Info:  [#####+++++++++++++..] > Removing dependencies
--- SUCCESS ---

Reinstall the application after a removing.
A LXC container is already running.
Working time: 1 second.
Working time: 59 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [2059.1] Installing application monitorix…
Info:  [....................] > Validating installation parameters...
Info:  [+...................] > Finding available ports...
Info:  [#+..................] > Storing installation settings...
Info:  [##+++++.............] > Installing dependencies...
Info:  [#######+++++........] > Installing sources files...
Info:  /etc/monitorix/conf.d/00-debian.conf wasn't deleted because it doesn't exist.
Info:  [############+.......] > Configuring MySQL database...
Info:  [#############+......] > Configuring nginx...
Info:  [##############++....] > Configuring application...
Info:  [################+...] > Protecting directory...
Info:  [#################++.] > Starting monitorix services...
Warning: yunohost.hook <lambda> - [2059.1] Please wait, the service monitorix is starting...................
Info:  The service monitorix has correctly started.

Try to access by url...
A LXC container is already running.
Working time: 1 second.
Working time: 3 seconds.
A LXC container is already running.
Working time: 1 second.
Working time: 3 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld/path
Real url: http://sous.domain.tld/path
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


Test url: sous.domain.tld/path/
Real url: http://sous.domain.tld/path/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 15 seconds.
Working time for this test: 4 minutes, .


>> Installation on the root... [Test 3/8]
Start the LXC container.
Create witness files...
Working time: 9 seconds.
Working time: 1 minute, 24 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [910.1] Installing application monitorix…
Info:  [....................] > Validating installation parameters...
Info:  [+...................] > Finding available ports...
Info:  [#+..................] > Storing installation settings...
Info:  [##+++++.............] > Installing dependencies...
Warning: yunohost.hook <lambda> - [910.1] 
Extracting templates from packages: 88%
Extracting templates from packages: 100%
Info:  [#######+++++........] > Installing sources files...
Info:  [############+.......] > Configuring MySQL database...
Info:  [#############+......] > Configuring nginx...
Info:  [##############++....] > Configuring application...
Info:  [################+...] > Protecting directory...
Info:  [#################++.] > Starting monitorix services...
Warning: yunohost.hook <lambda> - [910.1] Please wait, the service monitorix is starting.........................................
Info:  The service monitorix has correctly started.

Try to access by url...
A LXC container is already running.
Working time: 1 second.
Working time: 3 seconds.
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


Test url: sous.domain.tld/
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


--- SUCCESS ---
Create a snapshot for root installation.
Working time: 20 seconds.
Start the LXC container..Start the LXC container..
Create witness files...
Working time: 13 seconds.
Working time: 2 seconds.

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 17 seconds.
Deleting successful. (0)
Info: yunohost.app app_remove - [1250.1] Removing application monitorix…
Info:  [+...................] > Loading installation settings...
Info:  [#+..................] > Stoping services...
Info:  [##++................] > Removing databases...
Error: 1008 (HY000) at line 1: Can't drop database 'monitorix'; database doesn't exist
Info:  [####+...............] > Removing logs...
Info:  [#####+++++++++++++..] > Removing dependencies
Info:  [####################] > Removal of monitorix completed
--- SUCCESS ---

Reinstall the application after a removing.
A LXC container is already running.
Working time: 2 seconds.
Working time: 52 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [2061.1] Installing application monitorix…
Info:  [....................] > Validating installation parameters...
Info:  [+...................] > Finding available ports...
Info:  [#+..................] > Storing installation settings...
Info:  [##+++++.............] > Installing dependencies...
Info:  [#######+++++........] > Installing sources files...
Info:  /etc/monitorix/conf.d/00-debian.conf wasn't deleted because it doesn't exist.
Info:  [############+.......] > Configuring MySQL database...
Info:  [#############+......] > Configuring nginx...
Info:  [##############++....] > Configuring application...
Info:  [################+...] > Protecting directory...
Info:  [#################++.] > Starting monitorix services...
Warning: yunohost.hook <lambda> - [2061.1] Please wait, the service monitorix is starting..............
Info:  The service monitorix has correctly started.

Try to access by url...
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


Test url: sous.domain.tld/
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 15 seconds.
Working time for this test: 3 minutes, 59 seconds.


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

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

Upgrade...
Start the LXC container..
Create witness files...
Working time: 11 seconds.
Working time: 1 minute, 15 seconds.
Upgrade successful. (0)
Info: yunohost.app app_upgrade - [1097.1] Now upgrading app monitorix…
Info:  [+...................] > Loading installation settings...
Info:  [#+..................] > Stoping services...
Info: yunohost.backup _collect_app_files - [1361.1] Collecting files to be backuped for monitorix…
Info:  [+...................] > Loading installation settings...
Info:  [#++.................] > Backing up configuration...
Info:  [###+++++++++++++++..] > Backing up data...
Info: yunohost.backup backup_create - [1361.1] Now creating a backup archive from the files collected…
Info:  [##+++++++++.........] > Upgrading source files...
Info:  /etc/monitorix/conf.d/00-debian.conf wasn't deleted because it doesn't exist.
Info:  [###########+........] > Configuring application...
Info:  /usr/share/yunohost/hooks/post_iptable_rules/50-monitorix wasn't deleted because it doesn't exist.
Info:  [############++......] > Protecting directory...
Info:  [##############++++..] > Starting monitorix services...
Warning: yunohost.hook <lambda> - [1097.1] Please wait, the service monitorix is starting............................................
Info:  The service monitorix has correctly started.
Info:  [####################] > Upgrade of monitorix completed

Try to access by url...
A LXC container is already running.
Working time: 5 seconds.
Working time: 2 seconds.
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld/path
Real url: http://sous.domain.tld/path
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


Test url: sous.domain.tld/path/
Real url: http://sous.domain.tld/path/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


--- SUCCESS ---

Deleting...
A LXC container is already running.
Working time: 3 seconds.
Working time: 17 seconds.
Deleting successful. (0)
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: 2 minutes, 32 seconds.


>> Malformed path... [Test 5/8]
Start the LXC container.
Create witness files...
Working time: 9 seconds.
Working time: 53 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [906.1] Installing application monitorix…
Info:  [....................] > Validating installation parameters...
Info:  [+...................] > Finding available ports...
Info:  [#+..................] > Storing installation settings...
Info:  [##+++++.............] > Installing dependencies...
Warning: yunohost.hook <lambda> - [906.1] 
Extracting templates from packages: 88%
Extracting templates from packages: 100%
Info:  [#######+++++........] > Installing sources files...
Info:  [############+.......] > Configuring MySQL database...
Info:  [#############+......] > Configuring nginx...
Info:  [##############++....] > Configuring application...
Info:  [################+...] > Protecting directory...
Info:  [#################++.] > Starting monitorix services...
Warning: yunohost.hook <lambda> - [906.1] Please wait, the service monitorix is starting........
Info:  The service monitorix has correctly started.

Try to access by url...
A LXC container is already running.
Working time: 2 seconds.
Working time: 3 seconds.
A LXC container is already running.
Working time: 1 second.
Working time: 3 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld/path
Real url: http://sous.domain.tld/path
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


Test url: sous.domain.tld/path/
Real url: http://sous.domain.tld/path/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 16 seconds.
Working time for this test: 1 minute, 28 seconds.


>> Port already used... [Test 6/8]
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 3 seconds.
A LXC container is already running.
Working time: 2 seconds.
Working time: 1 minute, 20 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [990.1] Installing application monitorix…
Info:  [....................] > Validating installation parameters...
Info:  [+...................] > Finding available ports...
Info:  [#+..................] > Storing installation settings...
Info:  [##+++++.............] > Installing dependencies...
Warning: yunohost.hook <lambda> - [990.1] 
Extracting templates from packages: 88%
Extracting templates from packages: 100%
Info:  [#######+++++........] > Installing sources files...
Info:  [############+.......] > Configuring MySQL database...
Info:  [#############+......] > Configuring nginx...
Info:  [##############++....] > Configuring application...
Info:  [################+...] > Protecting directory...
Info:  [#################++.] > Starting monitorix services...
Warning: yunohost.hook <lambda> - [990.1] Please wait, the service monitorix is starting....................................
Info:  The service monitorix has correctly started.

Try to access by url...
A LXC container is already running.
Working time: 3 seconds.
Working time: 2 seconds.
A LXC container is already running.
Working time: 2 seconds.
Working time: 3 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld/path
Real url: http://sous.domain.tld/path
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


Test url: sous.domain.tld/path/
Real url: http://sous.domain.tld/path/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


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


>> Backup/Restore... [Test 7/8]

Preliminary installation on the root...
Uses an existing snapshot for root installation.
Working time: 11 seconds.

Backup of the application...
Start the LXC container..
Create witness files...
Working time: 11 seconds.
Working time: 14 seconds.
Backup successful. (0)
Info: yunohost.backup _collect_app_files - [1112.1] Collecting files to be backuped for monitorix…
Info:  [+...................] > Loading installation settings...
Info:  [#++.................] > Backing up configuration...
Info:  [###+++++++++++++++..] > Backing up data...
Info: yunohost.backup backup_create - [1112.1] Now creating a backup archive from the files collected…
--- SUCCESS ---

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

Restore after removing the application...
A LXC container is already running.
Working time: 2 seconds.
Working time: 1 minute, 35 seconds.
Restore successful. (0)
Info: yunohost.backup backup_restore - [2505.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [2505.1] Restoring application monitorix…
Info:  [....................] > Loading settings...
Info:  [++++................] > Reinstalling dependencies...
Info:  [####++++............] > Installing sources files...
Info:  /etc/monitorix/conf.d/00-debian.conf wasn't deleted because it doesn't exist.
Info:  [########+...........] > Configuring MySQL database...
Info:  [#########+++++++....] > Restoring files...
Info:  [################+...] > Protecting directory...
Info:  [#################++.] > Starting monitorix services...
Warning: yunohost.hook <lambda> - [2505.1] Please wait, the service monitorix is starting...................................................
Info:  The service monitorix has correctly started.
Info:  [####################] > Restoration completed for monitorix

Try to access by url...
A LXC container is already running.
Working time: 1 second.
Working time: 3 seconds.
A LXC container is already running.
Working time: 1 second.
Working time: 3 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


Test url: sous.domain.tld/
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 16 seconds.
Restore the previous snapshot.
Working time: 8 seconds.

Restore on a clean YunoHost system...
Start the LXC container.Start the LXC container.
Create witness files...
Working time: 5 seconds.
Working time: 1 minute, 21 seconds.
Restore successful. (0)
Info: yunohost.backup backup_restore - [913.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [913.1] Restoring application monitorix…
Info:  [....................] > Loading settings...
Info:  [++++................] > Reinstalling dependencies...
Warning: yunohost.hook <lambda> - [913.1] 
Extracting templates from packages: 88%
Extracting templates from packages: 100%
Info:  [####++++............] > Installing sources files...
Info:  [########+...........] > Configuring MySQL database...
Info:  [#########+++++++....] > Restoring files...
Info:  [################+...] > Protecting directory...
Info:  [#################++.] > Starting monitorix services...
Warning: yunohost.hook <lambda> - [913.1] Please wait, the service monitorix is starting...........................
Info:  The service monitorix has correctly started.
Info:  [####################] > Restoration completed for monitorix

Try to access by url...
A LXC container is already running.
Working time: 2 seconds.
Working time: 3 seconds.
A LXC container is already running.
Working time: 1 second.
Working time: 3 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


Test url: sous.domain.tld/
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


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

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

Backup of the application...
Start the LXC container..
Create witness files...
Working time: 13 seconds.
Working time: 12 seconds.
Backup successful. (0)
Warning: yunohost.firewall firewall_reload - [195.1] Some firewall rules commands have failed. For more information, see the log.
Info: yunohost.backup _collect_app_files - [1174.1] Collecting files to be backuped for monitorix…
Info:  [+...................] > Loading installation settings...
Info:  [#++.................] > Backing up configuration...
Info:  [###+++++++++++++++..] > Backing up data...
Info: yunohost.backup backup_create - [1174.1] Now creating a backup archive from the files collected…
--- SUCCESS ---

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

Restore after removing the application...
A LXC container is already running.
Working time: 1 second.
Working time: 1 minute, 39 seconds.
Restore successful. (0)
Info: yunohost.backup backup_restore - [2481.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [2481.1] Restoring application monitorix…
Info:  [....................] > Loading settings...
Info:  [++++................] > Reinstalling dependencies...
Info:  [####++++............] > Installing sources files...
Info:  /etc/monitorix/conf.d/00-debian.conf wasn't deleted because it doesn't exist.
Info:  [########+...........] > Configuring MySQL database...
Info:  [#########+++++++....] > Restoring files...
Info:  [################+...] > Protecting directory...
Info:  [#################++.] > Starting monitorix services...
Warning: yunohost.hook <lambda> - [2481.1] Please wait, the service monitorix is starting.......................................................
Info:  The service monitorix has correctly started.

Try to access by url...
A LXC container is already running.
Working time: 1 second.
Working time: 2 seconds.
A LXC container is already running.
Working time: 2 seconds.
Working time: 3 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld/path
Real url: http://sous.domain.tld/path
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


Test url: sous.domain.tld/path/
Real url: http://sous.domain.tld/path/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 16 seconds.
Restore the previous snapshot.
Working time: 7 seconds.

Restore on a clean YunoHost system...
Start the LXC container.Start the LXC container.
Create witness files...
Working time: 5 seconds.
Working time: 1 minute, 22 seconds.
Restore successful. (0)
Info: yunohost.backup backup_restore - [918.1] Preparing archive for restoration…
Info: yunohost.backup _restore_app - [918.1] Restoring application monitorix…
Info:  [....................] > Loading settings...
Info:  [++++................] > Reinstalling dependencies...
Warning: yunohost.hook <lambda> - [918.1] 
Extracting templates from packages: 88%
Extracting templates from packages: 100%
Info:  [####++++............] > Installing sources files...
Info:  [########+...........] > Configuring MySQL database...
Info:  [#########+++++++....] > Restoring files...
Info:  [################+...] > Protecting directory...
Info:  [#################++.] > Starting monitorix services...
Warning: yunohost.hook <lambda> - [918.1] Please wait, the service monitorix is starting............................
Info:  The service monitorix has correctly started.
Info:  [####################] > Restoration completed for monitorix

Try to access by url...
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld/path
Real url: http://sous.domain.tld/path
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


Test url: sous.domain.tld/path/
Real url: http://sous.domain.tld/path/
HTTP code: 200
Title of the page: Yunohost Stats
Extract of the page:
                              [1][logo_top.png]

                                                                      v3.11.0

                   Hostname    Graph
                  [localhost] [All graphs_________________]

             (*) Daily    ( ) Weekly   ( ) Monthly  ( ) Yearly
             ( ) 2 Years  ( ) 3 Years  ( ) 4 Years  ( ) 5 Years

                                     Ok

References

   1. http://www.monitorix.org/


--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 14 seconds.
Restore the previous snapshot.
Working time: 5 seconds.
Working time for this test: 10 minutes, 2 seconds.


>> Change URL... [Test 8/8]

Preliminary install...
Uses an existing snapshot for root installation.
Working time: 11 seconds.
Change the url from sous.domain.tld/ to sous.domain.tld/path...
Start the LXC container..
Create witness files...
Working time: 11 seconds.
Working time: 11 seconds.
Change_url script successful. (0)
Info:  [++..................] > Loading installation settings...
Info:  [##+++...............] > Updating nginx configuration...
Info:  [#####+++............] > Updating monitorix configuration...
Info:  [########+++++++++...] > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1055.1] ./change_url: line 60: ynh_check_starting: command not found
Warning: yunohost.hook <lambda> - [1055.1] [ERR] !!
Warning: yunohost.hook <lambda> - [1055.1]   monitorix's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1055.1] !!
Warning: yunohost.hook <lambda> - [1055.1] Please find here an extract of the log before the crash:
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   -=target_file=)
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + declare -Ar args_array
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + local match_string
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + local replace_string
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + local target_file
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + ynh_handle_getopts_args --match_string __MYSQL_PASSWORD__ --replace_string JWTwiBEXU7E8 --target_file /etc/monitorix/monitorix.conf
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + local delimit=@
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + match_string=__MYSQL_PASSWORD__
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + replace_string=JWTwiBEXU7E8
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + sudo sed --in-place s@__MYSQL_PASSWORD__@JWTwiBEXU7E8@g /etc/monitorix/monitorix.conf
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + ynh_script_progression '--message=Restarting monitorix services...' --weight=3
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + set +x
Info: - > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + echo '! Helper used in legacy mode !'
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - > Restarting monitorix services...'
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + set -x
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + systemctl stop monitorix.service
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + sleep 1
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + pkill -f 'monitorix-httpd listening on'
Warning: - ./change_url: line 60: ynh_check_starting: command not found
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + ynh_check_starting ' - Ok, ready.' /var/log/monitorix
Warning: yunohost.hook <lambda> - [1055.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Error: yunohost.app app_change_url - [1055.1] Failed to change 'monitorix' url.
Info: yunohost.log close - [1055.1] The operation 'Change the url of 'monitorix' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191027-132458-app_change_url-monitorix --share'

Try to access by url...
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
A LXC container is already running.
Working time: 1 second.
Working time: 3 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld/path
Real url: http://sous.domain.tld/path
HTTP code: 502
The HTTP code show an error.
Title of the page: 
Extract of the page:
                               502 Bad Gateway
     __________________________________________________________________

                                    nginx


Test url: sous.domain.tld/path/
Real url: http://sous.domain.tld/path/
HTTP code: 502
The HTTP code show an error.
Title of the page: 
Extract of the page:
                               502 Bad Gateway
     __________________________________________________________________

                                    nginx


--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 15 seconds.

Preliminary install...
Uses an existing snapshot for sub path installation.
Working time: 11 seconds.
Change the url from sous.domain.tld/path to sous.domain.tld/path_2...
Start the LXC container..
Create witness files...
Working time: 10 seconds.
Working time: 10 seconds.
Change_url script successful. (0)
Info:  [++..................] > Loading installation settings...
Info:  [##+++...............] > Updating nginx configuration...
Info:  [#####+++............] > Updating monitorix configuration...
Info:  [########+++++++++...] > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1122.1] ./change_url: line 60: ynh_check_starting: command not found
Warning: yunohost.hook <lambda> - [1122.1] [ERR] !!
Warning: yunohost.hook <lambda> - [1122.1]   monitorix's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1122.1] !!
Warning: yunohost.hook <lambda> - [1122.1] Please find here an extract of the log before the crash:
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + local target_file
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + ynh_handle_getopts_args --match_string __MYSQL_PASSWORD__ --replace_string oro3WhKamS5x --target_file /etc/monitorix/monitorix.conf
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + local delimit=@
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + match_string=__MYSQL_PASSWORD__
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + replace_string=oro3WhKamS5x
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + sudo sed --in-place s@__MYSQL_PASSWORD__@oro3WhKamS5x@g /etc/monitorix/monitorix.conf
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + ynh_script_progression '--message=Restarting monitorix services...' --weight=3
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + echo '! Helper used in legacy mode !'
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - > Restarting monitorix services...'
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + set -x
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + systemctl stop monitorix.service
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + sleep 1
Info: - > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + pkill -f 'monitorix-httpd listening on'
Warning: - ./change_url: line 60: ynh_check_starting: command not found
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + ynh_check_starting ' - Ok, ready.' /var/log/monitorix
Warning: yunohost.hook <lambda> - [1122.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Error: yunohost.app app_change_url - [1122.1] Failed to change 'monitorix' url.
Info: yunohost.log close - [1122.1] The operation 'Change the url of 'monitorix' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191027-132555-app_change_url-monitorix --share'

Try to access by url...
A LXC container is already running.
Working time: 2 seconds.
Working time: 3 seconds.
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld/path_2
Real url: http://sous.domain.tld/path_2
HTTP code: 404
The HTTP code show an error.
Title of the page: 404 Not Found
Extract of the page:
                                   Not Found

   The requested URL /path_2 was not found on this server.
     __________________________________________________________________


    Monitorix HTTP Server listening at localhost Port 8080


Test url: sous.domain.tld/path_2/
Real url: http://sous.domain.tld/path_2/
HTTP code: 404
The HTTP code show an error.
Title of the page: 404 Not Found
Extract of the page:
                                   Not Found

   The requested URL /path_2/ was not found on this server.
     __________________________________________________________________


    Monitorix HTTP Server listening at localhost Port 8080


--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 14 seconds.

Preliminary install...
Uses an existing snapshot for sub path installation.
Working time: 10 seconds.
Change the url from sous.domain.tld/path to sous.domain.tld/...
Start the LXC container.Start the LXC container.
Create witness files...
Working time: 6 seconds.
Working time: 15 seconds.
Change_url script successful. (0)
Info:  [++..................] > Loading installation settings...
Info:  [##+++...............] > Updating nginx configuration...
Info:  [#####+++............] > Updating monitorix configuration...
Info:  [########+++++++++...] > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1106.1] ./change_url: line 60: ynh_check_starting: command not found
Warning: yunohost.hook <lambda> - [1106.1] [ERR] !!
Warning: yunohost.hook <lambda> - [1106.1]   monitorix's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1106.1] !!
Warning: yunohost.hook <lambda> - [1106.1] Please find here an extract of the log before the crash:
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + declare -Ar args_array
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + local match_string
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + local replace_string
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + local target_file
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + ynh_handle_getopts_args --match_string __MYSQL_PASSWORD__ --replace_string oro3WhKamS5x --target_file /etc/monitorix/monitorix.conf
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + local delimit=@
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + match_string=__MYSQL_PASSWORD__
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + replace_string=oro3WhKamS5x
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + sudo sed --in-place s@__MYSQL_PASSWORD__@oro3WhKamS5x@g /etc/monitorix/monitorix.conf
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + ynh_script_progression '--message=Restarting monitorix services...' --weight=3
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + echo '! Helper used in legacy mode !'
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - > Restarting monitorix services...'
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + set -x
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + systemctl stop monitorix.service
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + sleep 1
Info: - > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + pkill -f 'monitorix-httpd listening on'
Warning: - ./change_url: line 60: ynh_check_starting: command not found
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + true
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + ynh_check_starting ' - Ok, ready.' /var/log/monitorix
Warning: yunohost.hook <lambda> - [1106.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Error: yunohost.app app_change_url - [1106.1] Failed to change 'monitorix' url.
Info: yunohost.log close - [1106.1] The operation 'Change the url of 'monitorix' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191027-132651-app_change_url-monitorix --share'

Try to access by url...
A LXC container is already running.
Working time: 2 seconds.
Working time: 3 seconds.
A LXC container is already running.
Working time: 1 second.
Working time: 3 seconds.
Public access forced by a skipped_uris to check.
Test url: sous.domain.tld
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: sous.domain.tld/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 15 seconds.

Preliminary install...
Uses an existing snapshot for root installation.
Working time: 10 seconds.
Change the url from sous.domain.tld/ to domain.tld/path...
Start the LXC container.
Create witness files...
Working time: 6 seconds.
Working time: 16 seconds.
Change_url script successful. (0)
Info:  [++..................] > Loading installation settings...
Info:  [##+++...............] > Updating nginx configuration...
Info:  [#####+++............] > Updating monitorix configuration...
Info:  [########+++++++++...] > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1078.1] ./change_url: line 60: ynh_check_starting: command not found
Warning: yunohost.hook <lambda> - [1078.1] [ERR] !!
Warning: yunohost.hook <lambda> - [1078.1]   monitorix's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1078.1] !!
Warning: yunohost.hook <lambda> - [1078.1] Please find here an extract of the log before the crash:
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + declare -Ar args_array
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + local match_string
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + local replace_string
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + local target_file
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + ynh_handle_getopts_args --match_string __MYSQL_PASSWORD__ --replace_string JWTwiBEXU7E8 --target_file /etc/monitorix/monitorix.conf
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + local delimit=@
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + match_string=__MYSQL_PASSWORD__
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + replace_string=JWTwiBEXU7E8
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + sudo sed --in-place s@__MYSQL_PASSWORD__@JWTwiBEXU7E8@g /etc/monitorix/monitorix.conf
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + ynh_script_progression '--message=Restarting monitorix services...' --weight=3
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + echo '! Helper used in legacy mode !'
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - > Restarting monitorix services...'
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + set -x
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + systemctl stop monitorix.service
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + sleep 1
Info: - > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + pkill -f 'monitorix-httpd listening on'
Warning: - ./change_url: line 60: ynh_check_starting: command not found
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + true
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + ynh_check_starting ' - Ok, ready.' /var/log/monitorix
Warning: yunohost.hook <lambda> - [1078.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Error: yunohost.app app_change_url - [1078.1] Failed to change 'monitorix' url.
Info: yunohost.log close - [1078.1] The operation 'Change the url of 'monitorix' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191027-132749-app_change_url-monitorix --share'

Try to access by url...
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
Public access forced by a skipped_uris to check.
Test url: domain.tld/path
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9kb21haW4udGxkL3BhdGg=
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: domain.tld/path/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9kb21haW4udGxkL3BhdGgv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 14 seconds.

Preliminary install...
Uses an existing snapshot for sub path installation.
Working time: 10 seconds.
Change the url from sous.domain.tld/path to domain.tld/path_2...
Start the LXC container.
Create witness files...
Working time: 7 seconds.
Working time: 15 seconds.
Change_url script successful. (0)
Info:  [++..................] > Loading installation settings...
Info:  [##+++...............] > Updating nginx configuration...
Info:  [#####+++............] > Updating monitorix configuration...
Info:  [########+++++++++...] > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1090.1] ./change_url: line 60: ynh_check_starting: command not found
Warning: yunohost.hook <lambda> - [1090.1] [ERR] !!
Warning: yunohost.hook <lambda> - [1090.1]   monitorix's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1090.1] !!
Warning: yunohost.hook <lambda> - [1090.1] Please find here an extract of the log before the crash:
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + match_string=__MYSQL_PASSWORD__
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + replace_string=oro3WhKamS5x
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + sudo sed --in-place s@__MYSQL_PASSWORD__@oro3WhKamS5x@g /etc/monitorix/monitorix.conf
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + ynh_script_progression '--message=Restarting monitorix services...' --weight=3
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + echo '! Helper used in legacy mode !'
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - > Restarting monitorix services...'
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + set -x
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + systemctl stop monitorix.service
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + sleep 1
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + pkill -f 'monitorix-httpd listening on'
Info: - > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + true
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + ynh_check_starting ' - Ok, ready.' /var/log/monitorix
Warning: yunohost.hook <lambda> - [1090.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Error: yunohost.app app_change_url - [1090.1] Failed to change 'monitorix' url.
Info: yunohost.log close - [1090.1] The operation 'Change the url of 'monitorix' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191027-132845-app_change_url-monitorix --share'

Try to access by url...
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
A LXC container is already running.
Working time: 2 seconds.
Working time: 3 seconds.
Public access forced by a skipped_uris to check.
Test url: domain.tld/path_2
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9kb21haW4udGxkL3BhdGhfMg==
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: domain.tld/path_2/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9kb21haW4udGxkL3BhdGhfMi8=
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 14 seconds.

Preliminary install...
Uses an existing snapshot for sub path installation.
Working time: 10 seconds.
Change the url from sous.domain.tld/path to domain.tld/...
Start the LXC container..Start the LXC container..
Create witness files...
Working time: 10 seconds.
Working time: 12 seconds.
Change_url script successful. (0)
Warning: yunohost.firewall firewall_reload - [213.1] Some firewall rules commands have failed. For more information, see the log.
Info:  [++..................] > Loading installation settings...
Info:  [##+++...............] > Updating nginx configuration...
Info:  [#####+++............] > Updating monitorix configuration...
Info:  [########+++++++++...] > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1091.1] ./change_url: line 60: ynh_check_starting: command not found
Warning: yunohost.hook <lambda> - [1091.1] [ERR] !!
Warning: yunohost.hook <lambda> - [1091.1]   monitorix's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1091.1] !!
Warning: yunohost.hook <lambda> - [1091.1] Please find here an extract of the log before the crash:
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + declare -Ar args_array
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + local match_string
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + local replace_string
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + local target_file
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + ynh_handle_getopts_args --match_string __MYSQL_PASSWORD__ --replace_string oro3WhKamS5x --target_file /etc/monitorix/monitorix.conf
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + local delimit=@
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + match_string=__MYSQL_PASSWORD__
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + replace_string=oro3WhKamS5x
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + sudo sed --in-place s@__MYSQL_PASSWORD__@oro3WhKamS5x@g /etc/monitorix/monitorix.conf
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + ynh_script_progression '--message=Restarting monitorix services...' --weight=3
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + echo '! Helper used in legacy mode !'
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - > Restarting monitorix services...'
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + set -x
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + systemctl stop monitorix.service
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + sleep 1
Info: - > Restarting monitorix services...
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + pkill -f 'monitorix-httpd listening on'
Warning: - ./change_url: line 60: ynh_check_starting: command not found
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + true
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + ynh_check_starting ' - Ok, ready.' /var/log/monitorix
Warning: yunohost.hook <lambda> - [1091.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Error: yunohost.app app_change_url - [1091.1] Failed to change 'monitorix' url.
Info: yunohost.log close - [1091.1] The operation 'Change the url of 'monitorix' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20191027-132941-app_change_url-monitorix --share'

Try to access by url...
A LXC container is already running.
Working time: 1 second.
Working time: 3 seconds.
A LXC container is already running.
Working time: 5 seconds.
Working time: 3 seconds.
Public access forced by a skipped_uris to check.
Test url: domain.tld
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9kb21haW4udGxkLw==
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: domain.tld/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9kb21haW4udGxkLw==
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 15 seconds.
Restore the previous snapshot.
Working time: 4 seconds.
Working time for this test: 5 minutes, 50 seconds.



Package linter:                  SUCCESS
Installation:                    SUCCESS
Deleting:                        SUCCESS
Installation in a sub path:      SUCCESS
Deleting from a sub path:        SUCCESS
Installation on the root:        SUCCESS
Deleting from root:              SUCCESS
Upgrade:                         SUCCESS
Installation in private mode:    Not evaluated.
Installation in public mode:     Not evaluated.
Multi-instance installations:    Not evaluated.
Malformed path:                  SUCCESS
Port already used:               SUCCESS
Backup:                          SUCCESS
Restore:                         SUCCESS
Change URL:                      FAIL
Level of this application: 6 (Open to contributions from the community)
	   Level 1: 1
	   Level 2: 1
	   Level 3: 1
	   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: 30 minutes, 13 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_monitorix_ynh_complete.log

Sun Oct 27 13:32:08 UTC 2019
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE