PDA

View Full Version : SMB issue with USBEX LanDrive NAS-storage


Strat
2005-10-07, 11:49
hi guys,

i've setup smb shares from xp/2003 server without any issues in the past but this latest issue has me a bit stumped.

this week i purchased a landrive (http://usbex.com/landrive/) (manual available at link) it is an external harddrive unit with network ability (nas). through it's web interface you can share out directories via smb.

i have shared out a directory called 'public' and inside that directory there is a number of sub directories. there is no access restrictions on the public directory.

now from windows i can go into this public directory and browse it's sub directories, files etc. delete, create move what not files without any issues. no username/password required it just works as you would expect it to.

now from xbmc it's a bit different. i can access the 'public' share and the files inside it no worries. but whenever i try to go into one of it's sub directories i get a 'error --> success' error. the error in the xbmc.log is as follows:

07-10-2005 18:37:02 error smbdirectory->getdirectory: unable to open directory : 'smb://192.168.1.100/public/metal/'
unix_err:'2' nt_err : '0' error : 'success'

anyone got any decent suggestions. i have searched to no avail. i know my situation is a bit different due to using a nas drive instead of a windows/linux/mac box but hopefully someone can help.

i'm running the 3-10-05 t3ch build of xbmc and the only change i have made to my xboxmediacenter.xml file is the entry for the smb share

<bookmark>
<name>smb share</name>
<path>smb://192.168.1.100/public/</path>
</bookmark>


any help would be appreciated.

HarshReality
2005-10-07, 15:14
check your directory permissions below public, while i am not 100% certain of your situation i know that making an upper directory (at least in linux) does not mean its recursive. you may have to go through and set each directory as 777 (read,write,execute) if your wanting full access to them all.

Strat
2005-10-08, 02:29
check your directory permissions below public, while i am not 100% certain of your situation i know that making an upper directory (at least in linux) does not mean its recursive. you may have to go through and set each directory as 777 (read,write,execute) if your wanting full access to them all.
unfortunatly there is no real option like that on the web interface for the unit. :(

although the fact that it works in windows leaves me a bit puzzled.

elupus
2005-10-08, 02:52
could you check directory casing of the nas drive.. ie if public is in upper case and how metal is stored.

then make sure case is same in the bookmark

Strat
2005-10-10, 01:46
could you check directory casing of the nas drive.. ie if public is in upper case and how metal is stored.

then make sure case is same in the bookmark
checked that and they are both the same :(.

elupus
2005-10-10, 13:46
so is the log incorrect then, as public was lowercase in the bookmark and the log uppercase?

Strat
2005-10-10, 14:44
so is the log incorrect then, as public was lowercase in the bookmark and the log uppercase?
i may have copied an older log file but the error is exactly the same.

regardless i tried it with exact same case earlier today with the same results. it's definetly something odd to do with the way xbmc reads sub directories :/

Strat
2005-11-13, 04:34
bump. don't suppose anyone else has any ideas? i know i'm not alone with this one :(

justido
2005-11-14, 20:44
hi,

just getting my voice out aswell, one more user where samba share doesnt work with my nas.
i also posted this message at other nas/samba problem threads

i recenlty got my nas with samba support, a macpower pleiades usb/lan (http://www.macpower.com.tw/products/hdd3/pleiades/pd_usblan)

but unfortunatly its not working 100%, i also get those error
succes messages.
with my nas i created a public folder and shared that one
through samba, no pass. i see the folders inside public, but
cant go into any of them.
13-11-2005 16:58:58 error smbdirectory->getdirectory: unable to open directory : 'smb://192.168.0.33/public/tv/'
unix_err:'0' nt_err : '0' error : 'success'

i also created a folder test, put a pass on it, created a
subfolder and put files in them. xbmc was working for the files
inside the test root, but couldnt go into its subfolders.

btw i can create a folder, and remove it again, renaming doest work through

i tried accessing my nas through samba with windows/linux, no problems, but
with xbmc its a no-go.

it seems that xbmc still has problems with samba. ofcourse i could be jumping to
conlusions here, but people have problems with various brands, so it cant be all
of them, or can it?

oh well, just my 2 cents worth, and if any of the developers want to use me as a
test person, im willing to do so...

Strat
2005-11-15, 09:07
thanks for the reply. good to see someone else with the same issue.

i've had a pm from someone in the same boat, also seen someone else with the exact same issue posting on another forum (whirlpool.net.au)

really hope someone comes up with a solution for this issue.

happy to test if required also.

justido
2005-11-16, 19:37
hi,

btw, i did some more testing, i have the same problem with
"complex tools", it also contains a samba client.

and i flashed my linksys router with the dd-wrt firmware and
discovered it also had a samba client inside. i connected it to my
lan drive without any problems, so now windows, linux, and my
router (also linux) can all access my nas without any problems,
but xbmc doest :(

kato2307
2005-11-20, 10:41
i have the same problem with the mapower map-kc31n

majikmaker
2005-11-24, 23:45
using xbox media center with a nas (network storage drive):

i have been trying to get this to work also, same symptoms:
---the "error:success" message---
---only being able to browse down one level of the directory on the nas---
---and to add insult to injury - 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, i can ftp into it, but that doesn't help in this case...

-------------------------------------------------
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 (grrrrrr...)

____

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...

if you ftp into the xbox before you load xbmc, "q" is actually mapped to the "c" partition (maybe it just defaults to it) but i placed a copy of the smb.conf in there as well just in case...

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....

Strat
2005-12-05, 09:38
guys according to the sourceforge bug this has been fixed

date: 2005-12-03 16:15
sender: tslayer
logged in: yes
user_id=179004

should be fixed now.. thanks to darkie.

let us know..

i have yet to test the latest cvs but if anyone does let us know how you go.

http://sourceforge.net/tracker....=581838 (http://sourceforge.net/tracker/index.php?func=detail&aid=1365709&group_id=87054&atid=581838)