MatthZie
(Matth Zie)
October 22, 2022, 11:48am
1
Hi!
I recently installed HA-supervised on a Jetson-Nano board. The OS is based on Ubuntu 18.04 LTS. (So I know it is not fully supported). Yet, the installation worked fine and also the initialization worked. All containers are up and running and also the web frontend works fine.
However, when trying to install an addon (e.g. core_mosquitto, visual_studio_server), the process fails and returns
Error: Unknown error, see supervisor
However, also the supervisor logs do not give more details (even in debug mode)
What could be the reason for this error? What can I do to track it down?
I’ve already checked thing such as system health. This yields this output:
checks:
- enabled: true
slug: network_interface_ipv4
- enabled: true
slug: backups
- enabled: true
slug: supervisor_trust
- enabled: true
slug: core_security
- enabled: true
slug: dns_server_ipv6
- enabled: true
slug: addon_pwned
- enabled: true
slug: free_space
- enabled: true
slug: dns_server
issues:
- context: system
reference: null
type: no_current_backup
uuid: d7fc88c3df60443690d6bc0232f6ccd0
suggestions:
- auto: false
context: system
reference: null
type: create_full_backup
uuid: 721f7cf24b544ed79866d3ba456a7650
unhealthy: []
unsupported:
- apparmor
- network_manager
- os
MatthZie
(Matth Zie)
October 23, 2022, 8:08am
2
Meanwhile, I found how to get some more debug information by calling:
ha addons install core_mosquitto --log-level debug
time="2022-10-23T10:04:48+02:00" level=debug msg="Adding homedir to searchpath" homedir=/root
time="2022-10-23T10:04:48+02:00" level=info msg="No configfile found"
time="2022-10-23T10:04:48+02:00" level=debug msg="Debug flags" apiToken=111f353fbb322a2e33f230879e4bccb324f735fd58abadea2d9b72043010346f310c3f20230f19e780dd1b357a146ced4be2953df9709946 cfgFile= endpoint=supervisor logLevel=debug noProgress=false rawJSON=false
time="2022-10-23T10:04:48+02:00" level=debug msg="addons install" args="[core_mosquitto]"
time="2022-10-23T10:04:48+02:00" level=debug msg="[GenerateURI]" base=supervisor command="{slug}/install" section=addons
time="2022-10-23T10:04:48+02:00" level=debug msg="[GenerateURI] Result" uri="http://supervisor/addons/{slug}/install" url="http://supervisor/addons/%7Bslug%7D/install" url(string)="http://supervisor/addons/{slug}/install"
time="2022-10-23T10:04:48+02:00" level=debug msg=Response body="{\"result\": \"error\", \"message\": \"Unknown error, see supervisor\"}" fields.time=11.693324ms headers="map[Content-Length:[63] Content-Type:[application/json; charset=utf-8] Date:[Sun, 23 Oct 2022 08:04:48 GMT] Server:[Python/3.10 aiohttp/3.8.3]]" received-at="2022-10-23 10:04:48.696726 +0200 CEST m=+0.015220818" request="&{POST http://supervisor/addons/core_mosquitto/install HTTP/1.1 1 1 map[Accept:[application/json] Authorization:[Bearer 111f353fbb322a2e33f230879e4bccb324f735fd58abadea2d9b72043010346f310c3f20230f19e780dd1b357a146ced4be2953df9709946] User-Agent:[go-resty/2.7.0 (https://github.com/go-resty/resty)]] <nil> 0x2a4a30 0 [] false supervisor map[] map[] <nil> map[] <nil> <nil> <nil> 0x4000026080}" status="400 Bad Request" statuscode=400
Error: Unknown error, see supervisor
Since I don’t have another working instance of HA, I wonder if the braces in the generated URL are expected behavior, or if this should be replaced by e.g. “core_mosquitto” or so.
Can anyone tell?