Witam. Na poczatek uprzedzam raczkuje w tematyce homeassistant/sieć. Dzisiaj przy próbie aktualizacji homeassistant złapał zwieche i uruchomilem go ponownie w efekcie pojawily się errory ext4… uruchomilem ponownie wirtuana maszyne… i sie poprawilo ale nie moge polaczyc sie z HA, wyskakuje komunikat ze polaczenie zostalo odrzucone… ktos cos podpowie co popsulem? ![]()
To się chyba nie kwalifikuje na “szybką poradę”…
Zrobiłeś za dużo trudnych do zdiagnozowania ruchów po sobie…
Dysponujesz backupem HA lub migawką systemu sprzed tych działań?
Jeśli tak, to skorzystaj z nich.
Mam backup ale jak go uruchomic z poziomu konsoli ?
Generalnie najpierw spróbowałbym restartu samej VM i przejrzenia czy nie pojawiają się błędy podczas jej bootowania.
A w kwestii komend linii poleceń to mają rozbudowany help
~ $ ha backups --help
Backups of your Home Assistant system, which you can create,
restore, and delete using this command.
Usage:
ha backups [flags]
ha backups [command]
Aliases:
backups, backup, back, backups, bk, snapshots, snapshot, snap, shot, sn
Examples:
ha backups
ha backups new
Available Commands:
info Provides information about the current available backups
new Create a new Home Assistant backup
options Allow to set options on backup manager
reload Reload the files on disk to check for new or removed backups
remove Deletes a backup from disk
restore Restores a Home Assistant backup
Flags:
-h, --help help for backups
Global Flags:
--api-token string Home Assistant Supervisor API token
--config string Optional config file (default is $HOME/.homeassistant.yaml)
--endpoint string Endpoint for Home Assistant Supervisor (default is 'supervisor')
--log-level string Log level (defaults to Warn)
--no-progress Disable the progress spinner
--raw-json Output raw JSON from the API
~ $ ha backups restore --help
When something goes wrong, this command allows you to restore a previously
take Home Assistant backup on your system.
Usage:
ha backups restore [slug] [flags]
Examples:
ha backups restore c1a07617
ha backups restore c1a07617 --addons core_ssh --addons core_mosquitto
ha backups restore c1a07617 --folders config
Flags:
-a, --addons stringArray addons to restore, triggers a partial backup
-f, --folders stringArray folders to restore, triggers a partial backup
-h, --help help for restore
--homeassistant Restore homeassistant (default true), triggers a partial backup when set to false (default true)
--password string Password
Global Flags:
--api-token string Home Assistant Supervisor API token
--config string Optional config file (default is $HOME/.homeassistant.yaml)
--endpoint string Endpoint for Home Assistant Supervisor (default is 'supervisor')
--log-level string Log level (defaults to Warn)
--no-progress Disable the progress spinner
--raw-json Output raw JSON from the API
Jeśli jesteś w CLI to już jesteś w ha więc pomijasz ha w komendzie.
Skoro to VM, to lepiej użyć migawki całej VM.