Skip to content

hm-config cant handle different onboarding key and public key - needs an update for helium-og and some syncrobit miners #247

@shawaj

Description

@shawaj
2023-04-15 15:54:29,805 - [DEBUG] - gatewayconfig.bluetooth.characteristics.onboarding_key_characteristic - (onboarding_key_characteristic.py).ReadValue -- /opt/gatewayconfig/bluetooth/characteristics/onboarding_key_characteristic.py:(22) - Read Onboarding Key
2023-04-15 15:54:29,851 - [ERROR] - hm_pyhelper.miner_param - (miner_param.py).run_gateway_mfr -- /opt/venv/lib/python3.9/site-packages/hm_pyhelper/miner_param.py:(42) - gateway_mfr exited with a non-zero status
Traceback (most recent call last):
  File "/opt/venv/lib/python3.9/site-packages/hm_pyhelper/miner_param.py", line 33, in run_gateway_mfr
    run_gateway_mfr_result = subprocess.run(
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/opt/venv/lib/python3.9/site-packages/hm_pyhelper/gateway_mfr_aarch64', '--device', 'ecc://i2c-1:96?slot=0', 'key']' returned non-zero exit status 2.
2023-04-15 15:54:29,852 - [ERROR] - gatewayconfig.gatewayconfig_shared_state - (gatewayconfig_shared_state.py).load_public_key -- /opt/gatewayconfig/gatewayconfig_shared_state.py:(48) - Unable to read public key.
Traceback (most recent call last):
  File "/opt/venv/lib/python3.9/site-packages/hm_pyhelper/miner_param.py", line 33, in run_gateway_mfr
    run_gateway_mfr_result = subprocess.run(
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/opt/venv/lib/python3.9/site-packages/hm_pyhelper/gateway_mfr_aarch64', '--device', 'ecc://i2c-1:96?slot=0', 'key']' returned non-zero exit status 2.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/gatewayconfig/gatewayconfig_shared_state.py", line 45, in load_public_key
    public_keys = get_public_keys_rust()
  File "/opt/venv/lib/python3.9/site-packages/hm_pyhelper/miner_param.py", line 233, in get_public_keys_rust
    return run_gateway_mfr("key")
  File "/opt/venv/lib/python3.9/site-packages/hm_pyhelper/lock_singleton.py", line 71, in wrapper_lock_ecc
    raise ex
  File "/opt/venv/lib/python3.9/site-packages/hm_pyhelper/lock_singleton.py", line 60, in wrapper_lock_ecc
    raise ex
  File "/opt/venv/lib/python3.9/site-packages/hm_pyhelper/lock_singleton.py", line 57, in wrapper_lock_ecc
    value = func(*args, **kwargs)
  File "/opt/venv/lib/python3.9/site-packages/hm_pyhelper/miner_param.py", line 43, in run_gateway_mfr
    raise ECCMalfunctionException(err_str).with_traceback(e.__traceback__)
  File "/opt/venv/lib/python3.9/site-packages/hm_pyhelper/miner_param.py", line 33, in run_gateway_mfr
    run_gateway_mfr_result = subprocess.run(
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
hm_pyhelper.exceptions.ECCMalfunctionException: gateway_mfr exited with a non-zero status
2023-04-15 15:54:29,855 - [DEBUG] - gatewayconfig.bluetooth.characteristics.onboarding_key_characteristic - (onboarding_key_characteristic.py).ReadValue -- /opt/gatewayconfig/bluetooth/characteristics/onboarding_key_characteristic.py:(25) - Onboarding key:  Unavailable

Ref - https://nebraltd.slack.com/archives/C024BNQ1Y6T/p1681575163634789?thread_ts=1681574651.997069&cid=C024BNQ1Y6T

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions