FailedConsole Output

Started by user kayou kayou
Building in workspace /var/lib/jenkins/jobs/gitlab_ynh (Kay0u)/workspace
[workspace] $ /bin/sh -xe /tmp/jenkins2997772821744787957.sh
+ /home/CI_package_check/analyseCI.sh /home/yunohost.app/ssh_chroot_directories/Kay0u/data/gitlab_ynh gitlab_ynh (Kay0u)

Tue Sep  3 18:51:54 UTC 2019
Wait for work starting...
.......
Tue Sep  3 18:55:24 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: 7 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: 11 seconds.
Working time: 1 second.
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/10]

    [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/gitlab_ynh_check

 [Loading App]

Some lines could not be parsed in script install. (That's probably not really critical)
? No closing quotation : echo "newuser = User.new({ \"email\"=>'$mailadmin', \"username\"=>'$admin', \"name\"=>'$admin', \"password\"=>'$rdmPass'}) 
? No closing quotation : ApplicationSetting.last.update_attributes(password_authentication_enabled_for_web: $use_web_account, signup_enabled: $use_web_account)" | gitlab-rails console 

 [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]


 [Remove Script]


 [Upgrade Script]

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

 [Backup Script]


 [Restore Script]

--- SUCCESS ---


>> Installation in a sub path... [Test 2/10]
A LXC container is already running.
Working time: 2 seconds.
Working time: 1 minute, 4 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [1277.1] Installing application gitlab…
Warning: yunohost.hook <lambda> - [1277.1] ./install: line 58: bc: command not found
Info:  [....................] > Validating installation parameters...
Warning: yunohost.hook <lambda> - [1277.1] [ERR] !!
Warning: yunohost.hook <lambda> - [1277.1]   gitlab's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [1277.1] !!
Warning: yunohost.hook <lambda> - [1277.1] Please find here an extract of the log before the crash:
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - + echo '! Helper used in legacy mode !'
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - > Validating installation parameters...'
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - + set -x
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - + config_path=/etc/gitlab
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - + final_path=/opt/gitlab
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - + test '!' -e /opt/gitlab
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - ++ grep 64
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - ++ uname -m
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   -'
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - + architecture=x86-64
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - ++ bc
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - +++ nproc
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - + unicorn_worker_processes=
Warning: - ./install: line 58: bc: command not found
Info: - > Validating installation parameters...
Warning: yunohost.hook <lambda> - [1277.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Info: yunohost.log close - [1277.1] The operation 'Install 'gitlab' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190903-185533-app_install-gitlab --share'
Info:  [+...................] > Loading installation settings...
Error: yunohost cli - Unknown service 'gitlab-runsvdir'
Warning: yunohost.hook <lambda> - [1277.1] ./remove: line 43: gitlab-ctl: command not found
Info:  [#+++++++............] > Stopping gitlab
Warning: yunohost.hook <lambda> - [1277.1] dpkg: error: dpkg status database is locked by another process
Info:  [########++++........] > Removing Gitlab
Info:  [############++......] > Removing dependencies
Warning: yunohost.hook <lambda> - [1277.1] E: Unable to locate package gitlab-ynh-deps
Warning: yunohost.hook <lambda> - [1277.1] [WARN] Avoid deleting .
Warning: yunohost.hook <lambda> - [1277.1] [WARN] Avoid deleting .
Info:  [##############+.....] > Removing app main directory
Info:  [###############+....] > Removing nginx web server configuration
Info:  /etc/nginx/conf.d/.d/gitlab.conf wasn't deleted because it doesn't exist.
Info:  /var/opt/gitlab wasn't deleted because it doesn't exist.
Info:  /var/log/gitlab wasn't deleted because it doesn't exist.
Info:  [####################] > Removal of gitlab completed
Error: yunohost cli - The operation 'Install 'gitlab' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190903-185533-app_install-gitlab --share'

Try to access by url...
Test url: sous.domain.tld/gitlab
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQvZ2l0bGFi
HTTP code: 200
Title of the page: YunoHost Portal
The connection attempt fall on the YunoHost portal.
Test url: sous.domain.tld/gitlab/
Real url: https://domain.tld/yunohost/sso/?r=aHR0cHM6Ly9zb3VzLmRvbWFpbi50bGQvZ2l0bGFiLw==
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.
Working time: 2 seconds.
Deleting failed. (1)
Error: yunohost cli - gitlab is not installed
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 25 seconds.
Working time for this test: 1 minute, 36 seconds.


>> Installation on the root... [Test 3/10]
Start the LXC container.
Create witness files...
Working time: 9 seconds.
Working time: 8 seconds.
Installation failed. (1)
Info: yunohost.app app_install - [910.1] Installing application gitlab…
Warning: yunohost.hook <lambda> - [910.1] ./install: line 58: bc: command not found
Warning: yunohost.hook <lambda> - [910.1] [ERR] !!
Info:  [....................] > Validating installation parameters...
Warning: yunohost.hook <lambda> - [910.1]   gitlab's script has encountered an error. Its execution was cancelled.
Warning: yunohost.hook <lambda> - [910.1] !!
Warning: yunohost.hook <lambda> - [910.1] Please find here an extract of the log before the crash:
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + trap ynh_exit_properly EXIT
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + domain=sous.domain.tld
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + path_url=/
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + is_public=1
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + use_web_account=0
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + admin=package_checker
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + app=gitlab
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + ynh_script_progression '--message=Validating installation parameters...' --weight=1
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + echo '! Helper used in legacy mode !'
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + set +x
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - > Validating installation parameters...'
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + set -x
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + config_path=/etc/gitlab
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + final_path=/opt/gitlab
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + test '!' -e /opt/gitlab
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - ++ uname -m
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - ++ grep 64
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   -'
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + architecture=x86-64
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - ++ bc
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - +++ nproc
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + unicorn_worker_processes=
Warning: yunohost.hook <lambda> - [910.1] [DEBUG]: DEBUG   - + ynh_exit_properly
Info: yunohost.log close - [910.1] The operation 'Install 'gitlab' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190903-185717-app_install-gitlab --share'
Info:  [+...................] > Loading installation settings...
Error: yunohost cli - Unknown service 'gitlab-runsvdir'
Warning: yunohost.hook <lambda> - [910.1] ./remove: line 43: gitlab-ctl: command not found
Info:  [#+++++++............] > Stopping gitlab
Warning: yunohost.hook <lambda> - [910.1] dpkg: warning: ignoring request to remove gitlab-ce which isn't installed
Info:  [########++++........] > Removing Gitlab
Info:  [############++......] > Removing dependencies
Warning: yunohost.hook <lambda> - [910.1] E: Unable to locate package gitlab-ynh-deps
Warning: yunohost.hook <lambda> - [910.1] [WARN] Avoid deleting .
Info:  [##############+.....] > Removing app main directory
Warning: yunohost.hook <lambda> - [910.1] [WARN] Avoid deleting .
Info:  [###############+....] > Removing nginx web server configuration
Info:  /etc/nginx/conf.d/.d/gitlab.conf wasn't deleted because it doesn't exist.
Warning: yunohost.hook <lambda> - [910.1] swapoff: /swap_gitlab: swapoff failed: Invalid argument
Info:  /var/opt/gitlab wasn't deleted because it doesn't exist.
Info:  /var/log/gitlab wasn't deleted because it doesn't exist.
Info:  [####################] > Removal of gitlab completed
Error: yunohost cli - The operation 'Install 'gitlab' application' has failed! To get help, please share the full log of this operation using the command 'yunohost log display 20190903-185717-app_install-gitlab --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: 1 second.
Working time: 1 second.
Deleting failed. (1)
Error: yunohost cli - gitlab is not installed
--- FAIL ---
Stop the LXC container
Restore the previous snapshot.
Working time: 27 seconds.
Working time for this test: 50 seconds.


>> Upgrade from the same version... [Test 4/10]
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 private mode... [Test 5/10]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 5 seconds.
Working time for this test: 5 seconds.


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


>> Port already used... [Test 7/10]
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 8/10]
All installs have failed, impossible to perform this test...
Restore the previous snapshot.
Working time: 5 seconds.
Working time for this test: 5 seconds.


>> Change URL... [Test 9/10]
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:      FAIL
Deleting from a sub path:        FAIL
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: 3 minutes, 11 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_Kay0u_data_gitlab_ynh_complete.log

Tue Sep  3 18:59:04 UTC 2019
Test finished.
Build step 'Execute shell' marked build as failure
Finished: FAILURE