YunoHost-Apps / gitlab_ynh

GitLab package for YunoHost
https://about.gitlab.com
GNU Affero General Public License v3.0
19 stars 11 forks source link

Install fail with `Error executing action `create` on resource 'sysctl[kernel.shmmax]'` #66

Closed rissson closed 4 years ago

rissson commented 5 years ago

Hi, the install fails on Yunohost 3.6.4.3. Here are the logs :

2019-07-30 11:14:45,415: DEBUG -       - update content in file /opt/gitlab/etc/gitaly/env/TZ from none to 983a95
2019-07-30 11:14:45,417: DEBUG -       --- /opt/gitlab/etc/gitaly/env/TZ   2019-07-30 11:14:45.364434576 +0200
2019-07-30 11:14:45,418: DEBUG -       +++ /opt/gitlab/etc/gitaly/env/.chef-TZ20190730-21911-x36bqp    2019-07-30 11:14:45.364434576 +0200
2019-07-30 11:14:45,418: DEBUG -       @@ -1 +1,2 @@
2019-07-30 11:14:45,418: DEBUG -       +:/etc/localtime
2019-07-30 11:14:45,418: DEBUG -     * file[/opt/gitlab/etc/gitaly/env/PYTHONPATH] action create
2019-07-30 11:14:45,418: DEBUG -       - create new file /opt/gitlab/etc/gitaly/env/PYTHONPATH
2019-07-30 11:14:45,418: DEBUG -       - update content in file /opt/gitlab/etc/gitaly/env/PYTHONPATH from none to 83b536
2019-07-30 11:14:45,418: DEBUG -       --- /opt/gitlab/etc/gitaly/env/PYTHONPATH   2019-07-30 11:14:45.368434783 +0200
2019-07-30 11:14:45,418: DEBUG -       +++ /opt/gitlab/etc/gitaly/env/.chef-PYTHONPATH20190730-21911-4ybega    2019-07-30 11:14:45.364434576 +0200
2019-07-30 11:14:45,418: DEBUG -       @@ -1 +1,2 @@
2019-07-30 11:14:45,418: DEBUG -       +/opt/gitlab/embedded/lib/python3.7/site-packages
2019-07-30 11:14:45,419: DEBUG -     * file[/opt/gitlab/etc/gitaly/env/ICU_DATA] action create
2019-07-30 11:14:45,419: DEBUG -       - create new file /opt/gitlab/etc/gitaly/env/ICU_DATA
2019-07-30 11:14:45,419: DEBUG -       - update content in file /opt/gitlab/etc/gitaly/env/ICU_DATA from none to a04260
2019-07-30 11:14:45,419: DEBUG -       --- /opt/gitlab/etc/gitaly/env/ICU_DATA 2019-07-30 11:14:45.372434992 +0200
2019-07-30 11:14:45,419: DEBUG -       +++ /opt/gitlab/etc/gitaly/env/.chef-ICU_DATA20190730-21911-rtytz3  2019-07-30 11:14:45.368434783 +0200
2019-07-30 11:14:45,419: DEBUG -       @@ -1 +1,2 @@
2019-07-30 11:14:45,419: DEBUG -       +/opt/gitlab/embedded/share/icu/current
2019-07-30 11:14:45,419: DEBUG -     * file[/opt/gitlab/etc/gitaly/env/SSL_CERT_DIR] action create
2019-07-30 11:14:45,419: DEBUG -       - create new file /opt/gitlab/etc/gitaly/env/SSL_CERT_DIR
2019-07-30 11:14:45,419: DEBUG -       - update content in file /opt/gitlab/etc/gitaly/env/SSL_CERT_DIR from none to 4f45cf
2019-07-30 11:14:45,420: DEBUG -       --- /opt/gitlab/etc/gitaly/env/SSL_CERT_DIR 2019-07-30 11:14:45.376435200 +0200
2019-07-30 11:14:45,420: DEBUG -       +++ /opt/gitlab/etc/gitaly/env/.chef-SSL_CERT_DIR20190730-21911-3l5y7i  2019-07-30 11:14:45.372434992 +0200
2019-07-30 11:14:45,420: DEBUG -       @@ -1 +1,2 @@
2019-07-30 11:14:45,420: DEBUG -       +/opt/gitlab/embedded/ssl/certs/
2019-07-30 11:14:45,420: DEBUG -     * file[/opt/gitlab/etc/gitaly/env/GITALY_PID_FILE] action create
2019-07-30 11:14:45,420: DEBUG -       - create new file /opt/gitlab/etc/gitaly/env/GITALY_PID_FILE
2019-07-30 11:14:45,420: DEBUG -       - update content in file /opt/gitlab/etc/gitaly/env/GITALY_PID_FILE from none to e82748
2019-07-30 11:14:45,420: DEBUG -       --- /opt/gitlab/etc/gitaly/env/GITALY_PID_FILE  2019-07-30 11:14:45.376435200 +0200
2019-07-30 11:14:45,420: DEBUG -       +++ /opt/gitlab/etc/gitaly/env/.chef-GITALY_PID_FILE20190730-21911-15vnpcd  2019-07-30 11:14:45.376435200 +0200
2019-07-30 11:14:45,420: DEBUG -       @@ -1 +1,2 @@
2019-07-30 11:14:45,420: DEBUG -       +/var/opt/gitlab/gitaly/gitaly.pid
2019-07-30 11:14:45,421: DEBUG -     * file[/opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING] action create
2019-07-30 11:14:45,421: DEBUG -       - create new file /opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING
2019-07-30 11:14:45,421: DEBUG -       - update content in file /opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING from none to b5bea4
2019-07-30 11:14:45,421: DEBUG -       --- /opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING 2019-07-30 11:14:45.380435407 +0200
2019-07-30 11:14:45,421: DEBUG -       +++ /opt/gitlab/etc/gitaly/env/.chef-WRAPPER_JSON_LOGGING20190730-21911-4wzs4w  2019-07-30 11:14:45.380435407 +0200
2019-07-30 11:14:45,421: DEBUG -       @@ -1 +1,2 @@
2019-07-30 11:14:45,421: DEBUG -       +true
2019-07-30 11:14:45,421: DEBUG - 
2019-07-30 11:14:45,421: DEBUG -   * template[Create Gitaly config.toml] action create
2019-07-30 11:14:45,421: DEBUG -     - create new file /var/opt/gitlab/gitaly/config.toml
2019-07-30 11:14:45,421: DEBUG -     - update content in file /var/opt/gitlab/gitaly/config.toml from none to 2be742
2019-07-30 11:14:45,422: DEBUG -     --- /var/opt/gitlab/gitaly/config.toml    2019-07-30 11:14:45.388435824 +0200
2019-07-30 11:14:45,422: DEBUG -     +++ /var/opt/gitlab/gitaly/.chef-config20190730-21911-1fxmko8.toml    2019-07-30 11:14:45.388435824 +0200
2019-07-30 11:14:45,422: DEBUG -     @@ -1 +1,33 @@
2019-07-30 11:14:45,422: DEBUG -     +# Gitaly configuration file
2019-07-30 11:14:45,422: DEBUG -     +# This file is managed by gitlab-ctl. Manual changes will be
2019-07-30 11:14:45,422: DEBUG -     +# erased! To change the contents below, edit /etc/gitlab/gitlab.rb
2019-07-30 11:14:45,422: DEBUG -     +# and run:
2019-07-30 11:14:45,422: DEBUG -     +# sudo gitlab-ctl reconfigure
2019-07-30 11:14:45,422: DEBUG -     +
2019-07-30 11:14:45,422: DEBUG -     +socket_path = '/var/opt/gitlab/gitaly/gitaly.socket'
2019-07-30 11:14:45,423: DEBUG -     +bin_dir = '/opt/gitlab/embedded/bin'
2019-07-30 11:14:45,423: DEBUG -     +
2019-07-30 11:14:45,423: DEBUG -     +
2019-07-30 11:14:45,423: DEBUG -     +
2019-07-30 11:14:45,423: DEBUG -     +# Optional: export metrics via Prometheus
2019-07-30 11:14:45,423: DEBUG -     +prometheus_listen_addr = 'localhost:9236'
2019-07-30 11:14:45,423: DEBUG -     +
2019-07-30 11:14:45,423: DEBUG -     +[[storage]]
2019-07-30 11:14:45,423: DEBUG -     +name = 'default'
2019-07-30 11:14:45,423: DEBUG -     +path = '/var/opt/gitlab/git-data/repositories'
2019-07-30 11:14:45,432: DEBUG -     +
2019-07-30 11:14:45,432: DEBUG -     +[logging]
2019-07-30 11:14:45,432: DEBUG -     +format = 'json'
2019-07-30 11:14:45,432: DEBUG -     +
2019-07-30 11:14:45,432: DEBUG -     +
2019-07-30 11:14:45,432: DEBUG -     +[auth]
2019-07-30 11:14:45,433: DEBUG -     +
2019-07-30 11:14:45,433: DEBUG -     +[git]
2019-07-30 11:14:45,433: DEBUG -     +
2019-07-30 11:14:45,433: DEBUG -     +
2019-07-30 11:14:45,433: DEBUG -     +[gitaly-ruby]
2019-07-30 11:14:45,433: DEBUG -     +dir = "/opt/gitlab/embedded/service/gitaly-ruby"
2019-07-30 11:14:45,433: DEBUG -     +
2019-07-30 11:14:45,433: DEBUG -     +[gitlab-shell]
2019-07-30 11:14:45,433: DEBUG -     +dir = "/opt/gitlab/embedded/service/gitlab-shell"
2019-07-30 11:14:45,433: DEBUG -     - change mode from '' to '0640'
2019-07-30 11:14:45,433: DEBUG -     - change owner from '' to 'root'
2019-07-30 11:14:45,434: DEBUG -     - change group from '' to 'git'
2019-07-30 11:14:45,434: DEBUG - Recipe: <Dynamically Defined Resource>
2019-07-30 11:14:45,434: DEBUG -   * service[gitaly] action nothing (skipped due to action :nothing)
2019-07-30 11:14:45,434: DEBUG - Recipe: gitaly::enable
2019-07-30 11:14:45,434: DEBUG -   * runit_service[gitaly] action enable
2019-07-30 11:14:45,434: DEBUG -     * ruby_block[restart_service] action nothing (skipped due to action :nothing)
2019-07-30 11:14:45,434: DEBUG -     * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
2019-07-30 11:14:45,434: DEBUG -     * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
2019-07-30 11:14:45,434: DEBUG -     * directory[/opt/gitlab/sv/gitaly] action create
2019-07-30 11:14:45,434: DEBUG -       - create new directory /opt/gitlab/sv/gitaly
2019-07-30 11:14:45,434: DEBUG -       - change mode from '' to '0755'
2019-07-30 11:14:45,435: DEBUG -       - change owner from '' to 'root'
2019-07-30 11:14:45,435: DEBUG -       - change group from '' to 'root'
2019-07-30 11:14:45,535: DEBUG -     * template[/opt/gitlab/sv/gitaly/run] action create
2019-07-30 11:14:45,536: DEBUG -       - create new file /opt/gitlab/sv/gitaly/run
2019-07-30 11:14:45,536: DEBUG -       - update content in file /opt/gitlab/sv/gitaly/run from none to 95d196
2019-07-30 11:14:45,536: DEBUG -       --- /opt/gitlab/sv/gitaly/run   2019-07-30 11:14:45.428437905 +0200
2019-07-30 11:14:45,536: DEBUG -       +++ /opt/gitlab/sv/gitaly/.chef-run20190730-21911-px3lg6    2019-07-30 11:14:45.428437905 +0200
2019-07-30 11:14:45,536: DEBUG -       @@ -1 +1,15 @@
2019-07-30 11:14:45,536: DEBUG -       +#!/bin/sh
2019-07-30 11:14:45,536: DEBUG -       +set -e # fail on errors
2019-07-30 11:14:45,537: DEBUG -       +
2019-07-30 11:14:45,537: DEBUG -       +# Redirect stderr -> stdout
2019-07-30 11:14:45,537: DEBUG -       +exec 2>&1
2019-07-30 11:14:45,537: DEBUG -       +
2019-07-30 11:14:45,537: DEBUG -       +
2019-07-30 11:14:45,537: DEBUG -       +
2019-07-30 11:14:45,537: DEBUG -       +cd /var/opt/gitlab/gitaly
2019-07-30 11:14:45,537: DEBUG -       +
2019-07-30 11:14:45,538: DEBUG -       +exec chpst -e /opt/gitlab/etc/gitaly/env -P \
2019-07-30 11:14:45,538: DEBUG -       +  -U git:git \
2019-07-30 11:14:45,538: DEBUG -       +  -u git:git \
2019-07-30 11:14:45,538: DEBUG -       +  /opt/gitlab/embedded/bin/gitaly-wrapper /opt/gitlab/embedded/bin/gitaly /var/opt/gitlab/gitaly/config.toml
2019-07-30 11:14:45,538: DEBUG -       - change mode from '' to '0755'
2019-07-30 11:14:45,538: DEBUG -       - change owner from '' to 'root'
2019-07-30 11:14:45,538: DEBUG -       - change group from '' to 'root'
2019-07-30 11:14:45,538: DEBUG -     * directory[/opt/gitlab/sv/gitaly/log] action create
2019-07-30 11:14:45,539: DEBUG -       - create new directory /opt/gitlab/sv/gitaly/log
2019-07-30 11:14:45,539: DEBUG -       - change mode from '' to '0755'
2019-07-30 11:14:45,539: DEBUG -       - change owner from '' to 'root'
2019-07-30 11:14:45,539: DEBUG -       - change group from '' to 'root'
2019-07-30 11:14:45,539: DEBUG -     * directory[/opt/gitlab/sv/gitaly/log/main] action create
2019-07-30 11:14:45,539: DEBUG -       - create new directory /opt/gitlab/sv/gitaly/log/main
2019-07-30 11:14:45,542: DEBUG -       - change mode from '' to '0755'
2019-07-30 11:14:45,542: DEBUG -       - change owner from '' to 'root'
2019-07-30 11:14:45,542: DEBUG -       - change group from '' to 'root'
2019-07-30 11:14:45,542: DEBUG -     * template[/opt/gitlab/sv/gitaly/log/run] action create
2019-07-30 11:14:45,543: DEBUG -       - create new file /opt/gitlab/sv/gitaly/log/run
2019-07-30 11:14:45,543: DEBUG -       - update content in file /opt/gitlab/sv/gitaly/log/run from none to fa6dcc
2019-07-30 11:14:45,543: DEBUG -       --- /opt/gitlab/sv/gitaly/log/run   2019-07-30 11:14:45.448438945 +0200
2019-07-30 11:14:45,543: DEBUG -       +++ /opt/gitlab/sv/gitaly/log/.chef-run20190730-21911-gw2cgk    2019-07-30 11:14:45.448438945 +0200
2019-07-30 11:14:45,543: DEBUG -       @@ -1 +1,3 @@
2019-07-30 11:14:45,543: DEBUG -       +#!/bin/sh
2019-07-30 11:14:45,543: DEBUG -       +exec svlogd /var/log/gitlab/gitaly
2019-07-30 11:14:45,543: DEBUG -       - change mode from '' to '0755'
2019-07-30 11:14:45,543: DEBUG -       - change owner from '' to 'root'
2019-07-30 11:14:45,544: DEBUG -       - change group from '' to 'root'
2019-07-30 11:14:45,544: DEBUG -     * template[/var/log/gitlab/gitaly/config] action create
2019-07-30 11:14:45,544: DEBUG -       - create new file /var/log/gitlab/gitaly/config
2019-07-30 11:14:45,544: DEBUG -       - update content in file /var/log/gitlab/gitaly/config from none to 623c00
2019-07-30 11:14:45,544: DEBUG -       --- /var/log/gitlab/gitaly/config   2019-07-30 11:14:45.460439570 +0200
2019-07-30 11:14:45,544: DEBUG -       +++ /var/log/gitlab/gitaly/.chef-config20190730-21911-1n4h40q   2019-07-30 11:14:45.460439570 +0200
2019-07-30 11:14:45,544: DEBUG -       @@ -1 +1,7 @@
2019-07-30 11:14:45,544: DEBUG -       +s209715200
2019-07-30 11:14:45,550: DEBUG -       +n30
2019-07-30 11:14:45,551: DEBUG -       +t86400
2019-07-30 11:14:45,551: DEBUG -       +!gzip
2019-07-30 11:14:45,551: DEBUG -       +
2019-07-30 11:14:45,551: DEBUG -       +
2019-07-30 11:14:45,551: DEBUG -       - change mode from '' to '0644'
2019-07-30 11:14:45,551: DEBUG -       - change owner from '' to 'root'
2019-07-30 11:14:45,551: DEBUG -       - change group from '' to 'root'
2019-07-30 11:14:45,552: DEBUG -     * directory[/opt/gitlab/sv/gitaly/env] action create
2019-07-30 11:14:45,552: DEBUG -       - create new directory /opt/gitlab/sv/gitaly/env
2019-07-30 11:14:45,552: DEBUG -       - change mode from '' to '0755'
2019-07-30 11:14:45,552: DEBUG -       - change owner from '' to 'root'
2019-07-30 11:14:45,552: DEBUG -       - change group from '' to 'root'
2019-07-30 11:14:45,552: DEBUG -     * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if)
2019-07-30 11:14:45,552: DEBUG -     * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if)
2019-07-30 11:14:45,552: DEBUG -     * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if)
2019-07-30 11:14:45,553: DEBUG -     * directory[/opt/gitlab/sv/gitaly/control] action create
2019-07-30 11:14:45,553: DEBUG -       - create new directory /opt/gitlab/sv/gitaly/control
2019-07-30 11:14:45,553: DEBUG -       - change mode from '' to '0755'
2019-07-30 11:14:45,553: DEBUG -       - change owner from '' to 'root'
2019-07-30 11:14:45,553: DEBUG -       - change group from '' to 'root'
2019-07-30 11:14:45,553: DEBUG -     * link[/opt/gitlab/init/gitaly] action create
2019-07-30 11:14:45,553: DEBUG -       - create symlink at /opt/gitlab/init/gitaly to /opt/gitlab/embedded/bin/sv
2019-07-30 11:14:45,553: DEBUG -     * file[/opt/gitlab/sv/gitaly/down] action delete (up to date)
2019-07-30 11:14:45,553: DEBUG -     * ruby_block[restart_service] action run (skipped due to only_if)
2019-07-30 11:14:45,553: DEBUG -     * ruby_block[restart_log_service] action create
2019-07-30 11:14:45,554: DEBUG -       * ruby_block[restart_service] action nothing (skipped due to action :nothing)
2019-07-30 11:14:45,554: DEBUG -       * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
2019-07-30 11:14:45,554: DEBUG -       * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
2019-07-30 11:14:45,554: DEBUG -       * directory[/opt/gitlab/sv/gitaly] action create (up to date)
2019-07-30 11:14:45,554: DEBUG -       * template[/opt/gitlab/sv/gitaly/run] action create (up to date)
2019-07-30 11:14:45,554: DEBUG -       * directory[/opt/gitlab/sv/gitaly/log] action create (up to date)
2019-07-30 11:14:45,554: DEBUG -       * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date)
2019-07-30 11:14:45,554: DEBUG -       * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date)
2019-07-30 11:14:45,655: DEBUG -       * template[/var/log/gitlab/gitaly/config] action create (up to date)
2019-07-30 11:14:45,656: DEBUG -       * directory[/opt/gitlab/sv/gitaly/env] action create (up to date)
2019-07-30 11:14:45,656: DEBUG -       * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if)
2019-07-30 11:14:45,657: DEBUG -       * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if)
2019-07-30 11:14:45,657: DEBUG -       * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if)
2019-07-30 11:14:45,657: DEBUG -       * directory[/opt/gitlab/sv/gitaly/control] action create (up to date)
2019-07-30 11:14:45,657: DEBUG -       * link[/opt/gitlab/init/gitaly] action create (up to date)
2019-07-30 11:14:45,657: DEBUG -       * file[/opt/gitlab/sv/gitaly/down] action delete (up to date)
2019-07-30 11:14:45,657: DEBUG -       * directory[/opt/gitlab/service] action create (up to date)
2019-07-30 11:14:45,657: DEBUG -       * link[/opt/gitlab/service/gitaly] action create
2019-07-30 11:14:45,658: DEBUG -         - create symlink at /opt/gitlab/service/gitaly to /opt/gitlab/sv/gitaly
2019-07-30 11:14:47,663: DEBUG -       * ruby_block[wait for gitaly service socket] action run
2019-07-30 11:14:47,664: DEBUG -         - execute the ruby block wait for gitaly service socket
2019-07-30 11:14:48,968: DEBUG -       - execute the ruby block restart_log_service
2019-07-30 11:14:49,069: DEBUG -     * ruby_block[reload_log_service] action create
2019-07-30 11:14:49,070: DEBUG -       * ruby_block[restart_service] action nothing (skipped due to action :nothing)
2019-07-30 11:14:49,070: DEBUG -       * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
2019-07-30 11:14:49,070: DEBUG -       * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
2019-07-30 11:14:49,070: DEBUG -       * directory[/opt/gitlab/sv/gitaly] action create (up to date)
2019-07-30 11:14:49,070: DEBUG -       * template[/opt/gitlab/sv/gitaly/run] action create (up to date)
2019-07-30 11:14:49,070: DEBUG -       * directory[/opt/gitlab/sv/gitaly/log] action create (up to date)
2019-07-30 11:14:49,070: DEBUG -       * directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date)
2019-07-30 11:14:49,171: DEBUG -       * template[/opt/gitlab/sv/gitaly/log/run] action create (up to date)
2019-07-30 11:14:49,171: DEBUG -       * template[/var/log/gitlab/gitaly/config] action create (up to date)
2019-07-30 11:14:49,171: DEBUG -       * directory[/opt/gitlab/sv/gitaly/env] action create (up to date)
2019-07-30 11:14:49,171: DEBUG -       * ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if)
2019-07-30 11:14:49,171: DEBUG -       * template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if)
2019-07-30 11:14:49,171: DEBUG -       * template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if)
2019-07-30 11:14:49,172: DEBUG -       * directory[/opt/gitlab/sv/gitaly/control] action create (up to date)
2019-07-30 11:14:49,172: DEBUG -       * link[/opt/gitlab/init/gitaly] action create (up to date)
2019-07-30 11:14:49,172: DEBUG -       * file[/opt/gitlab/sv/gitaly/down] action delete (up to date)
2019-07-30 11:14:49,172: DEBUG -       * directory[/opt/gitlab/service] action create (up to date)
2019-07-30 11:14:49,172: DEBUG -       * link[/opt/gitlab/service/gitaly] action create (up to date)
2019-07-30 11:14:49,172: DEBUG -       * ruby_block[wait for gitaly service socket] action run (skipped due to not_if)
2019-07-30 11:14:50,576: DEBUG -       - execute the ruby block reload_log_service
2019-07-30 11:14:50,577: DEBUG -     * directory[/opt/gitlab/service] action create (up to date)
2019-07-30 11:14:50,577: DEBUG -     * link[/opt/gitlab/service/gitaly] action create (up to date)
2019-07-30 11:14:50,577: DEBUG -     * ruby_block[wait for gitaly service socket] action run (skipped due to not_if)
2019-07-30 11:14:50,577: DEBUG - 
2019-07-30 11:14:50,577: DEBUG -   * execute[/opt/gitlab/bin/gitlab-ctl start gitaly] action run
2019-07-30 11:14:50,577: DEBUG -     [execute] /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2019-07-30 11:14:53,785: DEBUG -               ok: run: gitaly: (pid 22325) 7s
2019-07-30 11:14:53,785: DEBUG -     - execute /opt/gitlab/bin/gitlab-ctl start gitaly
2019-07-30 11:14:53,785: DEBUG -   * file[/var/opt/gitlab/gitaly/VERSION] action create
2019-07-30 11:14:53,785: DEBUG -     - create new file /var/opt/gitlab/gitaly/VERSION
2019-07-30 11:14:53,785: DEBUG -     - update content in file /var/opt/gitlab/gitaly/VERSION from none to 76ba19
2019-07-30 11:14:53,785: DEBUG -     --- /var/opt/gitlab/gitaly/VERSION    2019-07-30 11:14:53.728844279 +0200
2019-07-30 11:14:53,785: DEBUG -     +++ /var/opt/gitlab/gitaly/.chef-VERSION20190730-21911-dwrztn 2019-07-30 11:14:53.728844279 +0200
2019-07-30 11:14:53,786: DEBUG -     @@ -1 +1,2 @@
2019-07-30 11:14:53,786: DEBUG -     +Gitaly, version 1.47.0
2019-07-30 11:14:53,786: DEBUG - Recipe: postgresql::user
2019-07-30 11:14:53,786: DEBUG -   * account[Postgresql user and group] action create
2019-07-30 11:14:53,786: DEBUG -     * group[Postgresql user and group] action create (up to date)
2019-07-30 11:14:53,786: DEBUG -     * linux_user[Postgresql user and group] action create (up to date)
2019-07-30 11:14:53,786: DEBUG -      (up to date)
2019-07-30 11:14:53,786: DEBUG - Recipe: postgresql::enable
2019-07-30 11:14:53,786: DEBUG -   * directory[/var/opt/gitlab/postgresql] action create
2019-07-30 11:14:53,786: DEBUG -     - create new directory /var/opt/gitlab/postgresql
2019-07-30 11:14:53,786: DEBUG -     - change mode from '' to '0755'
2019-07-30 11:14:53,787: DEBUG -     - change owner from '' to 'gitlab-psql'
2019-07-30 11:14:53,887: DEBUG -   * directory[/var/opt/gitlab/postgresql/data] action create
2019-07-30 11:14:53,888: DEBUG -     - create new directory /var/opt/gitlab/postgresql/data
2019-07-30 11:14:53,888: DEBUG -     - change mode from '' to '0700'
2019-07-30 11:14:53,888: DEBUG -     - change owner from '' to 'gitlab-psql'
2019-07-30 11:14:53,888: DEBUG -   * directory[/var/log/gitlab/postgresql] action create
2019-07-30 11:14:53,888: DEBUG -     - create new directory /var/log/gitlab/postgresql
2019-07-30 11:14:53,888: DEBUG -     - change mode from '' to '0700'
2019-07-30 11:14:53,889: DEBUG -     - change owner from '' to 'gitlab-psql'
2019-07-30 11:14:53,889: DEBUG -   * link[/var/opt/gitlab/postgresql/data] action create (skipped due to not_if)
2019-07-30 11:14:53,889: DEBUG -   * file[/var/opt/gitlab/postgresql/.profile] action create
2019-07-30 11:14:53,889: DEBUG -     - create new file /var/opt/gitlab/postgresql/.profile
2019-07-30 11:14:53,889: DEBUG -     - update content in file /var/opt/gitlab/postgresql/.profile from none to 3b0387
2019-07-30 11:14:53,889: DEBUG -     --- /var/opt/gitlab/postgresql/.profile   2019-07-30 11:14:53.816848571 +0200
2019-07-30 11:14:53,890: DEBUG -     +++ /var/opt/gitlab/postgresql/.chef-.profile20190730-21911-1b0yfg2.profile   2019-07-30 11:14:53.816848571 +0200
2019-07-30 11:14:53,890: DEBUG -     @@ -1 +1,2 @@
2019-07-30 11:14:53,890: DEBUG -     +PATH=/opt/gitlab/embedded/bin:/opt/gitlab/bin:$PATH
2019-07-30 11:14:53,890: DEBUG -     - change mode from '' to '0600'
2019-07-30 11:14:53,890: DEBUG -     - change owner from '' to 'gitlab-psql'
2019-07-30 11:14:53,992: DEBUG -   * sysctl[kernel.shmmax] action create
2019-07-30 11:14:53,992: DEBUG -     * directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date)
2019-07-30 11:14:53,992: DEBUG -     * file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create
2019-07-30 11:14:53,993: DEBUG -       - create new file /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf
2019-07-30 11:14:53,993: DEBUG -       - update content in file /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf from none to 75a195
2019-07-30 11:14:53,993: DEBUG -       --- /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf   2019-07-30 11:14:53.924853839 +0200
2019-07-30 11:14:53,993: DEBUG -       +++ /opt/gitlab/embedded/etc/.chef-90-omnibus-gitlab-kernel20190730-21911-lfto3s.shmmax.conf    2019-07-30 11:14:53.924853839 +0200
2019-07-30 11:14:53,993: DEBUG -       @@ -1 +1,2 @@
2019-07-30 11:14:53,993: DEBUG -       +kernel.shmmax = 17179869184
2019-07-30 11:14:54,094: DEBUG -     * execute[load sysctl conf kernel.shmmax] action run
2019-07-30 11:14:54,094: DEBUG -       [execute] * Applying /etc/sysctl.d/30-postgresql-shm.conf ...
2019-07-30 11:14:54,095: DEBUG -                 * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
2019-07-30 11:14:54,095: DEBUG -                 sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf": No such file or directory
2019-07-30 11:14:54,095: DEBUG -                 * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
2019-07-30 11:14:54,095: DEBUG -                 sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf": No such file or directory
2019-07-30 11:14:54,096: DEBUG -                 * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
2019-07-30 11:14:54,096: DEBUG -                 kernel.shmmax = 17179869184
2019-07-30 11:14:54,096: DEBUG -                 * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
2019-07-30 11:14:54,096: DEBUG -                 sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf": No such file or directory
2019-07-30 11:14:54,096: DEBUG -                 * Applying /etc/sysctl.d/99-sysctl.conf ...
2019-07-30 11:14:54,096: DEBUG -                 * Applying /etc/sysctl.conf ...
2019-07-30 11:14:54,096: DEBUG -       
2019-07-30 11:14:54,097: DEBUG -       ================================================================================
2019-07-30 11:14:54,097: DEBUG -       Error executing action `run` on resource 'execute[load sysctl conf kernel.shmmax]'
2019-07-30 11:14:54,097: DEBUG -       ================================================================================
2019-07-30 11:14:54,097: DEBUG - 
2019-07-30 11:14:54,097: DEBUG -       Mixlib::ShellOut::ShellCommandFailed
2019-07-30 11:14:54,097: DEBUG -       ------------------------------------
2019-07-30 11:14:54,098: DEBUG -       Expected process to exit with [0], but received '255'
2019-07-30 11:14:54,098: DEBUG -       ---- Begin output of sysctl -e --system ----
2019-07-30 11:14:54,098: DEBUG -       STDOUT: * Applying /etc/sysctl.d/30-postgresql-shm.conf ...
2019-07-30 11:14:54,098: DEBUG -       * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
2019-07-30 11:14:54,098: DEBUG -       * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
2019-07-30 11:14:54,098: DEBUG -       * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
2019-07-30 11:14:54,098: DEBUG -       kernel.shmmax = 17179869184
2019-07-30 11:14:54,099: DEBUG -       * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
2019-07-30 11:14:54,099: DEBUG -       * Applying /etc/sysctl.d/99-sysctl.conf ...
2019-07-30 11:14:54,099: DEBUG -       * Applying /etc/sysctl.conf ...
2019-07-30 11:14:54,099: DEBUG -       STDERR: sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf": No such file or directory
2019-07-30 11:14:54,099: DEBUG -       sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf": No such file or directory
2019-07-30 11:14:54,111: DEBUG -       sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf": No such file or directory
2019-07-30 11:14:54,112: DEBUG -       ---- End output of sysctl -e --system ----
2019-07-30 11:14:54,112: DEBUG -       Ran sysctl -e --system returned 255
2019-07-30 11:14:54,112: DEBUG - 
2019-07-30 11:14:54,113: DEBUG -       Resource Declaration:
2019-07-30 11:14:54,113: DEBUG -       ---------------------
2019-07-30 11:14:54,113: DEBUG -       # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/sysctl.rb
2019-07-30 11:14:54,113: DEBUG - 
2019-07-30 11:14:54,113: DEBUG -        60:   execute "load sysctl conf #{new_resource.name}" do
2019-07-30 11:14:54,113: DEBUG -        61:     command "sysctl -e --system"
2019-07-30 11:14:54,113: DEBUG -        62:     action :nothing
2019-07-30 11:14:54,114: DEBUG -        63:   end
2019-07-30 11:14:54,114: DEBUG -        64: end
2019-07-30 11:14:54,114: DEBUG - 
2019-07-30 11:14:54,114: DEBUG -       Compiled Resource:
2019-07-30 11:14:54,114: DEBUG -       ------------------
2019-07-30 11:14:54,114: DEBUG -       # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/sysctl.rb:60:in `block in class_from_file'
2019-07-30 11:14:54,114: DEBUG - 
2019-07-30 11:14:54,115: DEBUG -       execute("load sysctl conf kernel.shmmax") do
2019-07-30 11:14:54,115: DEBUG -         action [:nothing]
2019-07-30 11:14:54,115: DEBUG -         default_guard_interpreter :execute
2019-07-30 11:14:54,115: DEBUG -         command "sysctl -e --system"
2019-07-30 11:14:54,115: DEBUG -         backup 5
2019-07-30 11:14:54,115: DEBUG -         returns 0
2019-07-30 11:14:54,115: DEBUG -         user nil
2019-07-30 11:14:54,122: DEBUG -         declared_type :execute
2019-07-30 11:14:54,123: DEBUG -         cookbook_name "postgresql"
2019-07-30 11:14:54,123: DEBUG -         domain nil
2019-07-30 11:14:54,123: DEBUG -       end
2019-07-30 11:14:54,123: DEBUG - 
2019-07-30 11:14:54,123: DEBUG -       System Info:
2019-07-30 11:14:54,123: DEBUG -       ------------
2019-07-30 11:14:54,124: DEBUG -       chef_version=13.6.4
2019-07-30 11:14:54,125: DEBUG -       platform=debian
2019-07-30 11:14:54,125: DEBUG -       platform_version=9.9
2019-07-30 11:14:54,125: DEBUG -       ruby=ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
2019-07-30 11:14:54,125: DEBUG -       program_name=/opt/gitlab/embedded/bin/chef-client
2019-07-30 11:14:54,125: DEBUG -       executable=/opt/gitlab/embedded/bin/chef-client
2019-07-30 11:14:54,125: DEBUG - 
2019-07-30 11:14:54,126: DEBUG -     
2019-07-30 11:14:54,126: DEBUG -     ================================================================================
2019-07-30 11:14:54,136: DEBUG -     Error executing action `create` on resource 'sysctl[kernel.shmmax]'
2019-07-30 11:14:54,136: DEBUG -     ================================================================================
2019-07-30 11:14:54,136: DEBUG - 
2019-07-30 11:14:54,136: DEBUG -     Mixlib::ShellOut::ShellCommandFailed
2019-07-30 11:14:54,136: DEBUG -     ------------------------------------
2019-07-30 11:14:54,137: DEBUG -     execute[load sysctl conf kernel.shmmax] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/sysctl.rb line 60) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
2019-07-30 11:14:54,137: DEBUG -     ---- Begin output of sysctl -e --system ----
2019-07-30 11:14:54,137: DEBUG -     STDOUT: * Applying /etc/sysctl.d/30-postgresql-shm.conf ...
2019-07-30 11:14:54,137: DEBUG -     * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
2019-07-30 11:14:54,137: DEBUG -     * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
2019-07-30 11:14:54,137: DEBUG -     * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
2019-07-30 11:14:54,137: DEBUG -     kernel.shmmax = 17179869184
2019-07-30 11:14:54,138: DEBUG -     * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
2019-07-30 11:14:54,138: DEBUG -     * Applying /etc/sysctl.d/99-sysctl.conf ...
2019-07-30 11:14:54,138: DEBUG -     * Applying /etc/sysctl.conf ...
2019-07-30 11:14:54,138: DEBUG -     STDERR: sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf": No such file or directory
2019-07-30 11:14:54,138: DEBUG -     sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf": No such file or directory
2019-07-30 11:14:54,138: DEBUG -     sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf": No such file or directory
2019-07-30 11:14:54,139: DEBUG -     ---- End output of sysctl -e --system ----
2019-07-30 11:14:54,139: DEBUG -     Ran sysctl -e --system returned 255
2019-07-30 11:14:54,139: DEBUG - 
2019-07-30 11:14:54,139: DEBUG -     Resource Declaration:
2019-07-30 11:14:54,139: DEBUG -     ---------------------
2019-07-30 11:14:54,139: DEBUG -     # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/postgresql/recipes/enable.rb
2019-07-30 11:14:54,139: DEBUG - 
2019-07-30 11:14:54,154: DEBUG -      62: sysctl "kernel.shmmax" do
2019-07-30 11:14:54,154: DEBUG -      63:   value node['postgresql']['shmmax']
2019-07-30 11:14:54,154: DEBUG -      64: end
2019-07-30 11:14:54,154: DEBUG -      65:
2019-07-30 11:14:54,155: DEBUG - 
2019-07-30 11:14:54,155: DEBUG -     Compiled Resource:
2019-07-30 11:14:54,155: DEBUG -     ------------------
2019-07-30 11:14:54,155: DEBUG -     # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/postgresql/recipes/enable.rb:62:in `from_file'
2019-07-30 11:14:54,155: DEBUG - 
2019-07-30 11:14:54,155: DEBUG -     sysctl("kernel.shmmax") do
2019-07-30 11:14:54,165: DEBUG -       action [:create]
2019-07-30 11:14:54,165: DEBUG -       updated true
2019-07-30 11:14:54,165: DEBUG -       updated_by_last_action true
2019-07-30 11:14:54,165: DEBUG -       default_guard_interpreter :default
2019-07-30 11:14:54,165: DEBUG -       declared_type :sysctl
2019-07-30 11:14:54,165: DEBUG -       cookbook_name "postgresql"
2019-07-30 11:14:54,166: DEBUG -       recipe_name "enable"
2019-07-30 11:14:54,166: DEBUG -       value 17179869184
2019-07-30 11:14:54,166: DEBUG -     end
2019-07-30 11:14:54,166: DEBUG - 
2019-07-30 11:14:54,166: DEBUG -     System Info:
2019-07-30 11:14:54,166: DEBUG -     ------------
2019-07-30 11:14:54,166: DEBUG -     chef_version=13.6.4
2019-07-30 11:14:54,167: DEBUG -     platform=debian
2019-07-30 11:14:54,167: DEBUG -     platform_version=9.9
2019-07-30 11:14:54,167: DEBUG -     ruby=ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
2019-07-30 11:14:54,167: DEBUG -     program_name=/opt/gitlab/embedded/bin/chef-client
2019-07-30 11:14:54,167: DEBUG -     executable=/opt/gitlab/embedded/bin/chef-client
2019-07-30 11:14:54,180: DEBUG - 
2019-07-30 11:14:54,180: DEBUG - Recipe: gitlab::gitlab-rails
2019-07-30 11:15:21,052: DEBUG -   * execute[clear the gitlab-rails cache] action run
2019-07-30 11:15:21,052: DEBUG -     - execute /opt/gitlab/bin/gitlab-rake cache:clear
2019-07-30 11:15:21,052: DEBUG - Recipe: <Dynamically Defined Resource>
2019-07-30 11:15:21,960: DEBUG -   * service[gitaly] action restart
2019-07-30 11:15:22,060: DEBUG -     - restart service service[gitaly]
2019-07-30 11:15:22,061: DEBUG - Recipe: gitaly::enable
2019-07-30 11:15:22,161: DEBUG -   * runit_service[gitaly] action hup
2019-07-30 11:15:22,162: DEBUG -     - send hup to runit_service[gitaly]
2019-07-30 11:15:22,162: DEBUG - 
2019-07-30 11:15:22,162: DEBUG - Running handlers:
2019-07-30 11:15:22,162: DEBUG - There was an error running gitlab-ctl reconfigure:
2019-07-30 11:15:22,162: DEBUG - 
2019-07-30 11:15:22,162: DEBUG - sysctl[kernel.shmmax] (postgresql::enable line 62) had an error: Mixlib::ShellOut::ShellCommandFailed: execute[load sysctl conf kernel.shmmax] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/sysctl.rb line 60) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '255'
2019-07-30 11:15:22,162: DEBUG - ---- Begin output of sysctl -e --system ----
2019-07-30 11:15:22,163: DEBUG - STDOUT: * Applying /etc/sysctl.d/30-postgresql-shm.conf ...
2019-07-30 11:15:22,163: DEBUG - * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
2019-07-30 11:15:22,163: DEBUG - * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
2019-07-30 11:15:22,163: DEBUG - * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
2019-07-30 11:15:22,163: DEBUG - kernel.shmmax = 17179869184
2019-07-30 11:15:22,163: DEBUG - * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
2019-07-30 11:15:22,163: DEBUG - * Applying /etc/sysctl.d/99-sysctl.conf ...
2019-07-30 11:15:22,163: DEBUG - * Applying /etc/sysctl.conf ...
2019-07-30 11:15:22,163: DEBUG - STDERR: sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf": No such file or directory
2019-07-30 11:15:22,164: DEBUG - sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf": No such file or directory
2019-07-30 11:15:22,164: DEBUG - sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf": No such file or directory
2019-07-30 11:15:22,164: DEBUG - ---- End output of sysctl -e --system ----
2019-07-30 11:15:22,164: DEBUG - Ran sysctl -e --system returned 255
2019-07-30 11:15:22,164: DEBUG - 
2019-07-30 11:15:22,164: DEBUG - Running handlers complete
2019-07-30 11:15:22,164: DEBUG - Chef Client failed. 152 resources updated in 58 seconds
2019-07-30 11:15:22,265: DEBUG - dpkg: error processing package gitlab-ce (--install):
2019-07-30 11:15:22,265: DEBUG -  subprocess installed post-installation script returned error exit status 1
2019-07-30 11:15:22,366: DEBUG - Errors were encountered while processing:
2019-07-30 11:15:22,366: DEBUG -  gitlab-ce
2019-07-30 11:15:22,366: DEBUG - + ynh_exit_properly
2019-07-30 11:15:22,366: DEBUG - + local exit_code=1
2019-07-30 11:15:22,367: DEBUG - + '[' 1 -eq 0 ']'
2019-07-30 11:15:22,367: DEBUG - + trap '' EXIT
2019-07-30 11:15:22,367: DEBUG - + set +eu
2019-07-30 11:15:22,367: DEBUG - + sleep 0.5
2019-07-30 11:15:22,868: DEBUG - + ynh_print_err '--message=!!\n  gitlab'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-07-30 11:15:22,869: WARNING - [ERR] !!
2019-07-30 11:15:22,870: DEBUG - + local legacy_args=m
2019-07-30 11:15:22,871: WARNING -   gitlab's script has encountered an error. Its execution was cancelled.
2019-07-30 11:15:22,872: DEBUG - + args_array=([m]=message=)
2019-07-30 11:15:22,872: WARNING - !!
2019-07-30 11:15:22,873: DEBUG - + declare -Ar args_array
2019-07-30 11:15:22,873: DEBUG - + local message
2019-07-30 11:15:22,873: DEBUG - + ynh_handle_getopts_args '--message=!!\n  gitlab'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-07-30 11:15:22,873: DEBUG - + set +x
2019-07-30 11:15:22,873: DEBUG - + ynh_print_log '\e[91m\e[1m[ERR]\e[0m !!\n  gitlab'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-07-30 11:15:22,873: DEBUG - + echo -e '\e[91m\e[1m[ERR]\e[0m !!\n  gitlab'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-07-30 11:15:22,874: DEBUG - + '[' api == cli ']'
2019-07-30 11:15:22,874: DEBUG - + type -t ynh_clean_setup
2019-07-30 11:15:22,874: DEBUG - + ynh_clean_setup
2019-07-30 11:15:22,874: DEBUG - + ynh_exec_warn_less ynh_secure_remove --file=/tmp/tmp.DmUgO0uLR8
2019-07-30 11:15:22,874: DEBUG - + eval ynh_secure_remove --file=/tmp/tmp.DmUgO0uLR8
2019-07-30 11:15:22,874: DEBUG - ++ ynh_secure_remove --file=/tmp/tmp.DmUgO0uLR8
2019-07-30 11:15:22,874: DEBUG - ++ local legacy_args=f
2019-07-30 11:15:22,874: DEBUG - ++ args_array=([f]=file=)
2019-07-30 11:15:22,874: DEBUG - ++ declare -Ar args_array
2019-07-30 11:15:22,874: DEBUG - ++ local file
2019-07-30 11:15:22,874: DEBUG - ++ ynh_handle_getopts_args --file=/tmp/tmp.DmUgO0uLR8
2019-07-30 11:15:22,875: DEBUG - ++ set +x
2019-07-30 11:15:22,875: DEBUG - ++ local 'forbidden_path=     /var/www     /home/yunohost.app'
2019-07-30 11:15:22,875: DEBUG - ++ '[' 1 -ge 2 ']'
2019-07-30 11:15:22,875: DEBUG - ++ [[      /var/www     /home/yunohost.app =~ /tmp/tmp\.DmUgO0uLR8 ]]
2019-07-30 11:15:22,875: DEBUG - ++ [[ /tmp/tmp.DmUgO0uLR8 =~ ^/[[:alnum:]]+$ ]]
2019-07-30 11:15:22,875: DEBUG - ++ [[ 8 = \/ ]]
2019-07-30 11:15:22,875: DEBUG - ++ '[' -e /tmp/tmp.DmUgO0uLR8 ']'
2019-07-30 11:15:22,875: DEBUG - ++ sudo rm -R /tmp/tmp.DmUgO0uLR8
2019-07-30 11:15:23,177: DEBUG - + ynh_clean_check_starting
2019-07-30 11:15:23,177: WARNING - 
2019-07-30 11:15:23,178: DEBUG - + kill -s 15
2019-07-30 11:15:23,178: DEBUG - kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
2019-07-30 11:15:23,179: DEBUG - + ynh_secure_remove ''
2019-07-30 11:15:23,179: DEBUG - + local legacy_args=f
2019-07-30 11:15:23,179: DEBUG - + args_array=([f]=file=)
2019-07-30 11:15:23,179: DEBUG - + declare -Ar args_array
2019-07-30 11:15:23,179: DEBUG - + local file
2019-07-30 11:15:23,179: DEBUG - + ynh_handle_getopts_args ''
2019-07-30 11:15:23,180: DEBUG - + set +x
2019-07-30 11:15:23,180: DEBUG - + echo '! Helper used in legacy mode !'
2019-07-30 11:15:23,180: DEBUG - + set +x
2019-07-30 11:15:23,180: DEBUG - + local 'forbidden_path=     /var/www     /home/yunohost.app'
2019-07-30 11:15:23,180: DEBUG - + '[' 1 -ge 2 ']'
2019-07-30 11:15:23,180: DEBUG - + [[      /var/www     /home/yunohost.app =~ '' ]]
2019-07-30 11:15:23,181: DEBUG - + ynh_print_warn '--message=Avoid deleting .'
2019-07-30 11:15:23,181: DEBUG - + local legacy_args=m
2019-07-30 11:15:23,181: DEBUG - + args_array=([m]=message=)
2019-07-30 11:15:23,181: DEBUG - + declare -Ar args_array
2019-07-30 11:15:23,181: DEBUG - + local message
2019-07-30 11:15:23,181: DEBUG - + ynh_handle_getopts_args '--message=Avoid deleting .'
2019-07-30 11:15:23,181: DEBUG - + set +x
2019-07-30 11:15:23,182: DEBUG - + ynh_print_log '\e[93m\e[1m[WARN]\e[0m Avoid deleting .'
2019-07-30 11:15:23,182: DEBUG - + echo -e '\e[93m\e[1m[WARN]\e[0m Avoid deleting .'
2019-07-30 11:15:23,182: DEBUG - [WARN] Avoid deleting .
2019-07-30 11:15:23,182: DEBUG - + ynh_die
2019-07-30 11:15:23,182: DEBUG - + local legacy_args=mc
2019-07-30 11:15:23,191: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-07-30 11:15:23,192: DEBUG - + declare -Ar args_array
2019-07-30 11:15:23,192: DEBUG - + local message
2019-07-30 11:15:23,192: DEBUG - + local ret_code
2019-07-30 11:15:23,192: DEBUG - + ynh_handle_getopts_args
2019-07-30 11:15:23,192: DEBUG - + set +x
2019-07-30 11:15:23,192: DEBUG - + echo ''
2019-07-30 11:15:23,193: DEBUG - + exit 1

Context :

YNH_APP_INSTANCE_NUMBER 1 YNH_CWD /var/cache/yunohost/from_file/gitlab_ynh-6187c4bdf0c7d9a105a73b0c23200bb012c9625f/scripts YNH_APP_ARG_IS_PUBLIC 1 YNH_APP_ARG_USE_WEB_ACCOUNT 0 YNH_STDINFO /tmp/tmp6cxVr3/stdinfo YNH_APP_INSTANCE_NAME gitlab YNH_APP_ARG_ADMIN risson YNH_INTERFACE api YNH_APP_ID gitlab YNH_APP_ARG_PATH / YNH_STDRETURN /tmp/tmpgWlqdJ/stdreturn YNH_APP_ARG_DOMAIN ~domain.tld~

kay0u commented 5 years ago

Hi, thank you for you report!

Is your server an LXC or something like that? There is an issue with it: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/893

For now the workaround is to try to install it with:

PACKAGE_CHECK_EXEC=1 sudo yunohost app install https://github.com/YunoHost-Apps/gitlab_ynh

Tell me if it works

rissson commented 5 years ago

It's a VPS, so it might very well be an LXC or something. Trying your workaround now

rissson commented 5 years ago

It still fails, with the same error. https://paste.yunohost.org/raw/vuxetagoqo

kay0u commented 5 years ago

Indeed (sorry):

export PACKAGE_CHECK_EXEC=1
sudo yunohost app install https://github.com/YunoHost-Apps/gitlab_ynh
rissson commented 5 years ago

Yep that worked! Thanks a lot :D Do I have to do the same for the Gitlab runner app ?

kay0u commented 5 years ago

No the runner works well in LXC, but the problem is that the the next upgrade/restore will break your gitlab if you don't do the same :s

I'll create a PR (soon) to fix this issue.

rissson commented 5 years ago

Ok, thanks for your help!

Rafi594 commented 4 years ago

I have the same error but PACKAGE_CHECK_EXEC=1 doesn't work. The server is running in a Proxmox LXC container.

Warning: [ERR] !!
Warning:   gitlab's script has encountered an error. Its execution was cancelled.
Warning: !!
Warning: Please find here an extract of the log before the crash:
Warning: [DEBUG]: DEBUG   -, but received '255'
Warning: [DEBUG]: DEBUG   - ---- Begin output of sysctl -e --system ----
Warning: [DEBUG]: DEBUG   - STDOUT: * Applying /etc/sysctl.d/30-postgresql-shm.conf ...
Warning: [DEBUG]: DEBUG   - * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
Warning: [DEBUG]: DEBUG   - * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
Warning: [DEBUG]: DEBUG   - * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
Warning: [DEBUG]: DEBUG   - * Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
Warning: [DEBUG]: DEBUG   - * Applying /etc/sysctl.d/99-sysctl.conf ...
Warning: [DEBUG]: DEBUG   - * Applying /etc/sysctl.d/lxc_pchecker.conf ...
Warning: [DEBUG]: DEBUG   - net.ipv4.ip_forward = 1
Warning: [DEBUG]: DEBUG   - * Applying /etc/sysctl.conf ...
Warning: [DEBUG]: DEBUG   - STDERR: sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf": No such file or directory
Warning: [DEBUG]: DEBUG   - sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf": No such file or directory
Warning: [DEBUG]: DEBUG   - sysctl: setting key "kernel.shmmax": Read-only file system
Warning: [DEBUG]: DEBUG   - sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf": No such file or directory
Warning: [DEBUG]: DEBUG   - ---- End output of sysctl -e --system ----
Warning: [DEBUG]: DEBUG   - Ran sysctl -e --system returned 255
Warning: [DEBUG]: DEBUG   -
Warning: [DEBUG]: DEBUG   - Running handlers complete
Warning: [DEBUG]: DEBUG   - Chef Client failed. 154 resources updated in 41 seconds
Warning: [DEBUG]: DEBUG   - dpkg: error processing package gitlab-ce (--install):
Warning: [DEBUG]: DEBUG   -  subprocess installed post-installation script returned error exit status 1
Warning: [DEBUG]: DEBUG   - Errors were encountered while processing:
Warning: [DEBUG]: DEBUG   -  gitlab-ce
Warning: [DEBUG]: DEBUG   - + ynh_exit_properly
kay0u commented 4 years ago

Can you try to install with the branch: fix-lxc-issue

sudo yunohost app install https://github.com/YunoHost-Apps/gitlab_ynh/tree/fix-lxc-issue --debug
Rafi594 commented 4 years ago

It works with the branch fix-lxc-issue

kay0u commented 4 years ago

Thank you for your feedback! I'll add it to the next version then

eagleofdeath13 commented 1 year ago

I'm sorry to put this issue out of the graveyard, but i have the exact same issue right now, with the same error message. I'm installing GitLab on a virtual machine hosted on a Freebox Delta (so no LXC). I've tried with "export PACKAGE_CHECK_EXEC=1", with the same result. Gitlab appears on the apps on the landing page, but throws a pretty "404" when i click on it.