0

I have a droplet on digital ocean and have neo4j installed and running, the results of service neo4j status is:

 Loaded: loaded (/etc/init.d/neo4j; bad; vendor preset: enabled)
 Active: active (exited) since Wed 2017-04-19 10:35:43 UTC; 21h ago
 Docs: man:systemd-sysv-generator(8)
 Process: 725 ExecStop=/etc/init.d/neo4j stop (code=exited, status=0/SUCCESS)
 Process: 806 ExecStart=/etc/init.d/neo4j start (code=exited, status=0/SUCCESS)
 Tasks: 0
 Memory: 0B
 CPU: 0

But when I run the pyhthon code I get:

py2neo.packages.httpstream.http.SocketError: Connection refused

I have authentication disabled.

In the graph all I explicitly referred to the db:

G=Graph('http://localhost:7474/db/data')

which results in the following error:

File "/usr/local/lib/python3.5/dist-packages/py2neo/packages/neo4j/v1/bolt.py", line 156, in _recv
raise ProtocolError("Server closed connection")
py2neo.packages.neo4j.v1.exceptions.ProtocolError: Server closed connection
laila
  • 1,009
  • 3
  • 15
  • 27

0 Answers0