I’m in the middle of switching from a Docker install on a Synology DS920+ to a VM install on the same machine. I downloaded the VM image from the installation guide (apparently version 4.16, not the lastest). I’ve migrated over my snapshot and restored to it. Supervisor now greets me with a message that says I can update the freshly installed OS to version 4.17, except that I can’t because
ERROR (MainThread) [supervisor.hassos] Don't have an URL for OTA updates!
Sure I can easily do the process over again with the latest image (version 4.20) from GitHub, however I’d like to get to the root cause of this error and why the update is failing.
Debug log from the console when I try to update:
ha > os update --log-level debug
DEBU[0000] Adding homedir to searchpath homedir=/root
INFO[0000] No configfile found
DEBU[0000] Debug flags apiToken=<censored> cfgFile= endpoint=supervisor loglevel=debug noProgress=false rawJSON=false
DEBU[0000] os update args="[]"
DEBU[0000] [GenerateURI] base=supervisor command=update section=os
DEBU[0000] [GenerateURI] Result uri="http://supervisor/os/update" url="http://supervisor/os/update" url(string)="http://supervisor/os/update"
* Processing... DEBU[0000] Response body="{\"result\": \"error\", \"message\": \"Unknown error, see supervisor\"}" fields.time=12.558301ms headers="map[Content-Length:[63] Content-Type:[application/json; carset=utf-8] Date:[Tue, 08 Dec 2020 07:56:27 GMT] Server: [Python/3.8 aiohttp/3.7.3]]" received-at="2020-12-08 02:56:27.925041463 -0500 EST m=+0.023694728" request="&{POST http://supervisor/os/update HTTP/1.1 1 1 map[Accept:[application/json] Authorization:[Bearer <censored>] User-Agent:[go-resty/2.3.0 (https://github.com/go-resty/resty)]] <nil> 0x741300 0 [] false supervisor map[] map[] <nil> map[] <nil> <nil> <nil> 0xc0000240b8}" status="400 Bad Request" statuscode=400
Processing... Done.
Error: Unknown error, see supervisor
All of that had to be typed up by hand since Synology’s VM console doesn’t allow copy/paste. could be something mistyped in all that mess.