1

GitLab Community Edition 8.15.2 (オムニバス) をローカルの ubuntu サーバー 16.04 に apache2 (2.4) で正常にインストールしました。ブラウザーでアクセスして、すべてのタスクを実行できます。しかし、git bashまたはgit guiを使用してタスクを実行しようとすると(初めてプロジェクトをプッシュする、またはプロジェクトを複製するなど)、タスクを実行しません。

git clone http://192.168.179.128/pherry/Pilzon.git

次の出力が得られました

Cloning into 'Pilzon'...
fatal: unable to access 'http://192.168.179.128/pherry/Pilzon.git/': The requested URL returned error: 500

だから私は次の行を実行したときに production.log ファイルを調べました

git clone http://192.168.179.128/pherry/Pilzon.git

そしてこれがログでした

Started GET "/pherry/Pilzon.git/info/refs?service=git-upload-pack" for 192.168.179.1 at 2017-01-09 20:00:17 -0800
Processing by Projects::GitHttpController#info_refs as */*
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"pherry", "project_id"=>"Pilzon.git"}
Filter chain halted as :authenticate_user rendered or redirected
Completed 401 Unauthorized in 41ms (Views: 0.3ms | ActiveRecord: 5.2ms)
Started GET "/" for 192.168.179.1 at 2017-01-09 20:00:19 -0800
Started GET "/" for 192.168.179.1 at 2017-01-09 20:00:19 -0800
Processing by RootController#index as HTML
Processing by RootController#index as HTML
Completed 401 Unauthorized in 44ms (ActiveRecord: 19.3ms)
Completed 401 Unauthorized in 28ms (ActiveRecord: 4.3ms)

次に、パスワードを要求し、それを提供したとき、これがログでした

Started GET "/pherry/Pilzon.git/info/refs?service=git-upload-pack" for 192.168.179.1 at 2017-01-09 20:01:52 -0800
Processing by Projects::GitHttpController#info_refs as */*
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"pherry", "project_id"=>"Pilzon.git"}
Filter chain halted as :authenticate_user rendered or redirected
Completed 401 Unauthorized in 32ms (Views: 0.6ms | ActiveRecord: 3.5ms)
Started GET "/pherry/Pilzon.git/info/refs?service=git-upload-pack" for 192.168.179.1 at 2017-01-09 20:01:52 -0800
Processing by Projects::GitHttpController#info_refs as */*
  Parameters: {"service"=>"git-upload-pack", "namespace_id"=>"pherry", "project_id"=>"Pilzon.git"}
Completed 500 Internal Server Error in 149ms (ActiveRecord: 5.6ms)

JWT::DecodeError (Nil JSON web token):
  lib/gitlab/workhorse.rb:137:in `decode_jwt'
  lib/gitlab/workhorse.rb:133:in `verify_api_request!'
  app/controllers/concerns/workhorse_request.rb:11:in `verify_workhorse_api!'
  lib/gitlab/middleware/multipart.rb:93:in `call'
  lib/gitlab/request_profiler/middleware.rb:15:in `call'
  lib/gitlab/middleware/go.rb:16:in `call'

私は一日中解決策を探していましたが、まだ見つけていません。

4

1 に答える 1

1

22532にも同様の問題があり、アップグレード後のバージョンの不一致をほのめかしてgitlab-workhorseいます..

問題 23133にもJWT::DecodeError (Nil JSON web token)エラー メッセージが記載されており、gitlab-recipes問題 57が示されています。修正の可能性があります。

簡単な答えは、UNIXソケットを使用するのではなくTCPポートでリッスンする/etc/init.d/gitlabように変更する必要があり、そのポートへのApacheリライトを設定することです。gitlab-workhorse

(このコメントで詳細を参照)

于 2017-01-10T05:25:06.703 に答える