Skip to content
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

Client has aborted connection. Response writing omitted. #5245

Closed
YanngLiu opened this issue May 31, 2017 · 18 comments
Closed

Client has aborted connection. Response writing omitted. #5245

YanngLiu opened this issue May 31, 2017 · 18 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@YanngLiu
Copy link

I downloaded Che source code and built it in a Ubuntu machine (not VM).
Then I started the server using following command:
docker run -v /var/run/docker.sock:/var/run/docker.sock -e CHE_LOCAL_BINARY=/home/yang/che/assembly/assembly-main/target/eclipse-che-5.9.0-SNAPSHOT/eclipse-che-5.9.0-SNAPSHOT codenvy/che-launcher:nightly start
I open the url http://10.99.24.179:8080/dashboard in firefox on another machine which is in the same internal network, and try to create a simple hello world Java project in the workspace, the error message appears.

Reproduction Steps:

  1. Run Che server using local assembly
  2. Connect to server in firefox
  3. Create a project in a workspace

OS and version:
Linux yang-OptiPlex-960 4.8.0-36-generic #36~16.04.1-Ubuntu SMP Sun Feb 5 09:39:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Diagnostics:
yang@yang-OptiPlex-960:~$ docker run -v /var/run/docker.sock:/var/run/docker.sock eclipse/che info
WARN: Bound 'eclipse/che' to 'eclipse/che:5.8.1'
WARNING: No swap limit support
WARN: Did not detect TTY - interactive mode disabled
INFO: Welcome to Eclipse Che!
INFO:
INFO: We could not detect a location to save data.
INFO: Volume mount a local directory to ':/data'.
INFO:
INFO: Simplest syntax:
INFO: docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock
INFO: -v <YOUR_LOCAL_PATH>:/data
INFO: eclipse/che info
INFO:
INFO:
INFO: Or, run with additional overrides:
INFO: docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock
INFO: -v <YOUR_LOCAL_PATH>:/data
INFO: -v <YOUR_INSTANCE_PATH>:/data/instance
INFO: -v <YOUR_BACKUP_PATH>:/data/backup
INFO: eclipse/che info

@YanngLiu
Copy link
Author

After the error messages, there will be a dialog:
Title: Workspace Agent Not Responding
Message body: Our workspace agent is no longer responding. To fix the problem, verify you have a good network connection and restart the workspace.

@YanngLiu
Copy link
Author

console messages:
[DOCKER] latest: Pulling from codenvy/ubuntu_jdk8
[DOCKER] Digest: sha256:018f74a9a6f407f10c2815c39fb965f9dea8a1acb0f5cd2de7ef1ec32f133ed5
[DOCKER] Status: Image is up to date for codenvy/ubuntu_jdk8:latest
Listening for transport dt_socket at address: 4403
2017-05-31 15:45:16,918[main] [INFO ] [o.a.c.s.VersionLoggerListener 89] - Server version: Apache Tomcat/8.0.38
2017-05-31 15:45:16,936[main] [INFO ] [o.a.c.s.VersionLoggerListener 91] - Server built: Oct 6 2016 20:51:55 UTC
2017-05-31 15:45:16,937[main] [INFO ] [o.a.c.s.VersionLoggerListener 93] - Server number: 8.0.38.0
2017-05-31 15:45:16,938[main] [INFO ] [o.a.c.s.VersionLoggerListener 95] - OS Name: Linux
2017-05-31 15:45:16,938[main] [INFO ] [o.a.c.s.VersionLoggerListener 97] - OS Version: 4.8.0-36-generic
2017-05-31 15:45:16,938[main] [INFO ] [o.a.c.s.VersionLoggerListener 99] - Architecture: amd64
2017-05-31 15:45:16,939[main] [INFO ] [o.a.c.s.VersionLoggerListener 101] - Java Home: /opt/jdk1.8.0_45/jre
2017-05-31 15:45:16,939[main] [INFO ] [o.a.c.s.VersionLoggerListener 103] - JVM Version: 1.8.0_45-b14
2017-05-31 15:45:16,939[main] [INFO ] [o.a.c.s.VersionLoggerListener 105] - JVM Vendor: Oracle Corporation
2017-05-31 15:45:16,940[main] [INFO ] [o.a.c.s.VersionLoggerListener 107] - CATALINA_BASE: /home/user/che/ws-agent
2017-05-31 15:45:16,940[main] [INFO ] [o.a.c.s.VersionLoggerListener 109] - CATALINA_HOME: /home/user/che/ws-agent
2017-05-31 15:45:16,944[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djava.util.logging.config.file=/home/user/che/ws-agent/conf/logging.properties
2017-05-31 15:45:16,945[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
2017-05-31 15:45:16,948[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Xms256m
2017-05-31 15:45:16,949[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Xmx2048m
2017-05-31 15:45:16,950[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djava.security.egd=file:/dev/./urandom
2017-05-31 15:45:16,951[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dche.logs.dir=/home/user/che/ws-agent/logs
2017-05-31 15:45:16,952[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
2017-05-31 15:45:16,953[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
2017-05-31 15:45:16,953[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -agentlib:jdwp=transport=dt_socket,address=4403,server=y,suspend=n
2017-05-31 15:45:16,953[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dcom.sun.management.jmxremote
2017-05-31 15:45:16,953[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dcom.sun.management.jmxremote.ssl=false
2017-05-31 15:45:16,954[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
2017-05-31 15:45:16,954[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dche.local.conf.dir=/mnt/che/conf
2017-05-31 15:45:16,954[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djava.endorsed.dirs=/home/user/che/ws-agent/endorsed
2017-05-31 15:45:16,955[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dcatalina.base=/home/user/che/ws-agent
2017-05-31 15:45:16,960[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Dcatalina.home=/home/user/che/ws-agent
2017-05-31 15:45:16,960[main] [INFO ] [o.a.c.s.VersionLoggerListener 115] - Command line argument: -Djava.io.tmpdir=/home/user/che/ws-agent/temp
2017-05-31 15:45:17,457[main] [INFO ] [o.a.c.http11.Http11NioProtocol 443] - Initializing ProtocolHandler ["http-nio-4401"]
2017-05-31 15:45:17,490[main] [INFO ] [o.a.t.util.net.NioSelectorPool 72] - Using a shared selector for servlet write/read
2017-05-31 15:45:17,495[main] [INFO ] [o.a.catalina.startup.Catalina 591] - Initialization processed in 960 ms
2017-05-31 15:45:17,602[main] [INFO ] [c.m.JmxRemoteLifecycleListener 332] - The JMX Remote Listener has configured the registry on port 32002 and the server on port 32102 for the Platform server
2017-05-31 15:45:17,611[main] [INFO ] [o.a.c.core.StandardService 435] - Starting service Catalina
2017-05-31 15:45:17,611[main] [INFO ] [o.a.c.core.StandardEngine 259] - Starting Servlet Engine: Apache Tomcat/8.0.38
2017-05-31 15:45:17,684[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 911] - Deploying web application archive /home/user/che/ws-agent/webapps/wsagent.war
2017-05-31 15:45:34,269[ost-startStop-1] [INFO ] [.e.c.a.v.i.f.e.LoEventListener 48] - Subscribing to event service: class org.eclipse.che.api.vfs.impl.file.event.LoEventListener
2017-05-31 15:45:34,319[ost-startStop-1] [INFO ] [.e.c.a.v.i.f.e.VfsEventService 55] - Starting virtual file system event service: LoEventService
2017-05-31 15:45:34,322[ost-startStop-1] [INFO ] [.e.c.a.v.i.f.e.VfsEventService 55] - Starting virtual file system event service: HiEventService
2017-05-31 15:45:34,711[rest.WSClient-0] [INFO ] [.c.a.c.n.WSocketEventBusClient 223] - Open connection to ws://che-host:8080/wsmaster/api/eventbus/?token=dummy_token.
2017-05-31 15:45:37,487[s polled Thread] [INFO ] [o.e.c.p.m.server.rmi.RmiClient 130] - Port/Name:39908/MavenRemoteServerImpledf343ed

Wed May 31 15:45:40 UTC 2017 - [localhost-startStop-1] Product-specified preferences called before plugin is started
2017-05-31 15:45:41,903[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 975] - Deployment of web application archive /home/user/che/ws-agent/webapps/wsagent.war has finished in 24,217 ms
2017-05-31 15:45:41,924[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 1031] - Deploying web application directory /home/user/che/ws-agent/webapps/ROOT
2017-05-31 15:45:42,172[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 1143] - Deployment of web application directory /home/user/che/ws-agent/webapps/ROOT has finished in 248 ms
2017-05-31 15:45:42,210[main] [INFO ] [o.a.c.http11.Http11NioProtocol 488] - Starting ProtocolHandler ["http-nio-4401"]
2017-05-31 15:45:42,236[main] [INFO ] [o.a.catalina.startup.Catalina 642] - Server startup in 24740 ms
2017-05-31 15:45:43,069[nio-4401-exec-7] [WARN ] [o.e.c.impl.ContainerResponse 93] - Client has aborted connection. Response writing omitted.
2017-05-31 15:45:43,072[nio-4401-exec-6] [WARN ] [o.e.c.impl.ContainerResponse 93] - Client has aborted connection. Response writing omitted.
2017-05-31 15:45:43,073[nio-4401-exec-5] [WARN ] [o.e.c.impl.ContainerResponse 93] - Client has aborted connection. Response writing omitted.
2017-05-31 15:45:43,072[nio-4401-exec-1] [WARN ] [o.e.c.impl.ContainerResponse 93] - Client has aborted connection. Response writing omitted.
2017-05-31 15:45:43,075[nio-4401-exec-4] [WARN ] [o.e.c.impl.ContainerResponse 93] - Client has aborted connection. Response writing omitted.
2017-05-31 15:45:43,075[nio-4401-exec-2] [WARN ] [o.e.c.impl.ContainerResponse 93] - Client has aborted connection. Response writing omitted.

@ghost
Copy link

ghost commented May 31, 2017

@YanngLiu you may want to try running it with -e "CHE_HOST=10.99.24.179"

@ghost ghost added the kind/question Questions that haven't been identified as being feature requests or bugs. label May 31, 2017
@YanngLiu
Copy link
Author

YanngLiu commented May 31, 2017

Thanks @eivantsov . I tried this option but no luck.
The same error messages appear.
docker run -e "CHE_HOST=10.99.24.179" -v /var/run/docker.sock:/var/run/docker.sock -e CHE_LOCAL_BINARY=/home/yang/che/assembly/assembly-main/target/eclipse-che-5.9.0-SNAPSHOT/eclipse-che-5.9.0-SNAPSHOT codenvy/che-launcher:nightly start

@ghost
Copy link

ghost commented May 31, 2017

@YanngLiu che-launcher is deprecated. use eclipse/che

@YanngLiu
Copy link
Author

Thanks @eivantsov . Things look moving forward.
Now Che complains We could not resolve DockerHub using DNS.

The content of file /etc/network/interfaces:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
dns-nameservers 8.8.8.8

@ghost
Copy link

ghost commented May 31, 2017

@YanngLiu are you behind a proxy?

You may add --fast to your docker run syntax.

@YanngLiu
Copy link
Author

I'm not sure, but I think so. The machine is within company.
There is result for env | grep -i proxy

Looks there is no --fast option for docker run, as there is an error:
yang@yang-OptiPlex-960:~$ docker run --fast -e "CHE_HOST=10.99.24.179" -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/che:/data -e CHE_LOCAL_BINARY=/home/yang/che/assembly/assembly-main/target/eclipse-che-5.9.0-SNAPSHOT/eclipse-che-5.9.0-SNAPSHOT eclipse/che:nightly start
unknown flag: --fast

@ghost
Copy link

ghost commented May 31, 2017

append --fast after start

@YanngLiu
Copy link
Author

YanngLiu commented Jun 1, 2017

Thanks @eivantsov . Things look move forward!
What's the meaning of --fast? I cannot find it in docker run --help

There is another error message in a dialog when I try to create a Java project in the workspace:
Error while creating the project
: https://github.com/che-samples/console-java-simple.git: cannot open git-upload-pack

@ghost
Copy link

ghost commented Jun 1, 2017

@YanngLiu --fast is Che CLI argument, not Docker's.

https://github.com/che-samples/console-java-simple.git: cannot open git-upload-pack

You must be behind the proxy. Make sure you configure proxy both for master and ws-agent: https://www.eclipse.org/che/docs/setup/getting-started/index.html#proxy-installation

@YanngLiu
Copy link
Author

YanngLiu commented Jun 1, 2017

Thanks!
But I get the same error message even if I try to create project in the same machine which run Che server. And I can run git clone https://github.com/che-samples/console-java-simple.git in my Ubuntu command shell successfully.

@ghost
Copy link

ghost commented Jun 12, 2017

@YanngLiu please share your che.env file, namely envs for proxies. Have you set proxy for Codenvy workspaces?

@YanngLiu
Copy link
Author

@eivantsov Thanks for the response. I didn't set proxy as I didn't get the info from my IT guys.
That file contains two lines:
CHE_HOST=10.99.24.179
CHE_DOCKER_IP_EXTERNAL=10.99.24.179

@ghost
Copy link

ghost commented Jun 12, 2017

@YanngLiu you need this info, otherwise workspace agent will have limited connectivity.

@YanngLiu
Copy link
Author

@eivantsov Got it, I'll try to find what's the proxy. Thanks!

@ghost
Copy link

ghost commented Jul 7, 2017

@YanngLiu closing due to inactivity. Feel free to reopen if configuring proxy in che.env does not fix it.

@ghost ghost closed this as completed Jul 7, 2017
@YanngLiu
Copy link
Author

After I added correct DNS server in file /etc/docker/daemon.json, things can work.
Thanks!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

1 participant