Missing /config/ directory contents

Just finished moving to a new city and started getting HA back up. Had to trouble shoot and correct a DNS problem, then…

After updating from Home Assistant 2022.2.8 to Home Assistant 2022.4.6, I went into my configuration.yaml file to update my location. The Check Configuration returned Configuration valid! but after a restart I had several integrations break. I decided to restore the partial backup to Home Assistant 2022.2.8 (my last one before we moved).

HA started just fine but I now noticed the entire /config/ directory is empty and I cannot locate my configuration.yaml file. Also seeing error: /config/ui-lovelace.yaml not found

When I WinSCP into the pi, I see nothing in the /config/ directory

When I run Check Configuration it returns Configuration valid! I’m lost…

System Health

version core-2022.2.8
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.103-v7l
arch armv7l
timezone America/Chicago
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4570
Installed Version 1.18.0
Stage running
Available Repositories 1088
Installed Repositories 3
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.6
update_channel stable
supervisor_version supervisor-2022.04.0
docker_version 20.10.9
disk_total 57.8 GB
disk_used 10.4 GB
healthy true
supported true
board rpi4
supervisor_api ok
version_api ok
installed_addons SSH & Web Terminal (10.1.1), File editor (5.3.3), Let’s Encrypt (4.12.0), Spotify Connect (0.11.0), Vaultwarden (Bitwarden) (0.16.0)
Lovelace
dashboards 2
resources 1
error /config/ui-lovelace.yaml not found
views 19
mode yaml
Spotify
api_endpoint_reachable ok

Log:

22-04-21 09:48:53 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from a0d7b954_ssh
22-04-21 09:50:36 INFO (SyncWorker_1) [supervisor.docker.interface] Restarting ghcr.io/home-assistant/raspberrypi4-homeassistant
22-04-21 09:52:23 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
22-04-21 09:52:34 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
22-04-21 09:52:34 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.CORE
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.PLUGIN
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.check] System checks complete
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
22-04-21 09:53:00 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
22-04-21 09:53:02 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
22-04-21 09:53:26 INFO (MainThread) [supervisor.backups.manager] Found 37 backup files
22-04-21 09:53:26 INFO (MainThread) [supervisor.backups.manager] Found 37 backup files
22-04-21 09:53:57 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
22-04-21 09:54:03 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
22-04-21 09:54:03 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
22-04-21 09:54:05 INFO (MainThread) [supervisor.store] Loading add-ons from store: 62 all - 0 new - 0 remove
22-04-21 09:54:05 INFO (MainThread) [supervisor.store] Loading add-ons from store: 62 all - 0 new - 0 remove
22-04-21 09:56:30 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
22-04-21 09:56:30 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
22-04-21 09:56:30 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from a0d7b954_ssh
22-04-21 09:56:30 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from a0d7b954_ssh
22-04-21 09:58:15 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
22-04-21 10:01:24 INFO (MainThread) [supervisor.backups.manager] Creating new partial backup with slug 3fb68e25
22-04-21 10:01:54 WARNING (MainThread) [supervisor.homeassistant.module] Preparing backup of Home Assistant Core failed. Check HA Core logs.
22-04-21 10:01:54 INFO (MainThread) [supervisor.homeassistant.module] Backing up Home Assistant Core config folder
22-04-21 10:03:44 INFO (MainThread) [supervisor.homeassistant.module] Backup Home Assistant Core config folder done
22-04-21 10:03:44 WARNING (MainThread) [supervisor.homeassistant.module] Error during Home Assistant Core backup. Check HA Core logs.
22-04-21 10:03:49 INFO (MainThread) [supervisor.backups.manager] Creating partial backup with slug 3fb68e25 completed
22-04-21 10:03:49 INFO (MainThread) [supervisor.homeassistant.core] Updating Home Assistant to version 2022.4.6
22-04-21 10:03:49 INFO (SyncWorker_4) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/raspberrypi4-homeassistant:2022.2.8 to ghcr.io/home-assistant/raspberrypi4-homeassistant:2022.4.6
22-04-21 10:03:49 INFO (SyncWorker_4) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/raspberrypi4-homeassistant with tag 2022.4.6.
22-04-21 10:06:53 INFO (SyncWorker_4) [supervisor.docker.interface] Stopping homeassistant application
22-04-21 10:07:02 INFO (SyncWorker_4) [supervisor.docker.interface] Cleaning homeassistant application
22-04-21 10:07:02 INFO (MainThread) [supervisor.homeassistant.module] Update pulse/client.config: /data/tmp/homeassistant_pulse
22-04-21 10:07:03 INFO (SyncWorker_1) [supervisor.docker.homeassistant] Starting Home Assistant ghcr.io/home-assistant/raspberrypi4-homeassistant with version 2022.4.6
22-04-21 10:07:03 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
22-04-21 10:07:13 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
22-04-21 10:07:14 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-04-21 10:07:14 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
22-04-21 10:07:14 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
22-04-21 10:07:14 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
22-04-21 10:07:17 INFO (MainThread) [supervisor.store] Loading add-ons from store: 62 all - 0 new - 0 remove
22-04-21 10:07:17 INFO (MainThread) [supervisor.store] Loading add-ons from store: 62 all - 0 new - 0 remove
22-04-21 10:08:26 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
22-04-21 10:08:26 INFO (MainThread) [supervisor.homeassistant.core] Successfully started Home Assistant 2022.4.6
22-04-21 10:08:26 INFO (SyncWorker_4) [supervisor.docker.interface] Cleanup images: ['ghcr.io/home-assistant/raspberrypi4-homeassistant:2022.2.8']
22-04-21 10:18:06 INFO (MainThread) [supervisor.backups.manager] Found 38 backup files
22-04-21 10:18:06 INFO (MainThread) [supervisor.backups.manager] Found 38 backup files
22-04-21 10:22:58 INFO (MainThread) [supervisor.backups.manager] Found 38 backup files
22-04-21 10:22:58 INFO (MainThread) [supervisor.backups.manager] Found 38 backup files
22-04-21 10:24:23 INFO (MainThread) [supervisor.backups.manager] Partial-Restore fc926e6e start
22-04-21 10:24:31 INFO (MainThread) [supervisor.backups.manager] Restoring fc926e6e Docker config
22-04-21 10:24:31 INFO (MainThread) [supervisor.backups.manager] Restoring fc926e6e Home Assistant Core
22-04-21 10:24:31 INFO (SyncWorker_5) [supervisor.docker.interface] Stopping homeassistant application
22-04-21 10:25:43 INFO (MainThread) [supervisor.homeassistant.module] Restore Home Assistant Core config folder
22-04-21 10:26:46 INFO (MainThread) [supervisor.homeassistant.module] Restore Home Assistant Core config folder done
22-04-21 10:26:48 INFO (MainThread) [supervisor.backups.manager] Restore fc926e6e wait for Home-Assistant
22-04-21 10:26:48 INFO (MainThread) [supervisor.homeassistant.core] Updating Home Assistant to version 2022.2.8
22-04-21 10:26:48 INFO (SyncWorker_1) [supervisor.docker.interface] Updating image ghcr.io/home-assistant/raspberrypi4-homeassistant:2022.4.6 to ghcr.io/home-assistant/raspberrypi4-homeassistant:2022.2.8
22-04-21 10:26:48 INFO (SyncWorker_1) [supervisor.docker.interface] Downloading docker image ghcr.io/home-assistant/raspberrypi4-homeassistant with tag 2022.2.8.
22-04-21 10:30:01 INFO (SyncWorker_1) [supervisor.docker.interface] Cleaning homeassistant application
22-04-21 10:30:01 INFO (MainThread) [supervisor.homeassistant.core] Successfully started Home Assistant 2022.2.8
22-04-21 10:30:01 INFO (SyncWorker_3) [supervisor.docker.interface] Cleanup images: ['ghcr.io/home-assistant/raspberrypi4-homeassistant:2022.4.6']
22-04-21 10:30:18 ERROR (MainThread) [supervisor.homeassistant.api] Error on call https://172.30.32.1:8123/api/config: Cannot connect to host 172.30.32.1:8123 ssl:False [Connect call failed ('172.30.32.1', 8123)]
22-04-21 10:30:19 INFO (MainThread) [supervisor.homeassistant.module] Update pulse/client.config: /data/tmp/homeassistant_pulse
22-04-21 10:30:21 INFO (SyncWorker_2) [supervisor.docker.homeassistant] Starting Home Assistant ghcr.io/home-assistant/raspberrypi4-homeassistant with version 2022.2.8
22-04-21 10:30:21 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
22-04-21 10:30:31 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.FREEZE
22-04-21 10:30:31 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
22-04-21 10:30:36 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
22-04-21 10:31:53 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
22-04-21 10:31:53 INFO (MainThread) [supervisor.backups.manager] Partial-Restore fc926e6e done
22-04-21 10:35:31 INFO (MainThread) [supervisor.host.info] Updating local host information
22-04-21 10:35:32 INFO (MainThread) [supervisor.host.services] Updating service information
22-04-21 10:35:32 INFO (MainThread) [supervisor.host.network] Updating local network information
22-04-21 10:35:33 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
22-04-21 10:35:33 INFO (MainThread) [supervisor.host.manager] Host information reload completed
22-04-21 10:43:45 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
22-04-21 10:43:45 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
22-04-21 10:43:45 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from a0d7b954_ssh
22-04-21 10:43:45 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from a0d7b954_ssh
22-04-21 10:46:25 INFO (MainThread) [supervisor.backups.manager] Found 38 backup files
22-04-21 10:46:25 INFO (MainThread) [supervisor.backups.manager] Found 38 backup files
1 Like

I had the same issue after upgrading to version 2022.5.2 - everything still worked fine but I couldn’t see any files over ssh.
Turned out that protection mode had been turned on in the SSH & Web Terminal addon. I disabled protection mode and then all the files were visible again.

1 Like

@mikeybeck sorry to rekindle this thread, but I have been struggling with this issue over the past few days.

I’m not sure how to check the SSH and Web Terminal settings. Can you help me with that?