interzona / mplayer-ce

Automatically exported from code.google.com/p/mplayer-ce
0 stars 0 forks source link

SMB not connecting although smb.conf is filled out correctly #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Configure SMB1 as:
#Samba share1  (smb1:/)
ip1=192.168.2.13
share1=nas
user1=
pass1=
All others leave blank

2. Listing SMB1-5 all list the SD card contents
3. Mounting the share on my laptop works fine with:
mount -t cifs //192.168.2.13/nas /mnt/fnd/ -o guest

What is the expected output? What do you see instead?
Expect to see the same as on the laptop:
[piggz@localhost ~]$ ls /mnt/fnd/
fnd/  storage/

Instead, i see the sd card contents.

What version of the product are you using? On what operating system?
0.21b, samba server is a recent 3 series

Please provide any additional information below.

Original issue reported on code.google.com by pig...@gmail.com on 20 Feb 2009 at 8:55

GoogleCodeExporter commented 8 years ago
I agree, I get the same problem here

Original comment by francois...@gmail.com on 20 Feb 2009 at 10:32

GoogleCodeExporter commented 8 years ago
Same thing for me

Original comment by pouliote...@gmail.com on 21 Feb 2009 at 1:52

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Sometimes I got the same problem, but when I wait for about a minute there are 
my
shares. I think, it could be when the network isn't initialized.

Original comment by basti.ro...@gmx.de on 21 Feb 2009 at 10:11

GoogleCodeExporter commented 8 years ago
SMB goes to SD only when it is not working properly; for example if your 
network is
not initialised, your smb.conf is not configured properly, or smb sharing is not
working for any reason.

Original comment by agent...@gmail.com on 21 Feb 2009 at 2:00

GoogleCodeExporter commented 8 years ago
I'm sorry AgentX, this can't be close this way.
I mean, there should be a message saying why it can't connect. So at least we 
could
hunt down this problem by our own. Now we just cant. Beside reporting this 
beaviour
as a bug, we are actually help-less.
As the repporter, I'm able to mount the share on my own machine. but I can't 
connect
with the wii.
My wifi is still repported as working by the system menu. But I can't known why 
it's
not working. And upgrading my samba server on my NAS is not a simple task.

seb@seb:~$ smbclient -I 192.168.7.120 -U guest \\\\192.168.7.120\\Videos ''
Domain=[SHUSS] OS=[Unix] Server=[Samba 3.0.24]                                  

Server not using user level security and no password supplied.                  

smb: \> ls                                                                      

  .                                   D        0  Mon Feb 16 20:23:14 2009         
  ..                                  D        0  Sat Feb 14 15:08:42 2009         

And my smb.conf :
#Samba share1  (smb1:/)
ip1=192.168.7.120
share1="Videos"
user1=
pass1=

By the way, ftpii is working... So it don't seem to be network related.

I hope you will change your mind on this defect.
yours,
Seb

Original comment by sebastie...@gmail.com on 21 Feb 2009 at 5:33

GoogleCodeExporter commented 8 years ago
Try following the steps here:
http://www.tehskeen.com/forums/showthread.php?p=48403#post48403
We are aware that the smb implementation is buggy and it has been reported many
times.  The issue reported is not a bug but merely a symptom of smb not 
connecting.
If this bug is not invalid then it is at least a duplicate of several others.

Original comment by agent...@gmail.com on 21 Feb 2009 at 5:50

GoogleCodeExporter commented 8 years ago
Cheers, ive got it to work, i changed the samba share type from 'share' to 
'user'
and added a smb user, then specified the user/pass in the file and it worked a
treat.

I may now be able to get rid of my xbox1, its only use was for xbmc.

Original comment by pig...@gmail.com on 21 Feb 2009 at 6:05

GoogleCodeExporter commented 8 years ago
thanks agentX, but not yet, now mplayer freeze while connecting :(

Original comment by sebastie...@gmail.com on 22 Feb 2009 at 7:27

GoogleCodeExporter commented 8 years ago
Issue 38 has been merged into this issue.

Original comment by agent...@gmail.com on 22 Feb 2009 at 6:05

GoogleCodeExporter commented 8 years ago
Reopening this and renaming to actual bug.

Original comment by agent...@gmail.com on 22 Feb 2009 at 6:06

GoogleCodeExporter commented 8 years ago
Thanks AgentX for reopening this bug.

I'm willing to help. For now I don't have any stack trace to give you. :(

Here is my smb.conf from samba(3.0.24 on ARM) on my nas, I removed useless 
share stuff :

root@NAS-dlink:~# cat /etc/samba/smb.conf 
[ global ]                                
interfaces = egiga0                       
unix charset = UTF8                       
workgroup = SHUSS                         
netbios name = NAS-dlink                  
server string = NAS                       
hosts allow =                             
hosts deny =                              
security = USER                           
encrypt passwords = yes                   
max log size = 0                          
create mask = 0777                        
directory mask  = 0777                    
force create mode = 0777                  
force directory mode = 0777               
use sendfile =yes                                         

[ Videos ]
comment =
path = /mnt/HD_b2/Videos
valid users = wii
read only = yes
guest ok = no
oplocks = no
map archive = no

This is my smb.conf from mplayer :
ip1=192.168.7.120
share1="Videos"
user1=wii
pass1=mplayer

And the password is working :)

I hope to help.

Original comment by sebastie...@gmail.com on 22 Feb 2009 at 6:45

GoogleCodeExporter commented 8 years ago
Try to use last version (svn, I think is not packet yet) and add 
debug_network=yes to
mplayer.conf so you can see what is happening with samba.
Please post info.

Original comment by rodries@gmail.com on 24 Feb 2009 at 12:40

GoogleCodeExporter commented 8 years ago
Now packed, use 0.21e version with debug_network=yes in mplayer.conf
Please post errors

Original comment by rodries@gmail.com on 24 Feb 2009 at 3:49

GoogleCodeExporter commented 8 years ago
just tried 0.21e with debut set to yes. At startup, mplayer-ce correctly 
display the
accessible share (everything seems OK), then wait 10seconds, then start 
normally. But
when I browse the content of my smb share, I only see its folders and not the 
files
in it ! So we still can't play any file from a samba share. Nevertheless, I saw
improvement ;)

Original comment by francois...@gmail.com on 24 Feb 2009 at 5:34

GoogleCodeExporter commented 8 years ago
That sounds to me like a permissions issue with your smb share.  Please check 
the
configuration on your PC.

Original comment by agent...@gmail.com on 24 Feb 2009 at 5:42

GoogleCodeExporter commented 8 years ago
Hi,

to agentx24 and rodries

First : 
Seeing that you've take care of every detail I said in my previous posts was 
like a
real breath of fresh air. Thanks a lot for that.

Second :
Thanks for being that fast working on my issue.

Third :
At first I had an error about not being able to connect to network. 
So I rebooted my wifi-router and then it worked without an issue.

So thanks a lots.

Original comment by sebastie...@gmail.com on 25 Feb 2009 at 3:41

GoogleCodeExporter commented 8 years ago
It's a shame we can't edit our own posts...
Anyway, I just tested if it still worked without the debug option and the 
answer is yes.

I awe (both of) you a few bucks, and a paypal address would be appreciated :)

cheers,
Seb

Original comment by sebastie...@gmail.com on 25 Feb 2009 at 3:50

GoogleCodeExporter commented 8 years ago
I'm pleased that you have it working now!

I can't speak for rodries but I'm not doing this for any kind of monetary 
reward. 
However, if you feel like giving some money as thanks then feel free to give it 
to a
charity of your choice!

Original comment by agent...@gmail.com on 25 Feb 2009 at 9:35

GoogleCodeExporter commented 8 years ago
However, if you feel like giving some money as thanks then feel free to give it 
to a
charity of your choice!
Agreed :)

Original comment by djdynamite123 on 26 Feb 2009 at 10:14

GoogleCodeExporter commented 8 years ago
In response to "Comment 16  by agentx24", I don't think it is a config problem 
on my
side because if I plug on the network another computer under Windows (mine is 
under
Ubuntu), I can browse to \\fra\Films, then I am asked for my login/pwd and I can
browse the share normally. The files appear correctly and can be opened ! But in
mplayer ce, only the folders are displayed, not the files... Dont really know 
where
to look at... :/

Original comment by francois...@gmail.com on 28 Feb 2009 at 12:30

GoogleCodeExporter commented 8 years ago
@francois.marot:
The user connecting to a shared have to be granted read permission on the 
directories
and files to be allowed to read them (reading a directory allow to see 
files...) when
using domain authentification.

So verify that you're not using domain authentification (is your machine member 
of a
domain ?) 

Original comment by sebastie...@gmail.com on 28 Feb 2009 at 11:02