FailedConsole Output

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

Mon May  4 13:05:01 UTC 2020
Wait for work starting...
.
Mon May  4 13:05:31 UTC 2020
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 (13:05:08).
Disable iptables rules.
Disable the network bridge.
Pick up the package which will be tested.
Test the package /home/yunohost.app/ssh_chroot_directories/autra/data/diaspora_ynh.
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 (13:05:20).
Working time: 5 seconds (13:05:25).
Debian GNU/Linux 9
yunohost: 
  repo: stable
  version: 3.7.1.3
yunohost-admin: 
  repo: stable
  version: 3.7.1.1
moulinette: 
  repo: stable
  version: 3.7.1.1
ssowat: 
  repo: stable
  version: 3.7.1.1
Connection to 10.1.4.2 closed.


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

    [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

 If you believe this linter returns false negative (warnings / errors which shouldn't happen),
 please report them on https://github.com/YunoHost/package_linter/issues

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

 [Loading App]


 [Manifest]


 [Misc File Checks]


 [Helpers Usage]


 [_Common.Sh Script]


 [Install Script]


 [Remove Script]


 [Upgrade Script]


 [Backup Script]


 [Restore Script]

☺  Not even a warning! Congratz and thank you for keeping that package up to date with good practices ! ♥
--- SUCCESS ---


>> Compare the syntax to the packaging template... [Test 2/5]

Looks like your package does not respect the template of the example app...
Please follow the template https://github.com/YunoHost/example_ynh


Do not use ynh_render_template in app scripts.
Use ynh_replace_string instead to keep clear all modifications made on files
Here the culprit:
scripts/install:144:ynh_render_template ../conf/diaspora.yml $final_path/diaspora/config/diaspora.yml

Looks like there isn't many comment separators in your script
Consider adding more separators to clarify the steps in your script
Here the culprit:
scripts/upgrade

Looks like there isn't many comment progression indicators in your script
Consider adding more indicators to help your users know the progression of the scripts
Here the culprit:
scripts/upgrade

--- FAIL ---


>> Installation on the root... [Test 3/5]
A LXC container is already running.
Working time: 2 seconds (13:05:30).
Working time: 4 minutes, 37 seconds (13:10:07).
Installation failed. (1)
Info: yunohost.app app_install - [1048.1] Installing the app 'diaspora'…
Info:  [....................] > Validating installation parameters...
Info:  [....................] > Saving app settings...
Info:  [....................] > Installing dependencies...
Warning: yunohost.hook <lambda> - [1048.1] 
Extracting templates from packages: 16%
Extracting templates from packages: 33%
Extracting templates from packages: 50%
Extracting templates from packages: 67%
Extracting templates from packages: 84%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [1048.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Info:  [....................] > Creating database...
Warning: yunohost.hook <lambda> - [1048.1] Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Warning: yunohost.hook <lambda> - [1048.1] Executing: /lib/systemd/systemd-sysv-install enable postgresql
Info:  [....................] > Creating user...
Info:  [....................] > Installing rvm...
Warning: yunohost.hook <lambda> - [1048.1] gpg: directory '/var/www/diaspora/.gnupg' created
Warning: yunohost.hook <lambda> - [1048.1] gpg: keybox '/var/www/diaspora/.gnupg/pubring.kbx' created
Warning: yunohost.hook <lambda> - [1048.1] gpg: key 105BD0E739499BDB: 8 signatures not checked due to missing keys
Warning: yunohost.hook <lambda> - [1048.1] gpg: /var/www/diaspora/.gnupg/trustdb.gpg: trustdb created
Warning: yunohost.hook <lambda> - [1048.1] gpg: key 105BD0E739499BDB: public key "Piotr Kuczynski <piotr.kuczynski@gmail.com>" imported
Warning: yunohost.hook <lambda> - [1048.1] gpg: key 3804BB82D39DC0E3: 108 signatures not checked due to missing keys
Warning: yunohost.hook <lambda> - [1048.1] gpg: key 3804BB82D39DC0E3: public key "Michal Papis (RVM signing) <mpapis@gmail.com>" imported
Warning: yunohost.hook <lambda> - [1048.1] gpg: Total number processed: 2
Warning: yunohost.hook <lambda> - [1048.1] gpg:               imported: 2
Warning: yunohost.hook <lambda> - [1048.1] gpg: no ultimately trusted keys found
Warning: yunohost.hook <lambda> - [1048.1] gpg: Signature made Wed 25 Mar 2020 09:58:42 PM UTC
Warning: yunohost.hook <lambda> - [1048.1] gpg:                using RSA key 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
Warning: yunohost.hook <lambda> - [1048.1] gpg: Good signature from "Piotr Kuczynski <piotr.kuczynski@gmail.com>" [unknown]
Warning: : This key is not certified with a trusted signature!
Warning: yunohost.hook <lambda> - [1048.1] gpg:          There is no indication that the signature belongs to the owner.
Warning: yunohost.hook <lambda> - [1048.1] Primary key fingerprint: 7D2B AF1C F37B 13E2 069D  6956 105B D0E7 3949 9BDB
Info:  [+++.................] > Installing ruby 2.4 (this can take a long time)...
Warning: yunohost.hook <lambda> - [1048.1] No binary rubies available for: debian/9/x86_64/ruby-2.4.9.
Warning: yunohost.hook <lambda> - [1048.1] Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Warning: yunohost.hook <lambda> - [1048.1] Error running '__rvm_make -j2',
Warning: yunohost.hook <lambda> - [1048.1] please read /var/www/diaspora/.rvm/log/1588597673_ruby-2.4.9/make.log
Warning: yunohost.hook <lambda> - [1048.1] There has been an error while running make. Halting the installation.
Error: yunohost.app app_install - [1048.1] Could not install diaspora: An error occurred inside the app installation script
Info: yunohost.log close - [1048.1] The operation 'Install the 'diaspora' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20200504-130535-app_install-diaspora --share' to get help
Warning: yunohost.app dump_app_log_extract_for_debugging - [1048.1] Here's an extract of the logs before the crash. It might help debugging the error:
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - + export TMPDIR=/var/www/diaspora/.gcc_tmp
Info: - [+++.................] > Installing ruby 2.4 (this can take a long time)...
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - + TMPDIR=/var/www/diaspora/.gcc_tmp
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - + sudo -u diaspora mkdir -p /var/www/diaspora/.gcc_tmp
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - + sudo -u diaspora TMPDIR=/var/www/diaspora/.gcc_tmp /var/www/diaspora/.rvm/bin/rvm install 2.4
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - Searching for binary rubies, this might take some time.
Warning: - No binary rubies available for: debian/9/x86_64/ruby-2.4.9.
Warning: - Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - Checking requirements for debian.
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - Requirements installation successful.
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - Installing Ruby from source to: /var/www/diaspora/.rvm/rubies/ruby-2.4.9, this may take a while depending on your cpu(s)...
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - ruby-2.4.9 - #downloading ruby-2.4.9, this may take a while depending on your connection...
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - ruby-2.4.9 - #extracting ruby-2.4.9 to /var/www/diaspora/.rvm/src/ruby-2.4.9.....
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - ruby-2.4.9 - #configuring..................................................................
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - ruby-2.4.9 - #post-configuration..
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - ruby-2.4.9 - #compiling.....
Warning: - Error running '__rvm_make -j2',
Info: yunohost.app dump_app_log_extract_for_debugging - [1048.1] DEBUG - + ynh_exit_properly
Warning: yunohost.app app_install - [1048.1] Removing the app following the installation failure…
Info:  [+...................] > Load settings
Info:  [#+..................] > Remove services
Error: yunohost cli - Unknown service 'diaspora.target'
Warning: yunohost.hook <lambda> - [1048.1] Unknown service 'diaspora.target'
Warning: yunohost.hook <lambda> - [1048.1] Failed to stop diaspora.target: Unit diaspora.target not loaded.
Info:  '/etc/systemd/system/diaspora_web.service' wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [1048.1] Failed to stop diaspora_sidekiq.service: Unit diaspora_sidekiq.service not loaded.
Warning: yunohost.hook <lambda> - [1048.1] Failed to stop diaspora_web.service: Unit diaspora_web.service not loaded.
Warning: yunohost.hook <lambda> - [1048.1] Failed to disable unit: No such file or directory
Info:  '/etc/systemd/system/diaspora_sidekiq.service' wasn't deleted because it doesn't exist.
Info:  '/etc/tmpfiles.d/diaspora.conf' wasn't deleted because it doesn't exist.
Info:  '/etc/systemd/system/diaspora.target' wasn't deleted because it doesn't exist.
Info:  '/run/diaspora' wasn't deleted because it doesn't exist.
Info:  [##+.................] > Remove database
Warning: yunohost.hook <lambda> - [1048.1] FATAL:  terminating connection due to administrator command
Warning: yunohost.hook <lambda> - [1048.1] server closed the connection unexpectedly
Warning: yunohost.hook <lambda> - [1048.1] 	This probably means the server terminated abnormally
Warning: yunohost.hook <lambda> - [1048.1] 	before or while processing the request.
Warning: yunohost.hook <lambda> - [1048.1] connection to server was lost
Info:  [###++++++++++++.....] > Remove app dependencies
Info:  [###############+....] > Remove nginx config
Info:  '/etc/nginx/conf.d/sous.domain.tld.d/diaspora.conf' wasn't deleted because it doesn't exist.
Info:  [################+...] > Remove logrotate config
Info:  [#################+..] > Remove diaspora user
Info:  [##################++] > Remove /var/www/diaspora
Error: yunohost cli - The operation 'Install the 'diaspora' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20200504-130535-app_install-diaspora --share' to get help

Try to access by url...
A LXC container is already running.
Working time: 1 second (13:10:11).
Working time: 6 seconds (13:10:17).
A LXC container is already running.
Working time: 1 second (13:10:18).
Working time: 5 seconds (13:10:24).
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 (13:10:26).
Working time: 5 seconds (13:10:31).
Deleting failed. (1)
Error: yunohost cli - Could not find the app 'diaspora' in the list of installed apps:
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 14 seconds (13:10:46).
Working time for this test: 5 minutes, 18 seconds (13:10:46).


>> Upgrade from the same version... [Test 4/5]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 5 seconds (13:10:51).
Working time for this test: 5 seconds (13:10:51).


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



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.
Actions and config-panel:        Not evaluated.
This package does not fully respect the template.
You should consider upgrade your package to respect the template of the example app.
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: 5 minutes, 47 seconds (13:10:56).
Disable iptables rules.
Disable the network bridge.
The complete log for this application was duplicated and is accessible at https://ci-apps-dev.yunohost.org/jenkins/logs/_home_yunohost.app_ssh_chroot_directories_autra_data_diaspora_ynh_complete.log

Mon May  4 13:11:01 UTC 2020
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE