helium / miner

Miner for the helium blockchain
Apache License 2.0
609 stars 266 forks source link

Does miner take a long time to restart? #442

Closed jdhoch closed 4 years ago

jdhoch commented 4 years ago

I installed the miner on AWS. When I issue the command docker exec miner miner info height I get the following response: Error response from daemon: Container XXXXXXXXXXXXXXXXXXX is restarting, wait until the container is running

Its been several hours already

lthiery commented 4 years ago

I can take 10-30 seconds to restart sometimes, but not 10-30 hours! You're most likely in some kind of crash loop.

Are you running the most recent image from quay?

Can you remove the image (docker stop miner && docker rm miner) and do the run command again, but this time, remove -d and --restart always. The shell will give you some output which you can share here.

jdhoch commented 4 years ago

So, I was able to get it going by using AWS EC2 instead of LightSail.

Now, if I run the print_keys command I see my public key. How do I see my private key?

miqueet commented 4 years ago

I am trying to run the miner on a raspberry pi with docker. Using the arm64 0624 GA build and I’m getting the same thing. In the logs it mentions something from go.

Has there been any fix for this? I can try an older image to see if that works.

fvasquez commented 4 years ago

I am trying to run the miner on a raspberry pi with docker. Using the arm64 0624 GA build and I’m getting the same thing. In the logs it mentions something from go.

@Wheaties466 Are you sure you pulled the arm64 image and not the amd64 image? Are you running the 64-bit version of Ubuntu 20.04 LTS on your Raspberry Pi 3/4?

Has there been any fix for this? I can try an older image to see if that works.

Older Docker images have worked on the Raspberry Pi 3/4 in the past but I haven't tested any of our recent arm64 images lately. They could be miscompiled. I am tagging the 2020.07.02.0_GA release now so you can try that when it's done building.

miqueet commented 4 years ago

@fvasquez looks like im getting the same error on the 07.02 build

pi@rak-gateway:~ $ sudo docker logs --tail 50 --follow miner
standard_init_linux.go:207: exec user process caused "exec format error"
standard_init_linux.go:207: exec user process caused "exec format error"
standard_init_linux.go:207: exec user process caused "exec format error"
standard_init_linux.go:207: exec user process caused "exec format error"
standard_init_linux.go:207: exec user process caused "exec format error"
standard_init_linux.go:207: exec user process caused "exec format error"
standard_init_linux.go:207: exec user process caused "exec format error"
standard_init_linux.go:207: exec user process caused "exec format error"
standard_init_linux.go:207: exec user process caused "exec format error"

for reference I am using this gateway

https://store.rakwireless.com/collections/lpwan-gateways-concentrators/products/rak7243c-pilot-gateway?variant=26682434879588

raspberry pi 3 with the stock image it comes with. Followed the build a hotspot guide.

I am running the image with the following command.

docker run -d \
--restart always \
--publish 1680:1680/udp \
--publish 44158:44158/tcp \
--name miner \
--mount type=bind,source=/home/pi/miner_data,target=/var/data \
quay.io/team-helium/miner:miner-arm64_2020.07.02.0_GA
fvasquez commented 4 years ago

raspberry pi 3 with the stock image it comes with.

The arm64 Docker image is built for 64-bit ARM. It will not work on Raspbian which is the image that comes with your RAK gateway.

Make a microSD with Ubuntu 20.04 LTS (Pi 3/4). Make sure to get the 64-bit server OS version for arm64 architectures. The 32-bit server version for armhf architectures will not work.

https://ubuntu.com/blog/ubuntu-20-04-lts-is-certified-for-the-raspberry-pi

Those are the first steps to getting our Docker image running on a Pi 3/4.

miqueet commented 4 years ago

Thank you sir, that was the answer to my question.

fvasquez commented 4 years ago

Users have been reporting success running miner in docker containers.