-
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
Frequent 'Unable to initialize IDE' error on AWS #4288
Comments
The same situation here, I also get the same popup when starting workspace created from i.e. PHP stack. |
I am using local build of Che 5.4.0, below is some additional info about my environment: OS and version: Windows 10 + Docker 1.13.1 Diagnostics:
|
@kaloyan-raev is this a public instance that I can access? @bartlomiej-laczkowski I will give it a try with the latest tag on Win 10 |
It's much harder to reproduce in Super Dev Mode. But I was able to once see a more detailed exception in the Chrome debugger:
It seems that the OrionEditorExtention is not yet initialized at the time the LS FileTypes are registered in the Orion editor. |
@eivantsov Yes. Try this URL: http://107.22.151.190:8080/dashboard/#/ide/che/wksp-qcf5 If it does not happen the first time, try refreshing the browser until you see it. |
@kaloyan-raev do you think this is affected by some latency? i.e. the fact that this is a remote instance? |
It seems there is some race condition. I haven't seen this locally on my Linux system. @bartlomiej-laczkowski sees it often on his Windows, but there Docker is installed differently than on Linux. And on this AWS instance is quite often. But never happened with an older 5.0.0-M8 installation... |
Yes, Win 10 is kind of a remote Che as well since containers run in a VM. |
Perhaps some async calls from browser to Che server take longer time than assumed in these remote use cases. |
Yes, I can see the same behavior. I'll start a remote Che and the IDE team will take a look. |
Is there a way to ensure that the OrionEditorExtension constructor is called before the LanguageServerFileTypeRegister.start() method? |
Just pushed PR #4352 with a fix. |
cannot reproduce it |
I have the same issue here. Is there a step by step solution for this? |
@ciastirfry can you elaborate? Does it happen to any workspace that you start? Please note that you need to open the ephemeral port range on your AWS VM otherwise your browser would never reach the workspace agent which is a Tomcat server running in a Docker container on port 8080 which is exposed to a random port from the ephemeral port range each time the workspace starts. |
@eivantsov, thanks for your immediate response. are you referring to the port below. Any steps how to open that in AWS? I'm using Ec2. 32768-65535 | Docker and Che Agents |
@ciastirfry yes, I am referring to the ephemeral port range 32768-65535. Perhaps docs on security groups can help http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html |
@eivantsov, We'll try this approach. Thanks a lot for your help! |
For anyone else that has this same issue, I found a different fix for it. The fix for me was to stop the container and edit che.env
Once I changed that and started the container, the Workspaces would load immediately on my Chromebook. That setting by default is pointing to http://localhost:${SERVER_PORT} |
I have an issue running Che on an AWS EC2 instance. The browser fails to initialize the Web IDE showing a popup dialog saying 'Unable to initialize IDE'.
The workspace seems to be initialized correctly. I can verify this using the Che Terminal panel, which is not affected by the error.
Unfortunately, the Project Explorer and Commands drop-down list are empty and the IDE is quite unusable.
I noticed that the issue is quite frequent, but not 100% reproducible. It's more like 80% reproducible. It happens only with stacks that have Language Server agents enabled by default (like the PHP stack).
I found the following error in the Chrome Console:
The issue is not reproducible with an older installation of Che - version 5.0.0-M8.
Reproduction Steps:
The workspace will initialize correctly, but the browser will fail initializing the Web IDE.
OS and version:
Ubuntu 14.04.4 LTS (running on AWS EC2)
Diagnostics:
The text was updated successfully, but these errors were encountered: