Neo4j Server shutdown initiated by request最简暴的解决办法。

 NEO4J启动报错,找了很多帖子,看了文档但是还是看不出123,后来仔细看报错原因,发现关键在于

Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@40f1be1b' was successfully 

initialized, but failed to start. Please see the attached cause exception "DynamicRecord[57,used=false,(0),type=-1,data=byte[],start=true,next=-1] not in use".

 意思是说已经初始化完成,再继续初始化就会报错,即使视同install-service或者stop再start都不管用,甚至restart也不可以。那么这个时候只能将%NEO4J_HOME%\data\databases里面的所有文件(包括一些初始化文件和图形文件)都删除掉,然后在运行就OK了。

当然了,这种方法肯定不是很多人想看到的,毕竟删除了之前画的图形关系数据库,但是为了重新运行NEO4J我也只能这样,不过我采用的是JAVA调用NEO4J的API,再运行一遍JAVA程序又可以生成之前的图数据库了。所以对于JAVA调用API的朋友们,这个方法不会有很大的影响。

如果有更好的解决办法我肯定是愿意接受的,毕竟这个方法也不是罪优质的解决办法。

2019-04-02 08:19:29.043+0000 INFO  ======== Neo4j 3.5.3 ========
2019-04-02 08:19:29.051+0000 INFO  Starting...
2019-04-02 08:19:30.329+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@40f1be1b' was successfully initialized, but failed to start. Please see the attached cause exception "DynamicRecord[57,used=false,(0),type=-1,data=byte[],start=true,next=-1] not in use". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@40f1be1b' was successfully initialized, but failed to start. Please see the attached cause exception "DynamicRecord[57,used=false,(0),type=-1,data=byte[],start=true,next=-1] not in use".
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@40f1be1b' was successfully initialized, but failed to start. Please see the attached cause exception "DynamicRecord[57,used=false,(0),type=-1,data=byte[],start=true,next=-1] not in use".
        at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:45)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:184)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:123)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:90)
        at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@40f1be1b' was successfully initialized, but failed to start. Please see the attached cause exception "DynamicRecord[57,used=false,(0),type=-1,data=byte[],start=true,next=-1] not in use".
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:177)
        ... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory, F:\neo4j\neo4j-community-3.5.3\data\databases
        at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:216)
        at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:135)
        at org.neo4j.server.database.CommunityGraphFactory.newGraphDatabase(CommunityGraphFactory.java:40)
        at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:78)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
        ... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.NeoStoreDataSource@5b07730f' was successfully initialized, but failed to start. Please see the attached cause exception "DynamicRecord[57,used=false,(0),type=-1,data=byte[],start=true,next=-1] not in use".
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
        at org.neo4j.kernel.impl.transaction.state.DataSourceManager.start(DataSourceManager.java:116)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
        at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:211)
        ... 9 more
Caused by: org.neo4j.kernel.impl.store.InvalidRecordException: DynamicRecord[57,used=false,(0),type=-1,data=byte[],start=true,next=-1] not in use
        at org.neo4j.kernel.impl.store.record.RecordLoad.verify(RecordLoad.java:63)
        at org.neo4j.kernel.impl.store.CommonAbstractStore.verifyAfterReading(CommonAbstractStore.java:1238)
        at org.neo4j.kernel.impl.store.CommonAbstractStore.readRecordFromPage(CommonAbstractStore.java:1107)
        at org.neo4j.kernel.impl.store.CommonAbstractStore.readIntoRecord(CommonAbstractStore.java:1057)
        at org.neo4j.kernel.impl.store.CommonAbstractStore.getRecordByCursor(CommonAbstractStore.java:1038)
        at org.neo4j.kernel.impl.store.CommonAbstractStore.getRecords(CommonAbstractStore.java:1192)
        at org.neo4j.kernel.impl.store.TokenStore.ensureHeavy(TokenStore.java:140)
        at org.neo4j.kernel.impl.store.TokenStore.getStringFor(TokenStore.java:145)
        at org.neo4j.kernel.impl.store.TokenStore.getTokens(TokenStore.java:99)
        at org.neo4j.kernel.impl.storageengine.impl.recordstorage.RecordStorageEngine.<init>(RecordStorageEngine.java:203)
        at org.neo4j.kernel.NeoStoreDataSource.buildStorageEngine(NeoStoreDataSource.java:504)
        at org.neo4j.kernel.NeoStoreDataSource.start(NeoStoreDataSource.java:357)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
        ... 14 more
2019-04-02 08:19:30.333+0000 INFO  Neo4j Server shutdown initiated by request

 

aused by: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: 地址已在使用 2025-03-31 11:23:02.130+0000 INFO Neo4j Server shutdown initiated by request 2025-03-31 11:23:02.131+0000 INFO Stopped. 2025-03-31 11:32:58.535+0000 INFO Running in daemon mode, all <Console> appenders will be suppressed: 2025-03-31 11:32:58.542+0000 INFO Removing console appender 'ConsoleAppender' with target 'SYSTEM_OUT'. 2025-03-31 11:32:58.568+0000 INFO Starting... 2025-03-31 11:32:59.543+0000 INFO This instance is ServerId{a7fa6233} (a7fa6233-43d3-4484-9d8c-fa3472318d18) 2025-03-31 11:33:00.306+0000 INFO ======== Neo4j 5.9.0 ======== 2025-03-31 11:33:02.449+0000 INFO Bolt enabled on 0.0.0.0:7687. 2025-03-31 11:33:03.131+0000 INFO Remote interface available at http://localhost:7474/ 2025-03-31 11:33:03.134+0000 INFO id: 19E1A2B86629CF1D863C5AA8A866621B063C089F201AB809183D0E21FA4C3FE4 2025-03-31 11:33:03.134+0000 INFO name: system 2025-03-31 11:33:03.134+0000 INFO creationDate: 2025-03-31T11:14:41.788Z 2025-03-31 11:33:03.134+0000 INFO Started. 2025-03-31 11:36:05.350+0000 INFO Neo4j Server shutdown initiated by request 2025-03-31 11:36:05.351+0000 INFO Stopping... 2025-03-31 11:36:11.489+0000 INFO Stopped. 2025-03-31 11:36:18.451+0000 INFO Running in daemon mode, all <Console> appenders will be suppressed: 2025-03-31 11:36:18.455+0000 INFO Removing console appender 'ConsoleAppender' with target 'SYSTEM_OUT'. 2025-03-31 11:36:18.479+0000 INFO Starting... 2025-03-31 11:36:19.467+0000 INFO This instance is ServerId{a7fa6233} (a7fa6233-43d3-4484-9d8c-fa3472318d18) 2025-03-31 11:36:20.138+0000 INFO ======== Neo4j 5.9.0 ======== 2025-03-31 11:36:22.365+0000 INFO Bolt enabled on 0.0.0.0:7687. 2025-03-31 11:36:23.002+0000 INFO Remote interface available at http://localhost:7474/ 2025-03-31 11:36:23.005+0000 INFO id: 19E1A2B86629CF1D863C5AA8A866621B063C089F201AB809183D0E21FA4C3FE4 2025-03-31 11:36:23.006+0000 INFO name: system 2025-03-31 11:36:23.006+0000 INFO crea
04-01
Caused by: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: 地址已在使用 2025-03-31 11:14:55.040+0000 INFO Neo4j Server shutdown initiated by request 2025-03-31 11:14:55.040+0000 INFO Stopped. 2025-03-31 11:22:52.003+0000 INFO Running in daemon mode, all <Console> appenders will be suppressed: 2025-03-31 11:22:52.007+0000 INFO Removing console appender 'ConsoleAppender' with target 'SYSTEM_OUT'. 2025-03-31 11:22:52.028+0000 INFO Starting... 2025-03-31 11:22:53.007+0000 INFO This instance is ServerId{a7fa6233} (a7fa6233-43d3-4484-9d8c-fa3472318d18) 2025-03-31 11:22:53.659+0000 INFO ======== Neo4j 5.9.0 ======== 2025-03-31 11:23:02.130+0000 ERROR Failed to start Neo4j on 0.0.0.0:7474. java.lang.RuntimeException: Error starting Neo4j database server at /opt/neo4j-community-5.9.0/data/databases at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:272) ~[neo4j-5.9.0.jar:5.9.0] at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:208) ~[neo4j-5.9.0.jar:5.9.0] at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:38) ~[neo4j-5.9.0.jar:5.9.0] at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:188) [neo4j-5.9.0.jar:5.9.0] at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:100) [neo4j-5.9.0.jar:5.9.0] at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:30) [neo4j-5.9.0.jar:5.9.0] Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.bolt.protocol.common.connector.netty.SocketNettyConnector@2e0fdc83' was successfully initialized, but failed to start. Please see the attached cause exception "bind(..) failed: 地址已在使用". at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:365) ~[neo4j-common-5.9.0.jar:5.9.0] at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSuppor
04-01
评论 13
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值