FailedConsole Output

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

Sun Aug 11 21:20:09 UTC 2019
Wait for work starting...
..........
Sun Aug 11 21:25: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: 6 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: Nom du test

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

    [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/mastodon_ynh PR173_check

 [Loading App]


 [Misc File Checks]

! Do not use 'add_header' in the nginx conf. Use 'more_set_headers' instead. (See https://www.peterbe.com/plog/be-very-careful-with-your-add_header-in-nginx and https://github.com/openresty/headers-more-nginx-module#more_set_headers ) 

 [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.4] 'ynh_die' or 'exit' command is executed with system modification before (cmd 'apt').
This system modification is an issue if a verification exit the script.
You should move this verification before any system modification. 
! [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.4] 'ynh_die' or 'exit' command is executed with system modification before (cmd 'apt').
This system modification is an issue if a verification exit the script.
You should move this verification before any system modification. 
! [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]

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


>> Installation on the root... [Test 2/7]
A LXC container is already running.
Working time: 1 second.
Working time: 18 minutes, 37 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [1018.1] Installing application mastodon…
Info:  [....................] > Validating installation parameters...
Info:  [....................] > Storing installation settings...
Info:  [....................] > Configuring firewall...
Info:  [....................] > Installing dependencies...
Info:  Installation of N - Node.js version management
Warning: yunohost.hook <lambda> - [1018.1] 
                                                                           0.8%
######                                                                     8.5%
################                                                          22.8%
##########################                                                36.4%
####################################                                      51.3%
###############################################                           66.6%
########################################################                  78.4%
############################################################              84.5%
################################################################          90.2%
#####################################################################     96.6%
######################################################################## 100.0%
Warning: yunohost.hook <lambda> - [1018.1] 
Extracting templates from packages: 14%
Extracting templates from packages: 29%
Extracting templates from packages: 44%
Extracting templates from packages: 59%
Extracting templates from packages: 73%
Extracting templates from packages: 88%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [1018.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Info:  /etc/apt/trusted.gpg.d/mastodon.asc wasn't deleted because it doesn't exist.
Info:  [....................] > Creating a PostgreSQL database...
Warning: yunohost.hook <lambda> - [1018.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [1018.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Info:  [....................] > Setting up source files...
Info:  [....................] > Configuring nginx web server...
Info:  [....................] > Configuring system user...
Warning: yunohost.hook <lambda> - [1018.1] lsblk: /dev/vda1: not a block device
Info:  [....................] > Adding 0 Mo to swap...
Warning: yunohost.hook <lambda> - [1018.1] Installation of rbenv - ruby version management
Info:  [+++.................] > Installing Ruby...
Warning: yunohost.hook <lambda> - [1018.1] Downloading ruby-2.6.1.tar.bz2...
Warning: yunohost.hook <lambda> - [1018.1] -> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.1.tar.bz2
Warning: yunohost.hook <lambda> - [1018.1] Installing ruby-2.6.1...
Warning: yunohost.hook <lambda> - [1018.1] Installed ruby-2.6.1 to /opt/rbenv/versions/2.6.1
Info:  [###.................] > Modifying a config file...
Info:  [###++++++++++++++++.] > Installing Mastodon...
Warning: yunohost.hook <lambda> - [1018.1] /opt/rbenv/versions/2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/ext/builder.rb:183: warning: conflicting chdir during another chdir block
Warning: yunohost.hook <lambda> - [1018.1] /opt/rbenv/versions/2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/ext/builder.rb:191: warning: conflicting chdir during another chdir block
Warning: yunohost.hook <lambda> - [1018.1] /opt/rbenv/versions/2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/ext/builder.rb:183: warning: conflicting chdir during another chdir block
Warning: yunohost.hook <lambda> - [1018.1] /opt/rbenv/versions/2.6.1/lib/ruby/site_ruby/2.6.0/rubygems/ext/builder.rb:191: warning: conflicting chdir during another chdir block
Warning: yunohost.hook <lambda> - [1018.1] warning " > react-redux-loading-bar@4.0.8" has incorrect peer dependency "react-redux@^3.0.0 || ^4.0.0 || ^5.0.0".
Warning: yunohost.hook <lambda> - [1018.1] error Could not write file "/var/www/mastodon/live/yarn-error.log": "Unknown system error -122: Unknown system error -122, write"
Warning: yunohost.hook <lambda> - [1018.1] error An unexpected error occurred: "Unknown system error -122: Unknown system error -122, copyfile '/var/www/mastodon/.cache/yarn/v4/npm-es5-ext-0.10.50-6d0e23a0abdb27018e5ac4fd09b412bc5517a778/node_modules/es5-ext/test/number/to-pos-integer.js' -> '/var/www/mastodon/live/node_modules/es6-weak-map/node_modules/es5-ext/test/number/to-pos-integer.js'".
Warning: yunohost.hook <lambda> - [1018.1] [ERR] !!
Warning: yunohost.hook <lambda> - [1018.1]   mastodon's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1018.1] !!
Warning: yunohost.hook <lambda> - [1018.1] Please find here an extract of the log before the crash:
Warning: yunohost.hook <lambda> - [1018.1] [DEBUG]: DEBUG   - Resolving packages...
Warning: yunohost.hook <lambda> - [1018.1] [DEBUG]: DEBUG   - Fetching packages...
Warning: yunohost.hook <lambda> - [1018.1] [DEBUG]: DEBUG   - info fsevents@1.2.9: The platform "linux" is incompatible with this module.
Warning: - warning " > react-redux-loading-bar@4.0.8" has incorrect peer dependency "react-redux@^3.0.0 || ^4.0.0 || ^5.0.0".
Warning: yunohost.hook <lambda> - [1018.1] [DEBUG]: DEBUG   - info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
Warning: yunohost.hook <lambda> - [1018.1] [DEBUG]: DEBUG   - Linking dependencies...
Warning: yunohost.hook <lambda> - [1018.1] [DEBUG]: DEBUG   - info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Warning: - error Could not write file "/var/www/mastodon/live/yarn-error.log": "Unknown system error -122: Unknown system error -122, write"
Warning: - error An unexpected error occurred: "Unknown system error -122: Unknown system error -122, copyfile '/var/www/mastodon/.cache/yarn/v4/npm-es5-ext-0.10.50-6d0e23a0abdb27018e5ac4fd09b412bc5517a778/node_modules/es5-ext/test/number/to-pos-integer.js' -> '/var/www/mastodon/live/node_modules/es6-weak-map/node_modules/es5-ext/test/number/to-pos-integer.js'".
Warning: yunohost.hook <lambda> - [1018.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Info: yunohost.log close - [1018.1] The operation 'Install 'mastodon' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190811-212532-app_install-mastodon --share'
Info:  [+...................] > Loading installation settings...
Error: yunohost cli - Unknown service 'mastodon-web'
Error: yunohost cli - Unknown service 'mastodon-sidekiq'
Error: yunohost cli - Unknown service 'mastodon-streaming'
Info:  [#++++++.............] > Stopping and removing the systemd service...
Info:  [#######+............] > Removing the PostgreSQL database...
Warning: yunohost.hook <lambda> - [1018.1] FATAL:  terminating connection due to administrator command
Warning: yunohost.hook <lambda> - [1018.1] server closed the connection unexpectedly
Warning: yunohost.hook <lambda> - [1018.1] 	This probably means the server terminated abnormally
Warning: yunohost.hook <lambda> - [1018.1] 	before or while processing the request.
Warning: yunohost.hook <lambda> - [1018.1] connection to server was lost
Info:  [########++++++......] > Removing dependencies...
Info:  /usr/local/n wasn't deleted because it doesn't exist.
Info:  /etc/apt/sources.list.d/mastodon.list wasn't deleted because it doesn't exist.
Info:  /etc/apt/preferences.d/mastodon wasn't deleted because it doesn't exist.
Info:  /etc/apt/trusted.gpg.d/mastodon.gpg wasn't deleted because it doesn't exist.
Info:  /etc/apt/trusted.gpg.d/mastodon.asc wasn't deleted because it doesn't exist.
Info:  [##############+++...] > Removing app main directory...
Info:  [#################+..] > Removing nginx web server configuration...
Info:  /etc/cron.d/mastodon wasn't deleted because it doesn't exist.
Info:  [##################..] > Removing the dedicated system user...
Error: yunohost cli - The operation 'Install 'mastodon' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190811-212532-app_install-mastodon --share'

Try to access by url...
A LXC container is already running.
Working time: 2 seconds.
Working time: 1 second.
A LXC container is already running.
Working time: 2 seconds.
Working time: 1 second.
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 ---

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


>> Upgrade from the same version... [Test 3/7]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 4 seconds.
Working time for this test: 4 seconds.


>> Installation in public mode... [Test 4/7]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 5 seconds.
Working time for this test: 5 seconds.


>> Multi-instance installations... [Test 5/7]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 4 seconds.
Working time for this test: 4 seconds.


>> Backup/Restore... [Test 6/7]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 4 seconds.
Working time for this test: 4 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:                         Not evaluated.
Installation in private mode:    Not evaluated.
Installation in public mode:     Not evaluated.
Multi-instance installations:    Not evaluated.
Malformed path:                  Not evaluated.
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: 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: 19 minutes, 42 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_mastodon_ynh_PR173_complete.log

Sun Aug 11 21:45:11 UTC 2019
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE