現象
- 通常運用しているGitLabを日本語化したいと思い、https://github.com/ksoichiro/gitlab-i18n-patchのように親切なリポジトリが存在していたので、READMEの通りに行ってみました。
- patch適用後、javascriptが動かなくなり、markdownエディタも動かなくなりました。
- READMEに書かれているようにプリコンパイルされたファイルを削除してみました。
- その後何故かgitlabにアクセスできずずっと502エラーが出続けてしまいます。。。(TT)
README.mdに書かれているプリコンパイルしたファイルの削除方法
$ cd /opt/gitlab/embedded/service/gitlab-rails $ rm -rf public/assets $ export PATH=/opt/gitlab/embedded/bin:$PATH $ bundle exec rake assets:precompile RAILS_ENV=production
パッチをあてた後に上記以外のことは何もしていないのになぜか502。。。
やってみたこと
ログを漁ってみようとしたのですがcat /var/log/gitlab/gitlab-workhorse/current | less
に載っていない状態でした。(アクセスしている時間帯が明らかに違いました。)
途方に暮れながらもとりあえずunicornのログを見てみました。
$ gitlab-ctl tail unicorn ==> /var/log/gitlab/unicorn/state <== ==> /var/log/gitlab/unicorn/unicorn_stdout.log <== bundler: failed to load command: unicorn (/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn) bundler: failed to load command: unicorn (/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn) bundler: failed to load command: unicorn (/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn) bundler: failed to load command: unicorn (/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn) bundler: failed to load command: unicorn (/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn) bundler: failed to load command: unicorn (/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn) bundler: failed to load command: unicorn (/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn) bundler: failed to load command: unicorn (/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn) bundler: failed to load command: unicorn (/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn) bundler: failed to load command: unicorn (/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn) ==> /var/log/gitlab/unicorn/current <== 2017-01-06_12:05:33.84797 starting new unicorn master 2017-01-06_12:05:39.83290 master failed to start, check stderr log for details 2017-01-06_12:05:40.84445 failed to start a new unicorn master 2017-01-06_12:05:40.85043 starting new unicorn master 2017-01-06_12:05:47.00538 master failed to start, check stderr log for details 2017-01-06_12:05:48.01226 failed to start a new unicorn master 2017-01-06_12:05:48.01857 starting new unicorn master 2017-01-06_12:05:54.25034 master failed to start, check stderr log for details 2017-01-06_12:05:55.26451 failed to start a new unicorn master 2017-01-06_12:05:55.28662 starting new unicorn master ==> /var/log/gitlab/unicorn/unicorn_stderr.log <== /opt/gitlab/embedded/service/gitlab-rails/config.ru:1:in `new' /opt/gitlab/embedded/service/gitlab-rails/config.ru:1:in `<main>' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn.rb:56:in `eval' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn.rb:56:in `block in builder' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:752:in `build_app!' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:129:in `start' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/unicorn-5.1.0/bin/unicorn:126:in `<top (required)>' /opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn:22:in `load' /opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn:22:in `<top (required)>' I, [2017-01-06T21:05:55.665783 #20646] INFO -- : Refreshing Gem list ==> /var/log/gitlab/unicorn/unicorn_stdout.log <== bundler: failed to load command: unicorn (/opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn) ==> /var/log/gitlab/unicorn/unicorn_stderr.log <== NameError: uninitialized constant IssuableCollections::SortingHelper /opt/gitlab/embedded/service/gitlab-rails/app/controllers/concerns/issuable_collections.rb:3:in `<module:IssuableCollections>' /opt/gitlab/embedded/service/gitlab-rails/app/controllers/concerns/issuable_collections.rb:1:in `<top (required)>' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:471:in `each' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:471:in `block in eager_load!' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:469:in `each' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:469:in `eager_load!' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:346:in `eager_load!' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application/finisher.rb:56:in `each' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in `instance_exec' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/initializable.rb:30:in `run' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/initializable.rb:55:in `block in run_initializers' /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each' /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component' /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from' /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component' /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:347:in `each' /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:347:in `call' /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component' /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each' /opt/gitlab/embedded/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/initializable.rb:54:in `run_initializers' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application.rb:352:in `initialize!' /opt/gitlab/embedded/service/gitlab-rails/config/environment.rb:5:in `<top (required)>' /opt/gitlab/embedded/service/gitlab-rails/config.ru:19:in `require' /opt/gitlab/embedded/service/gitlab-rails/config.ru:19:in `block in <main>' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/rack-1.6.5/lib/rack/builder.rb:55:in `instance_eval' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/rack-1.6.5/lib/rack/builder.rb:55:in `initialize' /opt/gitlab/embedded/service/gitlab-rails/config.ru:1:in `new' /opt/gitlab/embedded/service/gitlab-rails/config.ru:1:in `<main>' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn.rb:56:in `eval' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn.rb:56:in `block in builder' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:752:in `build_app!' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:129:in `start' /opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/unicorn-5.1.0/bin/unicorn:126:in `<top (required)>' /opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn:22:in `load' /opt/gitlab/embedded/service/gem/ruby/2.3.0/bin/unicorn:22:in `<top (required)>' ==> /var/log/gitlab/unicorn/current <== 2017-01-06_12:06:01.55844 master failed to start, check stderr log for details 2017-01-06_12:06:02.56846 failed to start a new unicorn master 2017-01-06_12:06:02.57664 starting new unicorn master
自分の準備や配慮の無さを呪いますが、助けて頂けますでしょうか?
ちなみに、$ bundle exec rake assets:precompile RAILS_ENV=production
とか書いてますし、実行しちゃってますが、GitLab自体はomnibus-gitlabです。。。。それがいけなかったのかな?
最悪...
再インストールしかないかなとも思っています。一応backupはとってあります。ただ、現状の環境ではリストアが出来ない(なぜかrake aborted
となる)のであまり期待はしていませんが。。。
環境
OS: Ubuntu ↓詳細
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
GitLab-CE-Omnibus 8.15.2
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。