neo4j server not starting, gives error:- another server-process running it

1,053 views
Skip to first unread message

divyanshu das

unread,
Oct 13, 2012, 8:15:36 AM10/13/12
to ne...@googlegroups.com
I am using EC2 with ubuntu 12.04.
I already have neo4j 1.6.1-community edition running on my ec2 production server and on my local machine with the same configurations.

I setup a test server today copied neo4j "data" folder from production to test ec2 instance and installed neo4j. but when i try to start, it gives error:-
>>sudo service neo4j-service start

WARNING: Detected a limit of 1024 for maximum open files, while a minimum value of 40000 is recommended.
WARNING: Problems with the operation of the server may occur. Please refer to the Neo4j manual regarding lifting this limitation.
Starting Neo4j Server... process [22796]... waiting for server to be ready......................................................................................................................... BAD.
 another server-process is running with []

I have already increased in the file limits ass metioned in the docs. I have tried removing and installing again. 

Is there something I am missing here?

Michael Hunger

unread,
Oct 13, 2012, 8:31:57 AM10/13/12
to ne...@googlegroups.com
can you try to run

bin/neo4j console to see the output and share it

Michael
> --
>
>

divyanshu das

unread,
Oct 13, 2012, 8:41:43 AM10/13/12
to ne...@googlegroups.com
when I try to run in console mode:-
>>sudo ./bin/neo4j console
WARNING: Detected a limit of 1024 for maximum open files, while a minimum value of 40000 is recommended.
WARNING: Problems with the operation of the server may occur. Please refer to the Neo4j manual regarding lifting this limitation.
Starting Neo4j Server console-mode...
10/13/12 12:40:45 PM org.neo4j.server.NeoServerWithEmbeddedWebServer INFO: Starting Neo Server on port [7474] with [40] threads available
10/13/12 12:40:45 PM org.neo4j.server.database.Database INFO: Using database at /mnt/neo4j-community-1.6.1/data/graph.db
org.neo4j.graphdb.TransactionFailureException: Could not create data source [nioneodb], see nested exception for cause of error
at org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:161)
at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:104)
at org.neo4j.kernel.EmbeddedGraphDbImpl.<init>(EmbeddedGraphDbImpl.java:190)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:77)
at org.neo4j.server.NeoServerBootstrapper$1.createDatabase(NeoServerBootstrapper.java:65)
at org.neo4j.server.database.Database.createDatabase(Database.java:81)
at org.neo4j.server.database.Database.<init>(Database.java:64)
at org.neo4j.server.NeoServerWithEmbeddedWebServer.startDatabase(NeoServerWithEmbeddedWebServer.java:181)
at org.neo4j.server.NeoServerWithEmbeddedWebServer.start(NeoServerWithEmbeddedWebServer.java:93)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:52)
Caused by: java.lang.IllegalStateException: Unable to lock store [/mnt/neo4j-community-1.6.1/data/graph.db/neostore], this is usually a result of some other Neo4j kernel running using the same store.
at org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.checkStorage(CommonAbstractStore.java:174)
at org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.<init>(CommonAbstractStore.java:102)
at org.neo4j.kernel.impl.nioneo.store.AbstractStore.<init>(AbstractStore.java:119)
at org.neo4j.kernel.impl.nioneo.store.NeoStore.<init>(NeoStore.java:78)
at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.<init>(NeoStoreXaDataSource.java:214)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.neo4j.kernel.impl.transaction.XaDataSourceManager.create(XaDataSourceManager.java:77)
at org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:155)
... 10 more
10/13/12 12:40:45 PM org.neo4j.server.NeoServerBootstrapper SEVERE: 
org.neo4j.graphdb.TransactionFailureException: Could not create data source [nioneodb], see nested exception for cause of error
at org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:161)
at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:104)
at org.neo4j.kernel.EmbeddedGraphDbImpl.<init>(EmbeddedGraphDbImpl.java:190)
at org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:77)
at org.neo4j.server.NeoServerBootstrapper$1.createDatabase(NeoServerBootstrapper.java:65)
at org.neo4j.server.database.Database.createDatabase(Database.java:81)
at org.neo4j.server.database.Database.<init>(Database.java:64)
at org.neo4j.server.NeoServerWithEmbeddedWebServer.startDatabase(NeoServerWithEmbeddedWebServer.java:181)
at org.neo4j.server.NeoServerWithEmbeddedWebServer.start(NeoServerWithEmbeddedWebServer.java:93)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:52)
Caused by: java.lang.IllegalStateException: Unable to lock store [/mnt/neo4j-community-1.6.1/data/graph.db/neostore], this is usually a result of some other Neo4j kernel running using the same store.
at org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.checkStorage(CommonAbstractStore.java:174)
at org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.<init>(CommonAbstractStore.java:102)
at org.neo4j.kernel.impl.nioneo.store.AbstractStore.<init>(AbstractStore.java:119)
at org.neo4j.kernel.impl.nioneo.store.NeoStore.<init>(NeoStore.java:78)
at org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.<init>(NeoStoreXaDataSource.java:214)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.neo4j.kernel.impl.transaction.XaDataSourceManager.create(XaDataSourceManager.java:77)
at org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:155)
... 10 more
Exception in thread "main" java.lang.NullPointerException
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:96)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:52)

Michael Hunger

unread,
Oct 13, 2012, 10:06:33 AM10/13/12
to ne...@googlegroups.com
If you're sure that there is no other server running,(check with ps) you can remove the lockfile in the db directory.

Sent from mobile device
--
 
 

Mattias Persson

unread,
Oct 23, 2012, 8:33:49 AM10/23/12
to ne...@googlegroups.com
The presence of the lock file isn't preventing a startup though, it's whether it's locked or not. So deleting that file should never ever be required.

2012/10/13 Michael Hunger <michael...@neopersistence.com>
--
 
 



--
Mattias Persson, [mat...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com

divyanshu das

unread,
Nov 4, 2012, 12:08:21 PM11/4/12
to ne...@googlegroups.com
Last time, i checked with ps aux | grep neo4j.... saw one process, killed it and it started working. 
Now I am again setting up a new server, I followed exactly the same steps like earlier,
this time I am getting this error:-

mnt/neo4j-community-1.6.1/data$ sudo service neo4j-service start

WARNING: Detected a limit of 1024 for maximum open files, while a minimum value of 40000 is recommended.
WARNING: Problems with the operation of the server may occur. Please refer to the Neo4j manual regarding lifting this limitation.
Starting Neo4j Server... process [18187]... waiting for server to be ready......................................................................................................................... BAD.
 another server-process is running with []

I tried removing the lock file too, still getting same error.

Peter Neubauer

unread,
Nov 4, 2012, 6:51:07 PM11/4/12
to Neo4j User
What Neo4j version are you using? Could you try with Neo4j 1.8?


Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j 1.8 GA - http://www.dzone.com/links/neo4j_18_release_fluent_graph_literacy.html


--
 
 

divyanshu das

unread,
Nov 5, 2012, 12:17:42 AM11/5/12
to ne...@googlegroups.com
I am using 1.6.1 community edition. The same configuration is working on a different aws server. Our current implementation has been developed on 1.6.1 Will there be any problems with 1.8 ? Are all cypher queries used in 1.6.1 supported in 1.8?


--
 
 

divyanshu das

unread,
Nov 7, 2012, 12:10:13 AM11/7/12
to ne...@googlegroups.com
I was able to start the neo4j server in neo4j 1.8 version using:-
sudo service neo4j start-no-wait

Earlier I was getting a time-out error. 


On Monday, 5 November 2012 10:48:39 UTC+5:30, divyanshu das wrote:
I am using 1.6.1 community edition. The same configuration is working on a different aws server. Our current implementation has been developed on 1.6.1 Will there be any problems with 1.8 ? Are all cypher queries used in 1.6.1 supported in 1.8?
Reply all
Reply to author
Forward
0 new messages