Homeassistant error after moving home folder to external usb hdd

dietpi@Pi4-black:~$ sudo chmod 775 /mnt/5TB
dietpi@Pi4-black:~$ sudo systemctl restart home-assistant.service


dietpi@Pi4-black:~$ journalctl -u home-assistant.service
Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal' can see all messages.
      Pass -q to turn off this notice.
No journal files were opened due to insufficient permissions.

What an idiot :face_with_monocle: again with sudo this time…


dietpi@Pi4-black:~$ sudo journalctl -u home-assistant.service
-- Journal begins at Sun 2022-11-13 18:26:40 EET, ends at Sun 2022-11-13 20:13:08 EET. --
Nov 13 18:26:51 Pi4-black systemd[1]: Started Home Assistant (DietPi).
Nov 13 18:26:54 Pi4-black Home Assistant[606]: Fatal Error: Specified configuration directory /mnt/dietpi_userdata/homeassistant does not exist
Nov 13 18:26:55 Pi4-black systemd[1]: home-assistant.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 18:26:55 Pi4-black systemd[1]: home-assistant.service: Failed with result 'exit-code'.
Nov 13 18:26:55 Pi4-black systemd[1]: home-assistant.service: Consumed 2.512s CPU time.
Nov 13 18:35:00 Pi4-black systemd[1]: Started Home Assistant (DietPi).
Nov 13 18:35:02 Pi4-black systemd[1]: Stopping Home Assistant (DietPi)...
Nov 13 18:35:02 Pi4-black systemd[1]: home-assistant.service: Succeeded.
Nov 13 18:35:02 Pi4-black systemd[1]: Stopped Home Assistant (DietPi).
Nov 13 18:35:02 Pi4-black systemd[1]: home-assistant.service: Consumed 1.827s CPU time.
Nov 13 18:35:03 Pi4-black systemd[1]: Started Home Assistant (DietPi).
Nov 13 18:35:05 Pi4-black Home Assistant[1890]: Fatal Error: Specified configuration directory /mnt/dietpi_userdata/homeassistant does not exist
Nov 13 18:35:06 Pi4-black systemd[1]: home-assistant.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 18:35:06 Pi4-black systemd[1]: home-assistant.service: Failed with result 'exit-code'.
Nov 13 18:35:06 Pi4-black systemd[1]: home-assistant.service: Consumed 2.516s CPU time.
Nov 13 18:38:35 Pi4-black systemd[1]: Started Home Assistant (DietPi).
Nov 13 18:38:39 Pi4-black Home Assistant[3232]: Fatal Error: Specified configuration directory /mnt/dietpi_userdata/homeassistant does not exist
Nov 13 18:38:39 Pi4-black systemd[1]: home-assistant.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 18:38:39 Pi4-black systemd[1]: home-assistant.service: Failed with result 'exit-code'.
Nov 13 18:38:39 Pi4-black systemd[1]: home-assistant.service: Consumed 3.006s CPU time.
Nov 13 18:39:03 Pi4-black systemd[1]: Started Home Assistant (DietPi).
Nov 13 18:39:07 Pi4-black Home Assistant[3680]: Fatal Error: Specified configuration directory /mnt/dietpi_userdata/homeassistant does not exist
Nov 13 18:39:08 Pi4-black systemd[1]: home-assistant.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 18:39:08 Pi4-black systemd[1]: home-assistant.service: Failed with result 'exit-code'.
Nov 13 18:39:08 Pi4-black systemd[1]: home-assistant.service: Consumed 2.954s CPU time.
Nov 13 18:39:18 Pi4-black systemd[1]: Started Home Assistant (DietPi).
Nov 13 18:39:20 Pi4-black Home Assistant[3974]: Fatal Error: Specified configuration directory /mnt/dietpi_userdata/homeassistant does not exist
Nov 13 18:39:20 Pi4-black systemd[1]: home-assistant.service: Main process exited, code=exited, status=1/FAILURE
Nov 13 18:39:20 Pi4-black systemd[1]: home-assistant.service: Failed with result 'exit-code'.
Nov 13 18:39:20 Pi4-black systemd[1]: home-assistant.service: Consumed 2.548s CPU time.
Nov 13 20:12:46 Pi4-black systemd[1]: Started Home Assistant (DietPi).
Nov 13 20:12:50 Pi4-black Home Assistant[5977]: 2022-11-13 20:12:50.175 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
Nov 13 20:12:53 Pi4-black Home Assistant[5977]: 2022-11-13 20:12:53.917 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //mnt/dietpi_userdata/homeassistant/home-assistant_v2.db was shutdown cleanly
dietpi@Pi4-black:~$

.
.
.
P E R F E C T

thank you :cowboy_hat_face:

Still the problem, that your config directory is not at /mnt/dietpi_userdata/homeassistant, but at /mnt/5TB/dietpi_userdata/homeassistant ??

Nov 13 21:06:06 Pi4-black Home Assistant[629]: 2022-11-13 21:06:06.976 ERROR (MainThread) [frontend.js.latest.202211080] :0:0 ResizeObserver loop completed with undelivered notifications.
Nov 13 21:49:58 Pi4-black systemd[1]: Stopping Home Assistant (DietPi)...
Nov 13 21:50:01 Pi4-black systemd[1]: home-assistant.service: Succeeded.
Nov 13 21:50:01 Pi4-black systemd[1]: Stopped Home Assistant (DietPi).
Nov 13 21:50:01 Pi4-black systemd[1]: home-assistant.service: Consumed 1min 11.988s CPU time.
Nov 13 21:50:15 Pi4-black systemd[1]: Started Home Assistant (DietPi).
Nov 13 21:50:18 Pi4-black Home Assistant[2246]: 2022-11-13 21:50:18.190 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
Nov 13 21:50:34 Pi4-black Home Assistant[2246]: 2022-11-13 21:50:34.718 ERROR (MainThread) [homeassistant.components.sensor] Platform esphome does not generate unique IDs. ID dallas-0000000000000000 already exists - ignoring sensor.temperature32_1_1
Nov 13 21:50:34 Pi4-black Home Assistant[2246]: 2022-11-13 21:50:34.731 ERROR (MainThread) [homeassistant.components.sensor] Platform esphome does not generate unique IDs. ID dallas-0000000000000000 already exists - ignoring sensor.temperature32_1_1
Nov 13 21:50:34 Pi4-black Home Assistant[2246]: 2022-11-13 21:50:34.733 ERROR (MainThread) [homeassistant.components.sensor] Platform esphome does not generate unique IDs. ID dallas-0000000000000000 already exists - ignoring sensor.temperature32_1_1
Nov 13 21:50:34 Pi4-black Home Assistant[2246]: 2022-11-13 21:50:34.865 ERROR (MainThread) [homeassistant.components.sensor] Platform esphome does not generate unique IDs. ID dallas-0000000000000000 already exists - ignoring sensor.temperature32_1_1
Nov 13 21:50:34 Pi4-black Home Assistant[2246]: 2022-11-13 21:50:34.867 ERROR (MainThread) [homeassistant.components.sensor] Platform esphome does not generate unique IDs. ID dallas-0000000000000000 already exists - ignoring sensor.temperature32_1_1
Nov 13 21:50:35 Pi4-black Home Assistant[2246]: 2022-11-13 21:50:35.179 WARNING (MainThread) [homeassistant.config_entries] Config entry 'HONOR Router 3' for up np integration not ready yet: Device not discovered: uuid:2feeeeee-hhh3-ehhh-dhhhd-11hhhhhhhda0::urn:schemas-upnp-org:device:InternetGatewayDevice:1; Retrying in background
dietpi@Pi4-black:~$

Jappe, it does not complain anymore. I guess this is from before the fix (looking at the time 18:26 while the change to 755 for HDD was at 20:12)

Well, to tell the truth i think this problem was self inflincting, formating the external drive without correct permissions. But then again… to format a drive, don’t you want su permissions? So, how did the drive didn’t inherit root permissions? to format it i was already root (or dietpi user but had to sudo dietpi-launcher to get to dietpi drive manager to perform the format) so? don’t know how i arrived in this situation to tell the truth.

1 Like

better to use root user for troubleshooting. Way easier.