You are not logged in.

#1 2010-05-10 01:04:17

bwat47
Member
Registered: 2009-10-07
Posts: 638

"failed to retrieve share list from server"

ok, so I installed samba, smbnetfs, fusemb and now I can see all my windows shares in nautilus, but when I click on any of the workgroups it just says "failed to retrive share list from server" any way to fix this?
http://img63.imageshack.us/img63/8264/screenshotdvo.png

EDIT: i got it to work to browse my xp machine, but my win 7 machine (the one I actually need to work) still gets that error.

[global]
workgroup = WORKGROUP
server string = Samba Server
netbios name = brandon
security = share
; the line below is important! If you have permission issues make
; sure the user here is the same as the user of the folder you
; want to share
guest account = brandon
username map = /etc/samba/smbusers
name resolve order = hosts wins bcast
wins support = no

[public]
comment = Public Share
path = /path/to/public/share
available = yes
browsable = yes
public = yes
writable = no

my xp machine is in the mshome workgroup and it works fine, as soon as I click "WORKGROUP" which my 7 machine is it gives the error.

Last edited by bwat47 (2010-05-10 03:14:50)

Offline

#2 2010-05-10 03:29:12

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: "failed to retrieve share list from server"

1. Do you have any firewalls enabled?
-> If iptables is enabled on your linux box, you need to have the nf_conntrack_netbios_ns module loaded (sudo modprobe nf_conntrack_netbios_ns).
3. Nautilus uses gvfs-smb (not fusesmb and smbnetfs). As a side note, smbnetfs and fusesmb do the same thing so I would recommend uninstalling fusemsb (supposedly it doesn't play nicely with the latest samba).
4 .You only need samba if you want to share files (you can browse without it).

Edit: This thread may help http://ubuntuforums.org/showthread.php?t=1082148&page=9

Last edited by Stebalien (2010-05-10 03:36:43)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#3 2010-05-10 03:36:30

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: "failed to retrieve share list from server"

Alright I have removed everything but gvfs-smb and still get the same problem.

I didnt manually install or configure any firewalls so unless there is a default one no.

Offline

#4 2010-05-10 03:40:40

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: "failed to retrieve share list from server"

This thread may help: http://ubuntuforums.org/showthread.php?t=1082148&page=9

Specifically this: http://ubuntuforums.org/showpost.php?p= … stcount=90
Or this:

DaleKonle wrote:

This is an easy fix that worked for me. Change the resolve order.

Paste this line
" name resolve order = lmhosts wins bcast host "
into the smb.conf file under this section:

# What naming service and in what order should we use to resolve host names
# to IP addresses
; name resolve order = lmhosts host wins bcast" .

Put this in the command line to edit the file.
sudo gedit /etc/samba/smb.conf

Save the file, log off and back on.

See:
https://bugs.launchpad.net/ubuntu/+s...ba/+bug/375593


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#5 2010-05-10 03:44:48

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: "failed to retrieve share list from server"

changed that line but it didnt seem to work. Can browse the xp pc fine but not the 7 one. Also on the win7 machine I have turned off password protected sharing as well but no dice.

Offline

#6 2010-05-10 03:52:18

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: "failed to retrieve share list from server"

What is the output of `smbtree`?
`smbclient -L <ip address>`?

Also try connecting directly with the ip address.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#7 2010-05-10 03:57:25

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: "failed to retrieve share list from server"

[brandon@arch ~]$ smbtree
Enter brandon's password:
failed negprot: ERRnomem
failed negprot: ERRnomem

[brandon@arch ~]$ smbclient -L 192.168.146
creating lame upcase table
creating lame lowcase table
Enter brandon's password:
Connection to 192.168.146 failed (Error NT_STATUS_UNSUCCESSFUL)
[brandon@arch ~]$

Offline

#8 2010-05-10 04:06:39

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: "failed to retrieve share list from server"

This should fix it (hopefully) (see the part about windows 7 at the end).
http://ubuntuforums.org/showthread.php?t=1169149
Sorry it took so long to find this (I read about it a while ago but forgot).


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#9 2010-05-10 04:31:34

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: "failed to retrieve share list from server"

Same problem after I tried those solutions. sad

Offline

#10 2010-05-10 04:37:19

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: "failed to retrieve share list from server"

Sorry, I am out of ideas.
If you need access now, you can always try another protocol (sftp, ftp: http://www.freesshd.com/ is a closed source but easy solution).
Other than that, hopefully someone else here can help you (I am hardly a samba expert).

Last edited by Stebalien (2010-05-10 04:37:33)


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#11 2010-05-11 05:44:42

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: "failed to retrieve share list from server"

Man I am getting wierd errors, cant mount because of memory wtf?

[brandon@arch ~]$ sudo mount -t cifs //BRANDON-PC/Public /mnt/Brandon-PC -o user=brandon,workgroup=WORKGROUP,ip=192.168.1.146
Password:
mount error(12): Cannot allocate memory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[brandon@arch ~]$

[brandon@arch ~]$ smbclient -L BRANDON-PC -U%
creating lame upcase table
creating lame lowcase table
protocol negotiation failed: ERRnomem

EDIT: so i googled the mem erros and found this:
http://linux.derkeiler.com/Newsgroups/c … 00629.html

I created the registry key and tried again, same error in nautilus but this error when mounting now:

[brandon@arch ~]$ [brandon@arch ~]$ sudo mount -t cifs //BRANDON-PC/Public /mnt/Brandon-PC -o user=brandon,workgroup=WORKGROUP,ip=192.168.1.146
Password:
Password:
retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
[brandon@arch ~]$

SMBclient can now list the shares:

[brandon@arch ~]$ smbclient -L BRANDON-PC -U%creating lame upcase table
creating lame lowcase table
Domain=[WORKGROUP] OS=[Windows 7 Ultimate 7600 Service Pack 2] Server=[Windows 7 Ultimate 6.1]

    Sharename       Type      Comment
    ---------       ----      -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
Domain=[WORKGROUP] OS=[Windows 7 Ultimate 7600 Service Pack 2] Server=[Windows 7 Ultimate 6.1]

    Server               Comment
    ---------            -------
    BRANDON-PC           

    Workgroup            Master
    ---------            -------
    WORKGROUP            BRANDON-PC
[brandon@arch ~]$

And here is when i try to connect via smbclient:

[brandon@arch ~]$ smbclient //BRANDON-PC/publiccreating lame upcase table
creating lame lowcase table
Enter brandon's password:
Domain=[BRANDON-PC] OS=[Windows 7 Ultimate 7600 Service Pack 2] Server=[Windows 7 Ultimate 6.1]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[brandon@arch ~]$

Last edited by bwat47 (2010-05-11 05:59:11)

Offline

#12 2010-05-11 06:15:38

bwat47
Member
Registered: 2009-10-07
Posts: 638

Re: "failed to retrieve share list from server"

LOL I am a moron, my netbios name was wrong, I ad to set my netbios name to "Brandon-PC" in the samba config. Although the first error with the regedit fix still woulda stopped me from connecting. It works now!

Offline

Board footer

Powered by FluxBB