Mostafa.Y
2015-Jan-02 15:29 UTC
[Samba] Samba 3.6.1 malformed request: "OPTIONS / HTTP/1.1" message
Hi guys. Hope you're having great days. I have cross compiled Samba 3.6.1 for my embedded linux device. It was very tough considering I couldn't find a tutorial or something that helps me. Not even on Samba site and its documentation. Anyway I managed to compile it and I put compiled files into /usr/local directory in the device like I was supposed to and modified smb.conf and put it in the right place. Finally I put smbd and nmbd as daemon in start-up. Well the problem is that when I try to connect to it using a windows laptop sometimes it works and most of the time it doesn't and windows says that it couldn't access that network and it's not accessible even though that I can still ping my device through laptop or ping my laptop through the device. Although in the terminal of the device I can see that Samba says something like this every time windows tries to access: malformed request: "OPTIONS / HTTP/1.1" But like I said there are times that it works and I can see my shared directory even though that Samba reports above message. I googled the message but I almost found nothing. So I was wondering if somebody knows something about it and puts me in the right direction so I know where to begin and what to look for. I forgot one thing. I use ad-hoc wifi network between my device and laptop not a Ethernet interface and also I assigned static IP addresses but I don't think that would matter since ping is working just fine. So I think I can blame Samba for this problem. If you need further information just tell me. Thanks.
Rowland Penny
2015-Jan-03 18:32 UTC
[Samba] Samba 3.6.1 malformed request: "OPTIONS / HTTP/1.1" message
On 02/01/15 15:29, Mostafa.Y wrote:> Hi guys. Hope you're having great days. > > I have cross compiled Samba 3.6.1 for my embedded linux device. It was > very tough considering I couldn't find a tutorial or something that > helps me. Not even on Samba site and its documentation. > Anyway I managed to compile it and I put compiled files into > /usr/local directory in the device like I was supposed to and modified > smb.conf and put it in the right place. Finally I put smbd and nmbd as > daemon in start-up. > Well the problem is that when I try to connect to it using a windows > laptop sometimes it works and most of the time it doesn't and windows > says that it couldn't access that network and it's not accessible even > though that I can still ping my device through laptop or ping my > laptop through the device. Although in the terminal of the device I > can see that Samba says something like this every time windows tries > to access: > > malformed request: "OPTIONS / HTTP/1.1" > > But like I said there are times that it works and I can see my shared > directory even though that Samba reports above message. > > I googled the message but I almost found nothing. So I was wondering > if somebody knows something about it and puts me in the right > direction so I know where to begin and what to look for. > > I forgot one thing. I use ad-hoc wifi network between my device and > laptop not a Ethernet interface and also I assigned static IP > addresses but I don't think that would matter since ping is working > just fine. So I think I can blame Samba for this problem. > > If you need further information just tell me. > Thanks.OK, in which case, I am telling you to post your smb.conf :-D Rowland
Andrew Bartlett
2015-Jan-07 02:14 UTC
[Samba] Samba 3.6.1 malformed request: "OPTIONS / HTTP/1.1" message
On Fri, 2015-01-02 at 18:59 +0330, Mostafa.Y wrote:> Hi guys. Hope you're having great days. > > I have cross compiled Samba 3.6.1 for my embedded linux device. It was > very tough considering I couldn't find a tutorial or something that > helps me. Not even on Samba site and its documentation. > Anyway I managed to compile it and I put compiled files into > /usr/local directory in the device like I was supposed to and modified > smb.conf and put it in the right place. Finally I put smbd and nmbd as > daemon in start-up. > Well the problem is that when I try to connect to it using a windows > laptop sometimes it works and most of the time it doesn't and windows > says that it couldn't access that network and it's not accessible even > though that I can still ping my device through laptop or ping my > laptop through the device. Although in the terminal of the device I > can see that Samba says something like this every time windows tries > to access: > > malformed request: "OPTIONS / HTTP/1.1" > > But like I said there are times that it works and I can see my shared > directory even though that Samba reports above message.That message is from your webserver, which doesn't like the windows client trying to use webdav to it. (Samba doesn't write a message like that, and never sees HTTP traffic). Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
Mostafa.Y
2015-Jan-09 09:22 UTC
[Samba] Samba 3.6.1 malformed request: "OPTIONS / HTTP/1.1" message
Thank you Andrew But the thing is that this is a pretty small and minimum Embedded Linux system. I mean it doesn't have a webserver or things like that.(or maybe it does have one. I'm not sure! How can I check this out?) Anyway I still have the problem. Samba is working a couple of times and doesn't work for most of the times. By not working I mean that when I enter the IP address of the board in windows run program (e.g. \\192.168.1.230) and hit enter, after a time user & password window shows up and when I enter user and pass (which I created by smbpasswd) after a long time straggling windows states that the desired network is no longer available. I'm pretty much sure that everything's fine since I put Samba files right where they are supposed to be. And there are couple of times that it's working. So I don't know where to look out.
Possibly Parallel Threads
- getsmbfilepwent: malformed password entry (uid not number)
- Mongrel Malformed Request error - help!
- malformed password entry
- Malformed Address and Private IP issue
- R, AIX 64-bit builds - trying to understand root cause for message: "Error: Line starting 'Package: tools ...' is malformed!"