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/jenkins2228427751477527259.sh
+ /home/CI_package_check/analyseCI.sh /home/yunohost.app/ssh_chroot_directories/autra/data/diaspora_ynh diaspora_ynh (autra)

Sun May  3 11:50:01 UTC 2020
Wait for work starting...
...........
Sun May  3 11:55: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: 8 seconds (11:55:12).
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: 11 seconds (11:55:25).
apt is already in use...
apt is already in use...
apt is already in use...
apt has released its lock.
Working time: 18 seconds (11:55:43).
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]

! Having only '--weight=1' for ynh_script_progression is useless... Either calibrate the weights with --time once, or don't put any --weight at all. 

 [Restore Script]

! Using ynh_script_progression --time should only be for calibrating the weight (c.f. --weight). It's not meant to be kept for production versions. 
! Having only '--weight=1' for ynh_script_progression is useless... Either calibrate the weights with --time once, or don't put any --weight at all. 
Only 3 warning remaining! You can do it!
--- 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:139: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/restore

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/remove

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/restore

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: 1 second (11:55:50).
Working time: 3 minutes, 54 seconds (11:59:44).
Installation failed. (1)
Info: yunohost.app app_install - [1356.1] Installing the app 'diaspora'…
Info:  [....................] > Validating installation parameters...
Info:  [....................] > Saving app settings...
Info:  [....................] > Installing dependencies...
Warning: yunohost.hook <lambda> - [1356.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: 83%
Extracting templates from packages: 100%
Warning: yunohost.hook <lambda> - [1356.1] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
Warning: yunohost.hook <lambda> - [1356.1] E: Sub-process /usr/bin/dpkg returned an error code (1)
Warning: yunohost.hook <lambda> - [1356.1] Unable to install dependencies
Warning: yunohost.hook <lambda> - [1356.1] cp: cannot stat '/home/CI_package_check/dev_CI/../package_check/Complete.log': No such file or directory
Error: yunohost.app app_install - [1356.1] Could not install diaspora: An error occurred inside the app installation script
Info: yunohost.log close - [1356.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 20200503-115556-app_install-diaspora --share' to get help
Warning: yunohost.app dump_app_log_extract_for_debugging - [1356.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 - [1356.1] DEBUG - update-alternatives: using /usr/share/icons/gnome/scalable/places/debian-swirl.svg to provide /usr/share/icons/gnome/scalable/places/start-here.svg (start-here.svg) in auto mode
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Setting up libgtk2.0-0:amd64 (2.24.31-2) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Setting up libgail18:amd64 (2.24.31-2) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Setting up libgail-common:amd64 (2.24.31-2) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Setting up libgvc6-plugins-gtk (2.38.0-17) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Setting up libgraphviz-dev (2.38.0-17) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Setting up libmagickcore-6.q16-dev:amd64 (8:6.9.7.4+dfsg-11+deb9u7) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Setting up libgtk2.0-bin (2.24.31-2) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Setting up libmagickwand-6.q16-dev:amd64 (8:6.9.7.4+dfsg-11+deb9u7) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Setting up libmagickwand-dev (8:6.9.7.4+dfsg-11+deb9u7) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Processing triggers for libc-bin (2.24-11+deb9u4) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Processing triggers for systemd (232-25+deb9u12) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.36.5-2+deb9u2) ...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Errors were encountered while processing:
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG -  atop
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - + apt-get check
Warning: - E: Sub-process /usr/bin/dpkg returned an error code (1)
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Reading package lists...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Building dependency tree...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - Reading state information...
Info: yunohost.app dump_app_log_extract_for_debugging - [1356.1] DEBUG - + ynh_die '--message=Unable to install dependencies'
Warning: yunohost.app app_install - [1356.1] Removing the app following the installation failure…
Error: yunohost cli - Unknown service 'diaspora.target'
Warning: yunohost.hook <lambda> - [1356.1] Unknown service 'diaspora.target'
Warning: yunohost.hook <lambda> - [1356.1] Failed to stop diaspora.target: Unit diaspora.target not loaded.
Warning: yunohost.hook <lambda> - [1356.1] Failed to stop diaspora_sidekiq.service: Unit diaspora_sidekiq.service not loaded.
Warning: yunohost.hook <lambda> - [1356.1] Failed to stop diaspora_web.service: Unit diaspora_web.service not loaded.
Warning: yunohost.hook <lambda> - [1356.1] Failed to disable unit: No such file or directory
Info:  '/etc/systemd/system/diaspora_web.service' wasn't deleted because it doesn't exist.
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.
Warning: yunohost.hook <lambda> - [1356.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [1356.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [1356.1] [WARN] Database  not found
Warning: yunohost.hook <lambda> - [1356.1] cat: /etc/yunohost/psql: No such file or directory
Warning: yunohost.hook <lambda> - [1356.1] [WARN] User  not found
Warning: yunohost.hook <lambda> - [1356.1] id: ‘diaspora’: no such user
Info:  '/etc/nginx/conf.d/sous.domain.tld.d/diaspora.conf' wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [1356.1] pkill: option requires an argument -- 'u'
Warning: yunohost.hook <lambda> - [1356.1] Usage:
Warning: yunohost.hook <lambda> - [1356.1]  pkill [options] <pattern>
Warning: yunohost.hook <lambda> - [1356.1] Options:
Warning: yunohost.hook <lambda> - [1356.1]  -<sig>, --signal <sig>    signal to send (either number or name)
Warning: yunohost.hook <lambda> - [1356.1]  -e, --echo                display what is killed
Warning: yunohost.hook <lambda> - [1356.1]  -c, --count               count of matching processes
Warning: yunohost.hook <lambda> - [1356.1]  -f, --full                use full process name to match
Warning: yunohost.hook <lambda> - [1356.1]  -g, --pgroup <PGID,...>   match listed process group IDs
Warning: yunohost.hook <lambda> - [1356.1]  -G, --group <GID,...>     match real group IDs
Warning: yunohost.hook <lambda> - [1356.1]  -i, --ignore-case         match case insensitively
Warning: yunohost.hook <lambda> - [1356.1]  -n, --newest              select most recently started
Warning: yunohost.hook <lambda> - [1356.1]  -o, --oldest              select least recently started
Warning: yunohost.hook <lambda> - [1356.1]  -P, --parent <PPID,...>   match only child processes of the given parent
Warning: yunohost.hook <lambda> - [1356.1]  -s, --session <SID,...>   match session IDs
Warning: yunohost.hook <lambda> - [1356.1]  -t, --terminal <tty,...>  match by controlling terminal
Warning: yunohost.hook <lambda> - [1356.1]  -u, --euid <ID,...>       match by effective IDs
Warning: yunohost.hook <lambda> - [1356.1]  -U, --uid <ID,...>        match by real IDs
Warning: yunohost.hook <lambda> - [1356.1]  -x, --exact               match exactly with the command name
Warning: yunohost.hook <lambda> - [1356.1]  -F, --pidfile <file>      read PIDs from file
Warning: yunohost.hook <lambda> - [1356.1]  -L, --logpidfile          fail if PID file is not locked
Warning: yunohost.hook <lambda> - [1356.1]  --ns <PID>                match the processes that belong to the same
Warning: yunohost.hook <lambda> - [1356.1]                            namespace as <pid>
Warning: yunohost.hook <lambda> - [1356.1]  --nslist <ns,...>         list which namespaces will be considered for
Warning: yunohost.hook <lambda> - [1356.1]                            the --ns option.
Warning: yunohost.hook <lambda> - [1356.1]                            Available namespaces: ipc, mnt, net, pid, user, uts
Warning: yunohost.hook <lambda> - [1356.1]  -h, --help     display this help and exit
Warning: yunohost.hook <lambda> - [1356.1]  -V, --version  output version information and exit
Warning: yunohost.hook <lambda> - [1356.1] For more details see pgrep(1).
Warning: yunohost.hook <lambda> - [1356.1] [WARN] The user diaspora was not found
Info:  '/var/www/diaspora' wasn't deleted because it doesn't exist.
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 20200503-115556-app_install-diaspora --share' to get help

Try to access by url...
A LXC container is already running.
Working time: 2 seconds (11:59:49).
Working time: 5 seconds (11:59:54).
A LXC container is already running.
Working time: 2 seconds (11:59:56).
Working time: 5 seconds (12:00:01).
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: 1 second (12:00:03).
Working time: 6 seconds (12:00:09).
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: 16 seconds (12:00:25).
Working time for this test: 4 minutes, 36 seconds (12:00:25).


>> 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 (12:00:30).
Working time for this test: 5 seconds (12:00:30).


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



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, 23 seconds (12:00:35).
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

Sun May  3 12:01:02 UTC 2020
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE