Giter Club home page Giter Club logo

Comments (7)

DoubleOTheven avatar DoubleOTheven commented on July 19, 2024 1

@javahippie Everything works with sudo. I installed docker for mac. I will try again with docker-machine and give that a shot. Thanks for the help~

from geth-dev.

javahippie avatar javahippie commented on July 19, 2024

Hi Sam,

Thank you for your detailed report! I understand that you are also not able to connect with the geth console from your Mac, is this correct? In the logs, the monitor backend states that it can establish a web3 connection, so I am assuming the connectivity in your network is as expected, but there is a problem with accessing the docker network from your machine.

Can you validate if the geth nodes can talk to each other via docker exec?

docker exec $(docker inspect --format="{{.Id}}" geth-miner-1) /opt/geth attach http://$(docker inspect --format='{{index .NetworkSettings.Networks "geth-dev_chainnet" "IPAMConfig" "IPv4Address"}}' geth-miner-2):8545

This command looks up the ID of geth-miner-1 and establishes a connection against the IP address of geth-miner-2

from geth-dev.

DoubleOTheven avatar DoubleOTheven commented on July 19, 2024

Hi @javahippie, thanks for the quick response.

Yes, I cannot connect to the services on my mac. The webserver via localhost:3000, and via Geth on the command line. Here is the output from the script you sent:

Template parsing error: template: :1:2: executing "" at <index .NetworkSettin...>: error calling index: index of nil pointer
WARN [07-28|14:19:02.884] Sanitizing cache to Go's GC limits       provided=1024 updated=331
Fatal: Failed to start the JavaScript console: api modules: 403 Forbidden invalid host specified

Fatal: Failed to start the JavaScript console: api modules: 403 Forbidden invalid host specified

from geth-dev.

javahippie avatar javahippie commented on July 19, 2024

Did you execute the whole statement from inside the container or on your Mac? There are expressions in there to look up the container ID and IP addresses, the error message indicated that these lookups did not work. If this script won't work from your Mac, maybe try this one from inside the miner-1 container, working directory "/opt":

./geth attach http://172.25.0.104:8545

from geth-dev.

DoubleOTheven avatar DoubleOTheven commented on July 19, 2024

I ran that from my mac, which gave the errors you see above. ./geth attach http://172.25.0.104:8545 works from within miner1

from geth-dev.

javahippie avatar javahippie commented on July 19, 2024

Do you have any issue connecting to internal docker networks of different configurations? To me it seems like the network is running fine, but you are not able to access it from your computer. How did you install Docker?

Somebody contacted me and told me, that he can only connect to the network if he executes sudo docker-compose up, otherwise they had the same problem as you. Does this work?

from geth-dev.

javahippie avatar javahippie commented on July 19, 2024

Since this seems to be a Docker issue and not an issue with the images, I am closing the issue.

from geth-dev.

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.