An unexpected error occurred for a not secure connection at using Open Folder command
See original GitHub issueDescribe the bug
After loading Che-Code, I get the error message:
An unexpected error occurred that requires a reload of this page.
The workbench failed to connect to the server (Error: WebSocket close with status code 1006)
UPDATE: please see https://github.com/eclipse/che/issues/21392#issuecomment-1286616778
Che version
next (development version)
Steps to reproduce
Just start a workspace with Che-Code editor.
Expected behavior
Che-Code must be loaded with no error popping up.
Runtime
minikube
Screenshots
Installation method
chectl/next
Environment
Linux
Eclipse Che Logs
No response
Additional context
Logs of the Che-Code container:
total 28
drwxrwxrwx 6 root root 4096 May 11 15:44 .
drwxr-xr-x 1 root root 4096 May 11 17:54 ..
drwxr-xr-x 2 1234 root 4096 May 11 15:42 bin
drwxr-xr-x 7 1234 root 4096 May 11 15:42 checode-linux-libc
drwxr-xr-x 7 1234 root 4096 May 11 15:42 checode-linux-musl
-rwxr-xr-x 1 1234 root 1083 May 11 17:54 entrypoint-volume.sh
drwx------ 4 1234 root 4096 May 11 15:44 remote
time="2022-05-11T17:54:55Z" level=info msg="Default 'info' log level is applied"
time="2022-05-11T17:54:55Z" level=info msg="Exec containers configuration:"
time="2022-05-11T17:54:55Z" level=info msg="==> Debug level info"
time="2022-05-11T17:54:55Z" level=info msg="==> Application url 0.0.0.0:3333"
time="2022-05-11T17:54:55Z" level=info msg="==> Absolute path to folder with static resources "
time="2022-05-11T17:54:55Z" level=info msg="==> Use bearer token: false"
time="2022-05-11T17:54:55Z" level=info msg="==> Pod selector: controller.devfile.io/devworkspace_id=workspaceb2504da404354163"
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
[GIN-debug] GET /connect --> main.main.func2 (3 handlers)
[GIN-debug] GET /attach/:id --> main.main.func3 (3 handlers)
[GIN-debug] POST /exec/config --> main.main.func4 (3 handlers)
[GIN-debug] POST /exec/init --> main.main.func5 (3 handlers)
[GIN-debug] POST /activity/tick --> main.main.func6 (3 handlers)
[GIN-debug] GET /healthz --> main.main.func7 (3 handlers)
⇩ Registered RPCRoutes:
Json-rpc MachineExec Routes:
✓ create
✓ check
✓ resize
✓ listContainers
[GIN-debug] Listening and serving HTTP on 0.0.0.0:3333
Server bound to 127.0.0.1:3100 (IPv4)
Extension host agent listening on 3100
Web UI available at http://localhost:3100/
[17:55:01] Extension host agent started.
[GIN] 2022/05/11 - 17:55:01 | 200 | 209.739µs | 127.0.0.1 | GET /connect
[17:56:16] [127.0.0.1][f7cfd4bd][ManagementConnection] New connection established.
[17:56:17] RemoteTerminalChannel: unsupported command/$getTerminalLayoutInfo
[17:56:18] RemoteTerminalChannel: unsupported command/$reduceConnectionGraceTime
Issue Analytics
- State:
- Created a year ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
How to Fix Secure Connection Error in WordPress - WPBeginner
It is a common WordPress error and usually occurs when you are trying to install or update a WordPress plugin or theme from...
Read more >"An unexpected network error occurred" error message when ...
"An unexpected network error occurred" error message when you try to browse a DFS folder in Windows 7 or in Windows Server 2008...
Read more >QRadar application error: 'Cannot establish secure connection ...
On the QRadar Console, when you select an application an error message displays, 'Cannot establish secure connection to the console.
Read more >What do the security warning codes mean? | Firefox Help
The certificate is not trusted because the issuer certificate is unknown. The server might not be sending the appropriate intermediate certificates. An ...
Read more >An unexpected error occurred on a send." With SSL Certificate
I have uploaded this page to a non SSL website to check if the SSL certificate on our production server is making the...
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
Thank you @RomanNikitenko for the great investigation! Considering that, after fixing https://github.com/eclipse/che/issues/21400, the steps to reproduce this issue are not typical for the Che user (closing the current VS Code Workspace), I believe it makes little sense to continue investing in a fix for this issue. I’m decreasing the issue’s priority to P2. We can come back to it once there will be a real use case when the issue is relevant.
I was able to reproduce the problem only for not secure connections (a certificate was not provided or is invalid):
Another condition to reproduce the issue -
Open Folder
command usage.So, two things are required to face with issue:
Open Folder
commandThe issue was detected at starting IDE step for not secure connections as starting
Che-Code
had 2 steps:Open Folder
command by API.See Che-Code loading twice at workspace startup for more details.
The issue is not actual for starting IDE after merging https://github.com/che-incubator/che-code/pull/131 as
Open Folder
command is not used anymore to open a project. But a user still might face the issue:Open Folder
command to open another project/folder