2017-01-10 9 views
1

gitLab Community Edition 8.15.2(omnibus)をapache2(2.4)を使用してローカルのubuntuサーバー16.04に正常にインストールしました。ブラウザにアクセスしてすべてのタスクを実行できます。しかし、git bashやgit guiを使ってタスクを実行しようとすると(プロジェクトを初めてプッシュする、プロジェクトをクローンするなど)、タスクは実行されません。gitlabがgitからgitコマンドを実行していません

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

それはので、私は次の行

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

を実行したときに、私はproduction.logファイルに見て、これは、ログ

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) 
た次の出力に

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

を与えました

パスワードを尋ねて私がそれを提供し、これはログだった

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' 

私は一日のための解決策を探していて、まだそれを見つけていません。

答えて

1

あなたは

Issue 23133も可能修正して、gitlab-recipes issue 57JWT::DecodeError (Nil JSON web token)エラーメッセージが表示され、ポイントに言及..アップグレード後gitlab-workhorse不一致バージョンをほのめかし、22532と同様の問題を持っている:

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

at this commentもっと参照)

+0

変更ラインgitlab_workhorseするgitlab_workhorse [ 'のlisten_addr'] = "の/ var/opt/gitlab/gitlab-主力/ソケット" [ 'のlisten_addr'] = "ローカルホスト:8282" 、/etc/gitlab/gitlab.rbには、インストール後にrestが既にセットアップされています。ありがとう@VonC –

関連する問題