NebraLtd / helium-rak

Nebra OpenFleet for RAK v1.5, v2 and MNTD Miners
https://nebra.io/rak
MIT License
14 stars 13 forks source link

Failed to add edge detection - Hardware failure? #25

Open Crash0v3r1de opened 4 months ago

Crash0v3r1de commented 4 months ago

Just noticed one of my miners went offline a few weeks ago and the only errors in the log I'm seeing are GPIO related. Wondering if anyone can verify if the concentrator just died or maybe something else?

libmraa[13]: libmraa version v2.1.0-24-gbd91964 initialised by user 'root' with EUID 0 libmraa[13]: gpio: platform doesn't support chardev, falling back to sysfs libmraa[13]: libmraa initialised for platform 'Raspberry Pi Model B Rev 1' of type 5 2024-02-28 01:08:40,541 - [DEBUG] - __main__ - (__main__.py).validate_env -- /opt/venv/lib/python3.9/site-packages/gatewayconfig/__main__.py:(34) - Starting with the following ENV: SENTRY_DSN=None BALENA_APP_NAME=xxxx-xxxx BALENA_DEVICE_UUID=3395aac54ec624a9535e759c6a61xxxx VARIANT=COMP-RAKHM ETH0_MAC_ADDRESS_FILEPATH=/sys/class/net/eth0/address WLAN0_MAC_ADDRESS_FILEPATH=/sys/class/net/wlan0/address DIAGNOSTICS_JSON_URL=http://diagnostics/json ETHERNET_IS_ONLINE_FILEPATH=/sys/class/net/eth0/carrier FIRMWARE_VERSION=v1.3.0 Traceback (most recent call last): File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/opt/venv/lib/python3.9/site-packages/gatewayconfig/__main__.py", line 77, in main() File "/opt/venv/lib/python3.9/site-packages/gatewayconfig/__main__.py", line 30, in main start() File "/opt/venv/lib/python3.9/site-packages/gatewayconfig/__main__.py", line 57, in start config_app = GatewayconfigApp( File "/opt/venv/lib/python3.9/site-packages/gatewayconfig/gatewayconfig_app.py", line 46, in __init__ self.init_gpio(variant) File "/opt/venv/lib/python3.9/site-packages/gatewayconfig/gatewayconfig_app.py", line 139, in init_gpio self.user_button = Button(btn, hold_time=USER_BUTTON_HOLD_SECONDS) File "/opt/venv/lib/python3.9/site-packages/gpiozero/devices.py", line 108, in __call__ self = super(GPIOMeta, cls).__call__(*args, **kwargs) File "/opt/venv/lib/python3.9/site-packages/gpiozero/input_devices.py", line 414, in __init__ super(Button, self).__init__( File "/opt/venv/lib/python3.9/site-packages/gpiozero/mixins.py", line 433, in __init__ super(HoldMixin, self).__init__(*args, **kwargs) File "/opt/venv/lib/python3.9/site-packages/gpiozero/input_devices.py", line 171, in __init__ self.pin.when_changed = self._pin_changed File "/opt/venv/lib/python3.9/site-packages/gpiozero/pins/__init__.py", line 432, in lambda self, value: self._set_when_changed(value), File "/opt/venv/lib/python3.9/site-packages/gpiozero/pins/pi.py", line 319, in _set_when_changed self._enable_event_detect() File "/opt/venv/lib/python3.9/site-packages/gpiozero/pins/rpigpio.py", line 226, in _enable_event_detect GPIO.add_event_detect( RuntimeError: Failed to add edge detection

Packet forwarder shows the correct concentrator.

##### 2024-02-28 01:08:49 GMT ##### ### [UPSTREAM] ### # RF packets received by concentrator: 0 # CRC_OK: 0.00%, CRC_FAIL: 0.00%, NO_CRC: 0.00% # RF packets forwarded: 0 (0 bytes) # PUSH_DATA datagrams sent: 1 (162 bytes) # PUSH_DATA acknowledged: 100.00% ### [DOWNSTREAM] ### # PULL_DATA sent: 3 (100.00% acknowledged) # PULL_RESP(onse) datagrams received: 0 (0 bytes) # RF packets sent to concentrator: 0 (0 bytes) # TX errors: 0 ### SX1302 Status ### # SX1302 counter (INST): 60756175 # SX1302 counter (PPS): 0 # BEACON queued: 0 # BEACON sent so far: 0 # BEACON rejected: 0 ### [JIT] ### src/jitqueue.c:440:jit_print_queue(): INFO: [jit] queue is empty #-------- src/jitqueue.c:440:jit_print_queue(): INFO: [jit] queue is empty ### [GPS] ### # GPS *FAKE* coordinates: latitude 0.00000, longitude 0.00000, altitude 0 m ##### END #####

On the dashboard it shows radio is operational and ECC is is valid/detected. Region is set correctly as well as variant.

Not really sure what else to check/verify.

Crash0v3r1de commented 4 months ago

The only new findings is the working hotspot (all latest firmware) shows n/a for frequency and the broken one shows US915. I am in the US so not sure why that wouldn't also work.