【问题标题】:Bitnami GitLab 5.2.0: gitlab_sidekiq not running and could not be startedBitnami GitLab 5.2.0:gitlab_sidekiq 未运行且无法启动
【发布时间】:2013-07-17 02:56:32
【问题描述】:

我们正在使用Bitnami GitLab 5.2.0
我们偶然发现我们无法推送到新的存储库,比如

git@192.168.133.10:sandbox/testgit2.git,

但我们可以使用旧的。仔细调查显示 gitlab_sidekiq 没有运行。

/opt/bitnami/ctlscript.sh restart gitlab_sidekiq

gitlab_sidekiq 无法启动

去哪里看?我应该先update 吗?

更新:Bitnami GitLab 5.2 服务器出现故障:无法将代码推送到新的存储库中。 (虽然旧的存储库不受影响)

TestProject4>git remote add origin git
@192.168.133.10:sandbox/testproject4.git

TestProject4>git push -u origin master

fatal: '/opt/bitnami/apps/gitlab/repositories/sandbox/testproject4.git' does not  appear to be a git repository
fatal: The remote end hung up unexpectedly

更新答案:

我在我的 PC 上的 VirtualBox 中使用虚拟机(在 1 个团队中作为试点将 VM 移动到某个 VM 主机) 是的,我修改了gitlab.yml

/opt/bitnami/apps/gitlab/htdocs/log/sidekiq.log 有这行重复,所以他们应该提供线索(读取某些文件时看起来有些错误)

DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /opt/bitnami/apps/gitlab/htdocs/config/environment.rb:5)
/opt/bitnami/ruby/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): found character that cannot start any token while scanning for the next token at line 73 column 1 (Psych::SyntaxError)
    from /opt/bitnami/ruby/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
    from /opt/bitnami/ruby/lib/ruby/1.9.1/psych.rb:151:in `parse'
    from /opt/bitnami/ruby/lib/ruby/1.9.1/psych.rb:127:in `load'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/settingslogic-2.0.8/lib/settingslogic.rb:113:in `initialize'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/settingslogic-2.0.8/lib/settingslogic.rb:71:in `new'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/settingslogic-2.0.8/lib/settingslogic.rb:71:in `instance'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/settingslogic-2.0.8/lib/settingslogic.rb:48:in `[]'
    from /opt/bitnami/apps/gitlab/htdocs/config/initializers/1_settings.rb:38:in `<top (required)>'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:587:in `each'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/engine.rb:587:in `block in <class:Engine>'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
    from /opt/bitnami/apps/gitlab/htdocs/config/environment.rb:5:in `<top (required)>'
    from /opt/bitnami/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /opt/bitnami/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/sidekiq-2.8.0/lib/sidekiq/cli.rb:199:in `boot_system'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/sidekiq-2.8.0/lib/sidekiq/cli.rb:47:in `parse'
    from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/sidekiq-2.8.0/bin/sidekiq:7:in `<top (required)>'
    from /opt/bitnami/ruby/bin/sidekiq:23:in `load'
    from /opt/bitnami/ruby/bin/sidekiq:23:in `<main>'

GitLab says it requires ruby 1.9.3,但在这里我看到的是 1.9.1。会不会有问题?

【问题讨论】:

  • 嗨,保罗,你终于找到问题了吗?
  • gitlab.yml 应该是原因,因为它是我最近几周更改的唯一文件(试图使 LDAP 工作)。我看不出它有任何问题 stackoverflow.com/questions/17825404/… ,现在我找不到 GitLab 用于检查安装是否正常的内容。 (我运行过一次,但它只给了我错误)

标签: ruby-on-rails ubuntu service gitlab bitnami


【解决方案1】:

这很奇怪。你用的是什么,安装程序、虚拟机还是云镜像?如果 sidekiq 服务器未运行,则可能未正确创建存储库。你能检查一下sidekiq日志文件中是否有任何错误吗?

/opt/bitnami/apps/gitlab/htdocs/logs/sidekiq.log

您是否修改了 GitLab 的任何配置文件?

已编辑:

问题似乎是 gitlab.yml 中的错误配置。空白也很重要。您能检查一下您在该文件中所做的更改吗?

/opt/bitnami/ruby/lib/ruby/1.9.1/psych.rb:203:in `parse': (): found character that can't start any token while scanning for the next token at line 73 column 1 (心理::语法错误)

GitLab CI 发布了 Ruby 1.9.3 最新的稳定版本。文件夹名称使用 1.9.1 以实现 backguard 兼容性Why is my gem "INSTALLATION DIRECTORY:" ...1.9.1 when the "RUBY VERSION:" is 1.9.3

如果您没有找到确切的错误,请发布 gitlab.yml 文件。

【讨论】:

    【解决方案2】:

    就我而言,我的 yml 文件中有 &lt;tab&gt;

    这是一个很奇怪的错误!

    【讨论】:

      猜你喜欢
      • 2018-12-29
      • 2019-12-12
      • 1970-01-01
      • 2018-02-03
      • 1970-01-01
      • 1970-01-01
      • 2020-11-02
      • 2018-04-12
      • 2021-09-08
      相关资源
      最近更新 更多