Closed MatthewC closed 6 years ago
I managed to fix the error by creating increasing MySQL' s innodb_buffer_pool_size - although I am now getting an error stating: Workspace agent is no longer responding. To fix the problem, verify you have a good network connection and restart the workspace.
Additionally, the program is using it's local IP, but when I set it to the public IP I'm getting an error saying:
conn (browser => ws): [NOT OK]
conn (server => ws): [NOT OK]
Any clue on how to fix this?
@GhostCyborg can you open browser dev console and capture a screenshot? Looks like ports are filtered - make sure the ephemeral port range is not filtered for inbound connections.
I'd also like to point something else out, the highlighted IP is the internal IP of the server, however when setting the IP to the external one through che.env - I get the error mentioned about regarding WS. As a side note, I changed the default port to 6868 (as 8080 was already used) through the che.env file. I also made sure all ports are accessible.
@GhostCyborg are you running a multi user Che? I can see that Keycloak initialization failed.
Can you share the command you use to start Che?
I'm running the command sudo docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/ubuntu/Documents/Docker-che/:/data eclipse/che start
So..... I managed to fix it. After setting the CHE_DOCKER_IP_EXTERNAL
& CHE_DOCKER_IP
to my external IP, and double checking some ports, the workspace seems to have started up correctly. I'm going to try using the "multi user che" now, and see if that also works. I personally don't see any critical errors, although see some STDERR here and there (inside the dev-machine and db console)
@GhostCyborg odds are that it's just stdout is treated as stderr.
I'm closing the issue, feel free to reopen if you have further questions (better open a new one if it's a different problem)
Will do! One last quick question, how do I enable SSL?
@GhostCyborg only if you deploy to OpenShift and setup certs there. https isn't supported for Che on Docker
And from the looks of it, starting it with the "-e CHE_MULTIUSER=true" doesn't work... I don't get an error when running the command, however, trying to connect through the 5000 (KeyCloak) port, and using the port I set for CHE (6868) doesn't load properly but it does connect.
@GhostCyborg I am not sure I understand what you mean by
I don't get an error when running the command, however, trying to connect through the 5000 (KeyCloak) port, and using the port I set for CHE (6868) doesn't load properly but it does connect.
Ok, ok, this might seem a bit confusing, but new error! I fixed the issue by rechecking my variable regarding my public IP (CHE_HOST
), once I did this the dashboard sort of loaded, as in it redirected me to KeyClock (Port: 5050), where it then gave me the error: Invalid parameter: redirect_uri
.
Out of curiosity, when I typed in the URL (i.e example.com:6868/dashboard), and when it redirected me to KeyCloak, it used the IP instead of the domain name, where would I change that?
Right, so research previous errors, and found out that I have to log into the administration panel and then set my domain name as a Valid Redirect URL
. But my question on how to set the correct URL in KeyCloak still stands.
You need to save redirect urls in Kaycloak admin console. Use the urls you will be using to access Che.
Yes, I managed to fix that. although what I was referring to was why when I go to example.com:6868/dashboard, it redirects me to KeyCloak, although it uses the IP (so: example.com:6868/dashboard => [PUBLIC_IP]:5050), how would I set it so it redirects me to the domain name and not IP?
-e CHE_HOST=hostname.com
Che CLI will do the rest.
Thank you, it now works!
Description
I had just installed Eclipe CHE on my Ubuntu Server, and was creating my first workspace, after a while I got an error mentioning that the workspace wasn't running, and when I clicked the Start button I got the error mention below.
Reproduction Steps
On Web GUI I get a message saying "Working is not running" and when clicking Start I get the error:
Could not start workspace gCyborg. Reason: Start of environment 'default' failed. Error: Error occurs while initializing command [/bin/sh, -c, trap '[ -z "$(jobs -p)" ] || kill $(jobs -p); [ -e /tmp/docker-exec-34.pid ] && rm /tmp/docker-exec-34.pid' EXIT; echo $$>/tmp/docker-exec-34.pid; command -v pidof >/dev/null 2>&1 && { pidof che-exec-agent >/dev/null 2>&1 && echo 0 || echo 1 } || { ps -fC che-exec-agent >/dev/null 2>&1 && echo 0 || echo 1 }] in docker container ebbdff02acb6214e845b9902f98799313aeee5b039531f60798910e1c3931ab4: Error response from docker API, status: 409, message: Container ebbdff02acb6214e845b9902f98799313aeee5b039531f60798910e1c3931ab4 is not running
OS and version:
Ubuntu 16.04.3 LTS
Docker Version:
Diagnostics: