External Storage (SMB/CIFS) with Nextcloud under TrueNAS SCALE?

Hi All,

This is my first post, I try to connect Nextcloud to a SMB/CIFS share to be able to use the share with mobile Devices and Windows Clients…

I have installed Nextcloud 30 as App under TrueNAS SCALE but I cannot find SMB/CIFS under the Nextcloud…

How can I install SMB/CIFS?

I was able to solve it with:

connect docker container:

docker exec -it /bin/bash

inside nextcloud container:

apt update
apt install smbclient libsmbclient-dev -y
pecl install smbclient
docker-php-ext-enable smbclient

After this, I can find SMB/CIFS in the menu and connect the fileshare with AD credentials…

Can you post the config in the web gui? I have this setup and can see the mount in the docker shell but it does not show in nextcloud.

You can indeed install that within the container, but, next time you start the container, it will be gone.

To make it permanent, you need to create a Dockerfile and put in the commands to add it in. Just extend the container and build your own image.

I am told the latest Nextcloud app on truenas, if you don’t want to roll
your own build, included an option on the app config screen to add smbclient and some other stuff.

I don’t use smbclient with docker/nextcloud anymore.
I installed an FTP server in docker (kibatic/proftpd) to share directories that are also SMB shares, external storage with FTP on nextcloud there is no problem, everything works fine and it’s native.