alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.35k stars 193 forks source link

@alexbelgium I'm not sure if this is the right place to ask, but it feels like it might be. I followed these two YouTube videos ([Vid-1](https://www.youtube.com/watch?v=CHvBzX41-Ag) and [Vid-2](https://www.youtube.com/watch?v=NHQ5KJf0IiE)) to set up my external hard drive as a mount and Nextcloud. It worked until about two or three weeks ago. When the power goes out and comes back, my Home Assistant system won't start. I think it's stuck because Nextcloud can't start on time, which prevents Home Assistant from booting up. To fix this, I have to remove the hard drive from the thin client, start Home Assistant, reconnect the USB, and restart Nextcloud. This process is too time-consuming and power outages are common here. Any help or workaround would be greatly appreciated. #1443

Closed alexbelgium closed 1 day ago

alexbelgium commented 1 week ago
          @alexbelgium I'm not sure if this is the right place to ask, but it feels like it might be. I followed these two YouTube videos ([Vid-1](https://www.youtube.com/watch?v=CHvBzX41-Ag) and [Vid-2](https://www.youtube.com/watch?v=NHQ5KJf0IiE)) to set up my external hard drive as a mount and Nextcloud. It worked until about two or three weeks ago. When the power goes out and comes back, my Home Assistant system won't start. I think it's stuck because Nextcloud can't start on time, which prevents Home Assistant from booting up. To fix this, I have to remove the hard drive from the thin client, start Home Assistant, reconnect the USB, and restart Nextcloud. This process is too time-consuming and power outages are common here. Any help or workaround would be greatly appreciated.

I'm using: OS Version: Home Assistant OS 12.3 Home Assistant Core: 2024.6.3 Nextcloud: Current version 29.0.2-2

It just stuck here for long: Updating permissions... ... Config directory : /data ... data directory detected : /media/NEXTCLOUD/nextcloud ... setting permissions

Originally posted by @iGaneshKumar in https://github.com/alexbelgium/hassio-addons/issues/1429#issuecomment-2175547769

alexbelgium commented 1 week ago

Mmh sorry you're not using my own hdd mount system so not sure how I can really help... I have my own system to mount hdd drives where you put in the localdisk the disk name (physical such as "sda1" or label sur as "NAS") and then it mounts it to /mnt/sda1 or /mnt/NAS.

What it is doing is going at this stage is go through all your Nextcloud files and adapt permissions, so it can be normal that it takes so long ?

On the other hand if the issue is "only" that Nextcloud start too fast ; you could therefore disable the start at boot and create an automation instead ?

alexbelgium commented 1 week ago

The addon is already configured to start after boot so I can't do anything from my side

Btw, investing in a UPS for your HA would be a very strong improvement - with an ext-based hdd you will very soon have issues due to all those power outages... There are small ones that will cost +/- 50€/$ and protect for small outages of 30-60 minutes...

iGaneshKumar commented 1 week ago

Mmh sorry you're not using my own hdd mount system so not sure how I can really help... I have my own system to mount hdd drives where you put in the localdisk the disk name (physical such as "sda1" or label sur as "NAS") and then it mounts it to /mnt/sda1 or /mnt/NAS.

Is there any documentation on how to set it up? Please do share, I'll try that. Thanks for your prompt reply 🙏

alexbelgium commented 1 week ago

Hi, here is a very simple one https://github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-mounting-drives

github-actions[bot] commented 2 days ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

iGaneshKumar commented 2 days ago

This can be closed. I'll address it when I have time. For now, I've set up an automation. Thanks for your help!