Cannot backup Nextcloud, Source path '' does not exist

My YunoHost server

Hardware: Intel NUC at my home

YunoHost version: 11.2.9

I have access to my server: Through SSH | through the webadmin

Are you in a special context or did you perform some particular tweaking on your YunoHost instance? : no

If your request is related to an app, specify its name and version: nextcloud v27.1.4~ynh1

Description of my issue

Hi everyone,

I lately tried to upgrade nextcloud, but that failed and after that I got a Internal server error when trying to access it. It could fix that by manually disabling an installed nextcould app using occ and then do the upgrade again. But since then, every attempt to backup nextcloud fails, saying that the source path is empty (source path ‘’ does not exist). This happens when trying a regular backup and when using borg.

2024-01-28 15:45:35,726: INFO - Declaring files to be backed up...
2024-01-28 15:45:35,728: DEBUG - + ynh_backup --src_path=
2024-01-28 15:45:35,820: DEBUG - + dest_path=
2024-01-28 15:45:35,821: DEBUG - + is_big=0
2024-01-28 15:45:35,822: DEBUG - + not_mandatory=0
2024-01-28 15:45:35,823: DEBUG - + BACKUP_CORE_ONLY=0
2024-01-28 15:45:35,823: DEBUG - + test -n nextcloud
2024-01-28 15:45:35,824: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=do_not_backup_data
2024-01-28 15:45:35,825: DEBUG - ++ local _globalapp=nextcloud
2024-01-28 15:45:35,909: DEBUG - ++ app=nextcloud
2024-01-28 15:45:35,910: DEBUG - ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2024-01-28 15:45:35,910: DEBUG - ++ ynh_app_setting get nextcloud do_not_backup_data
2024-01-28 15:45:36,079: DEBUG - + do_not_backup_data=
2024-01-28 15:45:36,081: DEBUG - + '[' '!' -e '' ']'
2024-01-28 15:45:36,081: DEBUG - + ynh_print_warn '--message=Source path '\'''\'' does not exist'
2024-01-28 15:45:36,112: DEBUG - + ynh_print_log 'Source path '\'''\'' does not exist'
2024-01-28 15:45:36,113: DEBUG - + echo -e 'Source path '\'''\'' does not exist'
2024-01-28 15:45:36,114: WARNING - Source path '' does not exist
2024-01-28 15:45:36,116: DEBUG - + '[' 0 == 0 ']'
2024-01-28 15:45:36,117: DEBUG - + grep --quiet /etc/fail2ban
2024-01-28 15:45:36,119: DEBUG - + return 1
2024-01-28 15:45:36,120: DEBUG - + ynh_exit_properly
2024-01-28 15:45:36,121: DEBUG - + [[ backup =~ ^install$|^upgrade$|^restore$ ]]
2024-01-28 15:45:37,634: DEBUG - Konnte Skript nicht ausführen: /var/cache/yunohost/app_tmp_work_dirs/app_btvrf82d/scripts/backup
2024-01-28 15:45:37,662: ERROR - Konnte keine Sicherung für nextcloud erstellen

The full log is available here.

I’ve searched for any similar problems and found a similar issue about Droppy on YunoHost where some data_path seemed to be not defined. May this be the problem here too? Which setting would I have to change for that? And to which value?

I would also try to reinstall nextcloud, but since I cannot create new backups and some users have changed some of their files since then, I am very careful with that and try to avoid it.

Happy to provide any other info you may need. Thanks for your help!

Dunno how that really happened but the (old) “datadir” setting is not defined …

I suppose you can try fixing this manually with

sudo yunohost app setting nextcloud datadir -v "/home/yunohost.app/nextcloud/data"

Hi,

thanks for your help!
Sadly setting the datadir did not work, the source path is still empty.

Good morning,
The same problem happens to me!
Did you find a solution?
“I don’t speak English I have to translate”
THANKS

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