精华 Neo4j 3.4.0、3.4.1、3.4.4 报错及处理办法(Unexpected error detected in bolt session)
发布于 6 年前 作者 zhizh 5735 次浏览 来自 分享

很多朋友向我反映,Neo4j 3.4.0、3.4.1 和 3.4.4 (企业版、社区版、Windows、Linux),在浏览器访问时,都会遇到这个报错,但之前的版本没有这个问题。我这里也复现了这个问题。

昨天我向 Neo4j 技术人员咨询了这个问题,很快就得到了解答。他告知,这是因为浏览器缓存的用户名和密码与当前的用户名和密码不一致所致,不影响正常使用。清一下浏览器缓存,这个报错就只会出现一次了。

为了消除大家对这个问题的顾虑,现特将这个询问过程贴到这里,供大家参考。我也会抽时间验证一下,并在这里告诉结果。

https://github.com/neo4j/neo4j/issues/11972

image.png

image.png

5 回复

经验证,清空浏览器历史纪录后,这个报错不复存在了,说明这个报错的确不影响正常使用。大家可放心了。

D:\poc\neo4j-enterprise-3.4.1\bin>neo4j.bat console 2018-07-14 07:03:05.073+0000 INFO ======== Neo4j 3.4.1 ======== 2018-07-14 07:03:05.112+0000 INFO Starting… 2018-07-14 07:03:06.362+0000 INFO Initiating metrics… 2018-07-14 07:03:07.053+0000 INFO Sending metrics to CSV file at D:\poc\neo4j-enterprise-3.4.1\metrics 2018-07-14 07:03:07.469+0000 INFO Bolt enabled on 127.0.0.1:7687. 2018-07-14 07:03:09.611+0000 INFO Started. 2018-07-14 07:03:09.854+0000 INFO Mounted REST API at: /db/manage 2018-07-14 07:03:09.960+0000 INFO Server thread metrics has been registered successfully 2018-07-14 07:03:10.978+0000 INFO Remote interface available at http://localhost:7474/

赞!谢谢!

清空缓存后依旧会报错 nohup: ignoring input 2018-11-06 07:27:25.253+0000 INFO ======== Neo4j 3.4.5 ======== 2018-11-06 07:27:25.375+0000 INFO Starting… 2018-11-06 07:27:32.043+0000 INFO Bolt enabled on 127.010.1:7687. 2018-11-06 07:27:35.471+0000 ERROR Unexpected error detected in bolt session ‘60eb69fffe35dd71-00001a43-00000001-9b8a25d2ef596194-0d8a5f89’. Failed to process a bolt message org.neo4j.bolt.v1.runtime.BoltConnectionFatality: Failed to process a bolt message at org.neo4j.bolt.v1.runtime.BoltStateMachine.handleFailure(BoltStateMachine.java:742) at org.neo4j.bolt.v1.runtime.BoltStateMachine.handleFailure(BoltStateMachine.java:728) at org.neo4j.bolt.v1.runtime.BoltStateMachine.access$500(BoltStateMachine.java:62) at org.neo4j.bolt.v1.runtime.BoltStateMachine$State$1.init(BoltStateMachine.java:435) at org.neo4j.bolt.v1.runtime.BoltStateMachine.init(BoltStateMachine.java:145) at org.neo4j.bolt.v1.messaging.BoltMessageRouter.lambda$onInit$0(BoltMessageRouter.java:70) at org.neo4j.bolt.runtime.DefaultBoltConnection.processNextBatch(DefaultBoltConnection.java:195) at org.neo4j.bolt.runtime.DefaultBoltConnection.processNextBatch(DefaultBoltConnection.java:143) at org.neo4j.bolt.runtime.ExecutorBoltScheduler.executeBatch(ExecutorBoltScheduler.java:170) at org.neo4j.bolt.runtime.ExecutorBoltScheduler.lambda$scheduleBatchOrHandleError$2(ExecutorBoltScheduler.java:153) at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.neo4j.bolt.security.auth.AuthenticationException: The client is unauthorized due to authentication failure. at org.neo4j.bolt.security.auth.BasicAuthentication.doAuthenticate(BasicAuthentication.java:78) at org.neo4j.bolt.security.auth.BasicAuthentication.authenticate(BasicAuthentication.java:60) at org.neo4j.bolt.v1.runtime.BoltStateMachineSPI.authenticate(BoltStateMachineSPI.java:93) at org.neo4j.bolt.v1.runtime.BoltStateMachine$State$1.init(BoltStateMachine.java:412) … 10 more 2018-11-06 07:27:44.388+0000 INFO Started.

@zhizh 请问清除那里的缓存 ,我清除浏览器的缓存好像没用?

我重新设置了密码就可以了

回到顶部