Git Product home page Git Product logo

Comments (7)

matthieuml avatar matthieuml commented on September 25, 2024

I just tried by recreating containers, and I can connect with the same .env as you.
Did you try to --force-recreate, maybe your database wasn't initialized with the proper credentials ?

from genai-stack.

teron131 avatar teron131 commented on September 25, 2024

#83

Please see if this is the same problem you are facing.

You could also provide your error messages.

from genai-stack.

WindyOrgUK avatar WindyOrgUK commented on September 25, 2024

I am not sure if tis is the same problem, but I am trying to connect to the app from another host on the same network.
So I need all the listeners exposed to 0.0.0.0 and not 127.0.0.1.
When I use local neo4j DB I can connect from the same host I run my containers on to 127.0.0.1:7474 with curl and I get:
{
"bolt_routing" : "neo4j://127.0.0.1:7687",
"transaction" : "http://127.0.0.1:7474/db/{databaseName}/tx",
"bolt_direct" : "bolt://127.0.0.1:7687",
"neo4j_version" : "5.11.0",
"neo4j_edition" : "community"

  • Connection #0 to host 127.0.0.1 left intact

but when I connect to the IP of the same host from local network, my connection times-out at some point.
The connection is not reset, but just times out, so this proves that my docker is actually listening on 0.0.0.0 and the netstat proves this:

tcp 0 0 0.0.0.0:7474 0.0.0.0:* LISTEN 21438/docker-proxy

so this means that the problem is in the neo4j docker which does not know how to respond (route) to requests from external IPs.

Is there an easy solution to this ?
The suggestions from Issue 83 did not change the situation for me.

from genai-stack.

matthieuml avatar matthieuml commented on September 25, 2024

When using the port mapping in docker-compose.yml, Docker should automatically open ports to the service on your machine unless you have blocked or have a firewall that block this behavior.

Can you access 0.0.0.0:7474 and <local-ip>:7474 on the host?

from genai-stack.

WindyOrgUK avatar WindyOrgUK commented on September 25, 2024

Yes, just checked.
both 0.0.0.0 and 192.168.1.77 work just fine if connection initiates from the host where the docker runs.
It looks to me like a routing problem in the docker that listens on 7474.
It probably does not have default gateway set so does not know how to respond to connections with src IP being within any other network than own or docker host's

from genai-stack.

matthieuml avatar matthieuml commented on September 25, 2024

Can you ping your docker host from the other device on the same network? Do you have any kind of firewall that could block the access?

from genai-stack.

WindyOrgUK avatar WindyOrgUK commented on September 25, 2024

No, access to docker host is unlimited. No firewall used

from genai-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.