Nautilus fails to browse any share on network to which Iomega Home Network Hard Drive (MDHD500-N, firmware K108.W15) is attached.

Bug #354243 reported by Stephen D Kamm
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: gvfs

Nautilus fails to browse any share on network to which Iomega Home Network Hard Drive (MDHD500-N, firmware K108.W15) is attached.

Might be 209520 or 296673 - but this should make diagnosis easier.

Reproduced bug using Ubuntu i386 distribution disks for 7.10, 8.04, 8.04.2, 8.10 and 9.04 beta - in other word, standard Ubuntu configuration. The Iomega NAS had immediately prior had a firmware upgrade with subsequent hard reset. This should be reproducible by maintainers.

The Iomega server is SAMBA or SAMBA-like, with a rudimentary html interface. It is normal for end users to not have control over all server settings in many situations, so this is still a gvfs bug.

As with similar bugs, all SAMBA shares are reported correctly with findsmb and smbclient, and can be mounted using smb4k.

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

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:

 * Is this reproducible?
 * If so, what specific steps should we take to recreate this bug?
 * What error do you get exactly?

 This will help us to find and resolve the problem.

Changed in gvfs (Ubuntu):
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Stephen D Kamm (s-kamm) wrote :

Yes this bug is reproducible, which I had attempted to make that clear in the original bug report. The following is more explicit.

This bug occurs when Ubuntu is being run live from an i386 distribution CD: 7.10, 8.04, 8.04.2, 8.10, or 9.04 beta - the kind one burns from the isos available here: http://www.ubuntu.com/GetUbuntu/download

To reproduce this bug, you will also need the following:

-An i386-type vanilla box with an optical drive and an ethernet port, fully capable of running the Ubuntu distribution CD referenced above.

-A vanilla router - I use a Linksys WRT54G. My router is also connected to the internet through PPPoE to a DSL modem.

-An Iomega "Home Network Hard Drive" (MDHD500-N), running firmware K108.W15. Iomega advertises this as supporting Debian 3.0. Have the Gnome developers written code which is not backwards compatible with this hardware?

-Two ethernet cables.

Connect your vanilla i386 computer and Iomega NAS to the router, each with its own ethernet cable. Feel free to hard-reset the Iomega NAS, to remove any configuration questions. Reboot the computer using the live Ubuntu disk - be sure the optical drive has a high priority in the BIOS boot order. Attempt to browse to the "PUBLIC" share of the Iomega NAS using Nautilus; you won't find it. However, "findsmb" and "smbclient -L 192.168.1.xxx" do find it.

There's your bug.

A computer running Windows Explorer in Windows XP would find the Iomega share(s). Further experimentation will show that the Iomega drive effectively shileds itself and all other SAMBA shares on the network from Nautilus browsing. The full configuration of the Iomega NAS is not available to the end user, but that would actually be the typical situation for most end users on networks. Nautilus browsing of the network apparently yields a stream of similar bugs. I contend that I have outlined a simple experiment that is universally reproducible by Gnome maintainers, an experiment that should solve many bugs in that stream.

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

how do you try to browse the drive? using the network location in nautilus or the url directly? in what workgroup is it? does smbtree browse it correctly, could you copy the log there?

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

Nautilus: Place>Network
  produces attach001.png

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

... then clicking on any share produces attach002.png

(This drive has had a firmware upgrade and hardware reset immediately before answering your questions, which apparently does not delete drive contents.)

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

Having been just reset, workgroup="WORKGROUP", which I assume is appropriate for live session. It appears smbtree does not browse correctly; see terminal grab below:

====

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@ubuntu:~$ findsmb

                                *=DMB
                                +=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
192.168.1.104 STORAGE-36AE [WORKGROUP] [R] [R]
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ smbclient -L 192.168.1.104
Enter ubuntu's password:
Domain=[WORKGROUP] OS=[R] Server=[R]

 Sharename Type Comment
 --------- ---- -------
 PUBLIC Disk
 Betsey_Net Disk
 Stephen_Net Disk
 linux-backup Disk
 IPC$ IPC
Domain=[WORKGROUP] OS=[R] Server=[R]

 Server Comment
 --------- -------

 Workgroup Master
 --------- -------
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ smbtree
Password:
ubuntu@ubuntu:~$

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

If you're looking for a specific log I have yet to produce, please point to it.

These results were produced with a live session of Ubuntu 9.04 beta desktop i386. I intend to proceed with a work-around on my installations, so the Iomega NAS will no longer be in its hard-reset state. I am willing to follow further instructions using a boot from a live session disk, however. Let me know if you prefer an earlier version.

sdk

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

reassigning to samba since the samba tools don't browse the share either so it's rather an issue there

affects: gvfs (Ubuntu) → samba (Ubuntu)
Changed in gvfs (Ubuntu):
assignee: desktop-bugs → nobody
Changed in samba (Ubuntu):
status: Incomplete → New
Revision history for this message
Stephen D Kamm (s-kamm) wrote :

Just want to make sure it's understood that smbtree doesn't browse the share when run under specific conditions outlined above - particularly the fact that it was in a live CD session. Under my current, evolving (implementing work-arounds) configuration, smbtree does produce output, listed below.

Are there "bad" interactions among multiple SAMBA servers that cannot be isolated to configuration of single server? Given that many network devices use embedded SAMBA servers, shouldn't Nautilus, hence gvfs, be extremely robust in browsing and mounting shares?

I post the following (from current, not-controlled-experiment configuration), noting the "LANMAN" error message, and hoping extraneous information does not muddy diagnosis; but stand by previous experimental results - Iomega NAS should have been browse-able from a live CD session, and was not:

===

stephen@Inspiron-Ubuntu:~$ findsmb

                                *=DMB
                                +=LMB
IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
192.168.1.66 IOMEGA-36AE [UTOPIA_BEACH] [R] [R]
192.168.1.100 INSPIRON-UBUNTU [UTOPIA_BEACH] [Unix] [Samba 3.2.3]
192.168.1.102 UBUNTU-810 +[UTOPIA_BEACH] [Unix] [Samba 3.2.3]
stephen@Inspiron-Ubuntu:~$ smbclient -L 192.168.1.66
Enter stephen's password:
Domain=[UTOPIA_BEACH] OS=[R] Server=[R]
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
tree connect failed: SUCCESS - 0
stephen@Inspiron-Ubuntu:~$ smbtree
Password:
UTOPIA_BEACH
 \\UBUNTU-810 Samba 3.2.3
  \\UBUNTU-810\clp300 Samsung CLP-300N at 192.168.1.88
  \\UBUNTU-810\IPC$ IPC Service (Samba 3.2.3)
  \\UBUNTU-810\the.kamms the.kamms Samba Share
  \\UBUNTU-810\household Read Only Samba Share
  \\UBUNTU-810\gnucash Gnucash Samba Share
  \\UBUNTU-810\betsey Betsey's Samba Share
  \\UBUNTU-810\stephen Stephen's Samba Share
 \\IOMEGA-36AE
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
failed tcon_X with NT_STATUS_OK
 \\INSPIRON-UBUNTU Inspiron-Ubuntu server (Samba, Ubuntu)
  \\INSPIRON-UBUNTU\CLP-300N Samsung Color Laser Printer
  \\INSPIRON-UBUNTU\IPC$ IPC Service (Inspiron-Ubuntu server (Samba, Ubuntu))
  \\INSPIRON-UBUNTU\print$ Printer Drivers
stephen@Inspiron-Ubuntu:~$

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

ok, that bug is just confusing, can you describe clearly:

- the machines on your network
- which one you are using
- what you try to do and what error you get
- if the samba command line tools work better
- what you changed and why

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

Whoa - stop!

Comment 9 does not describe Bug 354243 directly, but rather, a related situation. That's what all those words I typed into Comment 9 mean. I had hoped the the additional information would be helpful. I'm sorry it wasn't.

I opened Bug 354243 specifically because of the "confusion" evident in Bug 209520. But the gist of both bugs is this: There is something wrong with Nautilus and/or its dependencies - recent versions of Nautilus are not robust in browsing network shares.

I intended, in Bug 354243, to offer a reproducible demonstration of this failure. Comments 1 and 4 outline that demonstration, but again:

The network in Bug 354243 is a vanilla router; a vanilla computer; an Iomega MDHD500-N network hard drive, running firmware K1.08 L1.0 W1.5; and an Ubuntu 9.04 beta desktop i386 CD, running in LIVE SESSION.

(Sorry to shout, but last is important: live session eliminates user error in configuration, and, more important, live session is supposed to demonstrate Ubuntu's capabilities with a wide variety of hardware.)

And I will anticipate the objection that this is an Iomega problem: Windows finds the Iomega NAS; smbclient finds it; smb4k even mounts it - it's not trying to hide itself. The Iomega NAS is just one among many "black-box" embedded SAMBA servers that a robust, desktop-ready file manager needs to be able to browse. Current Nautilus fails.

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

it's not so complicate to have a clear description specify:
- the version of ubuntu you are using
- the actions you are doing
- what happens and what else you would expect

in this case extra informations:
- what server type do you try to contact
- can you contact it using samba command line commands

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

I'm trying to make a sense of all the comments there

is "IOMEGA-36AE" the drive you try to connect?

is the issue

"$ smbclient -L 192.168.1.66
Enter stephen's password:
Domain=[UTOPIA_BEACH] OS=[R] Server=[R]
Server requested LANMAN password (share-level security) but 'client lanman auth' is disabled
tree connect failed: SUCCESS - 0"

which shows that command line tools can't connect to it either?

if that's the case the issue is clear, the server expect lanman authentification which is disabled nowadays in samba by default for security reasons, I will let the samba guys comment on how to best process from there to get a working configuration if that's the issue

Revision history for this message
Thierry Carrez (ttx) wrote :

Hm. If you read comment 6 it appears that smbclient successfully browses the share ?
Comment 9 is confusing. Just to be sure, try put the following in your /etc/smb.conf to force samba client tools to use it:

client lanman auth = yes

And let us know if it fixes your browsing issue.

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
Thierry Carrez (ttx) wrote :

Above should read "/etc/samba/smb.conf", sorry for the typo and the noise.

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

Given the confusion introduced by my Comment 9, I will restrict my further comments to the original case of Bug 354243: a LIVE SESSION run from a "Ubuntu 9.04 beta Desktop i386" CD.

That being the case, I ask: Once I have edited and saved /etc/samba/smb.conf, how am I to restart smbclient? The usual "sudo /etc/init.d/samba restart" will not work, because samba itself is not installed in the live session. I hesitate to install samba for the live session if there is another way to restart smbclient.

===

Also, does the case I present show that the underlying problem, of which https://bugs.launchpad.net/ubuntu/intrepid/+source/samba/+bug/264943 was a symptom, has not been fixed?

Revision history for this message
Thierry Carrez (ttx) wrote :

OK, let's sum up this bug (please confirm I got it right):
- You boot a Jaunty beta LiveCD
- Running "smbclient -L <NASBOXIPADDRESS>" successfully lists the shares on NAS box
- Running "findsmb" successfully shows NAS box
- Opening Places/Network in Nautilus you can see the NAS box
- Double-Clicking on the NAS box in Nautilus fails to list the shares, error is "Failed to retrieve share list from server"

Here are a few more tests/confirmations:
- What does running "smbtree -N" return ?
- When you double-click on "Windows Network" and drill down to your NAS box, does double-clicking on it list the shares ?
- Does anything change if you put "client lanman auth = yes" in /etc/samba/smb.conf. To test it from a livecd, your best bet is to run "killall x-session-manager" to fully restart your Gnome session after changing smb.conf.

===
I don't see the relation between this bug and bug 264943, which was a gvfs crash ?

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

Thank you for addressing the specific case I have set up. In answer to your first five assumptions, "YES" except I failed to recreate the browser result shown in the attachment to Comment 4. Now, the NAS shares do not show, only "Windows Network". Double-clicking on "Windows Network" yields "Failed to retrieve share list from server".

See attachment for complete illustration.

The following are or may be different from Comment 4:

- The NAS was not hard-reset immediately prior to latest experiment.
- I have given the NAS a static IP address.
- I am not sure of the power-up order for the computer, router, and NAS. From now on, I will leave the NAS and router on while re-booting the computer. I hope we can solve the now slightly revised bug under these conditions, because it allows undisrupted use of the NAS from Windows, and fstab-mounted Ubuntu, in between experiments.

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

ubuntu@ubuntu:~$ smbtree -N
ubuntu@ubuntu:~$

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

I was able to "sudo gedit /etc/samba/smb.conf" and "killall x-session-manager" as requested, but there is no change in diagnostics, see attachment.

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

Addendum to Comment 18:

Other differences from previous trial, along with setting static IP address on the NAS, I set host name to "IOMEGA-36AE" (was "STORAGE-36AE") and domain name to "UTOPIA_BEACH" (was "WORKGROUP"). I'm going to guess that when the domain names match, the shares are displayed at the same level as "Windows Network".

I don't think this was the problem, however.

Revision history for this message
Thierry Carrez (ttx) wrote :

OK, summing it up (again):
- You boot a Jaunty beta LiveCD
- Running "smbclient -L <NASBOXIPADDRESS>" successfully lists the shares on NAS box
- Running "findsmb" successfully shows NAS box
- Running "smbtree -N" doesn't list the NAS box
- Double-Clicking on "Windows network" in Nautilus Places/Network brings a "Unable to mount location / Failed to retrieve share list from server" error box.

My guess is that your NAS box doesn't properly implement the local master browser for the windows networking domain. Clicking 'Windows Network' or running "smbtree -N" query the local master browser. Please test:

- Run "smbtree -b -N"
- Open location "smb://NASBOXIPADDRESS/" in Nautilus directly

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

Thank you. I confirm your summary.

"smbtree -b -N" returns no output

Opening the location as specified creates browse-able locations in Nautilus, and mounts them on the Desktop. This is somewhat easier (in my situation) than using the command line or modifying fstab. I will test this in my "real-life" home network.

Shouldn't the operation of obtaining the NAS's IP address, as with findsmb, and passing it to the browsing function be written into Nautilus? It seems to me that it advances Ubuntu to have it "just work" with cheap, widely-available hardware.

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

Bad news in "real-life" network (not the controlled experiment in bug report):

Running Intrepid, desktop and laptop on network, each with own Samba server (i.e. three total, including NAS), Nautilus Location>smb://192.168.1.66/ does not work. It shows shares, but does not mount them on desktop, and attempting to browse them through Nautilus results in being kicked to home directory.

CLI and fstab mounting works.

Essentially, Iomega NAS kills default Nautilus network browsing for any user on the network.

Revision history for this message
Thierry Carrez (ttx) wrote :

Apparently you are not the only one experiencing problems to interact with that specific kind of NAS box.

See
http://www.iomegasupportforums.com/phpbb2/viewtopic.php?t=11672
or
http://www.olivierberger.com/weblog/index.php?post/2008/04/06/101-using-iomega-home-network-disk-drive-500-gb-with-gnu-linux-debian-testing

Could you look up the various tricks described there and let us know if it improves the situation.

Revision history for this message
Braam Wijsmuller (stratofarmer) wrote :

I've recently crawled back out from under my rock and discovered that the issue has been solved for me!

I was experiencing the exact same problems with my Iomega Home Network Hard Drive (MDHD500-N, firmware K1.08 L1.0 W1.5) and Ubuntu Gutsy or/and Intrepid.

After having upgraded to Jaunty (final) the issue is solved. I can mount and browse the shares on the network disk using Nautilus without any problems.

Cheers!

Revision history for this message
Stephen D Kamm (s-kamm) wrote :

Thank you Thierry and Braam.

Thierry, I didn't try all the tricks you linked to above, some were speculative or more difficult than the CLI or fstab mount work-around. The earlier version of the Iomega firmware did not work for me.

Braam, I confirm your good result with an installed version of 9.04, with this exception: if the network also contains a computer running 8.10, Nautilus still fails to browse the NAS. I will soon upgrade the other computer.

Thanks again.

Revision history for this message
Thierry Carrez (ttx) wrote :

OK, then we'll assume it got fixed in Jaunty... Thanks for the followup !

Changed in samba (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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