I have a problem to connect external resources in nextcloud.
Nextcloud 15 and Ubuntu server 18.04.2 LTS
From Nextcloud, I do not connect to resources via smb.
From the command line it connects to smb without any problem.
You can see both of them in the picture.
Do you know what a problem can be?
Looking at your screenshot, I noticed you have a path (/srvfiles) in the host field, but that should be the ip address or hostname to your SMB/CIFS share. So maybe all you need to do is take out the forward slash?
"File":"\/var\/www\/nextcloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Exception\/Exception.php","Line":30,"CustomMessage":"Error while getting file info"}
Have you tried without specifying the domain? I use this with freenas and only specify my freenas hostname (freenas.mydomain.local), share folder, username and password.
In order to troubleshoot further I think you’d want to check for error logs on the SMB server.
Don’t use //name or /name. Use “/” as the root folder. For example above.
First box - name of your server or IP address = srvfiles or 192.168.26.136
Second box - / or folder name = NextCloud_test (devices usually case sensitive)
Third box - / or folder name = /
this was my solution:
i had ubuntu 16.04.6 with nextcloud 15
i installed php 7.2 on ubuntu 16.04.6
and i installed all the missing modules for php7.2
then i could update my Nextcloud from v15 -> v16 -> v17
the SMB shares, that were already configured worked, but i couldn’t add new shares in the webinterface
it still works with cli though:
sudo -u www-data php /var/www/nextcloud/occ files_external:create MYNEXTCLOUDMOUNTPOINTNAME smb password::logincredentials -c host=MYHOSTNAME -c share=MYSHARENAME