Attempting to update ssh addon fails with unhelpful error message
NodeJSmith opened this issue · 0 comments
NodeJSmith commented
Describe the problem
I attempted to update the SSH addon using ssh - makes sense in retrospect why this didn't work, but the error message does not make it clear that this can't be done. The error message is below. With debug logs, further down, it's clear that the addon is saying it can't update itself, but I think that would be useful to have in this error message, if possible.
➜ ~ ha addons update a0d7b954_ssh
Processing... Done.
ERRO[0000] Unexpected server response
Unexpected server response
Debug information
- SSH Addon type
- Community
- Core
- Custom
- Version of the CLI
CLI Version: 2024.05.0
Add-on: Advanced SSH and Web Terminal
Add-on version: 17.2.0
- Version of Home Assistant Core & the Home Assistant Supervisor
Home Assistant Core: version: 2024.4.4
Home Assistant Supervisor: 2024.05.1
- Output from executing the command with debug info
➜ ~ ha addons update a0d7b954_ssh --log-level debug
DEBU[0000] Adding homedir to searchpath homedir=/root
INFO[0000] No configfile found
DEBU[0000] Debug flags apiToken=[redacted]29808a1 cfgFile= endpoint=supervisor logLevel=debug noProgress=false rawJSON=false
DEBU[0000] addons update args="[a0d7b954_ssh]"
DEBU[0000] [GenerateURI] base=supervisor command="{slug}/update" section=addons
DEBU[0000] [GenerateURI] Result uri="http://supervisor/addons/{slug}/update" url="http://supervisor/addons/%7Bslug%7D/update" url(string)="http://supervisor/addons/{slug}/update"
Processing... Done.
DEBU[0000] Response body="{\"result\":\"error\",\"message\":\"Add-on a0d7b954_ssh can't update itself!\"}" fields.time=2.544715ms headers="map[Content-Length:[71] Content-Type:[application/json; charset=utf-8] Date:[Sat, 18 May 2024 14:39:28 GMT] Server:[Python/3.12 aiohttp/3.9.5]]" received-at="2024-05-18 09:39:28.060333654 -0500 CDT m=+0.038128901" request="&{POST http://supervisor/addons/a0d7b954_ssh/update HTTP/1.1 1 1 map[Accept:[application/json] Authorization:[redacted] User-Agent:[go-resty/2.10.0 (https://github.com/go-resty/resty)]] <nil> 0x6e9ac0 0 [] false supervisor map[] map[] <nil> map[] <nil> <nil> <nil> 0xc00002a130}" status="403 Forbidden" statuscode=403
ERRO[0000] Unexpected server response
Unexpected server response
Expected behavior
Something like:
➜ ~ ha addons update a0d7b954_ssh
Processing... Done.
Add-on a0d7b954_ssh can't update itself!