Hi
I’m new to HA & to this forum so please forgive me if I’m missing something obvious!
I installed HA on a 64bit Debian Bullseye vm a few months ago. Since installing the system has always reported it is up to date. I checked the HA version today and the system reports:
Home Assistant 2023.1.7
Frontend 20230110.0 - latest
If I try and update via the web UI the system reports:
No updates available
I did some googling and found I can update via a cli. While logged in via ssh to the homeassistant user if I run the command “hass-cli ha os update” I receive this response:
/usr/local/lib/python3.9/dist-packages/homeassistant_cli/config.py:42: FutureWarning: <homeassistant_cli.config._ZeroconfListener object at 0x7fe27b859f40> has no update_service method. Provide one (it can be empty if you don't care about the updates), it'll become mandatory.
zeroconf.ServiceBrowser(_zeroconf, "_home-assistant._tcp.local.", listener)
Trying to locate Home Assistant on local network...
Trying to locate Home Assistant on local network...
Trying to locate Home Assistant on local network...
Found and using http://192.168.2.78:8123 as server
error: JSONDecodeError: Extra data: line 1 column 4 (char 3)
Run with -x to see full exception information
If I run with “-x” as suggested I receive this output:
/usr/local/lib/python3.9/dist-packages/homeassistant_cli/config.py:42: FutureWarning: <homeassistant_cli.config._ZeroconfListener object at 0x7f62b9966d60> has no update_service method. Provide one (it can be empty if you don't care about the updates), it'll become mandatory.
zeroconf.ServiceBrowser(_zeroconf, "_home-assistant._tcp.local.", listener)
Trying to locate Home Assistant on local network...
Found and using http://192.168.2.78:8123 as server
Extra data: line 1 column 4 (char 3)
Traceback (most recent call last):
File "/home/homeassistant/.local/lib/python3.9/site-packages/requests/models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.9/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 4 (char 3)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/homeassistant_cli/cli.py", line 40, in run
result = cli.main(standalone_mode=False)
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/homeassistant_cli/plugins/ha.py", line 226, in os_update
response = _handle_raw(ctx, 'os/info')
File "/usr/local/lib/python3.9/dist-packages/homeassistant_cli/plugins/ha.py", line 62, in _handle_raw
return response.json()
File "/home/homeassistant/.local/lib/python3.9/site-packages/requests/models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Extra data: line 1 column 4 (char 3)
Other cli commands also fail, such as “hass-cli -x ha os info”:
/usr/local/lib/python3.9/dist-packages/homeassistant_cli/config.py:42: FutureWarning: <homeassistant_cli.config._ZeroconfListener object at 0x7fb72e642cd0> has no update_service method. Provide one (it can be empty if you don't care about the updates), it'll become mandatory.
zeroconf.ServiceBrowser(_zeroconf, "_home-assistant._tcp.local.", listener)
Trying to locate Home Assistant on local network...
Trying to locate Home Assistant on local network...
Trying to locate Home Assistant on local network...
Found and using http://192.168.2.78:8123 as server
404 Client Error: Not Found for url: http://192.168.2.78:8123/api/hassio/os/info
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/homeassistant_cli/cli.py", line 40, in run
result = cli.main(standalone_mode=False)
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/home/homeassistant/.local/lib/python3.9/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/homeassistant_cli/plugins/ha.py", line 219, in os_info
_handle(ctx, 'os/info')
File "/usr/local/lib/python3.9/dist-packages/homeassistant_cli/plugins/ha.py", line 54, in _handle
_report(ctx, httpmethod, method, response)
File "/usr/local/lib/python3.9/dist-packages/homeassistant_cli/plugins/ha.py", line 31, in _report
response.raise_for_status()
File "/home/homeassistant/.local/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://192.168.2.78:8123/api/hassio/os/info
If I use a browser to check “http://192.168.2.78:8123/api” I get a 404. My HA system is pretty simple, just a ESPHome, a few zigbee and X10 items so I’ve not changed much. I’ve added some shell_command, which all work, to configuration.yaml but little else.
My VM can access the internet ok and is using Google for DNS.
Any ideas on what I could try next? I’ve searched this forum and google but I’ve not had much success.
Thanks
Bert