Still errors:
Transaction failed and will be retried in 0.9537840946055642s (Couldn't connect to localhost:7687 (resolved to ('127.0.0.1:7687',)):
Failed to establish connection to ResolvedIPv4Address(('127.0.0.1', 7687)) (reason [Errno 111] Connection refused))
Transaction failed and will be retried in 1.9353899099803848s (Couldn't connect to localhost:7687 (resolved to ('127.0.0.1:7687',)):
Failed to establish connection to ResolvedIPv4Address(('127.0.0.1', 7687)) (reason [Errno 111] Connection refused))
Transaction failed and will be retried in 3.89372432112062s (Couldn't connect to localhost:7687 (resolved to ('127.0.0.1:7687',)):
Failed to establish connection to ResolvedIPv4Address(('127.0.0.1', 7687)) (reason [Errno 111] Connection refused))
Transaction failed and will be retried in 8.178613510251077s (Couldn't connect to localhost:7687 (resolved to ('127.0.0.1:7687',)):
Failed to establish connection to ResolvedIPv4Address(('127.0.0.1', 7687)) (reason [Errno 111] Connection refused))
Transaction failed and will be retried in 18.406962404285593s (Couldn't connect to localhost:7687 (resolved to ('127.0.0.1:7687',)):
Failed to establish connection to ResolvedIPv4Address(('127.0.0.1', 7687)) (reason [Errno 111] Connection refused))
Several lines following above error messages.
Here are half:
---------------------------------------------------------------------------
ConnectionRefusedError Traceback (most recent call last)
File ~/.local/lib/python3.11/site-packages/neo4j/_async_compat/network/_bolt_socket.py:498, in BoltSocketBase._connect_secure(cls, resolved_address, timeout, keep_alive, ssl_context)
497 log.debug("[#0000] C: <OPEN> %s", resolved_address)
--> 498 s.connect(resolved_address)
499 s.settimeout(t)
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
ServiceUnavailable Traceback (most recent call last)
File ~/.local/lib/python3.11/site-packages/neo4j/_sync/io/_bolt_socket.py:329, in BoltSocket.connect(cls, address, tcp_timeout, deadline, custom_resolver, ssl_context, keep_alive)
328 try:
--> 329 s = cls._connect_secure(
330 resolved_address, tcp_timeout, keep_alive, ssl_context
331 )
332 agreed_version = s._handshake(resolved_address, deadline)
File ~/.local/lib/python3.11/site-packages/neo4j/_async_compat/network/_bolt_socket.py:521, in BoltSocketBase._connect_secure(cls, resolved_address, timeout, keep_alive, ssl_context)
520 if isinstance(error, OSError):
--> 521 raise ServiceUnavailable(
522 "Failed to establish connection to "
523 f"{resolved_address!r} (reason {error})"
524 ) from error
525 raise
ServiceUnavailable: Failed to establish connection to ResolvedIPv4Address(('127.0.0.1', 7687)) (reason [Errno 111] Connection refused)
The above exception was the direct cause of the following exception:
ServiceUnavailable Traceback (most recent call last)
Cell In[1], line 11
9 neo4jDB_connection = GraphDatabase.driver(neo4_uri, keep_alive=True, auth=(neo4j_user, neo4j_password))
10 # Send the Cypher statement to Neo4j
---> 11 neo4j_response = neo4jDB_connection.execute_query(cypher_statement)
12 # Print the response
13 print(neo4j_response.records)
File ~/.local/lib/python3.11/site-packages/neo4j/_sync/driver.py:946, in Driver.execute_query(self, query_, parameters_, routing_, database_, impersonated_user_, bookmark_manager_, auth_, result_transformer_, **kwargs)
942 raise ValueError(
943 f"Invalid routing control value: {routing_!r}"
944 )
945 with session._pipelined_begin:
--> 946 return session._run_transaction(
947 access_mode,
948 TelemetryAPI.DRIVER,
949 work,
950 (query_str, parameters, result_transformer_),
951 {},
952 )
File ~/.local/lib/python3.11/site-packages/neo4j/_sync/work/session.py:584, in Session._run_transaction(self, access_mode, api, transaction_function, args, kwargs)
579 raise
581 if errors:
582 # TODO: 7.0 - when Python 3.11+ is the minimum,
583 # use exception groups
--> 584 raise errors[-1]
585 else:
586 raise ServiceUnavailable("Transaction failed")