Code Monkey home page Code Monkey logo

Comments (7)

wu560130911 avatar wu560130911 commented on August 19, 2024

lsof -p 2765 | wc -l
1000073

都是socket连接

from che.

 avatar commented on August 19, 2024

Looks like Docker isn;t running on your system. Can you verify that docker info returns some meaningful output?

from che.

wu560130911 avatar wu560130911 commented on August 19, 2024

docker is already run in my system,you can see log as follows

2015-12-25 11:45:22,534[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 916] - Deploying web application archive /home/wu560130911/tools/eclipse-che-4.0.0-M6-SNAPSHOT/tomcat/webapps/che.war
2015-12-25 11:45:26,851[ost-startStop-1] [INFO ] [.c.p.d.c.DockerRegistryChecker 43] - Probing registry 'http://localhost:5000'
2015-12-25 11:45:26,871[ost-startStop-1] [INFO ] [.c.p.d.c.DockerRegistryChecker 48] - Probe of registry 'http://localhost:5000' succeed with HTTP response code '200'
2015-12-25 11:45:28,390[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 980] - Deployment of web application archive /home/wu560130911/tools/eclipse-che-4.0.0-M6-SNAPSHOT/tomcat/webapps/che.war has finished in 5,855 ms
2015-12-25 11:45:28,391[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 1036] - Deploying web application directory /home/wu560130911/tools/eclipse-che-4.0.0-M6-SNAPSHOT/tomcat/webapps/ROOT
2015-12-25 11:45:28,429[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig 1152] - Deployment of web application directory /home/wu560130911/tools/eclipse-che-4.0.0-M6-SNAPSHOT/tomcat/webapps/ROOT has finished in 38 ms
2015-12-25 11:45:28,433[main] [INFO ] [o.a.c.http11.Http11NioProtocol 469] - Starting ProtocolHandler ["http-nio-8080"]
2015-12-25 11:45:28,461[main] [INFO ] [o.a.catalina.startup.Catalina 638] - Server startup in 70781 ms
2015-12-25 11:46:17,857[8080-Acceptor-0] [ERROR] [o.a.t.util.net.NioEndpoint 709] - Socket accept failed
java.io.IOException: Too many open files
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) ~[na:1.8.0_65]
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422) ~[na:1.8.0_65]
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250) ~[na:1.8.0_65]
at org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:682) ~[tomcat-coyote.jar:8.0.28]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65]
2015-12-25 11:46:17,908[8080-Acceptor-0] [ERROR] [o.a.t.util.net.NioEndpoint 709] - Socket accept failed

from che.

TylerJewell avatar TylerJewell commented on August 19, 2024

I can see the access to the docker registry, but I didn't see the access to
docker itself.

We see the too many open files issue randomly. It often appears when using
docker through virtualbox & the virtualbox system has disk swapping or
memory constraint issue due to many reuses of the system.

Does "docker ps" work?
Have you tried installing virtualbox, launching docker in a virtualbox vm -
and do you get the same issues as running docker natively?

Tyler Jewell | CEO | tyler@​codenvy.​com | 9​78​.8​84​.53​55

On Fri, Dec 25, 2015 at 3:46 PM, 吴梦升 [email protected] wrote:

docker is already run in my system,you can see log as follows

2015-12-25 11:45:22,534[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig
916] - Deploying web application archive
/home/hzwumsh/tools/eclipse-che-4.0.0-M6-SNAPSHOT/tomcat/webapps/che.war
2015-12-25 11:45:26,851[ost-startStop-1] [INFO ]
[.c.p.d.c.DockerRegistryChecker 43] - Probing registry '
http://localhost:5000'
2015-12-25 11:45:26,871[ost-startStop-1] [INFO ]
[.c.p.d.c.DockerRegistryChecker 48] - Probe of registry '
http://localhost:5000' succeed with HTTP response code '200'
2015-12-25 11:45:28,390[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig
980] - Deployment of web application archive
/home/hzwumsh/tools/eclipse-che-4.0.0-M6-SNAPSHOT/tomcat/webapps/che.war
has finished in 5,855 ms
2015-12-25 11:45:28,391[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig
1036] - Deploying web application directory
/home/hzwumsh/tools/eclipse-che-4.0.0-M6-SNAPSHOT/tomcat/webapps/ROOT
2015-12-25 11:45:28,429[ost-startStop-1] [INFO ] [o.a.c.startup.HostConfig
1152] - Deployment of web application directory
/home/hzwumsh/tools/eclipse-che-4.0.0-M6-SNAPSHOT/tomcat/webapps/ROOT has
finished in 38 ms
2015-12-25 11:45:28,433[main] [INFO ] [o.a.c.http11.Http11NioProtocol 469]

  • Starting ProtocolHandler ["http-nio-8080"]
    2015-12-25 11:45:28,461[main] [INFO ] [o.a.catalina.startup.Catalina 638]
  • Server startup in 70781 ms
    2015-12-25 11:46:17,857[8080-Acceptor-0] [ERROR]
    [o.a.t.util.net.NioEndpoint 709] - Socket accept failed
    java.io.IOException: Too many open files
    at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) ~[na:1.8.0_65]
    at
    sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)
    ~[na:1.8.0_65]
    at
    sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)
    ~[na:1.8.0_65]
    at
    org.apache.tomcat.util.net.NioEndpoint$Acceptor.run(NioEndpoint.java:682)
    ~[tomcat-coyote.jar:8.0.28]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65]
    2015-12-25 11:46:17,908[8080-Acceptor-0] [ERROR]
    [o.a.t.util.net.NioEndpoint 709] - Socket accept failed


Reply to this email directly or view it on GitHub
#140 (comment).

from che.

 avatar commented on August 19, 2024

2015-12-25 11:46:17,857[8080-Acceptor-0] [ERROR] [o.a.t.util.net.NioEndpoint 709] - Socket accept failed java.io.IOException: Too many open files actually means there's no connection to Docker socket. Make sure you can run docker ps in the terminal where you launch Che.

Info on your system setup will also help.

from che.

wu560130911 avatar wu560130911 commented on August 19, 2024

root@mini02-04:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e26315acde08 dockerui/dockerui "/dockerui" 44 hours ago Up 44 hours 0.0.0.0:9000->9000/tcp romantic_spence
e218a1eb2041 registry "docker-registry" 44 hours ago Up 44 hours 0.0.0.0:5000->5000/tcp registry

from che.

 avatar commented on August 19, 2024

Startup script now does a series of checks, including Docker availability.

Closing the issue.

from che.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.