Authentication Error On First Connection Using neo4j/neo4j Credentials
Closed this issue · 1 comments
-
Steps to reproduce:
1: Execute "sudo docker run -p 17474:7474 -p 17687:7687 -e NEO4J_AUTH=neo4j/s3cr3t -v /Neo4jVolume/data:/var/lib/neo4j/data -v Neo4jVolume/logs:/var/lib/neo4j/logs -v Neo4jVolume/plugins:/var/lib/neo4j/plugins -v Neo4jVolume/conf:/var/lib/neo4j/conf -v Neo4jVolume/import:/var/lib/neo4j/import -d --name neo4j neo4j"
---- Before executing this I ensure that the Neo4jVolume directory is empty to avoid interference from previous attempts starting neo4j
2: Connect to neo4j's browser interface http://localhost:17474/browser/
3: Set connection URL to bolt://localhost:17687
4: Provide first time login username/password of neo4j/neo4j
5: Connection fails with "Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure." -
Expected behavior: I can reset the initial password after providing credentials neo4j/neo4j
-
Actual behavior: I get the error "Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure."
-
Neo4j image tag being used: neo4j latest (4.1.3), I also tried 4.1.2 and had the same issue
-
The output of the
docker version
command:
Client: Docker Engine - Community
Version: 19.03.13
API version: 1.40
Go version: go1.13.15
Git commit: 4484c46d9d
Built: Wed Sep 16 17:02:36 2020
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 19.03.13
API version: 1.40 (minimum version 1.12)
Go version: go1.13.15
Git commit: 4484c46d9d
Built: Wed Sep 16 17:01:06 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.3.7
GitCommit: 8fba4e9a7d01810a393d5d25a3621dc101981175
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683
- Operating system: Ubuntu 18.04
Additionally, include (as appropriate) log-files, stacktraces, and other debug output.
I had read the issue can be the volumes, so I ensure they are completely deleted between each attempt
I have tried deleting data/dbms/auth.ini and executing neo4j-admin set-initial-password and neither has fixed the error when I try to connect.
Attached is debug.log
debug.log
Sorry everyone, I didn't see/realize -e NEO4J_AUTH=neo4j/s3cr3t was changing the initial password. neo4j/s3cr3t credentials worked. I just augmented the provided command to run the neo4j docker found here "https://neo4j.com/developer/docker-run-neo4j/" and didn't read carefully enough to realize what that the NEO4J_AUTH variable was doing.
Maybe as a suggestion, keep the neo4j/neo4j credentials regular users are used to and that are referenced everywhere else online. When I got the "Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure." error I naturally google searched it and every accepted answer took me down paths assuming the initial password was neo4j (ie deleting volumes, deleting auth.ini, neo4j-admin set-initial-password, etc). It can save some new users like me who are rapidly trying to get this running at like 2am and may not read enough some headaches if you just keep the password neo4j.