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.

Problem with connect to bolt in docker

Good evening, I have been fighting with neo4j for several days and I cannot connect, I get the following errors:
File "/home/nefalem/.local/share/virtualenvs/kazdream-OmuGMSnD/lib/python3.8/site-packages/neo4j/init.py", line 199, in bolt_driver

  • raise ServiceUnavailable(str(error)) from error*
    neo4j.exceptions.ServiceUnavailable: [OSError] Connection Failed. Please ensure that your database is listening on the correct host and port and that you have enabled encryption if required. Note that the default encryption setting has changed in Neo4j 4.0. See the docs for more information. Failed to establish encrypted connection.

Here is the content of the docker file:
version: "3.7"

services:

  • neo4j:*

  • image: neo4j:latest*

  • container_name: neo4j*

  • hostname: neo4j*

  • network_mode: bridge*

  • ports:*

    • "7474:7474"*
    • "7687:7687"*
  • environment:*

  • NEO4J_dbms.default_advertised_address: 127.0.0.1*
    
  • NEO4J_dbms.connectors.default_listen_address: 0.0.0.0*
    
  • NEO4J_dbms.ssl.policy.default.client_auth: NONE*
    
  • NEO4J_dbms_ssl_policy_bolt_client__auth: NONE*
    
  • NEO4J_dbms_ssl_policy_https_client__auth: NONE*
    
  • NEO4J_dbms.connector.bolt.enabled: "true"*
    
  • NEO4J_dbms.connector.bolt.tls_level: OPTIONAL*
    
  • NEO4J_dbms.connector.bolt.listen_address: 0.0.0.0:7687*
    
  • NEO4J_AUTH: none*
    
  • volumes:*

  • - ./neo4j/data:/data*
    
  • - ./neo4jlogs:/logs*
    
  • - ./neo4j/conf:/conf*
2 REPLIES 2

jggomez
Graph Voyager

Hi, I think that you are using the neo4j driver version 4. You should use the driver for version 3.7

Thanks

Hi, please tell me how to change the driver version?