使用Docker访问Neo4j数据库的身份验证错误

时间:2018-08-21 23:55:17

标签: docker neo4j rancher

我使用docker image出现身份验证错误neo4j db。凭据是正确的,所以我不确定是什么原因。 env变量(包括db凭据)通过Rancher传递。从数据库日志中向螺栓连接给出以下错误:

8/21/2018 4:10:58 AM2018-08-21 09:10:58.443+0000 INFO  Neo4j Server shutdown initiated by request
8/21/2018 4:10:58 AM2018-08-21 09:10:58.469+0000 INFO  Stopping...
8/21/2018 4:10:58 AM2018-08-21 09:10:58.861+0000 INFO  Stopped.
8/21/2018 4:11:01 AMActive database: graph.db
8/21/2018 4:11:01 AMDirectories in use:
8/21/2018 4:11:01 AM  home:         /var/lib/neo4j
8/21/2018 4:11:01 AM  config:       /var/lib/neo4j/conf
8/21/2018 4:11:01 AM  logs:         /var/lib/neo4j/logs
8/21/2018 4:11:01 AM  plugins:      /var/lib/neo4j/plugins
8/21/2018 4:11:01 AM  import:       /var/lib/neo4j/import
8/21/2018 4:11:01 AM  data:         /var/lib/neo4j/data
8/21/2018 4:11:01 AM  certificates: /var/lib/neo4j/certificates
8/21/2018 4:11:01 AM  run:          /var/lib/neo4j/run
8/21/2018 4:11:01 AMStarting Neo4j.
8/21/2018 4:11:03 AM2018-08-21 09:11:03.199+0000 WARN  Unknown config option: causal_clustering.discovery_listen_address
8/21/2018 4:11:03 AM2018-08-21 09:11:03.203+0000 WARN  Unknown config option: causal_clustering.raft_advertised_address
8/21/2018 4:11:03 AM2018-08-21 09:11:03.203+0000 WARN  Unknown config option: causal_clustering.raft_listen_address
8/21/2018 4:11:03 AM2018-08-21 09:11:03.204+0000 WARN  Unknown config option: ha.host.coordination
8/21/2018 4:11:03 AM2018-08-21 09:11:03.204+0000 WARN  Unknown config option: causal_clustering.transaction_advertised_address
8/21/2018 4:11:03 AM2018-08-21 09:11:03.204+0000 WARN  Unknown config option: causal_clustering.discovery_advertised_address
8/21/2018 4:11:03 AM2018-08-21 09:11:03.205+0000 WARN  Unknown config option: ha.host.data
8/21/2018 4:11:03 AM2018-08-21 09:11:03.205+0000 WARN  Unknown config option: causal_clustering.transaction_listen_address
8/21/2018 4:11:03 AM2018-08-21 09:11:03.232+0000 INFO  ======== Neo4j 3.4.5 ========
8/21/2018 4:11:03 AM2018-08-21 09:11:03.281+0000 INFO  Starting...
8/21/2018 4:11:07 AM2018-08-21 09:11:07.280+0000 INFO  Bolt enabled on 0.0.0.0:7687.
8/21/2018 4:11:11 AM2018-08-21 09:11:11.735+0000 INFO  Started.
8/21/2018 4:11:13 AM2018-08-21 09:11:13.608+0000 INFO  Remote interface available at http://localhost:7474/
8/21/2018 7:27:00 AM2018-08-21 12:27:00.175+0000 ERROR Unexpected error detected in bolt session '02e08bfffe59c4bb-00000008-00000001-ebd88cc83f531549-e08465d1'. Failed to process a bolt message
8/21/2018 7:27:00 AMorg.neo4j.bolt.v1.runtime.BoltConnectionFatality: Failed to process a bolt message
8/21/2018 7:27:00 AM    at org.neo4j.bolt.v1.runtime.BoltStateMachine.handleFailure(BoltStateMachine.java:742)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.v1.runtime.BoltStateMachine.handleFailure(BoltStateMachine.java:728)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.v1.runtime.BoltStateMachine.access$500(BoltStateMachine.java:62)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.v1.runtime.BoltStateMachine$State$1.init(BoltStateMachine.java:435)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.v1.runtime.BoltStateMachine.init(BoltStateMachine.java:145)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.v1.messaging.BoltMessageRouter.lambda$onInit$0(BoltMessageRouter.java:70)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.runtime.DefaultBoltConnection.processNextBatch(DefaultBoltConnection.java:195)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.runtime.DefaultBoltConnection.processNextBatch(DefaultBoltConnection.java:143)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.runtime.ExecutorBoltScheduler.executeBatch(ExecutorBoltScheduler.java:170)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.runtime.ExecutorBoltScheduler.lambda$scheduleBatchOrHandleError$2(ExecutorBoltScheduler.java:153)
8/21/2018 7:27:00 AM    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
8/21/2018 7:27:00 AM    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
8/21/2018 7:27:00 AM    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
8/21/2018 7:27:00 AM    at java.lang.Thread.run(Thread.java:748)
8/21/2018 7:27:00 AMCaused by: org.neo4j.bolt.security.auth.AuthenticationException: The client is unauthorized due to authentication failure.
8/21/2018 7:27:00 AM    at org.neo4j.bolt.security.auth.BasicAuthentication.doAuthenticate(BasicAuthentication.java:78)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.security.auth.BasicAuthentication.authenticate(BasicAuthentication.java:60)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.v1.runtime.BoltStateMachineSPI.authenticate(BoltStateMachineSPI.java:93)
8/21/2018 7:27:00 AM    at org.neo4j.bolt.v1.runtime.BoltStateMachine$State$1.init(BoltStateMachine.java:412)
8/21/2018 7:27:00 AM    ... 10 more

0 个答案:

没有答案