-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to connect to Neo4j using Neo4j browser #257
Comments
Update I tried to re-run the container with https (by performing steps mentioned in this comment). I also made chrome accept the certificate to get rid of the warning. Now, when I open the browser at
I hoped that this error would go away by using the trusted certificate. However, it's still there. Am I missing anything here? |
@darshanmehta10 For the Websockets warning, this is the same issue as #240 which has been fixed for Neo4j 4.0.4. For the second issue about SSL, you haven't enabled port 7473 in docker (at least as far as I can tell from the code you posted) yet you're trying to connect to it in the browser. |
@jennyowen thanks for the response. I have updated my docker run command to this:
It now exposes the port and no longer has |
I am getting the same error when running the browser from a remote machine. My compose file:
The Dockerfile that is built:
|
Could be it is something else than autentication... The debug.log shows that every 10 secs neo4j is restarting, without any warning or error. |
@darshanmehta10 I did a re-write of our SSL documentation, which the doc team kindly published today to help with your issue. Could you try following one of the HTTPS encryption examples here: @rogierc neo4j infinitely restarting like that tends to be caused by a store lock on the database. There might be another active neo4j container using your data volume. I don't think this is the same problem as the one reported here, so could you create a new issue and include reproduction information and the error and error stack trace from the debug.log? |
@jennyowen |
I seem to have solved the connect issue in my neo4j container. Now I can issue cypher queries in the browser that get executed by the server as expected. I added NEO4J_dbms_connector_bolt_advertised__address to the environment of the container. The Dockerfile now contains:
192.168.0.20:7687 is the externally accessible addres of the websocket. The http and https connectors have comparable configuration properties. It seems these are not needed. I'm not entirely sure about that though. |
@jennyowen thanks for updating the page. I tried with 2nd and 3rd example on the page. However, I am still getting the same error. Try 1: Contents of
Docker run command:
Result: Same error in chrome while logging in. In the dev toolbar, I see this: Try 2: Contents of directories:
Docker run command:
Result: Same error while logging in from chrome. |
Update I tried adding a property
@rogierc could you post the exact Btw, here's the command I used to generate certificate and key:
|
@darshanmehta10 I'm using a self- signed certificate and I'm getting the same results as you. I'm going to need to consult with my colleagues about how to fix this. Sorry about that. You may be able to use |
@jennyowen thanks for the update, I will await the fix. As my requirement is to primarily visualize the data, I would need neo4j browser along with |
@darshanmehta10 3.5 versions and earlier support the legacy ssl interface which is much simpler to set up for docker. See:
Instead of having your certificates at I was able to connect and log in with the browser over https by making the certificates change and running:
I would recommend making a backup copy of your data folder though, because downgrading the database isn't something we generally test for. |
Hi @darshanmehta10 I have a draft article on how to do tls with neo4j 4.0 docker containers that might help you. I can't guarantee that it will but here is a link to it - please let me know if you try it whether or not it works |
@darshanmehta10 |
@jennyowen I am able to run the container successfully using |
I have a Neo4j graph with just 100 documents in it. The structure looks like below:
In the Neo4j browser, when I try to execute the query
match (n:Person) return n limit 10
, it takes long time to respond, eventually times out and returns an error in browser:Neo4j runs in remote node for me (in docker) and I am accessing it from my local machine. As mentioned in this link, I have also set
dbms.connector.bolt_listen_address
to0.0.0.0:7687
for it to accept the remote connections. Below is the docker run command:Neo4j Version: 4.0.4
Operating System: Debian GNU/Linux 10 (buster)
API: Docker
Steps to reproduce
docker pull neo4j/neo4j:4.0.4
Expected behavior
Neo4j browser should show the nodes and edges in the graph
Actual behavior
All the queries fail with the Websocket error described above
The text was updated successfully, but these errors were encountered: