Jonathan Schultz
2013-Jan-11 03:45 UTC
[Samba] NT_STATUS_NO_MEMORY when browsing file server on Belkin modem
Hello, Can someone help me to track down the source of this problem? I'm trying to access a file server running on a Belkin modem with an attached USB drive. Judging my the quality of the firmware on the device, I'd say there's a good chance of it being buggy. But it works well enough on a Windows machine, even one running inside Virtualbox under Linux. I therefore see no reason why it shouldn't work using a Samba client. When I try to connect using smbclient, I can connect OK, and put and retrieve files. But if I try to browse the share using 'ls' or 'du', it returns immediately something like 'NT_STATUS_NO_MEMORY listing *' So I can't get a directory listing of the share, which pretty much makes it useless. Interestingly, when I try to connect to it using XBMC running on my Apple TV, which I assume incorporates samba pretty much off the shelf, it also returns an error indicating problems allocating memory. I have enough IT skills to build samba from source and try to reverse engineer and debug it. I'd just like to benefit from the experience of others before I go down that path. Many thanks, Jonathan
Volker Lendecke
2013-Jan-11 06:59 UTC
[Samba] NT_STATUS_NO_MEMORY when browsing file server on Belkin modem
On Fri, Jan 11, 2013 at 02:45:15PM +1100, Jonathan Schultz wrote:> Hello, > > Can someone help me to track down the source of this problem? I'm > trying to access a file server running on a Belkin modem with an > attached USB drive. Judging my the quality of the firmware on the > device, I'd say there's a good chance of it being buggy. But it > works well enough on a Windows machine, even one running inside > Virtualbox under Linux. I therefore see no reason why it shouldn't > work using a Samba client. > > When I try to connect using smbclient, I can connect OK, and put and > retrieve files. But if I try to browse the share using 'ls' or 'du', > it returns immediately something like 'NT_STATUS_NO_MEMORY listing > *' So I can't get a directory listing of the share, which pretty > much makes it useless. > > Interestingly, when I try to connect to it using XBMC running on my > Apple TV, which I assume incorporates samba pretty much off the > shelf, it also returns an error indicating problems allocating > memory. > > I have enough IT skills to build samba from source and try to > reverse engineer and debug it. I'd just like to benefit from the > experience of others before I go down that path.What we need are comparative network traces from accessing the box via windows and smbclient. See https://wiki.samba.org/index.php/Capture_Packets for info how to do that best. Thanks, Volker -- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kontakt at sernet.de
Volker Lendecke
2013-Jan-13 11:06 UTC
[Samba] NT_STATUS_NO_MEMORY when browsing file server on Belkin modem
On Sun, Jan 13, 2013 at 11:51:23AM +0100, Volker Lendecke wrote:> On Sun, Jan 13, 2013 at 12:57:44PM +1100, Jonathan Schultz wrote: > > Thank you for your help. > > > > >What we need are comparative network traces from accessing > > >the box via windows and smbclient. > > > > I've generated two traces for comparison: > > > > https://dl.dropbox.com/u/2083295/linux-fails.cap > > https://dl.dropbox.com/u/2083295/windows-works.cap > > The attached patch to Samba master might fix this. What is > your Samba version? I did not find this in the initial > posting. > > Volker > > -- > SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen > phone: +49-551-370000-0, fax: +49-551-370000-9 > AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen > http://www.sernet.de, mailto:kontakt at sernet.de-- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kontakt at sernet.de -------------- next part --------------
Jonathan Schultz
2013-Jan-14 06:11 UTC
[Samba] NT_STATUS_NO_MEMORY when browsing file server on Belkin modem
>> The attached patch to Samba master might fix this. What is >> your Samba version? I did not find this in the initial >> posting.Thank you, that patch did the trick. Will this patch be incorporated into future releases of samba? Cheers, Jonathan