Unable to log in to Neo4j server

On a new installation of neo4j-community-2.2.4, I get the message "Invalid username or password." when sending the login form to localhost: 7474 / browser with the default username neo4j and password neo4j.

I turned on org.neo4j.server.webserver.address = 0.0.0.0 and dbms.security.auth_enabled = true with stopping and starting the server and restarting the browser.

Then I changed the property org.neo4j.server.webserver.address = 127.0.0.1 according to my / etc / hosts and tried to use 127.0.0.1:7474/browser but received the same message.

Here is the output from the browser console:

Remote Address:127.0.0.1:7474 Request URL:http://localhost:7474/db/data/ Request Method:GET Status Code:401 Unauthorized Request Headersview source Accept:application/json, text/plain, */* Accept-Encoding:gzip,deflate,sdch Accept-Language:en-US,en;q=0.8,fr;q=0.6,ru;q=0.4,es;q=0.2,sv;q=0.2,nb;q=0.2,et;q=0.2 Authorization:Basic bmVvNGo6bmVvNGo= Cache-Control:no-cache Connection:keep-alive Cookie:languageCodeAdmin=en; PHPSESSID=vcbvfkvj3shajhlh5u2pue9i70; admin_template_phone_client=0; admin_template_touch_client=0; admin_template_model=1 Host:localhost:7474 If-Modified-Since:Wed, 11 Dec 2013 08:00:00 GMT Pragma:no-cache Referer:http://localhost:7474/browser/ User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.120 Chrome/37.0.2062.120 Safari/537.36 X-stream:true Response Headersview source Content-Length:135 Content-Type:application/json; charset=UTF-8 Date:Sat, 19 Sep 2015 09:14:03 GMT Server:Jetty(9.2.4.v20141103) WWW-Authenticate:None { "errors" : [ { "message" : "Invalid username or password.", "code" : "Neo.ClientError.Security.AuthorizationFailed" } ] } 

So, I tried to change the default password.

To do this, I first disabled authentication using dbms.security.auth_enabled = false and stopped and started the server.

And then I tried the following curl request:

 curl -H "Accept:application/json; charset=UTF-8" -H "Content-Type: application/json" "http://localhost:7474/user/neo4j/password" -X POST -d "{ \"password\" : \"neo4j\" }" -i 

But he gives me the answer:

 HTTP/1.1 404 Not Found Date: Sat, 19 Sep 2015 09:25:38 GMT Access-Control-Allow-Origin: * Content-Length: 0 Server: Jetty(9.2.4.v20141103) 
+7
neo4j
source share
2 answers

Since you are getting an authentication error in your browser request that uses the default credentials neo4j: neo4j, a different password is already set in your database. To reset to default, stop neo4j, delete data/dbms/auth and run it again. Now you can use pw by default.

+8
source share

In my case, Windows Neo4J services were not installed, as shown below:

  • neo4j.bat install-services
  • Status neo4j.bat
  • neo4j.bat start

it worked, greetings

0
source share

All Articles