我可能是修改了 整个docker的权限为777 导致无法启动gitlab,帮忙看下这个怎么解决。或者能备份也行。现在进入容器等3秒就会自动退出容器,没办法备份。。求助!!
Cleaning stale PIDs & sockets
Preparing services...
Starting services...
Configuring GitLab...
ffi-libarchive could not be loaded, libarchive is probably not installed on system, archive_file will not be available
[2023-03-14T18:31:27+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-03-14T18:31:27+00:00] INFO: *** Cinc Client 17.10.0 ***
[2023-03-14T18:31:27+00:00] INFO: Platform: x86_64-linux
[2023-03-14T18:31:27+00:00] INFO: Cinc-client pid: 28
[2023-03-14T18:31:31+00:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options
[2023-03-14T18:31:31+00:00] INFO: Run List is [recipe[gitlab]]
[2023-03-14T18:31:31+00:00] INFO: Run List expands to [gitlab]
[2023-03-14T18:31:31+00:00] INFO: Starting Cinc Client Run for 29174147f88f
[2023-03-14T18:31:31+00:00] INFO: Running start handlers
[2023-03-14T18:31:31+00:00] INFO: Start handlers complete.
Resolving cookbooks for run list: ["gitlab"]
[2023-03-14T18:31:32+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.5, crond@0.1.0]
Synchronizing cookbooks:
- gitlab (0.0.1)
- logrotate (0.1.0)
- package (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)
- runit (5.1.7)
- nginx (0.1.0)
- acme (4.1.5)
- crond (0.1.0)
Installing cookbook gem dependencies:
Compiling cookbooks...
Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!
Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!
Loading Cinc Auditor profile files:
Loading Cinc Auditor input files:
Loading Cinc Auditor waiver files:
Recipe: gitlab::default
* directory[/etc/gitlab] action create (up to date)
[2023-03-14T18:31:34+00:00] INFO: Skipped selecting an init system because it was explicitly disabled
/opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:25: warning: already initialized constant MACROS_MARKER
/opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:25: warning: previous definition of MACROS_MARKER was here
/opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:27: warning: already initialized constant DO_NOT_SPLIT
/opt/gitlab/embedded/lib/ruby/gems/2.7.0/gems/ohai-17.9.0/lib/ohai/plugins/rpm.rb:27: warning: previous definition of DO_NOT_SPLIT was here
Converging 267 resources
* directory[/etc/gitlab] action create (up to date)
* directory[Create /var/opt/gitlab] action create (up to date)
* directory[Create /var/log/gitlab] action create (up to date)
* directory[/opt/gitlab/embedded/etc] action create (up to date)
* template[/opt/gitlab/embedded/etc/gitconfig] action create
================================================================================
Error executing action `create` on resource 'template[/opt/gitlab/embedded/etc/gitconfig]'
================================================================================
ArgumentError
-------------
could not find a temporary directory
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb
70: template "#{install_dir}/embedded/etc/gitconfig" do
71: source "gitconfig-system.erb"
72: mode 0755
73: variables gitconfig: node.dig('gitlab', 'omnibus-gitconfig', 'system') || {}
74: end
75:
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/default.rb:70:in `from_file'
template("/opt/gitlab/embedded/etc/gitconfig") do
action [:create]
default_guard_interpreter :default
source "gitconfig-system.erb"
declared_type :template
cookbook_name "gitlab"
recipe_name "default"
mode 493
variables {:gitconfig=>{}}
owner nil
group nil
path "/opt/gitlab/embedded/etc/gitconfig"
end
System Info:
------------
chef_version=17.10.0
platform=ubuntu
platform_version=20.04
ruby=ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/cinc-client
executable=/opt/gitlab/embedded/bin/cinc-client
[2023-03-14T18:31:34+00:00] INFO: Running queued delayed notifications before re-raising exception
Running handlers:
[2023-03-14T18:31:34+00:00] ERROR: Running exception handlers
There was an error running gitlab-ctl reconfigure:
template[/opt/gitlab/embedded/etc/gitconfig] (gitlab::default line 70) had an error: ArgumentError: could not find a temporary directory
Running handlers complete
[2023-03-14T18:31:34+00:00] ERROR: Exception handlers complete
Infra Phase failed. 0 resources updated in 06 seconds
[2023-03-14T18:31:34+00:00] FATAL: Stacktrace dumped to /opt/gitlab/embedded/cookbooks/cache/cinc-stacktrace.out
[2023-03-14T18:31:34+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-03-14T18:31:34+00:00] FATAL: PLEASE PROVIDE THE CONTENTS OF THE stacktrace.out FILE (above) IF YOU FILE A BUG REPORT
[2023-03-14T18:31:34+00:00] FATAL: ---------------------------------------------------------------------------------------
[2023-03-14T18:31:34+00:00] FATAL: ArgumentError: template[/opt/gitlab/embedded/etc/gitconfig] (gitlab::default line 70) had an error: ArgumentError: could not find a temporary directory
Thank you for using GitLab Docker Image!
Current version: gitlab-ce=15.8.4-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