question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors when setting custom CHE_CONTAINER value with multiuser mode

See original GitHub issue

Description

I have 2 issues when trying to run che with multi user:

Invalid parameter, redirect_uri when accessing to che with multiuser mode and with CHE_CONTAINER containing a -

This one can be reproduced with the command

docker run -it -e CHE_MULTIUSER=true -e CHE_HOST=${EXTERNAL_IP}  -e CHE_CONTAINER=che-multi -v /var/run/docker.sock:/var/run/docker.sock -v ~/.che-multiuser:/data eclipse/che start

so accessing to EXTERNAL_IP:8080 brings us to the page from keycloak:

selection_078

From keycloak logs:

12:34:40,406 WARN  [org.keycloak.events] (default task-16) type=LOGIN_ERROR, realmId=che, clientId=che-public, userId=null, ipAddress=192.168.0.11, error=invalid_redirect_uri, redirect_uri=http://192.168.0.11:8081/dashboard/

The issue seems to be related to the - contained in the container name che-multi.

With CHE_CONTAINER=che-multi, it fails but with CHE_CONTAINER=chemulti, it works. I suspect it is related to the generated containers name for keycloak and postgres (che-multi, chemulti_postgres_1, chemulti_keycloack_1 insteadof che-multi, che-multi_postgres_1, che-multi_keycloak_1)

Also if we only set CHE_PORT to 8081, it fails as well as the container name becomes che-8081

Can not start a workspace

So if I set any value that is not che as a container name, I can not start a workspace:

selection_079

Good to know: I also had another error message about che not being able to find network che-multi_che..... but can not get this error back again.

OS and version:
RHEL 7 (CSB)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
benoitfcommented, Nov 10, 2017

@skabashnyuk based on the command line it’s che latest (5.x) and Docker.

0reactions
ghostcommented, May 10, 2018

Closed due to inactivity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Eclipse-Che multiuser does not successfully install ... - GitHub
In my router, route ports 8080 and 32768 to 65535 to 192.168.0.245; docker run -it -e CHE_MULTIUSER=true -e CHE_HOST= -v /var/run/docker.sock:/ ...
Read more >
eclipse che docker - can not create workspace - <no value>/lib ...
I tried so set up eclipse che as described in https://eclipse.org/che/docs/setup/docker/ with the following command:
Read more >
Chapter 14. Administering workspaces Red Hat CodeReady ...
When a workspace starts, the CodeReady Workspaces server creates and starts a container or a pod or a set of containers and pods...
Read more >
airflow-init docker compose up cannot create directory ...
Permission Denied while installing Airflow via Docker ... "/data/cli.log" 2>&1 Creating che_postgres_1 ERROR: for che Container "68a92ce965c7" is unhealthy.
Read more >
CHANGELOG.md · fef7cc44e66cb24b82df42dbe8c819db65915568 ...
RELEASE: Set next development version #9862 (riuvshin) ... CHE-8931: fix projects management in multi-user mode #9615 (akurinnoy); CHE-9449: Adapt Node Js ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found