Thank you so much for your tutorial. I’ve watched all the videos and finally could install Nextcloud fresh without any errors or warnings. I’ve migrated from the TrueNAS app to a clean one thanks to you.
Thanks for the video. I managed to install SMB support and get it working like you. There are, however, some concerns. It looks like something isn't working well with permissions, and it seems very non-performant (slow). When adding file->editing from NC, I got quite erratic behaviour. I had full access control from the Windows SMB side, but NC seemed to lock out files it actually owned. I really don't think the permissions/access control thing is working well here. I had a lot more success simply mounting an NFS share within NC (Ensure the user:group permissions are correct though - You need to add your username to the www-data group, AND add www-data user to the users group). Beware : I have discussed this a lot on the NC forums, and everyone there advises to NOT undertake any NFS/SMB remote change kind of operation (changing/deleting content outside of NC control) - It's just not designed for this sort of thing apparently and could result in data loss. They ALL encourage the use of WebDav (which I couldn't get working)
Great video! Is this method same as using Linux mount with fstab? I am also using truenas share but I have failed every time when it comes to permissions and nextcloud aio being able to write to the nas directory .😢
Thank you for watching. This is different from mounting shares using fstab in Linux. What permission issues are you having? You can use my discussion forum to ask a question and post questions about errors and I can assist you resolve them. Please provide as much information as you can. Screenshots are helpful but make sure you remove all sensitive information. geek2gether.com/forums/nextcloud/
I'm running NextCloud on TrueNAS Scale server. How do I install SMB Client on NextCloud portion? Since TrueNAS already has it's own SMB client. I have been stuck with this issue for months now.
Thank you for watching. In general with TrueNAS it depends on what you are trying to accomplish.Well you have two options, since you are using TrueNAS: Option 1: if the share your trying to mount is on thesame TrueNAS server you can mount the share directory to the nextcloud jail and use it as your data directory. Option 2: To install smbclient to your TrueNAS jail, there are some changes that need to be made in the command line. Watch the video below: ua-cam.com/video/C4QsRxX4nz0/v-deo.html I hope this helps. If you have more questions , check out our geek2gether|hub community where you can post questions or search similar questions already answered and get the opportunity to chat with moderators and one on one assistance for free.
can we make SMB external storage as private folder for each user? i see some documentation suggest to use $user on Remote subfolder, but i think thats not work. or maybe we have to do something on nextcloud or the truenas?
If I understand you correctly you want all user data to be stored on an smb share. The most effective way is changing the entire nextcloud data directory to use an smb share mounted. Note this may slow down your nextcloud depending on your connection speed and how fast your smb share is. I have a video here on how to change data directory: m.ua-cam.com/video/Rk3kYCyY5ro/v-deo.html But in your case you will manually mount the smb share and make sure it is always mounted on boot then follow the video to change the data directory.
Thank you for watching. Yes ! Once you mount your external storage to nextcloud, a user with the appropriate share permissions can share it as a link .
Im on Debian and when i try to install SMBCliant, the process isn't anywhere near as long as yours... its literally a few lines of code and its done. Ontop of that, when i try to restart Apache2 it says the service apache2.service not found. Any help with this? Thanks!
Thank you for watching. It seems like you didn’t watch the video whole video so I’m not sure what you mean but the process of installing the php smb client as required by Nextcloud, is a one line command: apt install php-smbclient However, to restart Apache use the command: sudo service apache2 restart If the command says service not found then you don’t have the Apache2 module installed.
@@geek2gether469 Hi, thanks for replying. I jsut ran the command sudo install php-smbclient and it comes back with an error package php-smbclient is not available, but is referred to by another pacakge. this may mean that the package is missing, has been obsoleted, or is only available from another source. E: Pacakage 'php-smbclient'has no installation candidate. Is there a prerequisite to this that i need to run? Thank you
My apologies but Debian uses a different package. Here is the command to get it working: apt -y install smbclient Note: I tested it on a debian vm with nextcloud and it works. Make sure you refresh the page webpage after install for the smb option to show up.
@@geek2gether469 Hello, I install nextcloud using your video part 1 and its working fine. I installed smbclient as indicated here and now I have this same "apache service not found" issue; can you help with installing Apache ?
It is different for snap because of it’s containment. See their guide here : github.com/nextcloud-snap/nextcloud-snap/wiki/How-to-add-samba-shares-and-local-shares
When I try to enable the external storage app I get an error... "Error: This app cannot be enabled because it makes the server unstable" Any ideas? Some posts online mention that it might be a bug with the latest version.
I have seen some people have this issue, it looks to be a browser compatibility issue after the new update. What browser are you using? Try using a different browser or your mobile phone to sign in and enable the app and see if that works. Another option will be using the command line occ commands to enable the app if your comfortable. The command will be : sudo -u www-data php8.7 /var/www/nextcloud/occ app:enable files_external Replace /var/www/nextcloud with the path to your nextcloud install. Also replace php8.7 with your php version. Please like, share and subscribe.
Thank you for this! Just for some odd reason my IP 192.168.0. 5 would not work but the name of the server "server2024" worked.. very strange but hey it works!
Hi! great video, is there any way to make this external storage folder as the root folder? i want to save everything in the external drive so it's a bit tiresome to enter an additional folder everytime i access nextcloud.
Thank you for watching. For you to use an external storage as nextcloud's data directory, below is a video you can follow; ua-cam.com/video/tbh3fpzIwbI/v-deo.html However you have to mount the share on your linux machine before following the steps. Also make sure www-data has the necessary permissions on that share and do not forget to make the share mounted automatically during reboots.
Thank you so much for your tutorial. I’ve watched all the videos and finally could install Nextcloud fresh without any errors or warnings. I’ve migrated from the TrueNAS app to a clean one thanks to you.
Thank you for your feedback. Please like share and subscribe
Thanks for the video. I managed to install SMB support and get it working like you. There are, however, some concerns. It looks like something isn't working well with permissions, and it seems very non-performant (slow). When adding file->editing from NC, I got quite erratic behaviour. I had full access control from the Windows SMB side, but NC seemed to lock out files it actually owned. I really don't think the permissions/access control thing is working well here.
I had a lot more success simply mounting an NFS share within NC (Ensure the user:group permissions are correct though - You need to add your username to the www-data group, AND add www-data user to the users group).
Beware : I have discussed this a lot on the NC forums, and everyone there advises to NOT undertake any NFS/SMB remote change kind of operation (changing/deleting content outside of NC control) - It's just not designed for this sort of thing apparently and could result in data loss. They ALL encourage the use of WebDav (which I couldn't get working)
Great video! Is this method same as using Linux mount with fstab? I am also using truenas share but I have failed every time when it comes to permissions and nextcloud aio being able to write to the nas directory .😢
Thank you for watching. This is different from mounting shares using fstab in Linux. What permission issues are you having?
You can use my discussion forum to ask a question and post questions about errors and I can assist you resolve them. Please provide as much information as you can. Screenshots are helpful but make sure you remove all sensitive information.
geek2gether.com/forums/nextcloud/
Maybe you can help me, I can only open mp4 files on my host machine. I can't open mp4 files on any of my network devices.
I'm running NextCloud on TrueNAS Scale server. How do I install SMB Client on NextCloud portion? Since TrueNAS already has it's own SMB client. I have been stuck with this issue for months now.
Thank you for watching. In general with TrueNAS it depends on what you are trying to accomplish.Well you have two options, since you are using TrueNAS:
Option 1: if the share your trying to mount is on thesame TrueNAS server you can mount the share directory to the nextcloud jail and use it as your data directory.
Option 2: To install smbclient to your TrueNAS jail, there are some changes that need to be made in the command line. Watch the video below:
ua-cam.com/video/C4QsRxX4nz0/v-deo.html
I hope this helps. If you have more questions , check out our geek2gether|hub community where you can post questions or search similar questions already answered and get the opportunity to chat with moderators and one on one assistance for free.
can we make SMB external storage as private folder for each user? i see some documentation suggest to use $user on Remote subfolder, but i think thats not work. or maybe we have to do something on nextcloud or the truenas?
If I understand you correctly you want all user data to be stored on an smb share. The most effective way is changing the entire nextcloud data directory to use an smb share mounted. Note this may slow down your nextcloud depending on your connection speed and how fast your smb share is.
I have a video here on how to change data directory: m.ua-cam.com/video/Rk3kYCyY5ro/v-deo.html
But in your case you will manually mount the smb share and make sure it is always mounted on boot then follow the video to change the data directory.
@@geek2gether469 thanks man, thats a lot easier than my thought before.
Hi, thanks for the Video.
I have a small issue, Can we share the external storage like internal storage? create share link of our file?
Thank you for watching. Yes ! Once you mount your external storage to nextcloud, a user with the appropriate share permissions can share it as a link .
Im on Debian and when i try to install SMBCliant, the process isn't anywhere near as long as yours... its literally a few lines of code and its done. Ontop of that, when i try to restart Apache2 it says the service apache2.service not found. Any help with this? Thanks!
Thank you for watching. It seems like you didn’t watch the video whole video so I’m not sure what you mean but the process of installing the php smb client as required by Nextcloud, is a one line command:
apt install php-smbclient
However, to restart Apache use the command:
sudo service apache2 restart
If the command says service not found then you don’t have the Apache2 module installed.
@@geek2gether469 Hi, thanks for replying. I jsut ran the command sudo install php-smbclient and it comes back with an error package php-smbclient is not available, but is referred to by another pacakge. this may mean that the package is missing, has been obsoleted, or is only available from another source. E: Pacakage 'php-smbclient'has no installation candidate. Is there a prerequisite to this that i need to run? Thank you
My apologies but Debian uses a different package. Here is the command to get it working:
apt -y install smbclient
Note: I tested it on a debian vm with nextcloud and it works. Make sure you refresh the page webpage after install for the smb option to show up.
@@geek2gether469 Hello, I install nextcloud using your video part 1 and its working fine. I installed smbclient as indicated here and now I have this same "apache service not found" issue; can you help with installing Apache ?
for nextcluod in snap, how to add smbclinet?
It is different for snap because of it’s containment. See their guide here : github.com/nextcloud-snap/nextcloud-snap/wiki/How-to-add-samba-shares-and-local-shares
When I try to enable the external storage app I get an error...
"Error: This app cannot be enabled because it makes the server unstable"
Any ideas? Some posts online mention that it might be a bug with the latest version.
I have seen some people have this issue, it looks to be a browser compatibility issue after the new update. What browser are you using? Try using a different browser or your mobile phone to sign in and enable the app and see if that works.
Another option will be using the command line occ commands to enable the app if your comfortable. The command will be :
sudo -u www-data php8.7 /var/www/nextcloud/occ app:enable files_external
Replace /var/www/nextcloud with the path to your nextcloud install. Also replace php8.7 with your php version.
Please like, share and subscribe.
@@geek2gether469 the occ command worked! "occ apps:enable external_storage" in the docker terminal. I'm up and running!
Awesome, glad I could help.
Thanks alot works like plug...
Thank you for watching. Please like share and subscribe .
Thank you for this! Just for some odd reason my IP 192.168.0. 5 would not work but the name of the server "server2024" worked.. very strange but hey it works!
Please talk about any of this; nextcloud office, onlyoffice, or office online. Thanks
Thank you for watching. I have a video for setting up onlyoffice in nextcloud here: ua-cam.com/video/d-mAT_StyeY/v-deo.html
How can I access that window to input the commands? 02:53
Thank you for watching. You will use ssh to connect to the Linux machines command line interface.
Very Nice Thank you
Thank you for watching, please like share and subscribe.
nextcloud external storage authentication failed login-credentials , save in session
What are using for authentication? LDAP, sAML, openid ?
Hi! great video, is there any way to make this external storage folder as the root folder? i want to save everything in the external drive so it's a bit tiresome to enter an additional folder everytime i access nextcloud.
Thank you for watching. For you to use an external storage as nextcloud's data directory, below is a video you can follow;
ua-cam.com/video/tbh3fpzIwbI/v-deo.html
However you have to mount the share on your linux machine before following the steps. Also make sure www-data has the necessary permissions on that share and do not forget to make the share mounted automatically during reboots.
Thank You, Very helpful
NC document was not helpful.
Thank you for watching. Please like share and subscribe