updating gitlab to the official docker build gitlab/gitlab-ce v16.0.1 fails with errors when starting
Last update to v15.11.5-ce.0 is ok
Next update to 16.0.1-ce.0 fails when starting with "Error Syncing Cookbooks"
error log
Thank you for using GitLab Docker Image!
Current version: gitlab-ce=16.0.1-ce.0
Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
And restart this container to reload settings.
To do it use docker exec:
docker exec -it gitlab editor /etc/gitlab/gitlab.rb
docker restart gitlab
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
If this container fails to start due to permission problems try to fix it by executing:
docker exec -it gitlab update-permissions
docker restart gitlab
Cleaning stale PIDs & sockets
Preparing services...
Starting services...
Configuring GitLab...
/opt/gitlab/embedded/bin/runsvdir-start: line 37: /proc/sys/fs/file-max: Read-only file system
[2023-05-24T10:48:57+00:00] INFO: Started Cinc Zero at chefzero://localhost:1 with repository at /opt/gitlab/embedded (One version per cookbook)
Cinc Client, version 17.10.0
Patents: https://www.chef.io/patents
Infra Phase starting
[2023-05-24T10:48:57+00:00] INFO: *** Cinc Client 17.10.0 ***
[2023-05-24T10:48:57+00:00] INFO: Platform: x86_64-linux
[2023-05-24T10:48:57+00:00] INFO: Cinc-client pid: 28
[2023-05-24T10:48:58+00:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options
[2023-05-24T10:48:58+00:00] INFO: Run List is [recipe[gitlab]]
[2023-05-24T10:48:58+00:00] INFO: Run List expands to [gitlab]
[2023-05-24T10:48:58+00:00] INFO: Starting Cinc Client Run for d9f6e7559e5f
[2023-05-24T10:48:58+00:00] INFO: Running start handlers
[2023-05-24T10:48:58+00:00] INFO: Start handlers complete.
Resolving cookbooks for run list: ["gitlab"]
[2023-05-24T10:48:58+00:00] INFO: Loading cookbooks [gitlab@0.0.1, package@0.1.0, logrotate@0.1.0, postgresql@0.1.0, redis@0.1.0, monitoring@0.1.0, registry@0.1.0, mattermost@0.1.0, consul@0.1.0, gitaly@0.1.0, praefect@0.1.0, gitlab-kas@0.1.0, gitlab-pages@0.1.0, letsencrypt@0.1.0, nginx@0.1.0, runit@5.1.7, acme@4.1.6, crond@0.1.0]
Synchronizing cookbooks:
================================================================================
Error Syncing Cookbooks:
================================================================================
Unexpected Error:
-----------------
ThreadError: can't create Thread: Operation not permitted
System Info:
------------
chef_version=17.10.0
platform=ubuntu
platform_version=22.04
ruby=ruby 3.0.6p216 (2023-03-30 revision 23a532679b) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/cinc-client
executable=/opt/gitlab/embedded/bin/cinc-client
Running handlers:
[2023-05-24T10:48:58+00:00] ERROR: Running exception handlers
There was an error running gitlab-ctl reconfigure:
can't create Thread: Operation not permitted
[2023-05-24T10:48:58+00:00] ERROR: Report handler GitLabHandler::Exception raised #<NameError: uninitialized constant GitLabHandler::Exception::OmnibusHelper>
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/cookbooks/package/libraries/handlers/gitlab.rb:30:in `report'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:296:in `run_report_unsafe'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:284:in `run_report_safely'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:155:in `block in run_exception_handlers'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:153:in `each'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:153:in `run_exception_handlers'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/handler.rb:164:in `block in <class:Handler>'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:443:in `block in run_failed'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:442:in `each'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:442:in `run_failed'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:306:in `rescue in run'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/client.rb:299:in `run'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:305:in `run_with_graceful_exit_option'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:281:in `block in run_chef_client'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/local_mode.rb:42:in `with_server_connectivity'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:264:in `run_chef_client'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application/base.rb:352:in `run_application'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-17.10.0/lib/chef/application.rb:67:in `run'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/lib/ruby/gems/3.0.0/gems/chef-bin-17.10.0/bin/cinc-client:25:in `<top (required)>'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/bin/cinc-client:25:in `load'
[2023-05-24T10:48:58+00:00] ERROR: /opt/gitlab/embedded/bin/cinc-client:25:in `<main>'
Running handlers complete
[2023-05-24T10:48:58+00:00] ERROR: Exception handlers complete
Infra Phase failed. 0 resources updated in 01 seconds
[2023-05-24T10:48:59+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2023-05-24T10:48:59+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-05-24T10:48:59+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2023-05-24T10:48:59+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-05-24T10:48:59+00:00] FATAL: ThreadError: can't create Thread: Operation not permitted