backup icon indicating copy to clipboard operation
backup copied to clipboard

ExternalFolderNotFoundException

Open Quetlo opened this issue 3 years ago • 5 comments
trafficstars

Hello

I configured External Storage app for some local folder, and configured the Backup app to use it. But when I try to do a manual backup (because, of course, automated one never worked), I got this error :

`sudo -u www-data php occ backup:point:create -vvv

maintenance mode: on initialization of the AppData maintenance mode: off

In ExternalFolderService.php line 354:

[OCA\Backup\Exceptions\ExternalFolderNotFoundException]`

The destination folder exists and the permissions are correct. It is correctly selected in the Backup app. What can I do ?

Quetlo avatar Oct 19 '22 10:10 Quetlo

Hello. I got such an error. Then I checked the availability of external storage through the "files" application, and indeed there was no access. After access was obtained - the command did not give an error.

hoolea avatar Jan 27 '23 09:01 hoolea

Hello. I got such an error. Then I checked the availability of external storage through the "files" application, and indeed there was no access. After access was obtained - the command did not give an error.

thank you, I also have similar problem. since i want to get this done using cli, I made a dedicated user named backup, make the external folder assigned into that user, and then do a file scan before the backup process began. to summary:

sudo -u www-data php occ files:scan backup
sudo -u www-data php occ backup:point:create

Kisaragi-ng avatar Mar 27 '23 02:03 Kisaragi-ng

Hello. I got such an error. Then I checked the availability of external storage through the "files" application, and indeed there was no access. After access was obtained - the command did not give an error.

I've got the same error, but i'am able to read and write in the external storage throught files 🥲

mattiarainieri avatar Apr 09 '24 14:04 mattiarainieri

My backup was working for a few days and stopped after an unsuccessful attempt to add a location to App Data

Image

# sudo -u www-data php /var/www/html/nextcloud/occ backup:point:create -vvv
> maintenance mode: on
> initialization of the AppData
> maintenance mode: off

In ExternalFolderService.php line 354:

  [OCA\Backup\Exceptions\ExternalFolderNotFoundException]


Exception trace:
  at /var/www/html/nextcloud/apps/backup/lib/Service/ExternalFolderService.php:354
 OCA\Backup\Service\ExternalFolderService->initRootFolder() at /var/www/html/nextcloud/apps/backup/lib/Service/PointService.php:714
 OCA\Backup\Service\PointService->getExternalAppData() at /var/www/html/nextcloud/apps/backup/lib/Service/PointService.php:775
 OCA\Backup\Service\PointService->initBackupFS() at /var/www/html/nextcloud/apps/backup/lib/Service/PointService.php:386
 OCA\Backup\Service\PointService->initRestoringPoint() at /var/www/html/nextcloud/apps/backup/lib/Service/PointService.php:252
 OCA\Backup\Service\PointService->create() at /var/www/html/nextcloud/apps/backup/lib/Command/PointCreate.php:117
 OCA\Backup\Command\PointCreate->execute() at /var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php:326
 Symfony\Component\Console\Command\Command->run() at /var/www/html/nextcloud/core/Command/Base.php:161
 OC\Core\Command\Base->run() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:1078
 Symfony\Component\Console\Application->doRunCommand() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:324
 Symfony\Component\Console\Application->doRun() at /var/www/html/nextcloud/3rdparty/symfony/console/Application.php:175
 Symfony\Component\Console\Application->run() at /var/www/html/nextcloud/lib/private/Console/Application.php:183
 OC\Console\Application->run() at /var/www/html/nextcloud/console.php:87
 require_once() at /var/www/html/nextcloud/occ:11

backup:point:create [--output [OUTPUT]] [--generate-log] [--differential] [--] [<comment>]

#

ivandroconradi avatar Jan 17 '25 13:01 ivandroconradi

Consegui resolver. O problema era porque não estava ativada a opção de compartilhamento...

Image

Image

ivandroconradi avatar Jan 17 '25 22:01 ivandroconradi