Page 1 of 1

Nextcloud Samba external storage not connecting

Posted: Thu Jan 16, 2020 10:18 pm
by johnnypea
Is SMB / CIFS external storage working in bundled Nextcloud v17.0.1 (DietPi v6.28.0)? Thanks.

I get this error when testing with "SMB connection test".

Using backend: smbclient

Code: Select all

Error while loading share content.

Icewind\SMB\Exception\ConnectionException: Connection not valid

    /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 412:

    Icewind\SMB\Wrapped\Connection->read()

    /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 146:

    Icewind\SMB\Wrapped\Share->execute("cd \"\"")

    /var/www/nextcloud/apps/smb_test/lib/Controller/SmbController.php - line 95:

    Icewind\SMB\Wrapped\Share->dir(null)

    /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 170:

    OCA\SMBTest\Controller\SmbController->dir(null, null, null, null, Icewind\SMB\ ... }}, null)

    /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:

    OC\AppFramework\Http\Dispatcher->executeController(OCA\SMBTest\ ... {}, "dir")

    /var/www/nextcloud/lib/private/AppFramework/App.php - line 126:

    OC\AppFramework\Http\Dispatcher->dispatch(OCA\SMBTest\ ... {}, "dir")

    /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

    OC\AppFramework\App::main("OCA\\SMBTes ... r", "dir", OC\AppFramew ... {}, { _route: "smb_test.smb.dir"})

    OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "smb_test.smb.dir"})

    /var/www/nextcloud/lib/private/Route/Router.php - line 297:

    call_user_func(OC\AppFramew ... {}, { _route: "smb_test.smb.dir"})

    /var/www/nextcloud/lib/base.php - line 1000:

    OC\Route\Router->match("/apps/smb_test/dir")

    /var/www/nextcloud/index.php - line 42:

    OC::handleRequest()

Re: Nextcloud Samba external storage not connecting

Posted: Thu Jan 16, 2020 10:37 pm
by Joulinar
Hi,
Many thanks for your report. There is no bundled versions. DietPi is using the official version that is offered by NextCloud. You could try to update to latest Nextcloud version 17.0.2. This should be possible within Nextcloud application. If this is not fixing your problem, you might need to report it at Nextcloud directly.

Re: Nextcloud Samba external storage not connecting

Posted: Tue Jan 21, 2020 5:07 am
by cdlenfert

Re: Nextcloud Samba external storage not connecting

Posted: Tue Jan 21, 2020 8:52 am
by Joulinar
Hi,

as well there was a new Nextcloud version 18 released. Maybe you can updated to the new release.

Re: Nextcloud Samba external storage not connecting

Posted: Wed Jan 22, 2020 5:34 pm
by MichaIng
Not 100% sure, but probably the mount point of the SMB share needs to be owned by www-data, respectively it needs write access to this mount point to allow it mounting a share there?

Re: Nextcloud Samba external storage not connecting

Posted: Wed Jan 22, 2020 11:24 pm
by Joulinar
Hi,
I tested today on NectCloud 17.0.2 and I was able to connect to my Synology NAS using the external storage App.

https://docs.nextcloud.com//server/14/a ... n_gui.html

on NextCloud 17.0.1 this was not possible. As well keep in mind to install smbclient first, otherwise SMB / CIFS connect are not working.

Re: Nextcloud Samba external storage not connecting

Posted: Fri Jan 24, 2020 9:56 am
by Joulinar
So my RPi was running whole night with a mounted share from my Synology. I have seen that my Synology disk was going to hibernate without issues. The share was still mounted on the RPi. It did not get lost. Access was still possible this morning. I did not find any issues in journalctl regarding the mount.

Bottome line. A mounted Synology Share is not preventing the Hibernate Mode as well as it stays connected/accessible on DietPi.

Re: Nextcloud Samba external storage not connecting

Posted: Sat Jan 25, 2020 9:31 am
by johnnypea
Thank you @Joulinar, it worked after updating to 17.0.2.

What is the recommended way to update Nextcloud on DietPi?

Re: Nextcloud Samba external storage not connecting

Posted: Sat Jan 25, 2020 9:38 am
by Joulinar
Hi,

the way is the same on normal Debian as well as on DietPi. Not that much differences. I would use the NextCloud build-in updater as officially described on NextCloud website

https://docs.nextcloud.com/server/17/ad ... pdate.html

Re: Nextcloud Samba external storage not connecting

Posted: Sat Jan 25, 2020 7:03 pm
by johnnypea
All right, just wanted to be sure, thank you. Have a nice evening!