You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be checked via: docker container inspect memgraph --format "{{json .NetworkSettings.Ports}}"
The problem is that connection to the [::][::1] or IPv6 address from the container "GlobalIPv6Address": "2001:db8::2", does not work in any way, and results in the following errors, depending how you change the driver or URI config:
Error: Couldn't connect to [::]:7687 (resolved to ('[::]:7687',)):
Failed to read any data from server ResolvedIPv6Address(('::', 7687, 0, 0)) after connected (deadline <neo4j._deadline.Deadline object at 0x70d036001de0>)
maple@big-bang:~/repos/mgconsole/build/src$ ./mgconsole --host=ip6-localhost
mg_raw_transport_recv: Connection reset by peer
Connection failure: failed to receive handshake response
Snippets:
from neo4j import GraphDatabase
URI = "bolt://[::]:7687"
AUTH = ("", "")
employee_threshold=10
def main():
with GraphDatabase.driver(URI, auth=AUTH) as driver:
with driver.session(database="") as session:
for i in range(100):
try:
session.run("CREATE (a:Person {name: 'Alice'})")
except Exception as e:
print(f"Error: {e}")
main()
Create a IPv6 network:
docker network create --ipv6 --subnet 2001:db8::/64 ip6net
Start Memgraph in IPv6 network:
docker run --name memgraph --network ip6net -p 7687:7687 memgraph/memgraph:2.20.0 --log-level=TRACE --also-log-to-stderr --telemetry-enabled=False
Keep in mind that now Bolt port works both for IPv4 and IPv6 networking.
You can disable IPv4 network access by setting the port like this:
-p '[::]::7687'
This can be checked via:
docker container inspect memgraph --format "{{json .NetworkSettings.Ports}}"
The problem is that connection to the
[::]
[::1]
or IPv6 address from the container"GlobalIPv6Address": "2001:db8::2",
does not work in any way, and results in the following errors, depending how you change the driver or URI config:Neo4j driver:
Snippets:
Context:
The text was updated successfully, but these errors were encountered: