It looks like this is some kind of bug related to Docker and apparmor.
Disabling apparmor makes it go away...


On 09/01/2016 11:11 AM, Alan Robertson wrote:
> Hi,
>
> I've been having trouble with getting Neo4j to start in a docker
> image. This image was produced by a Dockerfile which built my software
> and installed and ran Neo4j and my tests without any issues. But when
> I try and start the resulting image, Neo4j declines to start for
> mysterious reasons. The logs from trying to start it are below:
>
> NEO4J_CONF=/etc/neo4j /usr/share/neo4j/bin/neo4j console
> Starting Neo4j.
> 2016-09-01 16:53:40.342+0000 INFO  Starting...
> 2016-09-01 16:53:40.613+0000 INFO  Bolt enabled on localhost:7687.
> 2016-09-01 16:53:43.864+0000 ERROR Failed to start Neo4j: Starting
> Neo4j failed: Component
> 'org.neo4j.server.database.LifecycleManagingDatabase@1377f3c' was
> successfully initialized, but failed to start. Please see attached
> cause exception. Starting Neo4j failed: Component
> 'org.neo4j.server.database.LifecycleManagingDatabase@1377f3c' was
> successfully initialized, but failed to start. Please see attached
> cause exception.
> org.neo4j.server.ServerStartupException: Starting Neo4j failed:
> Component
> 'org.neo4j.server.database.LifecycleManagingDatabase@1377f3c' was
> successfully initialized, but failed to start. Please see attached
> cause exception.
>         at
> org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)
>         at
> org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:217)
>         at
> org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:90)
>         at
> org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:67)
>         at
> org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:28)
> Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component
> 'org.neo4j.server.database.LifecycleManagingDatabase@1377f3c' was
> successfully initialized, but failed to start. Please see attached
> cause exception.
>         at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)
>         at
> org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
>         at
> org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:189)
>         ... 3
> more                                                                          
>                                                                               
>                                                     
>
> Caused by: java.lang.RuntimeException: Error starting
> org.neo4j.kernel.impl.factory.CommunityFacadeFactory,
> /var/lib/neo4j/data/databases/graph.db                                        
>                                     
>
>         at
> org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:144)
>                                                                               
>                               
>
>         at
> org.neo4j.kernel.impl.factory.CommunityFacadeFactory.newFacade(CommunityFacadeFactory.java:40)
>                                                                               
>                                        
>
>         at
> org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:108)
>                                                                               
>                               
>
>         at
> org.neo4j.server.CommunityNeoServer.lambda$static$0(CommunityNeoServer.java:55)
>                                                                               
>                                                       
>
>         at
> org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:89)
>                                                                               
>                                          
>
>         at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
>         ... 5 more
> Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component
> 'org.neo4j.kernel.recovery.Recovery@5ddaeea7' failed to initialize.
> Please see attached cause exception.
>         at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:416)
>         at
> org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:62)
>         at
> org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:98)
>         at
> org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:511)
>         at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
>         at
> org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
>         at
> org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:99)
>         at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:434)
>         at
> org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:107)
>         at
> org.neo4j.kernel.impl.factory.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:140)
>         ... 10 more
> Caused by: org.apache.lucene.store.AlreadyClosedException: this
> IndexReader is closed
>         at
> org.apache.lucene.index.IndexReader.ensureOpen(IndexReader.java:274)
>         at
> org.apache.lucene.index.CompositeReader.getContext(CompositeReader.java:101)
>         at
> org.apache.lucene.index.CompositeReader.getContext(CompositeReader.java:55)
>         at
> org.apache.lucene.index.IndexReader.leaves(IndexReader.java:438)
>         at
> org.apache.lucene.index.MultiFields.getFields(MultiFields.java:63)
>         at
> org.apache.lucene.index.MultiFields.getTerms(MultiFields.java:120)
>         at
> org.apache.lucene.search.IndexSearcher.collectionStatistics(IndexSearcher.java:964)
>         at
> org.apache.lucene.search.TermQuery$TermWeight.<init>(TermQuery.java:65)
>         at
> org.apache.lucene.search.TermQuery.createWeight(TermQuery.java:198)
>         at
> org.apache.lucene.search.IndexSearcher.createWeight(IndexSearcher.java:904)
>         at
> org.apache.lucene.search.IndexSearcher.createNormalizedWeight(IndexSearcher.java:887)
>         at
> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:535)
>         at
> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:744)
>         at
> org.apache.lucene.search.IndexSearcher.searchAfter(IndexSearcher.java:460)
>         at
> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:489)
>         at
> org.neo4j.index.impl.lucene.legacy.LuceneDataSource.findDocument(LuceneDataSource.java:436)
>         at
> org.neo4j.index.impl.lucene.legacy.CommitContext.getDocument(CommitContext.java:71)
>         at
> org.neo4j.index.impl.lucene.legacy.LuceneCommandApplier.visitIndexAddCommand(LuceneCommandApplier.java:88)
>         at
> org.neo4j.index.impl.lucene.legacy.LuceneCommandApplier.visitIndexAddNodeCommand(LuceneCommandApplier.java:62)
>         at
> org.neo4j.kernel.impl.api.LegacyIndexTransactionApplier.visitIndexAddNodeCommand(LegacyIndexTransactionApplier.java:166)
>         at
> org.neo4j.kernel.impl.index.IndexCommand$AddNodeCommand.handle(IndexCommand.java:233)
>         at
> org.neo4j.kernel.impl.api.TransactionApplierFacade.visit(TransactionApplierFacade.java:61)
>         at
> org.neo4j.kernel.impl.api.TransactionApplierFacade.visit(TransactionApplierFacade.java:35)
>         at
> org.neo4j.kernel.impl.transaction.log.PhysicalTransactionRepresentation.accept(PhysicalTransactionRepresentation.java:69)
>         at
> org.neo4j.kernel.impl.api.TransactionToApply.accept(TransactionToApply.java:108)
>         at
> org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.apply(RecordStorageEngine.java:341)
>         at
> org.neo4j.kernel.impl.transaction.state.RecoveryVisitor.applyQueue(RecoveryVisitor.java:87)
>         at
> org.neo4j.kernel.impl.api.TransactionQueue.empty(TransactionQueue.java:67)
>         at
> org.neo4j.kernel.impl.transaction.state.RecoveryVisitor.close(RecoveryVisitor.java:93)
>         at
> org.neo4j.kernel.impl.transaction.log.LogFileRecoverer.visit(LogFileRecoverer.java:80)
>         at
> org.neo4j.kernel.impl.transaction.log.LogFileRecoverer.visit(LogFileRecoverer.java:30)
>         at org.neo4j.kernel.recovery.Recovery.init(Recovery.java:86)
>         at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:406)
>
>
>
> -- 
>
> Alan Robertson / CTO
> al...@assimilationsystems.com <mailto:al...@assimilationsystems.com>/
> +1 303.947.7999
>
> Assimilation Systems Limited
> http://AssimilationSystems.com
>
> Twitter <https://twitter.com/ossalanr> Linkedin
> <https://www.linkedin.com/in/alanr> skype
> <https://htmlsig.com/skype?username=alanr_unix.sh>
>
> -- 
> 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+unsubscr...@googlegroups.com
> <mailto:neo4j+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.


-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to