Kodi Community Forum

Full Version: smb connect issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi;

I got XBMC working on my windows 7 pc. The database is on an ubuntu server (mysql).
The media files are stored on this server with samba.(path: //192.168.1.109/wdred/data/media)
I made an advancedsettings, sources and password file. (see below)

I copied those to the userdata folder on my laptop. XBMC works here too, no problem loading library/playing movies.

I installed XBMC on my android phone.(nightly build jan 30) Copied the same setting files to the userdata folder.
Now when I go to Files and click the remote share, it prompts for a username/password. But each time it gives the error : could not connect to network server
Using ES File explorer, i can perfectly browse the smb share and play movies.
Also for some reason I can't find any logs on android. There is no 'Cache' folder where the logs should be. And yes, i enabled debugging mode. Even set loglevel to 3 in the advancedsettings file. But no logs anywhere ...

Any ideas would be greatly appreciated![/php]



<advancedsettings>
<videodatabase>
<type>mysql</type>
<host>192.168.1.109</host>
<port>3306</port>
<user>xbmc</user>
<pass>mypsw</pass>
</videodatabase>
<musicdatabase>
<type>mysql</type>
<host>192.168.1.109</host>
<port>3306</port>
<user>xbmc</user>
<pass>mypsw</pass>
</musicdatabase>
<videolibrary>
<importwatchedstate>true</importwatchedstate>
</videolibrary>
</advancedsettings>



<sources>
<programs>
<default pathversion="1"></default>
</programs>
<video>
<default pathversion="1"></default>
<source>
<name>Media</name>
<path pathversion="1">smb://192.168.1.109/wdred/Data/Media</path>
</source>
</video>
<music>
<default pathversion="1"></default>
</music>
<pictures>
<default pathversion="1"></default>
</pictures>
<files>
<default pathversion="1"></default>
</files>
</sources>



<passwords>
<path>
<from pathversion="1">smb://192.168.1.109/wdred</from>
<to pathversion="1">smb://sambauser:[email protected]/wdred/Data/Media</to>
</path>
</passwords>
Update...

I found the log file. It was in temp folder ^^

http://pastebin.com/FNUD0NWz

i think this is what i'm searching for :

int XFILE::CSMBDirectory::OpenDir(const CURL&, CStdString&) - Using authentication url smb://USERNAMETongueASSWORD@sambaserver/wdred/Data/Media
21:49:29 T:1567853144 ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://USERNAMETongueASSWORD@sambaserver/wdred/Data/Media'
unix_err:'d' error : 'Permission denied'


So he isn't getting permissions from the samba server?
update 2 ...

Found this : http://forum.xbmc.org/showthread.php?tid=119426

Enabled guest access on the share and now it works!

But why does the guest access needs to be on? I provide a valid username / password for the samba share...
I really don't know why, but it was working only once :-(