Nextcloud Samba external storage not connecting Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
johnnypea
Posts: 6
Joined: Sun Apr 07, 2019 9:31 pm

Nextcloud Samba external storage not connecting

Post 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()
User avatar
Joulinar
Posts: 2044
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Samba external storage not connecting

Post 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.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
cdlenfert
Posts: 28
Joined: Fri Mar 29, 2019 5:42 pm

Re: Nextcloud Samba external storage not connecting

Post by cdlenfert »

User avatar
Joulinar
Posts: 2044
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Samba external storage not connecting

Post by Joulinar »

Hi,

as well there was a new Nextcloud version 18 released. Maybe you can updated to the new release.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2293
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud Samba external storage not connecting

Post 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?
User avatar
Joulinar
Posts: 2044
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Samba external storage not connecting

Post 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.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Joulinar
Posts: 2044
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Samba external storage not connecting

Post 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.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
johnnypea
Posts: 6
Joined: Sun Apr 07, 2019 9:31 pm

Re: Nextcloud Samba external storage not connecting

Post by johnnypea »

Thank you @Joulinar, it worked after updating to 17.0.2.

What is the recommended way to update Nextcloud on DietPi?
User avatar
Joulinar
Posts: 2044
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud Samba external storage not connecting

Post 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
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
johnnypea
Posts: 6
Joined: Sun Apr 07, 2019 9:31 pm

Re: Nextcloud Samba external storage not connecting

Post by johnnypea »

All right, just wanted to be sure, thank you. Have a nice evening!
Post Reply