[SRU] Hardy Heron: Nautilus fails to open directory with more than 140 subfolders

Bug #217137 reported by socceroos
20
Affects Status Importance Assigned to Milestone
samba
Confirmed
Unknown
samba (Ubuntu)
Fix Released
Medium
Unassigned
Hardy
Fix Released
Medium
Unassigned
Intrepid
Fix Released
Medium
Unassigned

Bug Description

I was browsing my workplace's SMB server (Windows 2003 Small Business Server) and when trying to open any folder that had more than 140 sub-folders in it Nautilus would fail with an 'Invalid Argument' error.

Please note, 140 is not a special number. Thats just the smallest 'large' folder I tested that nautilus failed on.

Revision history for this message
socceroos (skduff) wrote :
Revision history for this message
socceroos (skduff) wrote :

Latest Hardy Heron updates as at 14th April 2008 5:22pm AEST

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

Thank you for your bug report. Could you run /usr/lib/gvfs/gvfsd -r on a command line and attach gdb to gvfsd-smb after mounting it? Does gvfs-ls lists the directory content correctly? Could you copy to a comment what is written on those command lines when trying to open the directory? Can you browse it using the smbc command?

Changed in nautilus:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

can you browse it using smbclient rather?

Revision history for this message
Chow Loong Jin (hyperair) wrote :

I created a folder on my computer with 141 subfolders in it. Nautilus opened it fine. I think the issue here is probably not with subfolders.

Revision history for this message
Chow Loong Jin (hyperair) wrote :

Here's a screenshot... 200 folders in a samba share. No problems.

Revision history for this message
socceroos (skduff) wrote :

After moving some of the subfolders (about 80) into a single subfolder then I was able to browse the folder normally.

Please note that I have set nautilus' preferences up so that, under the 'Preview' tab, everything is set to 'always'. Also, I have set the 'Only files smaller than:' property to 10Mb.

Also, when connecting to the share with smbclient (thanks Sebastien) I got this error:

smb: \Sales\> ls
Server packet had invalid SMB signature! listing \Sales\*
Error in dskattr: Server packet had invalid SMB signature!

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

The smbclient error seems to indicate a samba issue, reassigning

Changed in gvfs:
assignee: desktop-bugs → nobody
status: Incomplete → New
Revision history for this message
Chuck Short (zulcss) wrote :

If possible can you provide your samba log files when this happens. They should be in /var/log/samba. Or if possible can you run smbclient with -debuglevel 10.

Thanks
chuck

Changed in samba:
status: New → Incomplete
Revision history for this message
socceroos (skduff) wrote :

Hello Chuck,

I have attached the output of the 'smbclient' command with debugging enabled.

HTH,

Socceroos

Revision history for this message
Chuck Short (zulcss) wrote :

Hi,

Is there anything in the log file?

Thanks
chuck

Revision history for this message
lrkwz (luca-orlandi) wrote :

Same problem (the are only 46 top level files/directoryes in the share):

~ $ smbclient \\\\modus.actived.com\\projects
Password:
Domain=[ACTIVED] OS=[Windows Server 2003 3790 Service Pack 2] Server=[Windows Server 2003 5.2]
smb: \> dir
client_check_incoming_message: received message with mid 9 with no matching send record.
SMB Signature verification failed on incoming packet!
Server packet had invalid SMB signature! listing \*
Error in dskattr: Server packet had invalid SMB signature!

When I connect 'smb://modus.actived.com/projects/' from nautilus I receive multiple accesses to the keyring and finally a message "The folder contents could not be displayed - Sorry, couldn't display all the contents of "projects on modus.actived.com": Invalid argument".

I have found no way to connect to ANY "Windows share" any more (I happily connect using Gutsy Gibbon).

Revision history for this message
socceroos (skduff) wrote :

There is still no fix for this problem. I'm very disappointed that 8.04 was shipped with these kind of showstoppers. Yeah, they are showstoppers.

I've found SMB shares in 8.04 to be very unstable, everyone in my organisation has. Some folders won't display, X is killed while browsing shares and you can't copy files directly from a share to the inbuilt CD burning folder!!

Gutsy Gibbon didn't have these problems, not for anyone working where I am. The only two things that I can put my finger on are these:

1) bad implementation of Samba (or buggy release)
2) untested, buggy and incomplete implementation of gvfs

I feel it is the latter.

:(

Revision history for this message
Thiago Martins (martinx) wrote : Re: [Bug 217137] Re: Hardy Heron: Nautilus fails to open directory with more than 140 subfolders
  • unnamed Edit (1.6 KiB, text/html; charset=ISO-8859-1)

And more,

 XEN server does NOT have network! It's a BROKEN system.
 KVM freeze on Windows install, virt-manager core dumps every time...
 Ubuntu 8.04 = bug bug bug... :(

2008/4/30 socceroos <email address hidden>:

> There is still no fix for this problem. I'm very disappointed that 8.04
> was shipped with these kind of showstoppers. Yeah, they are
> showstoppers.
>
> I've found SMB shares in 8.04 to be very unstable, everyone in my
> organisation has. Some folders won't display, X is killed while browsing
> shares and you can't copy files directly from a share to the inbuilt CD
> burning folder!!
>
> Gutsy Gibbon didn't have these problems, not for anyone working where I
> am. The only two things that I can put my finger on are these:
>
> 1) bad implementation of Samba (or buggy release)
> 2) untested, buggy and incomplete implementation of gvfs
>
> I feel it is the latter.
>
> :(
>
> --
> Hardy Heron: Nautilus fails to open directory with more than 140
> subfolders
> https://bugs.launchpad.net/bugs/217137
> You received this bug notification because you are a member of Ubuntu
> Directory Services, which is subscribed to samba in ubuntu.
>

Revision history for this message
alex (a-close) wrote : Re: Hardy Heron: Nautilus fails to open directory with more than 140 subfolders

And some bug here,

$ uname -a
Linux u220 2.6.24-17-generic #1 SMP Thu May 1 13:57:17 UTC 2008 x86_64 GNU/Linux
(upgraded from 7.10 -- \\Folder\Subfolder\ was bookmarked in Nautilus on one)

$ smbclient -U=user \\\\server\\share$
Password:
Domain=[Domain] OS=[Windows Server 2003 3790 Service Pack 2] Server=[Windows Server 2003 5.2]
smb: \> cd Folder
smb: \Folder\> cd Subfolder
smb: \Folder\Subfolder\> ls
client_check_incoming_message: received message with mid 17 with no matching send record.
SMB Signature verification failed on incoming packet!
Server packet had invalid SMB signature! listing \Folder\Subfolder\*
Error in dskattr: Server packet had invalid SMB signature!

At Subfolder are 55 subsubfolders.

Revision history for this message
alex (a-close) wrote :

Updated:

I can
smb: \Folder\Subfolder\> cd Subsubfolder1
smb: \Folder\Subfolder\Subsubfolder1\> ls

And it worked!

Revision history for this message
goto (gotolaunchpad) wrote :

I'm having that annoyance too. With 251 subfolders.
If this does not get a workaround soon, I think I'm gonna crash and buy Windows XP. :(

Revision history for this message
undfined (patrick-armstrong) wrote :

Same problem here too, with 194 objects (subfolders).

user@hardylaptop:~$ smbclient \\\\server\\music -Uwindowsusername
Password:
Domain=[MYDOMAIN] OS=[Windows Server 2003 R2 3790 Service Pack 2] Server=[Windows Server 2003 R2 5.2]
smb: \> ls
client_check_incoming_message: received message with mid 9 with no matching send record.
SMB Signature verification failed on incoming packet!
Server packet had invalid SMB signature! listing \*
Error in dskattr: Server packet had invalid SMB signature!
smb: \>

Revision history for this message
undfined (patrick-armstrong) wrote :

Workaround, mount via cifs:

In my case, I was trying to open my music folder on my Win2K3 server and getting the error. I worked around this by mounting the windows share to my Music folder in my Home directory.

sudo mount -t cifs //192.168.10.100/music ~/Music -o username=windows.username,password="mypassword",iocharset=utf8,file_mode=0777,dir_mode=0777

Of course, you'll need to edit the command to your situation.

Revision history for this message
Chuck Short (zulcss) wrote :

Hello,

Can you try the version of samba in my ppa archive? You can find it at http://launchpad.net/~zulcss/+archive.

Thanks
chuck

Revision history for this message
undfined (patrick-armstrong) wrote :

Chuck -

I installed your version and it works. I can see all my folders and properly navigate through all of them when I put in smb://mywinservername/music or use "Connect to Server..."

Thanks!!

The only issue I have left is when I put in smb://mywinservername/ I still get an empty window. None of the shares, printers, etc are listed. No errors either. Accessing my Ubuntu laptop works as it should. Dunno if that's related or not.

Thanks again!

Revision history for this message
alex (a-close) wrote :

2 Chuck Short
Big Thanx! It works.

"The only issue I have left is when I put in smb://mywinservername/ I still get an empty window. None of the shares, printers, etc are listed."
Yes.

Revision history for this message
gnometallix (arnomuhren-c-deactivatedaccount) wrote :

I am having the same problem using Hardy Heron with all updates available.
There´s only one folder on our company network which is not accessible for me, unfortunately it´s the most important one. Don´t have this issue using Gutsy (checked by booting Gutsy earlier this day).

Getting the following error:
The folder contents could not be displayed.
Sorry, couldn't display all the contents of "<folder_name>": Invalid argument

It is a windows-share.

Revision history for this message
Geoff123 (gsking1) wrote :

Could some of these symptoms be related to bug #212789 ?

Revision history for this message
Paul Pieroni (pieronip) wrote :

Sorry I'm n00b to the bug-handling stuff, but it looks as if this bug will close shortly. Is there a fix? Has the bug been accepted? It really IS a show-stopper and manifests for me on 8.04.

I am unsure if I should install Chuck's version of Samba as, with my relative inexperience I feel fixes should come through the normal update process.

How do I stop this bug report from being abandoned?

Revision history for this message
unikob (unikob) wrote :

I got hit by this bug too, today on 8.04 Peculiar thing is that the folder I'm trying to access has worked like a charm before. Is there going to be an update that fixes this bug? Or rather, when it will be released?

Revision history for this message
Jonas Weinen (weinen) wrote :

I can confirm this bug and Chuck's fix for a share with 31 folders and 26 files. smbclient messages were the same and fusesmb gave an "invalid argument" as reported earlier for nautilus. After installing Chuck's packages it worked fine.

Revision history for this message
Chuck Short (zulcss) wrote :

l will try to get this updated for hardy.

Thanks for the testing.
chuck

Revision history for this message
Chuck Short (zulcss) wrote :

This bug was introduced in a regression between Samba 3.0.28 and Samba 3.0.28a. This appears to affect Windows 2003 and possibly other versions of windows. The git commit can be found at http://git.samba.org/?p=samba.git;a=commit;h=67f90361a07841972a01a4faf575da25ebbbb29c. I have attached the debdiff for your review. Without this patch users will have troubles using natuilius.

TEST CASE

1. Install Windows 2003 Small Business Server)
2. Use nautilius

Please note I made this version of Samba available in my ppa and users have reported success with it.

Thanks
chuck

Revision history for this message
Jonas Weinen (weinen) wrote :

I would like to add that - in my case here - the failure occured connecting to a windows xp system.

Revision history for this message
Paul Pieroni (pieronip) wrote :

This also occurs with Windows 2000 SBS.

Thanks Chuck! Much appreciated.

Steve Langasek (vorlon)
Changed in samba:
importance: Undecided → Medium
status: New → In Progress
Chuck Short (zulcss)
Changed in samba:
status: Incomplete → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote :

Accepted into -proposed, please test and give feedback here

Changed in samba:
status: In Progress → Fix Committed
Revision history for this message
Chuck Short (zulcss) wrote :

For those who were having problems can you enable hardy-proposed and please give a whirl thanks. I would like to get this fixed for the next point release (8.04.1).

Thanks
chuck

Revision history for this message
Paul Pieroni (pieronip) wrote :

This fix resolves the issue. I canot now find a share which won't display correctly in Nautilus. As stated above by undfind, the only small issues remining is

"when I put in smb://mywinservername/ I still get an empty window. None of the shares, printers, etc are listed."

This is not a show-stopper though.

Revision history for this message
vorondil (goodjearb) wrote :

I just thought I'd mention that this samba bug #5436 since that's where my google'ing first took me.
https://bugzilla.samba.org/show_bug.cgi?id=5436

Revision history for this message
Chuck Short (zulcss) wrote :

Yes this was the patch applied, does it work for you?

Thanks
chuck

Changed in samba:
status: Unknown → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates.

Changed in samba:
status: Fix Committed → Fix Released
Changed in samba:
status: Fix Released → Confirmed
Changed in samba:
importance: Unknown → Critical
Changed in samba:
importance: Critical → Unknown
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.