jetbrains-plugin-graph-database-support icon indicating copy to clipboard operation
jetbrains-plugin-graph-database-support copied to clipboard

Failed to connect to neo4j via bolt port

Open poghosyan-arthur opened this issue 5 years ago • 12 comments

Can't connect to neo4j version 4.0 via bolt port, but via web interface, it works well. Screen Shot 2020-02-07 at 4 16 34 PM

poghosyan-arthur avatar Feb 07 '20 12:02 poghosyan-arthur

same here. Stacktrace: image

mzeibig avatar Feb 14 '20 07:02 mzeibig

Should be fixed within next release (hope to trigger it today).

GreYko avatar Feb 27 '20 12:02 GreYko

Any update on the release with fix, did it happen?

mfkilgore avatar Mar 13 '20 14:03 mfkilgore

@GreYko, any news on this bug?

poghosyan-arthur avatar Mar 16 '20 07:03 poghosyan-arthur

I have the same issue when trying to connect to Neo4j inside Docker with both DataGrip and PyCharm Neo4j Server version 4.0.2 (community) Graph Database Support 3.0.2 PyCharm 2019.3.4 Runtime version: 11.0.6+8-b520.43 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 5.0.0-38-generic

Screenshot_20200323_134445 Screenshot_20200323_134550

unaimillan avatar Mar 23 '20 10:03 unaimillan

@GreYko The Neo4j browser and py2neo both are connecting perfectly

As I've figured out using Wireshark, it seems like plugin is trying to connect using TLSv1.2, but my server is configured to reject all such attempts (dbms.connector.bolt.tls_level is DISABLED by default). I've tried changing tls_level to OPTIONAL and configuring security policies somehow, but then I've got the other error. Plugins is trying to establish connection, they exchange 2 messages with the server and then TLS Encrypted Alert appears :( Screenshot_20200323_141254

P.S. Meanwhile the https connection on port 7473 works fine, it also refuses to connect to bolt port

TLSv1.2 Record Layer: Alert (Level: Fatal, Description: Bad Certificate)

(This one might be, because I'm using self-signed, self-generated cert)

unaimillan avatar Mar 23 '20 11:03 unaimillan

Are there any known workarounds? I am willing to dance around this bug with my neo4j configuration just to get it working. This is a sandbox development environment and I am not at all concerned with security policies, so I am willing to set up dummy/stub ones "somehow" (how?) just to GetGoing™. Exact mkcert/openssl incantations welcome.

rulatir avatar Mar 24 '20 09:03 rulatir

When I install Graph Database Support 3.0.2 from the Marketplace I get neo4j-java-driver-1.6.4.jar -> SSL handshake issue

Clone repo ./gradlew buildPlugin install the plugin from file -> neo4j-java-driver-4.0.0.jar -> All good

I am thinking something must have gone wrong in the latest release?

@GreYko Can we get a new release?

lqst avatar Mar 26 '20 07:03 lqst

@lqst thanks for your response. Modifying neo4j configuration is the length to which I was ready to go, but building the plugin from source isn't, so I will wait for an official fix.

rulatir avatar Mar 26 '20 07:03 rulatir

Just now have recompiled the plugin from source, as @lqst suggested, and after replacing the original one, everything seems to be working For me (Linux) path for PyCharm plugins was $HOME/.local/share/JetBrains/Toolbox/apps/PyCharm-P/ch-0/193.6911.25.plugins/ and there I've replaced the folder GraphDatabaseSupport with the my one

unaimillan avatar Mar 26 '20 12:03 unaimillan

Also it is possible to upgrade the plugin directly from the IDE One could open the File->Settings->Plugins menu and select GraphDatabaseSupport.zip achrive via Install plugin from Disk... option

Screenshot_20200326_152640

unaimillan avatar Mar 26 '20 12:03 unaimillan

Seems fixed as of now.

rulatir avatar Apr 07 '20 14:04 rulatir