Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-11-2019 06:45 AM
hi
I installed recently neo4j browser
I typed "bolt://localhost:7687 as a connect URL", "neo4j" as user and "neo4j" as psw but I faced this error msg " Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure." what should I do please
11-11-2019 11:19 AM
what version of Neo4j?
Have you previously connected with username: neo4j. did you change this users password?
For native Neo4j Authentication, users and roles are recorded in data/dbms/auth and data/dbms/roles respectively. If you do not know the neo4j
usernames password you can remove data/dbms/auth, restart Neo4j and the default password is neo4j
01-24-2021 04:07 AM
Hello sir, i am facing the same problem, do you suggest to delete the auth file from C:\Users\sitas\AppData\Local\Neo4j\Relate\Data\dbmss\dbms-cc0c3c9f-17a7-4208-8fd3-adf370d517e2\data\dbms
this file?
07-25-2022 06:57 AM
Yes. I have changed the password. But switched it back to old password. Now I get this error.
ERROR:neo4j:Failed to write data to connection IPv4Address(('127.0.0.1', 7687)) (IPv4Address(('127.0.0.1', 7687)))
How do I fix it ?
01-19-2020 08:48 PM
Upgraded to ver 4 last night. I was stuck on "Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure." and came across your above reply. Removed auth file and re-start Neo4j no success then removed roles file as will stopped the db, re-started my pc. No if I try with Atuth type User/password with neo4j as user and password I am getting "Neo.ClientError.Security.Unauthorized: The client is unauthorized due to authentication failure." And If try Auth type No Authentication I am getting "Neo.ClientError.Security.Unauthorized: Unsupported authentication token, missing key scheme
: { user_agent='neo4j-javascript/0.0.0-dev' }".
I'm not sure if I can resolve this my myself. Need some guidance to proceed.
Thanks.
01-22-2020 11:03 AM
I ran into the same issue, except this was a clean install.
I used the neo4j-admin set-initial-password before I logged in for the first time.
Password was never accepted.
The only workaround for me was to delete the database, and the auth file, restart the service, and log in using neo4j/neo4j and change password when prompted. Obviously this doesn't help you with an "upgrade" ...
02-06-2020 10:19 AM
I'm having the same issue after upgrading to 4.0. Is there an alternative solution other than deleting the database?
02-09-2020 07:36 AM
Hello,
In 4.0 we have a specific password recovery procedure, you can find it in the product documentation.
https://neo4j.com/docs/operations-manual/4.0/configuration/password-and-user-recovery/
Kind regards,
01-10-2021 12:18 PM
My version is Community 4.0.4.
@pdrangeid I had the same issue with a clean re-install and can't log in with the initial default neo4j/neo4j credentials. My setting is below:
dbms.security.auth_enabled=true
Since it's a new install, how did you delete the 'auth file'? There is no such a file before you are able to log into it.
The initial password neo4j/neo4j didn't work in my browser, but fortunatelly it worked at the cypher-shell command line for me. Sometimes it worked at the browser. It's strange. It seems it hasn't been a clear answer to this issue yet.
02-24-2020 12:30 AM
Was able to solve the password issue from Neo4j 4.0 browser, providing the default password requires immediate password change and DB was successfully updated.
03-13-2020 06:08 AM
Password change via Neo4j Browser must be changed on node having "LEADER" role which will be synced to all other members, you can check the role via Cypher Shell:
$ /app/neo4j-enterprise-4.0.0/bin/cypher-shell -a "hostname"
Connected to Neo4j 4.0.0 at neo4j://localhost:7687 as user neo4j.
Type :help for a list of available commands or :exit to exit the shell.
Note that Cypher queries must end with a semicolon.
neo4j@neo4j> CALL dbms.cluster.role("neo4j");
+----------+
| role |
+----------+
| "LEADER" |
+----------+
1 row available after 11 ms, consumed after another 1 ms
neo4j@neo4j>
03-07-2020 04:18 PM
$ neo4j-admin set-initial-password <new_pw>
^ weird that this ran successfully, but then could not authenticate in UI. However, the default neo4j
pw string did work...
03-19-2020 11:13 AM
neo4j-admin set-initial-password will no longer work in 4.0.
Indeed, you can use the default password to log in the first time.
If you forget it, please follow the new recovery procedure.
Kind regards,
05-18-2020 09:50 AM
Hi
I've do that but I've this error
ALTER USER neo4j SET PASSWORD 'neo4j';
Unsupported administration command: ALTER USER neo4j SET PASSWORD 'neo4j';
12-21-2022 07:10 AM
This solved the problem for me
07-26-2020 01:10 PM
this totally saved my life, i had changed the password with set initial password but it took the default neo4j password via cypher shell
10-28-2020 09:00 AM
Had the same problem just a few hours ago. To solve this problem:
10-23-2021 05:34 PM
Had the same issue with NodeJS driver, on Neo4j version 4.2.1+. I couldn't connect to my local instance as the default admin user via the driver. The solution was to create a new user (same roles as default admin user) and it worked.
11-30-2021 11:53 AM
I am getting an error when I try to connect with NodeJS driver on Neo4j version 4.3.3 with username displayed and password I created. I get the the error code Neo.ClientError.Security.Unauthorized,
I am able to connect from Neo4j Browser. I tried resetting password and I get same error. I tried creating a new user as suggested and I am still seeing the same error.
09-08-2022 08:07 AM
It seems like the people at neo4j do not want their product to be user friendly.
All the sessions of the conference are now available online