SOLVED Failed to retrieve share.... after U6 update. SMB Error

Status
Not open for further replies.

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
I just updated to U6, I run Linux mint on my desktop and now I get the error...
Code:
Could not display "smb://dnsName/
Error: Failed to retrieve share list from server: Connection timed out
Please select another viewer and try again.


DNS works fine, I can ping via DNS name, has always worked fine. I was no longer able to browse the server via smb after the update. sftp works fine, so I'm using that for now, but not being able to browse via SMB is going to be a problem.
Is there something I need to adjust?
 

KrisBee

Wizard
Joined
Mar 20, 2017
Messages
1,288

Visseroth

Guru
Joined
Nov 4, 2011
Messages
546
Nice! After some messing around and reading that post your linked I did figure it out.
So now if someone else finds this thread here is what I did.

First confirm that you are having protocol authentication problems....

At the command prompt run "smbclient -L (IP address of server)"
Enter your password
If you get back the error "NT_STATUS_INVALID_NETWORK_RESPONSE" then the problem is you're trying to connect using SMB1.
To verify run command "smbclient -L (IP address of server) -m SMB2"
Enter your password
You should then get a list of available folders
If this is the case then use your favorite editor and edit /etc/samba/smb.conf
And under "workgroup =" add the following lines...
client min protocol = SMB2
client max protocol = SMB3
server min protocol = SMB2
server max protocol = SMB3
save the file and restart the SMB service or restart your machine. In my case I "sudo service smbd restart"
Then try to connect to your SMB share again.
Hopefully this helps someone, worked for me!
 
Joined
Sep 2, 2018
Messages
5
Hi all,

@Visseroth, thanks for taking the time to share the solution!

I ran into this problem, but didn't find this post until too late.

When accessing the SMB server from LINUX file manager (e.g. Nautilus, Nemo), none of the shares are available in the listing. There is no error message, they just aren't available. I tried setting up the permissions twice thinking it was a permissions error, until I tested with a Windows client and the shares were available. That's when I

Other symptoms include:
Code:
> mount -t cifs -o guest,uid=1000,iocharset=utf8 //192.168.7.10/share /media/freenas/
mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


If you get
Code:
mount error(115): Operation not supported

You probably got the server address or the server path incorrect, test with pinging the server or running
Code:
smbclient -L <<host>>

In addition to the changes to the client samba.conf files, I needed to add the VERS option to mount:

Code:
> mount -t cifs -o guest,uid=1000,iocharset=utf8,vers=3.0 //192.168.7.10/share /media/freenas/


There is an equivalent in /etc/fstab:
https://askubuntu.com/questions/922682/specify-smb-3-0-in-etc-fstab
 
Status
Not open for further replies.
Top