-
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
Error creating a project in eclipse che on desktop #261
Comments
@garagatyi --- Please offer some ideas. |
@tikaa Please change logging level to debug (/tomcat/conf/logback.xml) and restart che. Then provide output (/tomcat/logs/2016/...catalina-....log). It should be the most recent log file. |
Hi @garagatyi
In case it matters, I'm running it on port 8081 Thanks. |
@raviv Please provide the whole log. Debug information I'm looking for is not in those lines you've provided |
Hello Alexander, I tried the following methods to start eclipse Che in the DEBUG mode, ./che.sh --debug run Also changing the tomcat/conf logback.xml as attached herewith, But i could not observe any log flies in the tomcat/logs folder. that [1] GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) This is free software; you are free to change and redistribute it. ############## HOW TO CONNECT YOUR CHE CLIENT ###############
Starting Che server in docker container named che. Docker container named che successfully started. Awanthika Senarath On Fri, Feb 5, 2016 at 1:32 PM, Alexander Garagatyi <
|
Have anybody know solution to solve this issue ???? |
@thesecondzorg We need some help in trying to reproduce this issue. Can you provide the system, operating system, docker version, che version and any steps to reproduce? Thanks. |
The only way I can reproduce this issue is messing up with DOCKER_HOST, for instance exporting DOCKER_MACHINE_HOST as empty string. Can you try running Che as |
@tikaa Can you please follow instructions in my previous comment? |
I've experienced the same issue. Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux Docker version 1.8.1, build d12ea79 The log (this one as root, with the -s:uid option, but tried as non-root user too, same output): root@devel:/opt/eclipse-che-4.0.0-RC11/bin# ./che.sh run --remote:ip=172.17.42.1 -s:uid ############## HOW TO CONNECT YOUR CHE CLIENT ###############
Using CATALINA_BASE: /opt/eclipse-che-4.0.0-RC11/tomcat Any ideas? |
Do you have CHE_DOCKER_MACHINE_HOST env exported in your system?
I can reproduce this issue when exporting an empty CHE_DOCKER_MACHINE_HOST. If this variable is there, the server uses it to connect to a workspace container (namely, ws agent). The default on Linux is localhost, so I suspect the problem may be with some localhost settings.
|
@tikaa @Tacsiazuma can you take a look at this issue - #736 Looks like you have the same problem. Your local networking config may be causing it. |
I had the same issue in a CentOS7 machine, to solve this issue I did the steps below:
Edit: /usr/lib/systemd/system/docker.service
Where {DOCKER_HOST_MACHINE} is the IP of your machine running docker daemon. Ex:
Where {DOCKER_HOST_MACHINE} is the IP of your machine running docker daemon. Ex:
|
Thank you @eivantsov , that was the problem! Although the ETH0_IP env variable was empty in my case, so I manually passed the docker host machine's local IP.
|
@tikaa can you do the same please and confirm you can run Che? |
Hello Eugene, I am not currently working on the Che task. I am preoccupied with some Thanks for the support! appreciate it. Regards Awanthika Senarath On Thu, Mar 24, 2016 at 12:24 PM, Eugene Ivantsov notifications@github.com
|
Closing the issue. Do not hesitate to reopen if you have more questions or face issues. |
I have Eclipse Che running on my desktop and when I try to create a project in it I get the exception [1].
Any idea how to solve this?
[1] Creating machine [ws = workspacec3uqzvrq98trmwr5: env = wksp-vo1e: machine = ws-machine]
Exception in thread "WorkspaceManager-0" java.lang.RuntimeException: java.lang.IllegalArgumentException: protocol = http host = null
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1455)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2979)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:489)
at org.eclipse.che.api.core.rest.DefaultHttpJsonRequest.doRequest(DefaultHttpJsonRequest.java:225)
at org.eclipse.che.api.core.rest.DefaultHttpJsonRequest.request(DefaultHttpJsonRequest.java:136)
at org.eclipse.che.api.machine.server.WsAgentLauncherImpl.pingWsAgent(WsAgentLauncherImpl.java:122)
at org.eclipse.che.api.machine.server.WsAgentLauncherImpl.startWsAgent(WsAgentLauncherImpl.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.google.inject.internal.DelegatingInvocationHandler.invoke(DelegatingInvocationHandler.java:50)
at com.sun.proxy.$Proxy52.startWsAgent(Unknown Source)
at org.eclipse.che.api.machine.server.MachineManager.createInstance(MachineManager.java:370)
at org.eclipse.che.api.machine.server.MachineManager.createMachine(MachineManager.java:337)
at org.eclipse.che.api.machine.server.MachineManager.createMachineSync(MachineManager.java:168)
at org.eclipse.che.api.workspace.server.RuntimeWorkspaceRegistry.createMachine(RuntimeWorkspaceRegistry.java:451)
at org.eclipse.che.api.workspace.server.RuntimeWorkspaceRegistry.startEnvironment(RuntimeWorkspaceRegistry.java:319)
at org.eclipse.che.api.workspace.server.RuntimeWorkspaceRegistry.start(RuntimeWorkspaceRegistry.java:145)
at org.eclipse.che.api.workspace.server.WorkspaceManager.performSyncStart(WorkspaceManager.java:642)
at org.eclipse.che.api.workspace.server.WorkspaceManager.lambda$performAsyncStart$9(WorkspaceManager.java:613)
at org.eclipse.che.commons.lang.concurrent.CopyThreadLocalRunnable.run(CopyThreadLocalRunnable.java:28)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: protocol = http host = null
at sun.net.spi.DefaultProxySelector.select(DefaultProxySelector.java:176)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1099)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
... 22 more
The text was updated successfully, but these errors were encountered: