pi-gen icon indicating copy to clipboard operation
pi-gen copied to clipboard

Could not connect to powchain endpoint

Open monossido opened this issue 4 years ago • 16 comments

I boot the first time my raspberry with an ssd attached, I can see that it install a few things, then reboot. But then I see this fail log on syslog, I think it's fatal, so geth and prysm is not syncing, right?

Nov 30 19:50:30 ethnode-287315211 beacon-chain[1656]: time="2020-11-30 19:50:30" level=error msg="Could not connect to powchain endpoint" error="could not dial eth1 nodes: Post "http://localhost:8545": dial tcp [::1]:8545: connect: connection refused" prefix=powchain

I've the right port opened on my router

monossido avatar Nov 30 '20 19:11 monossido

Try to see if you can telnet locally on port 8545 try 127.0.0.1 and localhost, is there a difference ?

Splurth avatar Nov 30 '20 21:11 Splurth

`ethereum@ethnode-287315211:~$ telnet 127.0.0.1 8545

Trying 127.0.0.1...

telnet: Unable to connect to remote host: Connection refused`

monossido avatar Dec 01 '20 08:12 monossido

Can you type:

netstat -punta | grep 8545

diglos avatar Dec 01 '20 09:12 diglos

`ethereum@ethnode-287315211:~$ sudo netstat -punta | grep 8545

ethereum@ethnode-287315211:~$ `

monossido avatar Dec 01 '20 09:12 monossido

Ummh, seems that Geth is not listening to that port. Are you running geth with the --http flag?

diglos avatar Dec 01 '20 09:12 diglos

With ps aux I cannot see geth, that's the problem probably.. At the beggining I was checkin this stuff after two days of uptime, so I was thinking that geth had finish its job.

But now it's a fresh installation and geth is not running.

Can you tell me how to launch it with the right argument and in background? Thank you.

monossido avatar Dec 01 '20 10:12 monossido

I think it's fixed by:

sudo systemctl start geth 
sudo systemctl enable geth

I leave the issu opened because geth was disabled on fresh install, don't know why.

monossido avatar Dec 01 '20 11:12 monossido

I've also added "--http" to startup ARGS for geth, is that right? Why there is not that argoument by default?

Now prysm says:

Dec  1 18:33:24 ethnode-287315211 beacon-chain[1656]: time="2020-12-01 18:33:24" level=error msg="Could not connect to powchain endpoint" error="could not dial eth1 nodes: eth1 node using incorrect chain id, 0 != 1" prefix=powchain

monossido avatar Dec 01 '20 18:12 monossido

It is really odd that geth wasn't enabled by default. Which image did you install?

diglos avatar Dec 15 '20 08:12 diglos

This one https://ethraspbian.com/downloads/ubuntu-20.04-preinstalled-server-arm64+raspi-eth2.img.zip

Also prysm did not have -pyrmont flag.

After this (and other) customization the raspberry is up and running in eth2 testnet (at the end I've used infuora service for the eth1 node actually)

monossido avatar Dec 15 '20 09:12 monossido

I have exactly the same problem, same outputs but I am no able to resolve it as @monossido

jahnludvik avatar Mar 12 '21 10:03 jahnludvik

@jahnludvik I solved using infura service for eth1 node and configured prysm to use it. Now my raspberry node is on mainnet working like a charm (Effectiveness 100%)

Though it's possible to run geth on the same raspberry I chose to not do that in order to save resources for prysm validator.

If you want to run geth and prysm on you own I suggest to understand how it works and configure it manually. The img is not ready out of the box.

monossido avatar Mar 12 '21 11:03 monossido

@monossido just made my day. --http flag was missing also in my image.

raffobaffo avatar Mar 12 '21 16:03 raffobaffo

Hi, sorry for the lack of response here. Note that we didn't release an eth2 image for mainnet yet. We will next week along with a new documentation portal based on Read the Docs so hope all the config issues will be solved quickly.

@monossido, thanks for stopping by and help.

Thanks for your patience.

diglos avatar Mar 13 '21 11:03 diglos

Yeah thank you all guys. I guess I am waiting some days before retryin', then!

jahnludvik avatar Mar 13 '21 16:03 jahnludvik

Hello, I am trying to install and the first time after boot and I am getting the below error.

Oct 16 14:57:21 ethnode-a5cad6f85 beacon-chain[1686]: time="2021-10-16 14:57:21" level=error msg="Could not connect to powchain endpoint" error="could not dial eth1 nodes: Post "http://localhost:8545": dial tcp [::1]:8545: connect: connection refused" prefix=powchain

I am running into the same problem with geth but I am lost at how to add the http flag. Could somebody please help me out?

Etherice avatar Oct 16 '21 15:10 Etherice