Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miner not ready to get p2p status #70

Closed
ryanteck opened this issue Jan 3, 2021 · 6 comments
Closed

Miner not ready to get p2p status #70

ryanteck opened this issue Jan 3, 2021 · 6 comments

Comments

@ryanteck
Copy link

ryanteck commented Jan 3, 2021

Currently I'm getting the error <0.526.0>@gateway_config:diagnostics:225 Miner not ready to get p2p status in my logs.

I'm not sure why I'm getting this as from the best I can tell everything is running as it should?

Is there any suggestions on how to resolve this.

Thanks

@madninja
Copy link
Member

madninja commented Jan 3, 2021

Currently I'm getting the error <0.526.0>@gateway_config:diagnostics:225 Miner not ready to get p2p status in my logs.

I'm not sure why I'm getting this as from the best I can tell everything is running as it should?

Presumably you are running miner and the gateway_config service can talk to the miner service over dbus?

You can check if miner is reachable by doing a

dbus-send --system --print-reply --dest=com.helium.Miner / com.helium.Miner.P2PStatus

@ryanteck
Copy link
Author

ryanteck commented Jan 3, 2021

Hmm that seems to be erroring out with

Error org.freedesktop.DBus.Error.ServiceUnknown: The name com.helium.Miner was not provided by any .service files

I believe I've given the miner container access to dbus by running it as:

--env REGION_OVERRIDE=EU868 \
--restart always \
--publish 1680:1680/udp \
--publish 44158:44158/tcp \
--name miner \
--privileged \
--env DBUS_SYSTEM_BUS_ADDRESS=unix:path=/host/run/dbus/system_bus_socket \
--mount type=bind,source=/home/pi/miner_data,target=/var/data \
quay.io/team-helium/miner:latest-arm64```

I also have added the com.helium.Miner.conf file from the miner repository.

I might have missed a step somewhere however?

@madninja
Copy link
Member

madninja commented Jan 3, 2021

Look in the sys.config for miner. There's a use_ebus variable you need to set to true.. Then rebuild the release and image.

Or find the sys.config in the release folder and edit it there

@ryanteck
Copy link
Author

ryanteck commented Jan 3, 2021

Oh ok so for it to work I need to compile our own docker image rather than use the one that is available?

I'll give that a try. Thanks.

@madninja
Copy link
Member

madninja commented Jan 3, 2021 via email

@ryanteck
Copy link
Author

ryanteck commented Jan 3, 2021

Ahh excellent @madninja , that works.

Editing the sys.config file and changing use_ebus to true in the container worked perfect. Know that fixes it now.

Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants