Sync external storage - SMB

Hi,

I have nextcloud installed on a vmware virtual server (Ubuntu 16.04)
I don’t host files on that server I only create SMB connections to my existing Windows 2019 shares.

Orange = Ok why not

When I connect the Windows client to these “External storages” for syncing locally. It actually don’t sync at all. It will just push local new or modified files/folders to the remote share.
When I create or modify files/folders directly on the remote share, the client won’t be able to see that something changed and will not pull these files/folders.

The only way to wake it up is to log into the web interface and browse to the Windows share which will eventually tell the client that something changed.

Logs NEXTCLOUD

[no app in context] Error: Icewind\SMB\Exception\ForbiddenException: Invalid request for /Utilisateurs (ForbiddenException) at <>

  1. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php line 62
    Icewind\SMB\Exception\Exception::fromMap({1: "Icewind\SM … "}, 1, “/Utilisateurs”)
  2. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php line 74
    Icewind\SMB\Native\NativeState->handleError("/Utilisateurs")
  3. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php line 184
    Icewind\SMB\Native\NativeState->testResult(false, “smb://vs-xxx-dc2/donnees/Utilisateurs”)
  4. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php line 133
    Icewind\SMB\Native\NativeState->stat(“smb://vs-xxx-dc2/donnees/Utilisateurs”)
  5. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php line 112
    Icewind\SMB\Native\NativeShare->getStat("/Utilisateurs")
  6. /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php line 178
    Icewind\SMB\Native\NativeShare->stat("/Utilisateurs")
  7. /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php line 296
    OCA\Files_External\Lib\Storage\SMB->getFileInfo("/Utilisateurs")
  8. /var/www/nextcloud/lib/private/Files/Storage/Common.php line 454
    OCA\Files_External\Lib\Storage\SMB->stat("")
  9. /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php line 612
    OC\Files\Storage\Common->test()
  10. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 472
    OCA\Files_External\Lib\Storage\SMB->test()
  11. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 472
    OC\Files\Storage\Wrapper\Wrapper->test()
  12. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php line 66
    OC\Files\Storage\Wrapper\Wrapper->test()
  13. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php line 80
    OC\Files\Storage\Wrapper\Availability->updateAvailability("*** sensitive parameters replaced ***")
  14. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php line 89
    OC\Files\Storage\Wrapper\Availability->isAvailable()
  15. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php line 438
    OC\Files\Storage\Wrapper\Availability->checkAvailability()
  16. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 582
    OC\Files\Storage\Wrapper\Availability->getMetaData("")
  17. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php line 112
    OC\Files\Storage\Wrapper\Wrapper->getMetaData("")
  18. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php line 150
    OC\Files\Cache\Scanner->getData("")
  19. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php line 336
    OC\Files\Cache\Scanner->scanFile("", 1, -1, null, true)
  20. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php line 515
    OC\Files\Cache\Scanner->scan("", true, 1)
  21. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php line 532
    OC\Files\Cache\Scanner->OC\Files\Cache{closure}("*** sensitive parameters replaced ***")
  22. /var/www/nextcloud/lib/private/Files/Cache/Scanner.php line 516
    OC\Files\Cache\Scanner->runBackgroundScanJob(Closure {}, “”)
  23. /var/www/nextcloud/lib/private/Files/Utils/Scanner.php line 173
    OC\Files\Cache\Scanner->backgroundScan()
  24. /var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php line 88
    OC\Files\Utils\Scanner->backgroundScan("")
  25. /var/www/nextcloud/apps/files/lib/BackgroundJob/ScanFiles.php line 112
    OCA\Files\BackgroundJob\ScanFiles->runScanner(OC\User\User {})
  26. /var/www/nextcloud/lib/private/BackgroundJob/Job.php line 61
    OCA\Files\BackgroundJob\ScanFiles->run(null)
  27. /var/www/nextcloud/lib/private/BackgroundJob/TimedJob.php line 55
    OC\BackgroundJob\Job->execute(OC\BackgroundJob\JobList {}, OC\Log {})
  28. /var/www/nextcloud/cron.php line 124
    OC\BackgroundJob\TimedJob->execute(OC\BackgroundJob\JobList {}, OC\Log {})

at 2020-01-29T14:30:02+00:00

Thank You

1 Like

Have you found a solution? I am having the exact same issue.

Thank you

I have the same issue since I update 19 to 20. Any solucion?