smb seems to have stopped working
|Status:||Closed||Start date:||16 Mar 2014|
|Category:||04 - Root File System|
|Severity:||04 - Low|
Not sure if this is a problem with an upgraded Samba package in buildroot, but the smbd/nmbd doesn't seem to allow guests to access files. There are no errors in the log files. It just doesn't work.
This may require an updated smb.conf or might be something to do with iptables with the new kernel.
#1 Updated by Hammel over 6 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 10
I fiddled with a few smb.conf configurations and one time the movie started playing but then stopped. Repeated attempts to get it to play again failed.
I think this may be a network problem. I tried disabling iptables but those modules aren't even loaded on boot so that shouldn't be running. IPv6 appears to be enabled in this 3.10.y kernel so I should turn that off.
I may want to play with some different wifi dongles again. And maybe rev the kernel to the HEAD of master instead of a specific git ID.
#3 Updated by Hammel over 6 years ago
#4 Updated by Hammel over 6 years ago
- % Done changed from 10 to 20
I tried this again on two different Pi's and I'm starting to think the problem is the network adapters. I've seen lots of errors in the system logs when trying to stream a movie.
So to test this theory I'm going to set up smb on genm and stream to feynman. These two machines are wired (no wireless). If I use the exact same config and the movie streams then the problem is definitely the wifi dongles.
#5 Updated by Hammel over 6 years ago
- % Done changed from 20 to 40
Test succeeded. I copied the smb.conf from pibox to genm and started smb and nmb. I then mounted genm on kepler with the following command:
sudo mount -t cifs -o guest //genm/media `pwd`/mnt
That worked without a password. I then played a movie using xine. It played fine.
So I really think the problem is the network adapter in the RPi. I need to work on RM #289.
#6 Updated by Hammel over 6 years ago
- % Done changed from 40 to 70
I switched to an Atheros adapter which may be a little better. Then I used the following command to mount pibox2 on the video playing pibox:
mount -t cifs -o username=guest,sec=ntlm //pibox2/media `pwd`/mnt
The mount worked (note the "sec=ntlm" which is required to make it work) and I was able to stream a movie and play it with omxplayer.
So this is working if the network is working. I want to test it with one pibox running as an access point and both boxes are relatively close to each other.
#8 Updated by Hammel about 6 years ago
- Status changed from In Progress to Closed
- % Done changed from 70 to 100
Tried the new dongle with a new USB flash stick with a bunch of movies on it. I connected to it with my phone and it streamed perfectly. So the problem really is with the USB network dongles.
Solution: use RTL5370 network dongles. They work. Others, not so much.