fusion44 / blitz_api

A management backend for the RaspiBlitz project written in Python / FastAPI
MIT License
18 stars 18 forks source link

[RaspiBlitz] Electrs status handling throws an error #246

Open fusion44 opened 5 months ago

fusion44 commented 5 months ago
curl -X 'GET' \
  'http://192.168.178.38/api/apps/status' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer  xxx'
[
  {
    "id": "mempool",
    "version": "v2.5.0",
    "installed": false,
    "status": "offline",
    "error": ""
  },
  {
    "id": "btc-rpc-explorer",
    "version": "v3.4.0",
    "installed": false,
    "status": "offline",
    "error": ""
  },
  {
    "id": "lnbits",
    "version": "0.11.3",
    "installed": false,
    "status": "offline",
    "error": ""
  },
  {
    "id": "btcpayserver",
    "version": "v1.12.5",
    "installed": false,
    "status": "offline",
    "error": ""
  },
  {
    "id": "rtl",
    "version": "v0.14.1",
    "installed": false,
    "status": "offline",
    "error": ""
  },
  {
    "id": "thunderhub",
    "version": "v0.13.30",
    "installed": false,
    "status": "offline",
    "error": ""
  },
  {
    "id": "jam",
    "version": "0.1.6",
    "installed": false,
    "status": "offline",
    "error": ""
  },
  {
    "id": "electrs",
    "error": "script result processing error: /home/admin/config.scripts/bonus.electrs.sh status"
  }
]
Feb 25 07:57:34 python[2167358]: 2024-02-25 07:57:34 | ⚠️ | raspiblitz.py:124 | error on repackage data: ##### STATUS ELECTRS SERVICE
Feb 25 07:57:34 python[2167358]: version='v0.10.2'
Feb 25 07:57:34 python[2167358]: configured=1
Feb 25 07:57:34 python[2167358]: serviceInstalled=1
Feb 25 07:57:34 python[2167358]: serviceRunning=1
Feb 25 07:57:34 python[2167358]: localIP='192.168.178.38'
Feb 25 07:57:34 python[2167358]: publicIP='93.218.213.19'
Feb 25 07:57:34 python[2167358]: portTCP='50001'
Feb 25 07:57:34 python[2167358]: localTCPPortActive=1
Feb 25 07:57:34 python[2167358]: publicTCPPortAnswering=0
Feb 25 07:57:34 python[2167358]: portSSL='50002'
Feb 25 07:57:34 python[2167358]: localHTTPPortActive=1
Feb 25 07:57:34 python[2167358]: publicHTTPPortAnswering=0
Feb 25 07:57:34 python[2167358]: TorRunning=1
Feb 25 07:57:34 python[2167358]: nginxTest=1
Feb 25 07:57:34 python[2167358]: serviceRunning=1
Feb 25 07:57:34 python[2167358]: electrumResponding=1
Feb 25 07:57:34 python[2167358]: initialSynced=1
Feb 25 07:57:34 python[2167358]:

refs https://github.com/raspiblitz/raspiblitz/issues/4436