FailedConsole Output

Started from command line by ynhci
Building in workspace /var/lib/jenkins/jobs/writefreely_ynh_PR55 (yalh76)/workspace
[workspace] $ /bin/sh -xe /tmp/jenkins3586022756539033972.sh
+ /home/CI_package_check/analyseCI.sh /home/yunohost.app/ssh_chroot_directories/yalh76/data/writefreely_ynh_PR55 writefreely_ynh_PR55 (yalh76)

Wed Jun 12 17:50:11 UTC 2019
Wait for work starting...
..........
Wed Jun 12 17:55:11 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: 52 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: 5 seconds.
Working time: 3 seconds.
Debian GNU/Linux 9
yunohost: 
  repo: stable
  version: 3.5.2.2
yunohost-admin: 
  repo: stable
  version: 3.5.2
moulinette: 
  repo: stable
  version: 3.5.2
ssowat: 
  repo: stable
  version: 3.5.2.1
Connection to 10.1.4.2 closed.


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

    [YunoHost App Package Linter]

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

    Analyzing package /home/CI_package_check/dev_CI/../package_check/writefreely_ynh_PR55_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: 2 seconds.
Working time: 9 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [1244.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...
Warning: yunohost.hook <lambda> - [1244.1] Corrupt source
Warning: yunohost.hook <lambda> - [1244.1] !!
Warning: yunohost.hook <lambda> - [1244.1]   writefreely's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1244.1] !!
Warning: yunohost.hook <lambda> - [1244.1] /usr/share/yunohost/helpers.d/print: line 10: args_array: readonly variable
Info: yunohost.log close - [1244.1] The operation 'Install 'writefreely' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190612-175617-app_install-writefreely --share'
Info:  Loading installation settings...
Error: yunohost cli - Unknown service 'writefreely'
Info:  Stopping and removing the systemd service...
Info:  Removing the MySQL database
Warning: yunohost.hook <lambda> - [1244.1] Removing database writefreely
Info:  Removing app main directory
Warning: yunohost.hook <lambda> - [1244.1] /var/www/writefreely wasn't deleted because it doesn't exist.
Info:  Removing nginx web server configuration
Warning: yunohost.hook <lambda> - [1244.1] /etc/nginx/conf.d/sous.domain.tld.d/writefreely.conf wasn't deleted because it doesn't exist.
Info:  Reload the service nginx
Warning: yunohost.hook <lambda> - [1244.1] The user writefreely was not found
Info:  Removing the dedicated system user...
Info:  Removal of writefreely completed
Error: yunohost cli - The operation 'Install 'writefreely' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190612-175617-app_install-writefreely --share'

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

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 1 second.
Deleting failed. (1)
Error: yunohost cli - writefreely is not installed
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 59 seconds.
Working time for this test: 1 minute, 16 seconds.


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

Preliminary install...
Start the LXC container.Start the LXC container..
Create witness files...
Working time: 11 seconds.
Working time: 44 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [922.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> - [922.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

Upgrade...
A LXC container is already running.
Working time: 2 seconds.
Working time: 1 minute, 33 seconds.
Upgrade successful. (0)
Info: yunohost.app app_upgrade - [2438.1] Now upgrading app writefreely…
Info:  Loading installation settings...
Warning: yunohost.hook <lambda> - [2438.1] Upgrade forced for package check.
Info:  Ensuring downward compatibility...
Info:  Backing up the app before upgrading (may take a while)...
Info: yunohost.backup _collect_app_files - [2657.1] Collecting files to be backuped for writefreely…
Info:  Loading installation settings...
Info:  Stopping a systemd service...
Info:  Stop the service writefreely
Info:  Backing up the main app directory...
Info:  Backing up nginx web server configuration...
Info:  Backing up the MySQL database...
Info:  Backing up systemd configuration...
Info:  Starting a systemd service...
Info:  Start the service writefreely
Info: yunohost.backup backup_create - [2657.1] Now creating a backup archive from the files collected…
Info:  Stop the service writefreely
Info:  Upgrading source files...
Info:  Upgrading nginx web server configuration...
Info:  Reload the service nginx
Info:  Making sure dedicated system user exists...
Info:  Upgrading systemd configuration...
Info:  Upgrading SSOwat configuration...
Info:  Starting a systemd service..
Info:  Start the service writefreely
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 ---

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 8 seconds.
Deleting successful. (0)
Stop the LXC container
Restore the previous snapshot.
Working time: 1 minute, .


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

Preliminary install...
fatal: reference is not a tree: 093ec18f9f5282e1a137c0ac5444a414ee2b83bc
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 1 minute, 25 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [910.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> - [910.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

Upgrade...
A LXC container is already running.
Working time: 1 second.
Working time: 1 minute, 16 seconds.
Upgrade successful. (0)
Info: yunohost.app app_upgrade - [2422.1] Now upgrading app writefreely…
Info:  Loading installation settings...
Warning: yunohost.hook <lambda> - [2422.1] Upgrade forced for package check.
Info:  Ensuring downward compatibility...
Info:  Backing up the app before upgrading (may take a while)...
Info: yunohost.backup _collect_app_files - [2641.1] Collecting files to be backuped for writefreely…
Info:  Loading installation settings...
Info:  Stopping a systemd service...
Info:  Stop the service writefreely
Info:  Backing up the main app directory...
Info:  Backing up nginx web server configuration...
Info:  Backing up the MySQL database...
Info:  Backing up systemd configuration...
Info:  Starting a systemd service...
Info:  Start the service writefreely
Info: yunohost.backup backup_create - [2641.1] Now creating a backup archive from the files collected…
Info:  Stop the service writefreely
Info:  Upgrading source files...
Info:  Upgrading nginx web server configuration...
Info:  Reload the service nginx
Info:  Making sure dedicated system user exists...
Info:  Upgrading systemd configuration...
Info:  Upgrading SSOwat configuration...
Info:  Starting a systemd service..
Info:  Start the service writefreely
Info:  Reloading nginx web server...
Info:  Reload the service nginx
Info:  Upgrade 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 ---

Deleting...
A LXC container is already running.
Working time: 2 seconds.
Working time: 7 seconds.
Deleting successful. (0)
Stop the LXC container
Restore the previous snapshot.
Working time: 58 seconds.
Restore the previous snapshot.
Working time: 52 seconds.
Working time for this test: 8 minutes, 39 seconds.


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


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


>> Multi-instance installations... [Test 7/9]
First installation: path=domain.tld
Start the LXC container.
Create witness files...
Working time: 10 seconds.
Working time: 10 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [921.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...
Warning: yunohost.hook <lambda> - [921.1] Corrupt source
Warning: yunohost.hook <lambda> - [921.1] !!
Warning: yunohost.hook <lambda> - [921.1]   writefreely's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [921.1] !!
Warning: yunohost.hook <lambda> - [921.1] /usr/share/yunohost/helpers.d/print: line 10: args_array: readonly variable
Info: yunohost.log close - [921.1] The operation 'Install 'writefreely' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190612-180800-app_install-writefreely --share'
Info:  Loading installation settings...
Error: yunohost cli - Unknown service 'writefreely'
Warning: yunohost.hook <lambda> - [921.1] Removing database writefreely
Info:  Stopping and removing the systemd service...
Info:  Removing the MySQL database
Warning: yunohost.hook <lambda> - [921.1] /var/www/writefreely wasn't deleted because it doesn't exist.
Info:  Removing app main directory
Warning: yunohost.hook <lambda> - [921.1] /etc/nginx/conf.d/domain.tld.d/writefreely.conf wasn't deleted because it doesn't exist.
Info:  Removing nginx web server configuration
Info:  Reload the service nginx
Warning: yunohost.hook <lambda> - [921.1] The user writefreely was not found
Info:  Removing the dedicated system user...
Info:  Removal of writefreely completed
Error: yunohost cli - The operation 'Install 'writefreely' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190612-180800-app_install-writefreely --share'
Second installation: path=sous.domain.tld
A LXC container is already running.
Working time: 2 seconds.
Working time: 29 seconds.
Installation successful. (0)
Info: yunohost.app app_install - [1349.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> - [1349.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: domain.tld
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9kb21haW4udGxkLw==
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: domain.tld/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9kb21haW4udGxkLw==
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.

Try to access by url...
Test url: sous.domain.tld
Real url: 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 ---
Stop the LXC container
Restore the previous snapshot.
Working time: 59 seconds.
Working time for this test: 1 minute, 55 seconds.


>> Malformed path... [Test 8/9]
Start the LXC container.
Create witness files...
Working time: 5 seconds.
Working time: 1 minute, 18 seconds.
Installation successful. (0)
Warning: yunohost.service _run_service_command - [193.1] Unable to execute command 'systemctl reload fail2ban'
Info: yunohost.app app_install - [952.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> - [952.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: 56 seconds.
Working time for this test: 2 minutes, 21 seconds.


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



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

Wed Jun 12 18:13:02 UTC 2019
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE