当前位置:   article > 正文

访问Neo4j验证失败(The client is unauthorized due to authentication failure.)_windows本机neo4j认证失败

windows本机neo4j认证失败

使用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)
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16

大概意思就是说服务器验证失败。
如果你有在浏览器上登录不同的neo4j数据库,很可能是由于缓存没有清理掉导致的。
可以试试无痕浏览来访问neo4j的web页面。
另外有还有两种解决方案:

  1. 停止neo4j服务,并且删除data/dbms/auth,重新启动
  2. 修改neo4j.conf配置文件,取消验证机制,修改如下:
dbms.security.auth_enabled=false
  • 1

参考: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/

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/605711
推荐阅读
相关标签
  

闽ICP备14008679号