STDERR: sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf": No such file or directory
Summary
After installing gitlab-ce gotta change the external_url and trying to run gitlab-ctl reconfigure. The following errors occurs:
---- Begin output of sysctl -e --system ----
STDOUT: * Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf ...
* Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf ...
* Applying /etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf ...
kernel.shmmax = 17179869184
* Applying /etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf ...
* Applying /etc/sysctl.d/99-sysctl.conf ...
* Applying /etc/sysctl.d/protect-links.conf ...
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
* Applying /etc/sysctl.conf ...
STDERR: sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf": No such file or directory
sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf": No such file or directory
sysctl: cannot open "/etc/sysctl.d/90-omnibus-gitlab-net.core.somaxconn.conf": No such file or directory
---- End output of sysctl -e --system ----
Steps to reproduce
sudo apt-get update
sudo apt-get install -y curl openssh-server ca-certificates
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash
sudo EXTERNAL_URL="https://git.mydomain.tld" apt-get install gitlab-ce
sudo gitlab-ctl reconfigure
What is the current bug behavior?
error occurs while reconfiguring
What is the expected correct behavior?
no error occuring while reconfiguring
Relevant logs
Relevant logs
root@srv01:~# sudo gitlab-ctl tail ==> /var/log/gitlab/gitaly/current <== time="2019-11-02T20:26:08Z" level=info msg="Starting file walker for /var/opt/gitlab/git-data/repositories/+gitaly/state" storage=default {"level":"info","msg":"finished tempdir cleaner walk","storage":"default","time":"2019-11-02T20:26:08Z","time_ms":0} {"address":"/var/opt/gitlab/gitaly/gitaly.socket","level":"info","msg":"listening at unix address","time":"2019-11-02T20:26:08Z"} {"address":"localhost:9236","level":"info","msg":"starting prometheus listener","time":"2019-11-02T20:26:08Z"} {"level":"info","msg":"starting RSS monitor","supervisor.name":"gitaly-ruby.1","supervisor.rss_threshold":209715200,"time":"2019-11-02T20:26:08Z"} {"level":"info","msg":"starting RSS monitor","supervisor.name":"gitaly-ruby.0","supervisor.rss_threshold":209715200,"time":"2019-11-02T20:26:08Z"} {"level":"warning","msg":"spawned","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","24918","/tmp/gitaly-ruby267770401/socket.1"],"supervisor.name":"gitaly-ruby.1","supervisor.pid":24930,"time":"2019-11-02T20:26:08Z"} {"level":"warning","msg":"spawned","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","24918","/tmp/gitaly-ruby267770401/socket.0"],"supervisor.name":"gitaly-ruby.0","supervisor.pid":24931,"time":"2019-11-02T20:26:08Z"} {"level":"info","msg":"PID 24930 BUNDLE_GEMFILE=/opt/gitlab/embedded/service/gitaly-ruby/Gemfile","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","24918","/tmp/gitaly-ruby267770401/socket.1"],"supervisor.name":"gitaly-ruby.1","time":"2019-11-02T20:26:08Z"} {"level":"info","msg":"PID 24931 BUNDLE_GEMFILE=/opt/gitlab/embedded/service/gitaly-ruby/Gemfile","supervisor.args":["bundle","exec","bin/ruby-cd","/var/opt/gitlab/gitaly","/opt/gitlab/embedded/service/gitaly-ruby/bin/gitaly-ruby","24918","/tmp/gitaly-ruby267770401/socket.0"],"supervisor.name":"gitaly-ruby.0","time":"2019-11-02T20:26:08Z"}
==> /var/log/gitlab/redis/current <== 2019-11-02_20:25:56.03718
-._-.-.__.-'_.-' _.-' 2019-11-02_20:25:56.03718-.-.__.-' _.-' 2019-11-02_20:25:56.03719-._ _.-'
2019-11-02_20:25:56.03722 `-.__.-'
2019-11-02_20:25:56.03722 2019-11-02_20:25:56.03723 24789:M 02 Nov 21:25:56.037 # Server started, Redis version 3.2.12 2019-11-02_20:25:56.03723 24789:M 02 Nov 21:25:56.037 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 2019-11-02_20:25:56.03724 24789:M 02 Nov 21:25:56.037 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled. 2019-11-02_20:25:56.03809 24789:M 02 Nov 21:25:56.037 * DB loaded from disk: 0.001 seconds 2019-11-02_20:25:56.03812 24789:M 02 Nov 21:25:56.038 * The server is now ready to accept connections at /var/opt/gitlab/redis/redis.socket==> /var/log/gitlab/gitlab-rails/api_json.log <==
Logfile created on 2019-11-02 21:26:06 +0100 by logger.rb/66358
==> /var/log/gitlab/gitlab-rails/grpc.log <==
Logfile created on 2019-11-02 21:26:06 +0100 by logger.rb/66358
==> /var/log/gitlab/gitlab-rails/production.log <== Creating scope :of_projects. Overwriting existing method MergeRequest.of_projects. Creating scope :join_project. Overwriting existing method MergeRequest.join_project. Creating scope :references_project. Overwriting existing method MergeRequest.references_project. Creating scope :system. Overwriting existing method Note.system. Creating scope :without_statuses. Overwriting existing method CommitStatus.without_statuses.
==> /var/log/gitlab/gitlab-rails/production_json.log <==
Logfile created on 2019-11-02 21:26:06 +0100 by logger.rb/66358
Details of package version
Provide the package version installation details
root@srv01:~# dpkg-query -l "gitlab-*" Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-=========================================================== ii gitlab-ce 12.4.1-ce.0 amd64 GitLab Community Edition (including NGINX, Postgres, Redis) un gitlab-ee (no description available)
Environment details
- Operating System:
Debian GNU/Linux 10 (buster) - VM:
Hetzner Cloud CX31 - Installation Type:
New Installation - Is there any other software running on the machine:
Apache 2.4,PHP7.3,MariaDB 10.3.17,Postfix,Dovecot,Unbound,Redis,rspamd,certbot Single Node- Resources
- CPU:
2 VCPU - Memory total:
8 GB
- CPU:
Configuration details
Provide the relevant sections of `/etc/gitlab/gitlab.rb`
root@srv01:~# grep -v -e '^#' -e '^$' /etc/gitlab/gitlab.rb: external_url 'https://git.mydomain.tld'