-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workspace agent not starting when CHE_SINGLE_PORT=true #5240
Comments
@levjason @benoitf I have got slightly different results. In my case, the IDE can kind of connect to ws agent, but not entirely: My traefik container logs - https://gist.githubusercontent.com/eivantsov/5eeac19f7aa94de466ad31714cf39f07/raw/0f7ee53f8e3fc229c7c87f134a25d0c44debb5b2/traefik I pulled the latest nightly image. |
The problem is that when IDE tries to reach ws agent, ws-master APIs are returned. |
Hello, I have done some investigation. The issue is that routes created for traefik are on the format (the ip before nip.io differs) as workaround, when you start che, it displays at the end
so you can run che by providing this IP to CHE_DOCKER_IP_EXTERNAL and CHE_IP:
or you run che by customizing the template
|
Hello, The workspaces start with the workaround. But I noticed these messages in the browser console: _app-0.js:15281 WARNING (org.eclipse.che.ide.websocket.impl.BasicWebSocketEndpoint): Error occurred for endpoint ws://exec-agent.dev-machine.workspaceu777zm5jkrsw0wpj.11.111.11.111.nip.io:8080/connect |
@levjason have you started an existing or a new workspace? I had issues with an existing ws. Starting a new fixed it. |
@eivantsov
|
@eivantsov Actually, I tried again and this time the workspace (the one I created today) did start. |
@levjason Can you try it a few times in an incognito tab? |
@eivantsov I restarted the server. Started an incognito window.
|
hello, what is |
@benoitf Hello, the che server is running on this server. I use this URL to access the dashboard. |
@levjason if you use URL : http://11.111.11.111.nip.io:8080 ? |
@benoitf If I use that URL I get similar results. That is, the new workspace can be stopped and started OK. The older workspace failed to start on the first attempt. But it succeeded on the second try. |
@benoitf by the way I had the same behavior on my Ubuntu laptop. Not sure why it happened though. |
fixed in nightly / 5.12.0 |
Installed the nightly build. The fix is there, since now the workspace agent's address that's provided to the browser contains the external Docker's IP address (just before nip.io). I can now create a workspace and it seems to be started, but I never get to the project creation stage, and the workspace's IDE does not load. Here is the last part of the diagnostics logs:
Any ideas? Do I need to change other environment variables (other than setting CHE_SINGLE_PORT to true)? |
@perspectivus1 can you post a screenshot with browser dev console on when you start a workspace? |
I enabled CHE_SINGLE_PORT in che.env. The traefik proxy starts. But none of the workspaces will run.
When a workspace is started I notice in the browser debugger:
_app-0.js:851 GET http://wsagent.dev-machine.workspacei121v3s3086c91js.172.17.0.1.nip.io:8080/api/ net::ERR_CONNECTION_TIMED_OUT
Reproduction Steps:
OS and version:
Ubuntu Linux, 16.04.2
Diagnostics:
INFO: (che cli): 5.11.2 - using docker 1.13.1 / native
CLI:
TTY: true
Daemon: /var/run/docker.sock
Image: eclipse/che:5.11.2
Version: 5.11.2
Command: info
Parameters: info
Mounts:
/data: /home/usajlev/che_data
/data/instance: not set
/data/backup: not set
/repo: not set
/assembly: not set
/sync: not set
/unison: not set
/chedir: not set
System:
Docker: native
Proxy: not set
Internal:
CHE_VERSION: 5.11.2
CHE_HOST: 10.130.54.161
CHE_INSTANCE: /home/usajlev/che_data/instance
CHE_CONFIG: /home/usajlev/che_data
CHE_BACKUP: /home/usajlev/che_data/backup
CHE_REGISTRY: /version
CHE_DEBUG: false
IP Detection: 10.130.54.161
Initialized: true
Image Registry:
IMAGE_INIT=eclipse/che-init:5.11.2
IMAGE_CHE=eclipse/che-server:5.11.2
IMAGE_COMPOSE=docker/compose:1.8.1
IMAGE_TRAEFIK=traefik:v1.3.0-rc1
BOOTSTRAP_IMAGE_ALPINE=alpine:3.4
BOOTSTRAP_IMAGE_CHEIP=eclipse/che-ip:5.11.2
UTILITY_IMAGE_CHEACTION=eclipse/che-action:5.11.2
UTILITY_IMAGE_CHEDIR=eclipse/che-dir:5.11.2
UTILITY_IMAGE_CHETEST=eclipse/che-test:5.11.2
UTILITY_IMAGE_CHEMOUNT=eclipse/che-mount:5.11.2
che.env:
CHE_HOST=10.130.54.161
CHE_SINGLE_PORT=true
CHE_DOCKER_SERVER__EVALUATION__STRATEGY_CUSTOM_TEMPLATE=...:
The text was updated successfully, but these errors were encountered: