2016-09-06 6 views
1

私はまだ解決できない問題でしばらく苦労しています。助けていただければ幸いです! 私がしたこと: 1)http://docs.gitlab.com/omnibus/docker/README.html の次のサーバのUbuntu 16.04.1 LTS仮想マシンにdockerイメージ(8.9.6-ce.0)を使用してGitlab-CEをインストールする2)ローカルにユーザをセットアップし、いくつかのプロジェクトをプッシュする同じLAN内のマシン>>すべて正常に動作しています 3)ファイアウォールに新しいマッピングを追加してgitlab-machine-ip:80> example.org:8138をマップに追加して、http://www.gitlab.comにアクセスしてください。external_urlが設定されているとGitlabドッカーが動作しない

http://example.org:8138でWebインターフェイスにアクセスでき、それを使用する 問題:8138ポートが不足しているため、プロジェクトをクローンするためのURLが間違って表示される(-host設定からexample.orgの部分を取得ドッカーコンテナ)。 external_url「http://example.org:8138」 と再起動(も試してみました:私は手動でのURLに自分のカスタムポートを追加する場合 クローニングは

私はこれがそうにそれを設定するgitlab.rbでexternal_url設定しようとした解決したかっOK働きます呼び出しgitlab-CTLの手動で設定)

STATUSは、私はちょうどすべてが戻ったURLに欠けているポートから離れて(働いている設定external_urlをコメントアウトした場合、私は私のブラウザ でERR_CONNECTION_REFUSEDを取得http://example.org:8138 ATもうWEBインターフェイスにアクセスすることができないということです明らかに)

私は多くの問題報告を読んだが問題の解決には役に立たなかった: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/244 >>(私は外部のNGINXを使用していない) はこれについて読むと8.11に更新しようとした:https://gitlab.com/gitlab-org/gitlab-ce/issues/20131しかしそれ役に立たなかった

実際に何が起こっているのか分かりません。 gitlab-すくいgitlabの 出力:ENV:情報とgitlab-すくいgitlab:チェックが

System information 
System: 
Current User: git 
Using RVM: no 
Ruby Version: 2.3.1p112 
Gem Version: 2.6.6 
Bundler Version:2.3.0 
Rake Version: 10.5.0 
Sidekiq Version:4.1.4 

GitLab information 
Version: 8.11.3 
Revision: 6cd4edb 
Directory: /opt/gitlab/embedded/service/gitlab-rails 
DB Adapter: postgresql 
URL: http://example.org:8138 
HTTP Clone URL: http://example.org:8138/some-group/some-project.git 
SSH Clone URL: [email protected]:some-group/some-project.git 
Using LDAP: no 
Using Omniauth: no 

GitLab Shell 
Version: 3.4.0 
Repository storage paths: 
- default: /var/opt/gitlab/git-data/repositories 
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/ 
Git: /opt/gitlab/embedded/bin/git 

Checking GitLab Shell ... 

GitLab Shell version >= 3.4.0 ? ... OK (3.4.0) 
Repo base directory exists? 
default... yes 
Repo storage directories are symlinks? 
default... no 
Repo paths owned by git:git? 
default... yes 
Repo paths access is drwxrws---? 
default... yes 
hooks directories in repos are links: ... 
telemed/banca ... ok 
telemed/calcolatrice ... ok 
telemed/chat ... ok 
telemed/collections ... ok 
telemed/interfacce ... ok 
telemed/partite ... ok 
telemed/polimorfismo ... ok 
telemed/ristoranti ... ok 
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check 
Check GitLab API access: OK 
Access to /var/opt/gitlab/.ssh/authorized_keys: OK 
Send ping to redis server: OK 
gitlab-shell self-check successful 

Checking GitLab Shell ... Finished 

Checking Sidekiq ... 

Running? ... yes 
Number of Sidekiq processes ... 1 

Checking Sidekiq ... Finished 

Checking Reply by email ... 

Reply by email is disabled in config/gitlab.yml 

Checking Reply by email ... Finished 

Checking LDAP ... 

LDAP is disabled in config/gitlab.yml 

Checking LDAP ... Finished 

Checking GitLab ... 

Git configured with autocrlf=input? ... yes 
Database config exists? ... yes 
All migrations up? ... yes 
Database contains orphaned GroupMembers? ... no 
GitLab config exists? ... yes 
GitLab config outdated? ... no 
Log directory writable? ... yes 
Tmp directory writable? ... yes 
Uploads directory setup correctly? ... yes 
Init script exists? ... skipped (omnibus-gitlab has no init script) 
Init script up-to-date? ... skipped (omnibus-gitlab has no init script) 
projects have namespace: ... 
telemed/banca ... yes 
telemed/calcolatrice ... yes 
telemed/chat ... yes 
telemed/collections ... yes 
telemed/interfacce ... yes 
telemed/partite ... yes 
telemed/polimorfismo ... yes 
telemed/ristoranti ... yes 
Redis version >= 2.8.0? ... yes 
Ruby version >= 2.1.0 ? ... yes (2.3.1) 
Your git bin path is "/opt/gitlab/embedded/bin/git" 
Git version >= 2.7.3 ? ... yes (2.7.4) 
Active users: 4 

Checking GitLab ... Finished 

答えて

2

を次のOKが自分で問題を把握することができました。 Apparetlyあなたがgitlab.rbでexternal_urlパラメータを変更すると副作用があります(あなたは私に言わせれば非常に明確に文書で説明していない!)というnginxのは、今あなたがhttp://example.orgに入れたポート上で実行されます:

代わりに私のファイアウォールを介して外部URLにポート80をマッピングしたので、gitlabウェブサイトにもう到達できませんでした。私は明らかにドキュメントで、変更するexternal_url(ポート番号が含まれている場合)がnginxを引き起こし、Webサイトが標準の80とは異なるポートでhttpを実行するようにすることを提案します。

これは、私のような問題を抱えている他の人に役立ちます。slight_smile:

+0

インターネットの神々は私たちのもとにあります!これは動作します! – user432024

+0

必要に応じて、[here](https://docs.gitlab.com/omnibus/settings/nginx.html#setting-the-nginx-listen-port)の説明に従ってnginxリスンポートを設定することができます。 – blue

関連する問題