[Neo4j] lock issue on Ubuntu at startup

2012-01-06 Thread olivier sallou
Hi,
I have a lock issue at neo start command.
I have no other process running on database.
I first tested on an existing db on neo 1.4.2, and got the lock error
message on Ubuntu. The same on Red Hat worded fine (directory is NFS
mounted, so I have exactly the same access rights and files).

To be sure, I downloaded neo 1.5 in a directory, using default data
directory (so an empty database).The start command issued the same problem,
see log below:

1/6/12 11:58:43 AM org.neo4j.server.NeoServerWithEmbeddedWebServer INFO:
Starting Neo Server on port [7474] with [160] threads available
1/6/12 11:58:44 AM org.neo4j.server.database.Database INFO: Using database
at /home/symbiose/osallou/neo/neo4j-community-1.5/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:158)
at org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:105)
at org.neo4j.kernel.EmbeddedGraphDbImpl.init(EmbeddedGraphDbImpl.java:190)
at
org.neo4j.kernel.EmbeddedGraphDatabase.init(EmbeddedGraphDatabase.java:80)
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:179)
at
org.neo4j.server.NeoServerWithEmbeddedWebServer.start(NeoServerWithEmbeddedWebServer.java:87)
at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:87)
at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:52)
Caused by: org.neo4j.kernel.impl.nioneo.store.UnderlyingStorageException:
Unable to lock
store[/home/symbiose/osallou/neo/neo4j-community-1.5/data/graph.db/neostore.nodestore.db]
at
org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.checkStorage(CommonAbstractStore.java:183)
at
org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.init(CommonAbstractStore.java:103)
at
org.neo4j.kernel.impl.nioneo.store.AbstractStore.init(AbstractStore.java:120)
at org.neo4j.kernel.impl.nioneo.store.NodeStore.init(NodeStore.java:42)
at
org.neo4j.kernel.impl.nioneo.store.NodeStore.createStore(NodeStore.java:84)
at
org.neo4j.kernel.impl.nioneo.store.NeoStore.createStore(NeoStore.java:256)
at
org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.init(NeoStoreXaDataSource.java:140)
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:152)
... 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)


Thanks


Olivier

-- 

gpg key id: 4096R/326D8438  (pgp.mit.edu)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] lock issue on Ubuntu at startup

2012-01-06 Thread Jim Webber
Hi Olivier,

Can you rule out NFS issues by copying the cleanly shutdown database to a local 
volume and start it from there?

Jim
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] lock issue on Ubuntu at startup

2012-01-06 Thread olivier sallou
It works on local. So lock issue is NFS related, though not a writing issue
as some db files are created as well as logs.
Could be clock related?

Console extract from local and nfs below (on same server)

On local:
osallou@genokvm2:/tmp/neo4j-community-1.5/data$ rm -rf graph.db
osallou@genokvm2:/tmp/neo4j-community-1.5/data$ cd ..
osallou@genokvm2:/tmp/neo4j-community-1.5$ bin/neo4j stop
ERROR: Neo4j Server not running
osallou@genokvm2:/tmp/neo4j-community-1.5$ bin/neo4j start
Starting Neo4j Server...WARNING: not changing user
 process [1267]... waiting for server to be ready OK.

on NFS dir:
osallou@genokvm2:~/neo/neo4j-community-1.5/data$ rm -rf graph.db/
osallou@genokvm2:~/neo/neo4j-community-1.5/data$ cd ..
osallou@genokvm2:~/neo/neo4j-community-1.5$ bin/neo4j stop
ERROR: Neo4j Server not running
osallou@genokvm2:~/neo/neo4j-community-1.5$ bin/neo4j start
Starting Neo4j Server...WARNING: not changing user
 process [1591]... waiting for server to be ready.. BAD.
Neo4j Server may have failed to start, please check the logs.


2012/1/6 Jim Webber j...@neotechnology.com

 Hi Olivier,

 Can you rule out NFS issues by copying the cleanly shutdown database to a
 local volume and start it from there?

 Jim
 ___
 NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please
 register and consider posting at
 https://groups.google.com/forum/#!forum/neo4j

 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




-- 

gpg key id: 4096R/326D8438  (pgp.mit.edu)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user