Comments (7)
@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.
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.
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.
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.
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.
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.
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)
- Update to new Geth Version Khazad-dรปm (v1.8.14) HOT 1
- Unlock all RPC API HOT 1
- Node 2 and 3 have the same private key HOT 2
- Lots of index.html files being created HOT 8
- Upgrade Geth to 1.8.15
- Eth explorer HOT 8
- Upgrade to Geth Budapest (v1.8.16)
- options with smaller footprint HOT 9
- Upgrade to geth 1.8.17 (Shoutingstone) HOT 1
- eth-netstats HOT 1
- Encrypted passwords HOT 6
- Change node to KOVAN testnet HOT 3
- miner-1 goes down after a couple of hours HOT 4
- Difference between Network id and ChainId HOT 5
- Upgrade Geth to 1.8.18 HOT 1
- Extract Docker swarm version into dockerfile HOT 1
- Version '1.8.17+build15807+xenial' for 'ethereum' was not found HOT 9
- Geth error : replacement transaction too low fee HOT 3
- Unable to monitor blockchain nodes using blockchain-explorer HOT 5
- Latest version not installed due to Docker Layers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geth-dev.