HomeAssistant upgrade failed - ''/var/www/homeassistant'' to be backed up does not exist

What app is this about, and its version: HomeAssistant 2025.10.2~ynh1
What YunoHost version are you running: 12.1.28
What type of hardware are you using: Old laptop or computer

Describe your issue

I am trying to upgrade my HomeAssistant installation from 2025.9.3~ynh1 to 2025.10.2~ynh1.

I receive an error:

Error message:
Aborting the upgrade, because a safety backup could not be created (Failed to collect files to be backed up)

The error message says this:
File or folder '\''/var/www/homeassistant'\'' to be backed up does not exist

I checked that directory via terminal and I do not see it:

$ ls /var/www | grep homeassistant
homeassistant.requirements_backup_for_bookworm_upgrade.txt.bak

Does anyone have a recommendation before I attempt to uninstall and reinstall?

Share relevant logs or error messages

Full log: https://paste.yunohost.org/raw/pucakewose

Relevant part of the logs:

2025-10-14 10:50:58,849: DEBUG - + ynh_print_info 'Declaring files to be backed up...'
2025-10-14 10:50:58,850: INFO - Declaring files to be backed up...
2025-10-14 10:50:58,851: DEBUG - + ynh_backup /var/www/homeassistant
2025-10-14 10:50:58,852: DEBUG - + local target=/var/www/homeassistant
2025-10-14 10:50:58,852: DEBUG - + local is_data=false
2025-10-14 10:50:58,852: DEBUG - + [[ -n homeassistant ]]
2025-10-14 10:50:58,853: DEBUG - + [[ /var/www/homeassistant =~ ^/var/log/homeassistant/?\*?$ ]]
2025-10-14 10:50:58,853: DEBUG - + [[ -n homeassistant ]]
2025-10-14 10:50:58,853: DEBUG - ++ ynh_app_setting_get --key=do_not_backup_data
2025-10-14 10:50:58,914: DEBUG - + local do_not_backup_data=
2025-10-14 10:50:58,918: WARNING - File or folder '/var/www/homeassistant' to be backed up does not exist
2025-10-14 10:50:58,918: DEBUG - + [[ false == true ]]
2025-10-14 10:50:58,919: DEBUG - + '[' '!' -e /var/www/homeassistant ']'
2025-10-14 10:50:58,919: DEBUG - + ynh_print_warn 'File or folder '\''/var/www/homeassistant'\'' to be backed up does not exist'
2025-10-14 10:50:58,920: DEBUG - + return 1
2025-10-14 10:50:58,920: DEBUG - + ynh_exit_properly

you can try sudo yunohost app upgrade homeassistant -u https://github.com/YunoHost-Apps/homeassistant_ynh --no-safety-backup

Thanks! That worked!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.