Yeah i tried it already. I can pull down the window but the SMB menau is missing
Also i tried to download the SMB drivers with apt install smbclient and apt install smbclient libsmbclient-dev
but no success, the docker still don’t shows the smb setting.
I really don’t what i can do. Before i used nextcloudpi and everything worked fine also SMB but because of nginx i had to switch to normal nextcloud and now i have only trouble…
The problem is the smbclient packages need to be installed inside the Docker container. Installing it on the Docker host OS won’t work. I don’t know why it isn’t included. It would save a lot of people a lot of trouble if they included the two little packages.
You can open a shell in the container using docker exec, then install with apt. This is only a temporary fix because next time you pull an updated container image, it won’t have smbclient again.
A more permanent fix is to build the container image yourself. Docker-compose can do this mostly automatically once you set it up.
The problem is the smbclient packages need to be installed inside the Docker container. Installing it on the Docker host OS won’t work. I don’t know why it isn’t included. It would save a lot of people a lot of trouble if they included the two little packages.
You can open a shell in the container using docker exec, then install with apt. This is only a temporary fix because next time you pull an updated container image, it won’t have smbclient again.
A more permanent fix is to build the container image yourself. Docker-compose can do this mostly automatically once you set it up.
Ahh…
Yeah makes no sense that thes dont include this in the image already…
Thanks for your time and explanation. Now i am outside but later in evening i will read and try that. I never did build a image myself, but can you tell from experience if it is hard for beginners or not? I mean building a docker container is one thing but an image?..sounds hard
I will report back here if it worked or not or if i have problems
Put it in your folder with docker-compose.xml. Then on your Nextcloud container you’ll comment out this line:
image: nextcloud
And add this under it:
build: .
Then when you run docker-compose up -d it will build it for you. To rebuild it later for an update:
docker-compose pull
docker-compose build --pull
If you need Nextcloud to use a specific version, it’s at the top of the Dockerfile.
Sounds not that hard. I use Portainer 2.5.1 so i guess it uses Docker compose, but i also know how to create a docker in the terminal with the
docker-compose.yml
and
sudo docker-compose up -d
I will try that later.
One thing i also don’t understand, when i try to login in my nextcloud then i type in my admin user information and password but it is stuck in login. The circle symbol is running but nothing happens. Only when i refresh the page during login then suddenly i am logged in.
This also stps me from login on my nextcloud app on my phone becuause i cannot pass the login becuause i cannot refresh the page.
Weird…do you saw this behavior before?
Something about well known /calddav … whatever
Maybe i am stupid but i totally dont know for what this is for and how to fix this. Even with the documentation i have no idea…
okey i am on building a docker txt file to modify my nextcloud image but what i struggle with is i dont know what i should write in it. If i look at the links you send it says
apache
fpm-alpine
fpm
but what do i choose? I use a raspberry pi 4 with nginx to manage stuff. i dont run a apache.
How i should build the dockerfile then?
At least i know that i have to write this, but after this i am lost
FROM nextcloud
RUN ....
I am sorry for my stupid questions but i am a beginner and never did this before. I feel a little bit overwhelmed with so much options and possibillities i can do…
Then also the build: . part what i have to add in my compose.yml is a bit unclear
But i understood already that with the docker file i can adjust the image and add all the packages i want to it for my nextcloud for additional features. And i have to run special commands to update it.
build: should point to the location of Dockerfile (build instructions). If Dockerfile is in the same folder as docker-compose.xml then just a . dot will suffice.
For God’s sake…that was the solution. I am so stupid…nvm
Thank you very very much for helping me. I don’t know if the other setting stuff is still messed up or working now but the smb problem is gone. I can now successfully set a SMB folder to my exernal drives.
Thank you
may be late to the party but those who install nextcloud on Truenas you can do following to fix the missing SMB option in External Storage for nextcloud.
Modify your FreeBSD.conf as bellow /usr/local/etc/pkg/repos/FreeBSD.conf FreeBSD: { enabled: yes}
Make sure what version of php is install in my case if i run following I get PHP 8.2.15 php -v PHP 8.2.15 (cli) (built: Feb 1 2024 01:25:24) (NTS)
Run the following comand to install smbclient packages. Make sure to replace the php version according to yours. In my case it’s 8.2 so I will modify my command as following pkg install php82-pecl-smbclient
Proceed with this action? [y/N]: y
Now if you refresh the page on Nextcloud and goto Administrative setting > Administration > External storage. You will see SMB/CIFS in the dropdown menu of External Storage.