workspace never comes up when Che deployed with single-host strategy
See original GitHub issueDescribe the bug
Che workspace never comes up when Che deployed with single-host strategy
Che version
- latest
Expected behavior
Runtime
- minikube (include output of
minikube version
andkubectl version
)
Screenshots
Installation method
Actually chectl
doesn’t support changing server strategy. That’s why I modified sources
https://github.com/che-incubator/chectl/blob/master/src/tasks/installers/helm.ts#L349 by adding setOptions.push('--set global.serverStrategy=single-host')
- chectl
./run server:start --platform=minikube --installer=operator --che-operator-cr-patch-yaml <patch_yaml>
spec:
k8s:
ingressStrategy: single-host
Environment
- my computer
- Linux
jwt-proxy container log
time="2020-07-14T09:46:00Z" level=info msg="Starting reverse proxy (Listening on ':4402')"
time="2020-07-14T09:46:00Z" level=info msg="Starting reverse proxy (Listening on ':4400')"
time="2020-07-14T09:46:00Z" level=info msg="Starting reverse proxy (Listening on ':4401')"
2020/07/14 09:48:30 [008] WARN: Error reading handhsake response unexpected EOF
2020/07/14 09:48:30 [008] WARN: Websocket handshake error: unexpected EOF
2020/07/14 09:48:30 http: response.WriteHeader on hijacked connection from github.com/eclipse/che-jwtproxy/vendor/github.com/coreos/goproxy.(*ProxyHttpServer).ServeHTTP (proxy.go:149)
2020/07/14 09:48:30 http: response.Write on hijacked connection from io.copyBuffer (io.go:404)
Additional context
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Chapter 4. Configuring CodeReady Workspaces
Specifies whether CodeReady Workspaces is deployed with DevWorkspaces enabled. ... They can either follow the single-host strategy and be exposed on ...
Read more >Unable to bring up Eclipse che on Kubernetes - Stack Overflow
I got Kubernetes installed on Ubuntu and am trying to run chectl server:start but it is failing. What am doing wrong? Below is...
Read more >Introduction to Eclipse Che :: Eclipse Che Documentation
A multi-container workspace for each developer with the ability to replicate with a single click using Eclipse Che factories. Pre-built stacks with the...
Read more >Devfile v2 and IDE plug-ins - Eclipse Che Blog
ℹ️ When DevWorkspace is enabled, single-host deployment is enforced. As a consequence, when the Che host certificate is untrusted, ...
Read more >Get Started with VMware Cloud Disaster Recovery
Set up and scale your Disaster Recovery environment on demand by choosing the deployment option that best fits your recovery and resiliency needs....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think I found and fixed the issue. https://github.com/eclipse/che-theia/blob/master/extensions/eclipse-che-theia-messaging/src/node/messaging/che-messaging-contribution.ts#L81
The objects here looks like this:
isEqualOrParent
function looks like this (https://github.com/eclipse-theia/theia/blob/14531578a1eac6af55c6177ea857d39c38c9f09b/packages/core/src/common/uri.ts#L202):issue is in
this.path.isEqualOrParent(uri.path)
where we are comparing them in reverse. Swapping them fixes the issue.PR merged https://github.com/eclipse/che-theia/pull/812, closing this issue.