Hi everyone,
I’m trying to backup my nextcloud using ncp-config, but I keep running into this error.
Running nc-backup
/usr/local/etc/ncp-templates/ncp-metrics.cfg.sh: line 57: return: can only `return’ from a function or sourced script
Error reading data directory. Is NextCloud running and configured?
Done. Press any key…
It looks like a permission error, but the output of ls -lh on my media drive is
drwxrwxrw- 1 www-data www-data 344 Jul 25 11:58 ncdata
drwxrwxr-x 1 www-data www-data 46 Jul 25 11:41 ncp-backups
drwxr-xr-x 1 www-data www-data 1.8K Jan 18 2022 ncp-snapshots
drwx------ 1 www-data www-data 0 Jun 30 00:12 tmp
and within the ncdata folder:
drwxrwxr-x 1 www-data www-data 146 Jun 8 2021 appdata_oclmrve5j8pf
drwxr-xr-x 1 www-data www-data 26 Dec 16 2021 files_external
-rw-r–r-- 1 www-data www-data 0 Dec 16 2021 index.html
drwxr-xr-x 1 www-data www-data 394 Dec 16 2021 ncp-update-backups
-rw-r----- 1 www-data www-data 3.2G Jul 25 12:10 nextcloud.log
drwxr-xr-x 1 www-data www-data 20 Aug 23 2021 USER2
drwxr-xr-x 1 www-data www-data 90 Jun 2 2021 USER1
drwxr-xr-x 1 www-data www-data 8 Jun 30 22:29 tmp
drwxr-xr-x 1 www-data www-data 42 May 18 15:30 updater-oclmrve5j8pf
-rw-r–r-- 1 www-data www-data 9.4K Jul 25 11:20 updater.log
I’m running NextCloudPi version v1.48.2 with Nextcloud 23.0.6
Any help on how to get my backups running would be highly appreciated!