1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS7でEclipse Cheを動かす際に出るネットワーク系エラーの対処方法

Posted at

「CentOS7」では、デフォルトでファイアウォールが有効になっているため、
「Eclipse Che」をインストールした際にポートを開放していないと「起動時」「実行中」の2箇所でエラーになります。

■エラー箇所

1.docker run時のエラー

$ sudo docker run -it -e CHE_MULTIUSER=true -e CHE_HOST=192.168.10.111 -v /var/run/docker.sock:/var/run/docker.sock -v /usr/local/che:/data eclipse/che start


〜 中略 〜

INFO: (che start): Preflight checks
         mem (1.5 GiB):           [OK]
         disk (100 MB):           [OK]
         port 8080 (http):        [AVAILABLE]
         conn (browser => ws):    [NOT OK]
         conn (server => ws):     [NOT OK]


ERROR: Try 'docker run <options> eclipse/che info --network' for more tests.

2.Webブラウザからワークスペースを作成後、IDEでワークスペースを開こうとした時のエラー

Failed to run the workspace: "Server 'exec-agent/http' in machine 'dev-machine' not available."

■原因:

 いずれもEclipse Cheで使用するポート「80」「8080」「5050」「32768-65535」が閉じているため、内部的に通信ができずにエラーになっているようです。

■解決方法

 下記のURLを参考にfirewalldで、下記のポートを開放する。

対象ポート
「80」「8080」「5050」「32768-65535」

ポートの範囲指定は、以下のようにハイフンつなぎで指定可能です。

sudo firewall-cmd --zone=public --add-port=32768-65535/tcp --permanent
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?