Gitlab重新配置错误无法加载此类文件syslog-logger

时间:2018-12-05 11:27:15

标签: ruby gitlab

我已经尝试在Google上搜索有关我的问题的信息,但仍然没有运气。我的服务器刚刚恢复,现在我无法访问Gitlab-CE。每次我使用命令gitlab-ctl reconfigure都会发生错误。

这是错误的输出:

    $ sudo gitlab-ctl reconfigure
/opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- syslog-logger (LoadError)
    from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef/log/syslog.rb:20:in `<top (required)>'
    from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef/log.rb:24:in `<top (required)>'
    from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/lib/chef.rb:23:in `<top (required)>'
    from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from /opt/gitlab/embedded/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
    from /opt/gitlab/embedded/lib/ruby/gems/2.4.0/gems/chef-13.6.4/bin/chef-client:23:in `<top (required)>'
    from /opt/gitlab/embedded/bin/chef-client:23:in `load'
    from /opt/gitlab/embedded/bin/chef-client:23:in `<main>'

1 个答案:

答案 0 :(得分:0)

我的猜测是您在与Syslog:Logger相关的文件中存在实际的文件系统损坏。

您可以逐步浏览这些文件并进行更新或替换,但是说实话,启动另一个虚拟服务器,从头开始重新安装gitlab-ce以及从以前的备份(每晚)进行还原将更容易。

>