neo4j start failing after a restart

404 views
Skip to first unread message

Krishna Shetty

unread,
Apr 26, 2014, 11:22:40 AM4/26/14
to ne...@googlegroups.com
I was trying to index. I thought we may have to restart neo4j for new index to take effect.
I tried to restart, I think restart failed for some reason..

I am unable to start neo4j now.. pls help

Logs:

>sudo service neo4j-service start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Djava.net.preferIPv4Stack=true
Starting Neo4j Server...WARNING: not changing user
process [9860]... waiting for server to be ready.............. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

>tail -f  /var/log/neo4j/console.log
2014-04-26 15:17:16.800+0000 INFO  [API] Setting startup timeout to: 120000ms based on -1
Detected incorrectly shut down database, performing recovery..
2014-04-26 15:17:22.083+0000 INFO  [API] Successfully started database
2014-04-26 15:17:23.992+0000 INFO  [API] Starting HTTP on port :7474 with 10 threads available
2014-04-26 15:17:24.813+0000 INFO  [API] Mounted discovery module at [/]
2014-04-26 15:17:24.827+0000 INFO  [API] Mounted REST API at [/db/data/]
2014-04-26 15:17:24.832+0000 INFO  [API] Mounted management API at [/db/manage/]
2014-04-26 15:17:24.833+0000 INFO  [API] Mounted webadmin at [/webadmin]
2014-04-26 15:17:24.835+0000 INFO  [API] Mounted Neo4j Browser at [/browser]
2014-04-26 15:17:24.953+0000 INFO  [API] Mounting static content at [/webadmin] from [webadmin-html]
2014-04-26 15:17:25.093+0000 INFO  [API] Mounting static content at [/browser] from [browser]
15:17:25.095 [main] WARN  o.e.j.server.handler.ContextHandler - o.e.j.s.ServletContextHandler@78688290{/,null,null} contextPath ends with /
15:17:25.095 [main] WARN  o.e.j.server.handler.ContextHandler - Empty contextPath
15:17:25.111 [main] INFO  org.eclipse.jetty.server.Server - jetty-9.0.5.v20130815
15:17:25.177 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.s.h.MovedContextHandler@7ee53f21{/,null,AVAILABLE}
15:17:25.504 [main] INFO  o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /webadmin, did not find org.apache.jasper.servlet.JspServlet
15:17:25.531 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.w.WebAppContext@1bf951e0{/webadmin,jar:file:/usr/share/neo4j/system/lib/neo4j-server-2.0.1-static-web.jar!/webadmin-html,AVAILABLE}
15:17:26.700 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@76c2058b{/db/manage,null,AVAILABLE}
15:17:27.527 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@183562aa{/db/data,null,AVAILABLE}
15:17:27.574 [main] INFO  o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /browser, did not find org.apache.jasper.servlet.JspServlet
15:17:27.576 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.w.WebAppContext@4aae9663{/browser,jar:file:/usr/share/neo4j/system/lib/neo4j-browser-2.0.1.jar!/browser,AVAILABLE}
15:17:27.846 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@78688290{/,null,AVAILABLE}
15:17:27,847 |-INFO in LogbackRequestLog - Will use configuration file [/var/lib/neo4j/conf/neo4j-http-logging.xml]
15:17:27,864 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - debug attribute not set
15:17:27,873 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
15:17:27,874 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]
15:17:27,927 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - No compression will be used
15:17:27,932 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy - Will use the pattern data/log/http.%d{yyyy-MM-dd_HH}.log for the active file
15:17:27,941 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd_HH' from file name pattern 'data/log/http.%d{yyyy-MM-dd_HH}.log'.
15:17:27,941 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at the top of every hour.
15:17:27,953 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Tue Feb 18 10:23:59 UTC 2014
15:17:27,955 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.access.PatternLayoutEncoder] for [encoder] property
15:17:27,990 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Active log file name: data/log/http.log
15:17:27,990 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - File property is set to [data/log/http.log]
15:17:27,990 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to null
15:17:27,990 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - End of configuration.
15:17:27,990 |-INFO in ch.qos.logback.access.joran.JoranConfigurator@5c0c18b8 - Registering current configuration as safe fallback point

15:17:28.012 [main] WARN  o.e.j.u.component.AbstractLifeCycle - FAILED ServerConnector@8ffc9ca{HTTP/1.1}{0.0.0.0:7474}: java.net.BindException: Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.7.0_40]
at sun.nio.ch.Net.bind(Net.java:444) ~[na:1.7.0_40]
at sun.nio.ch.Net.bind(Net.java:436) ~[na:1.7.0_40]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) ~[na:1.7.0_40]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.7.0_40]
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:244) ~[jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) ~[jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69) [jetty-util-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.server.Server.doStart(Server.java:303) [jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69) [jetty-util-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.neo4j.server.web.Jetty9WebServer.startJetty(Jetty9WebServer.java:350) [neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.web.Jetty9WebServer.start(Jetty9WebServer.java:173) [neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.AbstractNeoServer.startWebServer(AbstractNeoServer.java:405) [neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:185) [neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) [neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:50) [neo4j-server-2.0.1.jar:2.0.1]
15:17:28.033 [main] WARN  o.e.j.u.component.AbstractLifeCycle - FAILED org.eclipse.jetty.server.Server@6ef795ba: java.net.BindException: Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.7.0_40]
at sun.nio.ch.Net.bind(Net.java:444) ~[na:1.7.0_40]
at sun.nio.ch.Net.bind(Net.java:436) ~[na:1.7.0_40]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) ~[na:1.7.0_40]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.7.0_40]
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:244) ~[jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) ~[jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69) ~[jetty-util-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.server.Server.doStart(Server.java:303) ~[jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69) ~[jetty-util-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.neo4j.server.web.Jetty9WebServer.startJetty(Jetty9WebServer.java:350) [neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.web.Jetty9WebServer.start(Jetty9WebServer.java:173) [neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.AbstractNeoServer.startWebServer(AbstractNeoServer.java:405) [neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:185) [neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) [neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:50) [neo4j-server-2.0.1.jar:2.0.1]
2014-04-26 15:17:28.035+0000 DEBUG [API] Failed to start Neo Server on port [7474], reason [java.net.BindException: Address already in use]
2014-04-26 15:17:28.042+0000 DEBUG [API] 
org.neo4j.server.ServerStartupException: Starting Neo4j Server failed: java.net.BindException: Address already in use
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:218) ~[neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87) [neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:50) [neo4j-server-2.0.1.jar:2.0.1]
Caused by: java.lang.RuntimeException: java.net.BindException: Address already in use
at org.neo4j.server.web.Jetty9WebServer.startJetty(Jetty9WebServer.java:354) ~[neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.web.Jetty9WebServer.start(Jetty9WebServer.java:173) ~[neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.AbstractNeoServer.startWebServer(AbstractNeoServer.java:405) ~[neo4j-server-2.0.1.jar:2.0.1]
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:185) ~[neo4j-server-2.0.1.jar:2.0.1]
... 2 common frames omitted
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method) ~[na:1.7.0_40]
at sun.nio.ch.Net.bind(Net.java:444) ~[na:1.7.0_40]
at sun.nio.ch.Net.bind(Net.java:436) ~[na:1.7.0_40]
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214) ~[na:1.7.0_40]
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) ~[na:1.7.0_40]
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:244) ~[jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80) ~[jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69) ~[jetty-util-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.server.Server.doStart(Server.java:303) ~[jetty-server-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:69) ~[jetty-util-9.0.5.v20130815.jar:9.0.5.v20130815]
at org.neo4j.server.web.Jetty9WebServer.startJetty(Jetty9WebServer.java:350) ~[neo4j-server-2.0.1.jar:2.0.1]
... 5 common frames omitted
2014-04-26 15:17:28.048+0000 DEBUG [API] Failed to start Neo Server on port [7474]



Krishna Shetty

unread,
Apr 26, 2014, 11:33:51 AM4/26/14
to ne...@googlegroups.com
Works fine after I restarting my computer. Not sure what went wrong..

Michael Hunger

unread,
Apr 26, 2014, 11:45:39 AM4/26/14
to ne...@googlegroups.com
You started it twice conflict on port

Sent from mobile device
--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages