error when browsing an empty workgroup on smb

Bug #320547 reported by Baptiste Mille-Mathias
66
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gvfs
Confirmed
High
gvfs (Ubuntu)
Triaged
Low
Ubuntu Desktop Bugs

Bug Description

When browsing "network" in nautilus, when I open "Windows network" I receive an error message and the windows network list is not open.
The error message is "Impossible to mount location","failed to retrieve share list from server"

gvfs version is 1.1.4-0ubuntu1

Hereunder you can find the log from gvfs

baptiste@oak:~$ /usr/lib/gvfs/gvfsd -r
automounting...
Added new job source 0x82df810 (GVfsBackendNetwork)
Queued new job 0x82ef820 (GVfsJobMount)
### SMB-BROWSE: g_vfs_backend_smb_browse_class_init - default workgroup = 'WORKGROUP'
Added new job source 0x82dc068 (GVfsBackendSmbBrowse)
Queued new job 0x82dd020 (GVfsJobMount)
lp_load_ex: refreshing parameters
Initialising global parameters
params.c:OpenConfFile() - Unable to open configuration file "/home/baptiste/.smb/smb.conf":
 Aucun fichier ou dossier de ce type
pm_process() returned No
lp_load_ex: refreshing parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = WORKGROUP
doing parameter server string = %h server (Samba, Ubuntu)
doing parameter dns proxy = no
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter syslog = 0
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter encrypt passwords = true
doing parameter passdb backend = tdbsam
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter map to guest = bad user
doing parameter usershare allow guests = yes
pm_process() returned Yes
lp_load_ex: refreshing parameters
params.c:OpenConfFile() - Unable to open configuration file "/home/baptiste/.smb/smb.conf.append":
 Aucun fichier ou dossier de ce type
pm_process() returned No
added interface wlan0 ip=2a01:e35:8a72:c4c0:21f:3bff:fea0:40c5 bcast=2a01:e35:8a72:c4c0:ffff:ffff:ffff:ffff netmask=ffff:ffff:ffff:ffff::
added interface wlan0 ip=fe80::21f:3bff:fea0:40c5%wlan0 bcast=fe80::ffff:ffff:ffff:ffff%wlan0 netmask=ffff:ffff:ffff:ffff::
added interface wlan0 ip=192.168.0.10 bcast=192.168.0.255 netmask=255.255.255.0
Using netbios name OAK.
Using workgroup WORKGROUP.
### SMB-BROWSE: do_mount - URI = smb://workgroup/
### SMB-BROWSE: do_mount - try #0
parsed path: fname='smb://workgroup/' server='workgroup' share='' path='' options=''
SMBC_check_options(): server='workgroup' share='' path='' options=''
### SMB-BROWSE: auth_callback - anonymous pass
### SMB-BROWSE: auth_callback - out: last_user = 'baptiste', last_domain = 'WORKGROUP'
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Aucun fichier ou dossier de ce type
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/gencache.tdb: Aucun fichier ou dossier de ce type
resolve_lmhosts: Attempting lmhosts lookup for name workgroup<0x1d>
startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was Aucun fichier ou dossier de ce type
name_resolve_bcast: Attempting broadcast lookup for name workgroup<0x1d>
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: Aucun fichier ou dossier de ce type
resolve_lmhosts: Attempting lmhosts lookup for name workgroup<0x1b>
startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was Aucun fichier ou dossier de ce type
resolve_wins: Attempting wins lookup for name workgroup<0x1b>
resolve_wins: WINS server resolution selected and no WINS servers listed.
name_resolve_bcast: Attempting broadcast lookup for name workgroup<0x1b>
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: Aucun fichier ou dossier de ce type
resolve_lmhosts: Attempting lmhosts lookup for name workgroup<0x20>
startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was Aucun fichier ou dossier de ce type
resolve_wins: Attempting wins lookup for name workgroup<0x20>
resolve_wins: WINS server resolution selected and no WINS servers listed.
resolve_hosts: Attempting host lookup for name workgroup<0x20>
resolve_hosts: getaddrinfo failed for name workgroup [Nom ou service inconnu]
name_resolve_bcast: Attempting broadcast lookup for name workgroup<0x20>
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: Aucun fichier ou dossier de ce type
### SMB-BROWSE: do_mount - [smb://workgroup/; 0] dir = (nil), cancelled = 0, errno = [111] 'Connexion refusée'
### SMB-BROWSE: do_mount - (errno != EPERM && errno != EACCES), breaking
send_reply, failed: 1

** (process:5456): WARNING **: Couldn't create directory monitor on smb://workgroup/. Error: L'emplacement indiqué n'est pas monté
automounting...
Added new job source 0x990b810 (GVfsBackendDnsSd)
Queued new job 0x990d818 (GVfsJobMount)
send_reply, failed: 0
register_mount_callback, mount_reply: 0x99104d0, error: (nil)
backend_dbus_handler org.gtk.vfs.Mount:CreateDirectoryMonitor
Queued new job 0x9917030 (GVfsJobCreateMonitor)
send_reply(0x9917030), failed=0 ()
backend_dbus_handler org.gtk.vfs.Mount:Enumerate
Queued new job 0x9918810 (GVfsJobEnumerate)
send_reply(0x9918810), failed=0 ()
send_reply, failed: 0
register_mount_callback, mount_reply: 0x82f37f0, error: (nil)
Added new job source 0x82dc0f0 (GVfsBackendSmbBrowse)
Queued new job 0x82dd060 (GVfsJobMount)
Using netbios name OAK.
Using workgroup WORKGROUP.
### SMB-BROWSE: do_mount - URI = smb://
### SMB-BROWSE: do_mount - try #0
parsed path: fname='smb://' server='' share='' path='' options=''
SMBC_check_options(): server='' share='' path='' options=''
name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1>
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: Aucun fichier ou dossier de ce type
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1d>
startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was Aucun fichier ou dossier de ce type
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1d>
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: Aucun fichier ou dossier de ce type
resolve_lmhosts: Attempting lmhosts lookup for name WORKGROUP<0x1b>
startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was Aucun fichier ou dossier de ce type
resolve_wins: Attempting wins lookup for name WORKGROUP<0x1b>
resolve_wins: WINS server resolution selected and no WINS servers listed.
name_resolve_bcast: Attempting broadcast lookup for name WORKGROUP<0x1b>
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: Aucun fichier ou dossier de ce type
### SMB-BROWSE: do_mount - [smb://; 0] dir = (nil), cancelled = 0, errno = [2] 'Aucun fichier ou dossier de ce type'
### SMB-BROWSE: do_mount - (errno != EPERM && errno != EACCES), breaking
send_reply, failed: 1

description: updated
description: updated
Changed in gvfs:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Triaged
Changed in gvfs:
status: Unknown → New
Revision history for this message
Fabián Rodríguez (magicfab) wrote :
Download full text (5.8 KiB)

I've raised the priority to match upstream's, which I agree with.

I also experience broken shares browsing, with Jaunty alpha 3 updated. Here's my output.

magicfab@edgar:~$ LANG=C /usr/lib/gvfs/gvfsd -r
### SMB-BROWSE: g_vfs_backend_smb_browse_class_init - default workgroup = '(null)'
Added new job source 0x8629868 (GVfsBackendSmbBrowse)
Queued new job 0x862bc20 (GVfsJobMount)
lp_load_ex: refreshing parameters
Initialising global parameters
params.c:OpenConfFile() - Unable to open configuration file "/home/magicfab/.smb/smb.conf":
 No such file or directory
pm_process() returned No
lp_load_ex: refreshing parameters
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
doing parameter workgroup = WORKGROUP
doing parameter server string = %h server (Samba, Ubuntu)
doing parameter dns proxy = no
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter syslog = 0
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter encrypt passwords = true
doing parameter passdb backend = tdbsam
doing parameter obey pam restrictions = yes
doing parameter unix password sync = yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter pam password change = yes
doing parameter map to guest = bad user
doing parameter usershare allow guests = yes
pm_process() returned Yes
lp_load_ex: refreshing parameters
params.c:OpenConfFile() - Unable to open configuration file "/home/magicfab/.smb/smb.conf.append":
 No such file or directory
pm_process() returned No
added interface eth0 ip=fe80::207:e9ff:fe54:d8b4%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.25.110 bcast=192.168.25.255 netmask=255.255.255.0
Using netbios name EDGAR.
Using workgroup WORKGROUP.
### SMB-BROWSE: do_mount - URI = smb://
### SMB-BROWSE: do_mount - try #0
parsed path: fname='smb://' server='' share='' path='' options=''
SMBC_check_options(): server='' share='' path='' options=''
name_resolve_bcast: Attempting broadcast lookup for name __MSBROWSE__<0x1>
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unna...

Read more...

Changed in gvfs:
importance: Low → High
Revision history for this message
Daniel Lupulescu (lupulescud) wrote :

Same problem here. It works if a windown machine is in the network. From 3 computers, 1 ubuntu, 1 eeebuntu and 1 vista. ubuntu <->vista works, eeebuntu->ubuntu works, but ubuntu or vista -> eeebuntu doesn't work with error "Failed to retrieve share list from server" and vista with 0x80070035. same mount error on both ubuntu and eeebuntu in absence of vista pc.
Ubuntu 8.10 and eeeBuntu 2.0 with all updates.

I cannot browse shares on vista pc without a password, although I set up vista to permit blank passwords.

Revision history for this message
Daniel Lupulescu (lupulescud) wrote :

Update: After reboot, Ubuntu failed to browse any share with "Failed to retrieve share list from server". Previous it was wake from standby.

Revision history for this message
Jaap Haitsma (jaap) wrote :

Seeing the same overhere

Revision history for this message
carbon60 (carbon-60) wrote :

I have experienced the same issue with Latest Jaunty update. I first noticed that when I opened Windows netwroks, it contains no items although I do have one window 2000 in the network and in the same workgroup. After I rebooted my machine, I saw the error about failed to mount the location. Right now, I either encounter the error, or no error, but 0 items listed. However, if I go to Places->connect to Server, and type in my windows 2000 machine name, shared drive, I can successfully connect to the remote server and see all the files. I can also transfer files without problem. So it looks like Samba is still working, but just the windows network browse is broken.

When I first installed Jaunty alpha 3, it worked and I could even see files in windows 7 beta shares. It broke in the recent update (happened in last week or two).

Revision history for this message
carbon60 (carbon-60) wrote :

Correction from my previous post. When I first installed Jaunty Alpha 4 (not 3), I could browse Windows network. This was broken from one of the updates a few days back.

Additional information. I now cannot see ubuntu SAMBA share from a Windows 2000 machine in the workgroup.

Revision history for this message
rex_the_first (rex-the-first) wrote :
  • gvfs Edit (5.8 KiB, application/octet-stream)

I am getting "Failed to retrieve share list from server" with Intrepid

with gvfs (1.0.2-0ubuntu2)

have attached results of LANG=C /usr/lib/gvfs/gvfsd -r

Revision history for this message
rex_the_first (rex-the-first) wrote :

Downgrading to version 1.0.2-0ubuntu1 solved my problem

sudo aptitude install gvfs=1.0.2-0ubuntu1

Revision history for this message
petit-prince (petit-prince) wrote :

Downgrading is just a work-around, not a solution... this is a major show-stopper, guys.

Revision history for this message
Andy (andy-xillean) wrote :

Hello? Guys. Is anyone going to fix this MAJOR show stopper? This is a serious problem. Cannot browse windows networks from a modern operating system out of the box is a serious problem these days. Even trying to manually mount from gnome is a disaster. trying smb://servername/share does not even work. Something a basic as this? Come on guys.

Revision history for this message
Baptiste Mille-Mathias (bmillemathias) wrote :

Andy, we're all waiting for you tp provide the fix, come one guy !!!
Such comment are totally useless, so refrain next time.

no thanks

Revision history for this message
Ajit (alessandro-domanico) wrote :

Downgrade had no effect for me and still problem about retrieving . By the way I can see my WORKGROUP at least...

Revision history for this message
Daniel Lupulescu (lupulescud) wrote :

Try the updates in Proposed section. It work for me. But i guess need more testing before releasing to public.

Revision history for this message
Ajit (alessandro-domanico) wrote :

Hi Daniel, I think that it had affected my cups also... Anyway where is the Proposed section?

Revision history for this message
Daniel Lupulescu (lupulescud) wrote :

To enable the proposed archive for intrepid add the following line to /etc/apt/sources.list:

deb http://archive.ubuntu.com/ubuntu/ intrepid-proposed restricted main multiverse universe

or go to System -> Administration -> Software sources and tick the intrepid-proposed box under the updates tab.

Then update system.

Revision history for this message
Ajit (alessandro-domanico) wrote :

Hi Daniel, I've upgraded again gvfs and than installed proposed updating. Now I'm back to the retrieving error.

I've seen also cups&samba-updating in the proposed section, but still I have problem to connect to the Windows Printer via Samba. Some "updates" ago (two or three months ago) it was working fine.

Notice that: in the "New Printer" dialog box, it is very possible to browse the network up to the printer; then the verify process fails.

By browsing the network with Nautilus I got the retrieving error instead.

Thank you again for you support.

Revision history for this message
Daniel Lupulescu (lupulescud) wrote :

That update is for fixing other bug:

gvfs (1.0.2-0ubuntu3) intrepid-proposed; urgency=low

  * debian/patches/92_fix_davs_mounting.patch.dpatch:
    - Recover lost DAV over HTTPS mounting functionality. (LP: #222532)

Let's hope this bug will be fixed also! I notice a temporary solution by installing the fix, but I see it's only for the moment, i dont't know how it work after reboot, I used a live enviroment.

Revision history for this message
petit-prince (petit-prince) wrote :

Hi Daniel,

1.0.2-0ubuntu3 from intrepid-propose does not improve the situation for me; I'm still seeing the same error message.

Cheers

summary: - trying to browse smb:// network spawn an error
+ error when browsing an empty workgroup on smb
Revision history for this message
Michael Devenish (mdevenish) wrote :

With today's latest updates to jaunty, I'm no longer getting the "failed to retrieve share list from server" error when browsing "network" from nautilus and opening "windows network". Browsing my samba shares is now working correctly. I'm connecting to a buffalo linkstation running samba 2.2.8a-ja-1.1. The gvfs version listed in synaptic is 1.2.1-0ubuntu1.

Thanks

Revision history for this message
Sebastien Bacher (seb128) wrote :

lowering the setting that's only a cosmetic issue when there is nothing to be listed

Changed in gvfs (Ubuntu):
importance: High → Low
Revision history for this message
rdasilva (rdasilva-acm) wrote :

Same problem after upgrading to Jaunty.

Revision history for this message
rdasilva (rdasilva-acm) wrote :

Can't browse Windows/smb servers.
Can't connect to named servers: smb://servername/share
*Can* connect using explicit IP address: smb://<server ip address>

Revision history for this message
Acid_1 (hainzy) wrote :

I'm glad I am not the only one experiencing this. Lets see, 1 Ubuntu PC (me), and four Windows PC's from the rest of my family. I can't connect via GUI, and haven't attempted via command line.

Revision history for this message
rdasilva (rdasilva-acm) wrote :

Sebastien, I agree that this may be a 'cosmetic' issue from the point of view that SMB connections still work, but the fact that most people will browse for servers and connect via network in Gnome makes it a VERY functional bug. This error happens regardless if there are servers to enumerate or not. I agree with many previous commenters that this is a show stopper. I'm not whining for a fix, just saying that ranking its importance as low is reducing its visibility for a fix.

Revision history for this message
Robert Alblas (roppie93) wrote :

Absolutely. I have been thinking I couldn't connect at all to my windows pc, but after a few months I discovered I can through command line.

I also spoke to someone who is pretty much anti-windows, but he still needs windows compatibility for his job as software installer on Windows machines. He told me he didn't like Linux very much as a replacement, because 'it is hard to be compatible with Windows'.

This is absolutely a showstopper, as many people have Windows pc's around in their network that need to be connected, even if they are not prepared to use the command line. Some just don't want to spend their time to learn using the command line, and just want it to work out of the box with a simple GUI. This is - if I'm right - one of the major goals of Ubuntu, and therefore this bug should be solved.

I think the importance should be high.

Changed in gvfs:
importance: Unknown → High
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.