FailedConsole Output

Started from command line by ynhci
[FSTrigger] Triggered by a change to a folder (log)
Building in workspace /var/lib/jenkins/jobs/writefreely_ynh_PR52 (yalh76)/workspace
[workspace] $ /bin/sh -xe /tmp/jenkins2308863701104173805.sh
+ /home/CI_package_check/analyseCI.sh /home/yunohost.app/ssh_chroot_directories/yalh76/data/writefreely_ynh_PR52 writefreely_ynh_PR52 (yalh76)

Wed May 15 18:50:10 UTC 2019
Wait for work starting...
..........
Wed May 15 18:55:10 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: Test complet

>> YunoHost versions:
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: .
Debian GNU/Linux 9
yunohost: 
  repo: stable
  version: 3.5.2.2
yunohost-admin: 
  repo: stable
  version: 3.5.2
moulinette: 
  repo: stable
  version: 3.5.2
ssowat: 
  repo: stable
  version: 3.5.2.1
Connection to 10.1.4.2 closed.


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

    [YunoHost App Package Linter]

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

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

 [Loading App]


 [Misc File Checks]


 [Sources Management]


 [Manifest]

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

 [Install Script]

! [YEP-2.12] You should not need to use 'sudo', the script is being run as root. (If you need to run a command using a specific user, use 'ynh_exec_as') 

 [Remove Script]


 [Upgrade Script]

! [YEP-2.12] You should not need to use 'sudo', the script is being run as root. (If you need to run a command using a specific user, use 'ynh_exec_as') 

 [Backup Script]


 [Restore Script]

--- SUCCESS ---


>> Installation on the root... [Test 2/9]
A LXC container is already running.
Working time: 1 second.
Working time: 46 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [974.1] Installing application writefreely…
Info:  Retrieve arguments from the manifest ...
Info:  Validating installation parameters...
Info:  Storing installation settings...
Info:  Configuring firewall ...
Info:  Creating a MySQL database...
Info:  Setting up source files...
Info:  Configuring nginx web server...
Info:  Reload the service nginx
Info:  Configuring system user...
Info:  Configuring a systemd service ...
Warning: yunohost.hook <lambda> - [974.1] Created symlink /etc/systemd/system/multi-user.target.wants/writefreely.service → /etc/systemd/system/writefreely.service.
Info:  Start the service writefreely
Info:  Configuring SSOwat ...
Info:  Reloading nginx web server...
Info:  Reload the service nginx
Info:  Installation of writefreely completed

Try to access by url...
Test url: sous.domain.tld
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

Test url: sous.domain.tld/
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

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

Deleting...
A LXC container is already running.
Working time: 1 second.
Working time: 7 seconds.
Deleting successful. (0)
Info: yunohost.app app_remove - [945.1] Removing application writefreely…
Info:  Loading installation settings...
Info:  Removing writefreely service...
Warning: yunohost.hook <lambda> - [945.1] Removed /etc/systemd/system/multi-user.target.wants/writefreely.service.
Info:  Stopping and removing the systemd service...
Info:  Stop the service writefreely
Warning: yunohost.hook <lambda> - [945.1] Removing database writefreely
Info:  Removing the MySQL database
Info:  Removing app main directory
Info:  Removing nginx web server configuration
Info:  Reload the service nginx
Warning: yunohost.hook <lambda> - [945.1] Remove the user writefreely
Info:  Removing the dedicated system user...
Info:  Removal of writefreely completed
--- SUCCESS ---

Reinstall the application after a removing.
A LXC container is already running.
Working time: 1 second.
Working time: 39 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [1259.1] Installing application writefreely…
Info:  Retrieve arguments from the manifest ...
Info:  Validating installation parameters...
Info:  Storing installation settings...
Info:  Configuring firewall ...
Info:  Creating a MySQL database...
Info:  Setting up source files...
Info:  Configuring nginx web server...
Info:  Reload the service nginx
Info:  Configuring system user...
Info:  Configuring a systemd service ...
Warning: yunohost.hook <lambda> - [1259.1] Created symlink /etc/systemd/system/multi-user.target.wants/writefreely.service → /etc/systemd/system/writefreely.service.
Info:  Start the service writefreely
Info:  Configuring SSOwat ...
Info:  Reloading nginx web server...
Info:  Reload the service nginx
Info:  Installation of writefreely completed

Try to access by url...
Test url: sous.domain.tld
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

Test url: sous.domain.tld/
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

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


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

Preliminary install...
Uses an existing snapshot for root installation.
Working time: 6 seconds.

Upgrade...
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 9 seconds.
Upgrade failed. (1)
Info: yunohost.app app_upgrade - [924.1] Now upgrading app writefreely…
Info:  Loading installation settings...
Warning: yunohost.hook <lambda> - [924.1] Upgrade forced for package check.
Info:  Ensuring downward compatibility...
Warning: yunohost.hook <lambda> - [924.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [924.1]   File "<stdin>", line 5, in <module>
Warning: yunohost.hook <lambda> - [924.1] AssertionError: Setting file /etc/yunohost/apps/writefreely-k ;public_stats/settings.yml does not exists ?
Info:  Backing up the app before upgrading (may take a while)...
Info: yunohost.backup _collect_app_files - [1144.1] Collecting files to be backuped for writefreely…
Info:  Loading installation settings...
Warning: yunohost.hook <lambda> - [1144.1] Invalid argument: --
Warning: yunohost.hook <lambda> - [1144.1] !!
Warning: yunohost.hook <lambda> - [1144.1]   writefreely's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1144.1] !!
Warning: yunohost.hook <lambda> - [924.1] 1393 Invalid argument: --
Warning: yunohost.hook <lambda> - [924.1] 1394 !!
Warning: yunohost.hook <lambda> - [924.1] 1394   writefreely's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [924.1] 1395 !!
Error: yunohost.backup _collect_app_files - [1144.1] Unable to back up the app 'writefreely'
Error: yunohost cli - There is nothing to save
Warning: yunohost.hook <lambda> - [924.1] 1548 Unable to back up the app 'writefreely'
Warning: yunohost.hook <lambda> - [924.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [924.1]   File "/usr/lib/moulinette/yunohost/backup.py", line 701, in _collect_app_files
Warning: yunohost.hook <lambda> - [924.1]     raise_on_error=True, chdir=tmp_app_bkp_dir, env=env_dict)[0]
Warning: yunohost.hook <lambda> - [924.1]   File "/usr/lib/moulinette/yunohost/hook.py", line 396, in hook_exec
Warning: yunohost.hook <lambda> - [924.1]     raise YunohostError('hook_exec_failed', path=path)
Warning: yunohost.hook <lambda> - [924.1] YunohostError: Script execution failed: /tmp/backup_P23_N9
Warning: yunohost.hook <lambda> - [924.1] 1555 There is nothing to save
Warning: yunohost.hook <lambda> - [924.1] Backup failed, the upgrade process was aborted.
Error: yunohost.app app_upgrade - [924.1] Unable to upgrade writefreely
Info: yunohost.log close - [924.1] The operation 'Upgrade 'writefreely' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190515-185812-app_upgrade-writefreely --share'
Error: yunohost cli - The following apps were not upgraded: writefreely

Try to access by url...
Test url: sous.domain.tld
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

Test url: sous.domain.tld/
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

--- FAIL ---

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 6 seconds.
Deleting successful. (0)
Stop the LXC container
Restore the previous snapshot.
Working time: 17 seconds.


>> Upgrade from the commit 093ec18f9f5282e1a137c0ac5444a414ee2b83bc... [Test 4/9]

Preliminary install...
fatal: reference is not a tree: 093ec18f9f5282e1a137c0ac5444a414ee2b83bc
Start the LXC container.Start the LXC container.
Create witness files...
Working time: 5 seconds.
Working time: 55 seconds.
Installation successful. (0)
Warning: yunohost.service _run_service_command - [189.1] Unable to execute command 'systemctl reload fail2ban'
Info: yunohost.app app_install - [916.1] Installing application writefreely…
Info:  Retrieve arguments from the manifest ...
Info:  Validating installation parameters...
Info:  Storing installation settings...
Info:  Configuring firewall ...
Info:  Creating a MySQL database...
Info:  Setting up source files...
Info:  Configuring nginx web server...
Info:  Reload the service nginx
Info:  Configuring system user...
Info:  Configuring a systemd service ...
Warning: yunohost.hook <lambda> - [916.1] Created symlink /etc/systemd/system/multi-user.target.wants/writefreely.service → /etc/systemd/system/writefreely.service.
Info:  Start the service writefreely
Info:  Configuring SSOwat ...
Info:  Reloading nginx web server...
Info:Info:  Reload the service nginx
Info:  Installation of writefreely completed

Upgrade...
A LXC container is already running.
Working time: 2 seconds.
Working time: 9 seconds.
Upgrade failed. (1)
Info: yunohost.app app_upgrade - [2424.1] Now upgrading app writefreely…
Info:  Loading installation settings...
Warning: yunohost.hook <lambda> - [2424.1] Upgrade forced for package check.
Info:  Ensuring downward compatibility...
Warning: yunohost.hook <lambda> - [2424.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [2424.1]   File "<stdin>", line 5, in <module>
Warning: yunohost.hook <lambda> - [2424.1] AssertionError: Setting file /etc/yunohost/apps/writefreely-k ;public_stats/settings.yml does not exists ?
Info:  Backing up the app before upgrading (may take a while)...
Info: yunohost.backup _collect_app_files - [2642.1] Collecting files to be backuped for writefreely…
Info:  Loading installation settings...
Warning: yunohost.hook <lambda> - [2642.1] Invalid argument: --
Warning: yunohost.hook <lambda> - [2642.1] !!
Warning: yunohost.hook <lambda> - [2642.1]   writefreely's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [2642.1] !!
Warning: yunohost.hook <lambda> - [2424.1] 1548 Invalid argument: --
Warning: yunohost.hook <lambda> - [2424.1] 1548 !!
Warning: yunohost.hook <lambda> - [2424.1] 1549   writefreely's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [2424.1] 1549 !!
Error: yunohost.backup _collect_app_files - [2642.1] Unable to back up the app 'writefreely'
Error: yunohost cli - There is nothing to save
Warning: yunohost.hook <lambda> - [2424.1] 1669 Unable to back up the app 'writefreely'
Warning: yunohost.hook <lambda> - [2424.1] Traceback (most recent call last):
Warning: yunohost.hook <lambda> - [2424.1]   File "/usr/lib/moulinette/yunohost/backup.py", line 701, in _collect_app_files
Warning: yunohost.hook <lambda> - [2424.1]     raise_on_error=True, chdir=tmp_app_bkp_dir, env=env_dict)[0]
Warning: yunohost.hook <lambda> - [2424.1]   File "/usr/lib/moulinette/yunohost/hook.py", line 396, in hook_exec
Warning: yunohost.hook <lambda> - [2424.1]     raise YunohostError('hook_exec_failed', path=path)
Warning: yunohost.hook <lambda> - [2424.1] YunohostError: Script execution failed: /tmp/backup_KEaS6r
Warning: yunohost.hook <lambda> - [2424.1] 1673 There is nothing to save
Warning: yunohost.hook <lambda> - [2424.1] Backup failed, the upgrade process was aborted.
Error: yunohost.app app_upgrade - [2424.1] Unable to upgrade writefreely
Info: yunohost.log close - [2424.1] The operation 'Upgrade 'writefreely' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190515-185954-app_upgrade-writefreely --share'
Error: yunohost cli - The following apps were not upgraded: writefreely

Try to access by url...
Test url: sous.domain.tld
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

Test url: sous.domain.tld/
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

--- FAIL ---

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


>> Installation in private mode... [Test 5/9]
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 44 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [909.1] Installing application writefreely…
Info:  Retrieve arguments from the manifest ...
Info:  Validating installation parameters...
Info:  Storing installation settings...
Info:  Configuring firewall ...
Info:  Creating a MySQL database...
Info:  Setting up source files...
Info:  Configuring nginx web server...
Info:  Reload the service nginx
Info:  Configuring system user...
Info:  Configuring a systemd service ...
Warning: yunohost.hook <lambda> - [909.1] Created symlink /etc/systemd/system/multi-user.target.wants/writefreely.service → /etc/systemd/system/writefreely.service.
Info:  Start the service writefreely
Info:  Configuring SSOwat ...
Info:  Reloading nginx web server...
Info:  Reload the service nginx
Info:  Installation of writefreely completed

Try to access by url...
Test url: sous.domain.tld
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: sous.domain.tld/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQv
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 13 seconds.
Sub path install failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 4 seconds.
Working time for this test: 1 minute, 13 seconds.


>> Installation in public mode... [Test 6/9]
Start the LXC container.
Create witness files...
Working time: 9 seconds.
Working time: 1 minute, 29 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [909.1] Installing application writefreely…
Info:  Retrieve arguments from the manifest ...
Info:  Validating installation parameters...
Info:  Storing installation settings...
Info:  Configuring firewall ...
Info:  Creating a MySQL database...
Info:  Setting up source files...
Info:  Configuring nginx web server...
Info:  Reload the service nginx
Info:  Configuring system user...
Info:  Configuring a systemd service ...
Warning: yunohost.hook <lambda> - [909.1] Created symlink /etc/systemd/system/multi-user.target.wants/writefreely.service → /etc/systemd/system/writefreely.service.
Info:  Start the service writefreely
Info:  Configuring SSOwat ...
Info:  Reloading nginx web server...
Info:  Reload the service nginx

Try to access by url...
Test url: sous.domain.tld
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

Test url: sous.domain.tld/
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

--- SUCCESS ---
Stop the LXC container
Restore the previous snapshot.
Working time: 11 seconds.
Sub path install failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 4 seconds.
Working time for this test: 1 minute, 58 seconds.


>> Multi-instance installations... [Test 7/9]
First installation: path=domain.tld/
Start the LXC container.
Create witness files...
Working time: 5 seconds.
Working time: 58 seconds.
Installation successful. (0)
Warning: yunohost.service _run_service_command - [201.1] Unable to execute command 'systemctl reload fail2ban'
Info: yunohost.app app_install - [923.1] Installing application writefreely…
Info:  Retrieve arguments from the manifest ...
Info:  Validating installation parameters...
Info:  Storing installation settings...
Info:  Configuring firewall ...
Info:  Creating a MySQL database...
Info:  Setting up source files...
Info:  Configuring nginx web server...
Info:  Reload the service nginx
Info:  Configuring system user...
Info:  Configuring a systemd service ...
Warning: yunohost.hook <lambda> - [923.1] Created symlink /etc/systemd/system/multi-user.target.wants/writefreely.service → /etc/systemd/system/writefreely.service.
Info:  Start the service writefreely
Info:  Configuring SSOwat ...
Info:  Reloading nginx web server...
Info:  Reload the service nginx
Second installation: path=sous.domain.tld/
A LXC container is already running.
Working time: 1 second.
Working time: 50 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [2427.1] Installing application writefreely…
Info:  Retrieve arguments from the manifest ...
Info:  Validating installation parameters...
Info:  Storing installation settings...
Info:  Configuring firewall ...
Info:  Creating a MySQL database...
Info:  Setting up source files...
Info:  Configuring nginx web server...
Info:  Reload the service nginx
Info:  Configuring system user...
Info:  Configuring a systemd service ...
Warning: yunohost.hook <lambda> - [2427.1] Created symlink /etc/systemd/system/multi-user.target.wants/writefreely__2.service → /etc/systemd/system/writefreely__2.service.
Info:  Start the service writefreely__2
Info:  Configuring SSOwat ...
Info:  Reloading nginx web server...
Info:  Reload the service nginx
Info:  Installation of writefreely__2 completed

Try to access by url...
Test url: domain.tld
Real url: http://domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: domain.tld/robots.txt
Resource unreachable (Code 404) domain.tld/ynh_portal.js
Resource unreachable (Code 404) domain.tld/ynh_overlay.css
Resource unreachable (Code 404) domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) domain.tld/ynhtheme/custom_overlay.css

Test url: domain.tld/
Real url: http://domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: domain.tld/robots.txt
Resource unreachable (Code 404) domain.tld/ynh_portal.js
Resource unreachable (Code 404) domain.tld/ynh_overlay.css
Resource unreachable (Code 404) domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) domain.tld/ynhtheme/custom_overlay.css


Try to access by url...
Test url: sous.domain.tld
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

Test url: sous.domain.tld/
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

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


>> Malformed path... [Test 8/9]
Start the LXC container.
Create witness files...
Working time: 9 seconds.
Working time: 44 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [909.1] Installing application writefreely…
Info:  Retrieve arguments from the manifest ...
Info:  Validating installation parameters...
Info:  Storing installation settings...
Info:  Configuring firewall ...
Info:  Creating a MySQL database...
Info:  Setting up source files...
Info:  Configuring nginx web server...
Info:  Reload the service nginx
Info:  Configuring system user...
Info:  Configuring a systemd service ...
Warning: yunohost.hook <lambda> - [909.1] Created symlink /etc/systemd/system/multi-user.target.wants/writefreely.service → /etc/systemd/system/writefreely.service.
Info:  Start the service writefreely
Info:  Configuring SSOwat ...
Info:  Reloading nginx web server...
Info:  Reload the service nginx

Try to access by url...
Test url: sous.domain.tld
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

Test url: sous.domain.tld/
Real url: http://sous.domain.tld/
HTTP code: 200
Title of the page: test
Extract of the page:
   #[1]test » Feed

     * ☰ Menu
          + [2]Log in

                                    [3]test
     __________________________________________________________________

   powered by [4]writefreely

References

   1. https://sous.domain.tld/feed/
   2. file:///login
   3. file:///
   4. https://writefreely.org/

Ressource ignored: sous.domain.tld/robots.txt
Resource unreachable (Code 404) sous.domain.tld/ynh_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynh_overlay.css
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_portal.js
Resource unreachable (Code 404) sous.domain.tld/ynhtheme/custom_overlay.css

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


>> Backup/Restore... [Test 9/9]

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

Backup of the application...
Start the LXC container.Start the LXC container.
Create witness files...
Working time: 5 seconds.
Working time: 7 seconds.
Backup successful. (0)
Warning: yunohost.hook <lambda> - [926.1] ls: cannot access '/etc/cron.d/yunohost*': No such file or directory
Info: yunohost.backup _collect_app_files - [926.1] Collecting files to be backuped for writefreely…
Info:  Loading installation settings...
Warning: yunohost.hook <lambda> - [926.1] Invalid argument: --
Warning: yunohost.hook <lambda> - [926.1] !!
Warning: yunohost.hook <lambda> - [926.1]   writefreely's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [926.1] !!
Error: yunohost.backup _collect_app_files - [926.1] Unable to back up the app 'writefreely'
Info: yunohost.backup backup_create - [926.1] Now creating a backup archive from the files collected…
--- SUCCESS ---

Deleting...
A LXC container is already running.
Working time: 1 second.
Working time: 7 seconds.
Deleting successful. (0)

Restore after removing the application...
A LXC container is already running.
Working time: 2 seconds.
Working time: 2 seconds.
Restore failed. (1)
Error: yunohost.backup unknown_error - [1496.1] App 'writefreely' not found in the backup archive
Info: yunohost.backup backup_restore - [1496.1] Preparing archive for restoration…
Error: yunohost cli - Nothing has been restored

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

Restore on a clean YunoHost system...
Start the LXC container.
Create witness files...
Working time: 5 seconds.
Working time: 4 seconds.
Restore failed. (1)
Warning: yunohost.service _run_service_command - [186.1] Unable to execute command 'systemctl reload fail2ban'
Error: yunohost.backup unknown_error - [922.1] App 'writefreely' not found in the backup archive
Info: yunohost.backup backup_restore - [922.1] Preparing archive for restoration…
Error: yunohost cli - Nothing has been restored

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



Package linter:                  SUCCESS
Installation:                    SUCCESS
Deleting:                        SUCCESS
Installation in a sub path:      Not evaluated.
Deleting from a sub path:        Not evaluated.
Installation on the root:        SUCCESS
Deleting from root:              SUCCESS
Upgrade:                         FAIL
Installation in private mode:    SUCCESS
Installation in public mode:     SUCCESS
Multi-instance installations:    SUCCESS
Malformed path:                  SUCCESS
Port already used:               Not evaluated.
Backup:                          SUCCESS
Restore:                         FAIL
Change URL:                      Not evaluated.
Level of this application: 2 (Installable in all situations)
	   Level 1: 1
	   Level 2: 1
	   Level 3: 0
	   Level 4: 0
	   Level 5: 1
	   Level 6: 1
	   Level 7: 0
	   Level 8: 0
	   Level 9: 0
	   Level 10: 0
You can find the complete log of these tests in /home/CI_package_check/dev_CI/../package_check/Complete.log
Global working time for all tests: 13 minutes, 14 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_yalh76_data_writefreely_ynh_PR52_complete.log

Wed May 15 19:09:11 UTC 2019
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE