cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

ConnectionUnavailable: Cannot open connection to ConnectionProfile('bolt://

I'm trying to connect to a Neo4j instance using py2neo in a Jupyter Notebook running on Mybinder.org. See the example here:
Binder

I'll get the following error:

ConnectionUnavailable: Cannot open connection to ConnectionProfile('bolt://...')

What causes this problem and how can I work around it?

5 REPLIES 5

Any more error info?

What kind of URL and server do you have?
Which py2neo version, which neo4j version.
Does it work in a regular python shell with py2neo?

etc.

Neo4j server:
Operating System: CentOS Linux 8 (Core)

Neo4j: Enterprise 4.1.1

py2neo: 2020.1.1

Our Neo4j instance is publicly accessible (see https://github.com/covid-19-net/covid-19-community for details) here:
http://132.249.238.185:7474/browser/ (username: reader, password: demo)

An example Jupyter Notebook is here:
https://github.com/covid-19-net/covid-19-community/blob/master/notebooks/analyses/GraphVisualization...

You can run this notebook on MyBinder.org to reproduce the error:
https://mybinder.org/v2/gh/covid-19-net/covid-19-community/HEAD?filepath=notebooks%2Fanalyses%2FGrap...

The same notebook works fine when run locally or on the Pangeo server:
https://binder.pangeo.io/v2/gh/covid-19-net/covid-19-community/master?filepath=notebooks%2Fanalyses%...

Could it be incompatible python version or network visibility?

I.e. can you reach the neo4j server from your mybinder instance? perhaps they block ports outside of http(s) range?

Yes, thanks, it must be a blocked port.

Im facing the same error. How do i resolve it