nextcloud / backup

Backup now. Restore later.
GNU Affero General Public License v3.0
237 stars 33 forks source link

SFTP mount gives "OCA\Backup\Exceptions\ExternalFolderNotFoundException" #145

Open bram-pkg opened 2 years ago

bram-pkg commented 2 years ago
In ExternalFolderService.php line 352:

[OCA\Backup\Exceptions\ExternalFolderNotFoundException]

I have an SFTP mount configured, any command will give that error.

ArtificialOwl commented 2 years ago

please test with 1.0.4

bram-pkg commented 2 years ago

please test with 1.0.4

That doesn't seem to be released yet https://apps.nextcloud.com/apps/backup

bram-pkg commented 2 years ago

Is there a way to pull in a "development" version, into my instance? Instead of having an officially released version installed.

ArtificialOwl commented 2 years ago

my bad, should be released now. And currently, the only way would have been to download last release from github and extract the content in your apps folder

bram-pkg commented 2 years ago

Thanks for the quick response. Updating the app now.

Maffsie commented 2 years ago

I had this issue on 1.0.4; the external share in question was set to only be accessible by one user, but it worked fine after I made it accessible to all users.

bram-pkg commented 2 years ago

It still gives me the error on 1.0.4 too.

On Wed, 5 Jan 2022, 16:48 Matthew Connelly, @.***> wrote:

I had this issue on 1.0.4; the external share in question was set to only be accessible by one user, but it worked fine after I made it accessible to all users.

— Reply to this email directly, view it on GitHub https://github.com/nextcloud/backup/issues/145#issuecomment-1005843287, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFQHI3MXBQOICLYQGLKQG3UURR53ANCNFSM5LEHWEUQ . You are receiving this because you authored the thread.Message ID: @.***>

ArtificialOwl commented 2 years ago

can you browse the external storage from your Files App ?

bram-pkg commented 2 years ago

I can, yes.

Message ID: @.***>

bram-pkg commented 2 years ago

Here is a full stacktrace when running backup:point:scan -vvv

In ExternalFolderService.php line 354:

  [OCA\Backup\Exceptions\ExternalFolderNotFoundException]

Exception trace:
  at /usr/local/www/nextcloud/apps/backup/lib/Service/ExternalFolderService.php:354
 OCA\Backup\Service\ExternalFolderService->initRootFolder() at /usr/local/www/nextcloud/apps/backup/lib/Service/PointService.php:713
 OCA\Backup\Service\PointService->getExternalAppData() at /usr/local/www/nextcloud/apps/backup/lib/Service/PointService.php:774
 OCA\Backup\Service\PointService->initBackupFS() at /usr/local/www/nextcloud/apps/backup/lib/Service/PointService.php:641
 OCA\Backup\Service\PointService->scanFoldersFromAppData() at /usr/local/www/nextcloud/apps/backup/lib/Command/PointScan.php:129
 OCA\Backup\Command\PointScan->execute() at /usr/local/www/nextcloud/3rdparty/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /usr/local/www/nextcloud/core/Command/Base.php:168
 OC\Core\Command\Base->run() at /usr/local/www/nextcloud/3rdparty/symfony/console/Application.php:1009
 Symfony\Component\Console\Application->doRunCommand() at /usr/local/www/nextcloud/3rdparty/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /usr/local/www/nextcloud/3rdparty/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /usr/local/www/nextcloud/lib/private/Console/Application.php:211
 OC\Console\Application->run() at /usr/local/www/nextcloud/console.php:99
 require_once() at /usr/local/www/nextcloud/occ:11

And here is one when running backup:point:create -vvv

In ExternalFolderService.php line 354:

  [OCA\Backup\Exceptions\ExternalFolderNotFoundException]

Exception trace:
  at /usr/local/www/nextcloud/apps/backup/lib/Service/ExternalFolderService.php:354
 OCA\Backup\Service\ExternalFolderService->initRootFolder() at /usr/local/www/nextcloud/apps/backup/lib/Service/PointService.php:713
 OCA\Backup\Service\PointService->getExternalAppData() at /usr/local/www/nextcloud/apps/backup/lib/Service/PointService.php:774
 OCA\Backup\Service\PointService->initBackupFS() at /usr/local/www/nextcloud/apps/backup/lib/Service/PointService.php:385
 OCA\Backup\Service\PointService->initRestoringPoint() at /usr/local/www/nextcloud/apps/backup/lib/Service/PointService.php:251
 OCA\Backup\Service\PointService->create() at /usr/local/www/nextcloud/apps/backup/lib/Command/PointCreate.php:120
 OCA\Backup\Command\PointCreate->execute() at /usr/local/www/nextcloud/3rdparty/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /usr/local/www/nextcloud/core/Command/Base.php:168
 OC\Core\Command\Base->run() at /usr/local/www/nextcloud/3rdparty/symfony/console/Application.php:1009
 Symfony\Component\Console\Application->doRunCommand() at /usr/local/www/nextcloud/3rdparty/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /usr/local/www/nextcloud/3rdparty/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /usr/local/www/nextcloud/lib/private/Console/Application.php:211
 OC\Console\Application->run() at /usr/local/www/nextcloud/console.php:99
 require_once() at /usr/local/www/nextcloud/occ:11
bram-pkg commented 2 years ago

The stacktrace and exception mentioned in #152 are different.