Hi i am new to balena and am using it to launch some helium hotspots . The software ima using is the following.
It all seems to be running correctly however I need to test it and am unable to get any of the docker containers to run it’s suppose to be able to run commands such as…
docker exec miner miner info height
When I try to run any docker command it tells me that it’s not a command if anyone could help shine some light on this for me or would be willing to work with me to better understand what’s going on here I would really appreciate it.
Hi @TyrellG, welcome to the Forums. There are a couple of factors to consider here, so here goes.
First and foremost, looking at that GitHub repo, it seems to be the Nebra repo for their particular hardware. While it’s great that they develop in the open, and are big contributors to open-source software, are you using one of their devices? What type of hardware are you deploying to?
Second, does the build complete, and do the containers download onto the device? When clicking on a device name in the Dashboard, and viewing its details, are there about 6 or 7 services running?
Third, balena devices do not run Docker, we build our own container runtime, called balenaEngine. Thus, the command would need to be altered to
balena exec miner miner info height… But even more detailed, you need to consider a few other items:
That command assumes the name of the mining container is
miner. Looking at the Nebra repo, they renamed it to
helium-miner here: helium-miner-software/docker-compose.yml at master · NebraLtd/helium-miner-software · GitHub.
So, I believe your command needs to be altered to
balena exec helium-miner miner info height.
Finally, that command needs to be run when SSH’ed into the HostOS, make sure you are not trying to open up a terminal and run that command from inside the mining container itself.
Hope that helps get you going.
Hello @TyrellG just to complement David’s questions. Do you use an official Helium hotspot with a secure element on the LoRa concentrator? or you would like to run a Data Only Helium Hotspot?
For anyone following along, Nebra was able to resolve this one with the user. The container was restart-looping, and he needed to apply a DBUS patch. Once that was in place, the container stayed running, and he could run his desired commands.
on the same topic @mpous I am using the European version from the following location:
My hardware consists of a RAK2245 with a SX1301 concentrator.
I have a key from helium and have run this hotspot for a long time but it crashed.
Can you help me figure out what commands to send to find out if the miner is synching on the helium blockchain?
@mantoles did you try to run
miner info summary on the
did you add the Device Variable
LORA_REGION? i saw on the Dockerfile template some variables needed → https://github.com/PastaGringo/balenaos-helium-gtw/blob/master/loragtwpktfwd/Dockerfile
or just follow the steps introduced by the author here → https://github.com/PastaGringo/balenaos-helium-gtw#modify-the-code
I did not modify the code from the author since I am deploying the EU version. I will take another look at it today.
the following command in the helium miner terminal returns the following:
$miner info summary → returns nothing
$miner miner status
a set of commands
@mantoles could you please print the
miner info height?
How the miner is not responding to commands
@mantoles if you run
miner versions what do you see?
@mpous sorry it took me a while to get back to you.
I resolved the issue by building a new release and reflashing an image.
The summary shows me synching with the blockchain. I should be fully synched in a day or two
Indeed in 3-4 days your device should be mining again!
Let us know if this works @mantoles
Hi Mark, my miner was up and running for a while but I switched locations. I just moved it to Europe. It seems like everything is working but my miner is not synchronizing on the blockchain. Is there a way to remove the miner data and start synching with the chain from scratch? I believe there is a conflict since the container is not synching in europe EU868 vs US900
Is your LoRa concentrator compatible with the EU region?
El dj., 14 d’abr. 2022, 21:29, Sophronis Mantoles via balenaForums <firstname.lastname@example.org> va escriure:
yes it is. I started synching on the chain in the US and then moved it to Europe so I am not sure if that is a problem
Mmmm some questions:
- What concentrator are you using?
- Could you please share the variables?
El dj., 14 d’abr. 2022, 23:27, Sophronis Mantoles via balenaForums <email@example.com> va escriure:
It appears when I ping quay.io from that location it is not responding.
Not sure what is going on Mark.
@mantoles could you please confirm what project aare you using from github?
on the other hand could you please share the logs that you see?
if you type
miner info summary what errors do you see?
I will post the errors soon.