SMB Errors: GetDirectory (smb:...) failed
#1
Sad 
hello all,

after having installed xbmc at a couple of xboxes without any solvable problems, i have come across a very strange one:
the xbox with latest cvs xbmc installed is linked to a lan with a windows xp pc, from which i can play mp3/avi/etc without anyproblems.
furthermore the xbox is connected to a landrive with a 250gb hdd (a hdd enclosure with usb&lan supporting ftp/smb).
i can map the lan drive without any problems.
i can play mp3/avi/etc from the root of the drive also.
but when i try to change directory into a subfolder it just shows a window with "success" and that's it !
the drive is formatted as fat32 so it can't be a rights problem !

i can browse the drive from any windows station without any problems. here an exemption of the logfile:
23-11-2005 19:59:40 notice -----------------------------------------------------------------------
23-11-2005 19:59:40 notice new home path! q is mapped to: harddisk0\partition1\apps\xbmc
23-11-2005 19:59:40 notice -----------------------------------------------------------------------
23-11-2005 19:59:40 notice -----------------------------------------------------------------------
23-11-2005 19:59:40 notice starting xboxmediacenter from alternate homepath. built on nov 22 2005
23-11-2005 19:59:40 notice home path q is mapped to: e:\apps\xbmc (harddisk0\partition1\apps\xbmc)
23-11-2005 19:59:40 notice log file is located: q:\xbmc.log
23-11-2005 19:59:40 notice -----------------------------------------------------------------------
23-11-2005 19:59:41 notice loaded q:\system\players\mplayer\iso639-1.xml
23-11-2005 19:59:41 notice loaded q:\system\players\mplayer\iso639-2.xml
23-11-2005 19:59:41 notice initialize assignment:[static] network ip:[192.168.1.102] netmask:[255.255.255.0] gateway:[192.168.1.1] nameserver:[192.168.1.1]
23-11-2005 19:59:41 notice use static ip
23-11-2005 19:59:41 notice start timeserver thread
23-11-2005 19:59:41 notice start webserver
23-11-2005 19:59:41 notice xbfilezilla: starting...
23-11-2005 19:59:41 notice xbfilezilla: started
23-11-2005 19:59:41 notice checking the date!
23-11-2005 19:59:41 notice start dvd mediatype detection
23-11-2005 19:59:41 notice initializing playlistplayer
23-11-2005 19:59:41 notice load default skin:[project mayhem iii]
23-11-2005 19:59:42 error invalid rss url set referenced in skin
23-11-2005 19:59:43 notice initialize done
23-11-2005 19:59:43 notice running the application...
23-11-2005 19:59:43 warning kernel32.dll fake function disablethreadlibrarycalls called
23-11-2005 20:01:25 error invalid rss url set referenced in skin
23-11-2005 20:01:29 warning kernel32.dll fake function disablethreadlibrarycalls called
23-11-2005 20:01:29 warning kernel32.dll fake function disablethreadlibrarycalls called
23-11-2005 20:01:37 warning kernel32.dll fake function disablethreadlibrarycalls called
23-11-2005 20:01:47 error dll wmv9dmod.dll was not found in path
23-11-2005 20:01:47 error unable to open dll q:\system\players\mplayer\codecs\wmv9dmod.dll
23-11-2005 20:01:47 error loadlibrary('wmv9dmod.dll') failed
23-11-2005 20:01:47 error dll wmvdmod.dll was not found in path
23-11-2005 20:01:47 error dll oleaut32.dll was not found in path
23-11-2005 20:01:47 error unable to load referenced dll oleaut32.dll - dll: q:\system\players\mplayer\codecs\wmvdmod.dll
23-11-2005 20:01:47 error dll shlwapi.dll was not found in path
23-11-2005 20:01:47 error unable to load referenced dll shlwapi.dll - dll: q:\system\players\mplayer\codecs\wmvdmod.dll
23-11-2005 20:02:07 error smbdirectory->getdirectory: unable to open directory : 'smb://192.168.1.100/mp3/audiobook/'
unix_err:'0' nt_err : '0' error : 'success'
23-11-2005 20:02:07 error getdirectory(smb://192.168.1.100/mp3/audiobook/) failed
23-11-2005 20:02:09 error smbdirectory->getdirectory: unable to open directory : 'smb://192.168.1.100/mp3/jukebox/'
unix_err:'0' nt_err : '0' error : 'success'


any1 got an idea ?

regards,
wax_
:joker:
#2
Sad 
hello,

i just get a landisk bytecc me-850 and i got the same problem.

it looks like xbmc is not able to read directories from many smb compatible devices.

is there anyone working on this problem ?
smb team ?

regards,

martin
#3
check the error log on your nas box. it may provide some help.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
#4
i just did some tests and there is nothing useful in the log.

i see that the directory is being read but there is no visible errors.

it looks like xbmc is not able to read those directories.

anyone else having this problem ?

if so, how can we develop a patch ?

martin
#5
without a reproducible testcase for the developers to test with, a patch can't be provided since there is no fix.

that is of course unless you know how to fix it in which case submit a patch on sf.net.

ts
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
#6
the only log i have is with xbmc :

24-11-2005 10:02:01 error smbdirectory->getdirectory: unable to open directory : 'smb://landisk/public/musique/mp301'
unix_err:'0' nt_err : '0' error : 'success'

is there a way to have narrower trace ?

martin
#7
Sad 
i am cross-posting this from another thread because it may be related:

i have been trying to get this to work also, same symptoms:
---the "errorConfuseduccess" message---
---only being able to browse down one level of the directory on the nas---
---and windows machines can browse either the nas or the xbox to any depth, but the xbox can't browse the nas more than only level down--

-------------------------------------------------
it appears to me that the problem is trying to get two hard-coded samba servers to talk to each other is nearly impossible, you have to be able to configure at least one of them.
the nas has no options whatsover - the samba server appears to be embedded in the hardware, and is completely non-configurable, so i am turning my attention to the xbmc samba configuration.
____
here is what i have found out so far:

if you start a logfile when you start xbmc, it goes through a few interesting steps:

1> xbmc makes a "q" drive locally (maps it to the xbmc home)
--------------------------------------------------
logfile: "home path q is mapped to: f:\apps\xbmc (harddisk0\partition6\apps\xbmc)"
--------------------------------------------------
2> xbmc's samba attempts to look for this config file at that location when you begin to browse the network...
--------------------------------------------------
logfile:
"info smb: params.c:openconffile() - unable to open configuration file "q:\smb.conf":
info smb: no such file or directory"
--------------------------------------------------

what i have done:

i have written a simple smb.conf configuration file, which would do a few things: announce itself as an nt machine, support nt smb, allow guest access, use enhanced browsing, send an unencrypted password, (not sure about this yet), and allow hosts only in the local domain ( to make up for the open password...

the problem at hand:

if i place this smb.conf file in "q" (remembering this was mapped to the xbmc home) i still get the error message that it cannot find it...

no go - it still says:
info smb: params.c:openconffile() - unable to open configuration file "q:\smb.conf":
info smb: no such file or directory
info smb: pm_process() returned no


this is where i am now - if anybody can shed any more light on this, or let me know if i am on a wild goose chase, hopefully we can collectively find a way to get this working....
#8
you can try and open the xml file and set the samba's debuglevel to 10:

<debuglevel>10</debuglevel>

hopefully that will give us a lot of detail in your xbmc.log.

ts
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
#9
Lightbulb 
well....that sure did make a difference in the output....
(although most of it i don't understand)
i don't want to clog up this post with the whole thing, but the last line of the logfile says:

error smbdirectory->getdirectory: unable to open directory : 'smb://xbox:[email protected]/testfoldera/testfolderb/'
unix_err:'2' nt_err : '0' error : 'success'


i guess that doesn't really help the matter....oh....and it still cannot find the smb.conf file, no matter where i put it..

Huh
#10
use pastebin.com to paste the log file and then give us the resulting url.

ts
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
#11
Lightbulb 
here is my complete logfile, which leads up to the error code:


http://pastebin.ca/31132
#12
hmm.. what do your shares look like as defined in xml?
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
#13
also, please try such that your smb:// line does not contain the workgroup. and use an ip address instead of dns name.. something like:

smb://192.168.1.133/testfoldera

or

smb://user:[email protected]/testfoldera

let us know the results...

ts
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
#14
i have tried it with and without the domain previously...now i have removed it and am just using the
smb://username:password@ipaddress/sharedfolder/
format, it gave me the same result however - here is the output:

http://pastebin.ca/31214

-------------------------------------------

not sure what you meant by this:

"what do your shares look like as defined in xml?"

the shared directories (on the nas) are not 'real' directories that i can browse into and set permissions on. they appear to be 'network directories' to all of the windows machines - but within those directories i can browse into and create real directories, with properties, etc....(at least from the pcs)

i doubt this is what you were asking about, however...

thanks,

bryan
#15
i'm asking what your shares look like in xboxmediacenter.xml.

ts
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Logout Mark Read Team Forum Stats Members Help
SMB Errors: GetDirectory (smb:...) failed0