赞
踩
使用Neo4j的过程中,可以打开页面,但是无法连通数据库。
在查看日志发现有下面的报错:
2018-12-18 05:30:34.693+0000 ERROR Unexpected error detected in bolt session '286ed4fffe88ed75-00016e40-00000001-8318869067983891-a1fb2d6d'. The client is unauthorized due to authentication failure. org.neo4j.bolt.v1.runtime.BoltConnectionFatality: The client is unauthorized due to authentication failure. 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:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
大概意思就是说服务器验证失败。
如果你有在浏览器上登录不同的neo4j数据库,很可能是由于缓存没有清理掉导致的。
可以试试无痕浏览来访问neo4j的web页面。
另外有还有两种解决方案:
dbms.security.auth_enabled=false
参考:https://github.com/neo4j-examples/movies-python-bolt/issues/5
参考:https://github.com/neo4j/neo4j/issues/12067
Neo4j初始化密码:https://neo4j.com/docs/operations-manual/current/configuration/set-initial-password/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。