add source hangs on smb browsing
#1
running xbmc-standalon r28256
on ubuntu 8.04
on appletv

when I try to add samba resorce, I can browse the workgroup and see the computers in the workgroup, but when I click on a computer in the workgroup (to see its shares) xbmc displays "working..." indefinitely.

When still running on frontrow I got a username/password prompt here.

However:
1. if i manually add source in to resources.xml as smb://<user>:<pass>@<computer>/<share> everything works OK.
2. running smbclient -U htpc -L mediaserver displays sharenames
3. runnig smbclient without user and password gives error NT_STATUS_ACCESS_DENIED.


xbmc log is pretty short on the topic (if you disagree i will move it to pastebin):
Quote:21:22:31 T:2699754384 M:127320064 DEBUG: thread start, auto delete: 1
21:22:31 T:2699754384 M:127320064 DEBUG: OpenDir - Using authentication url smb://
21:22:31 T:3030468416 M:127320064 DEBUG: ------ Window Init (DialogBusy.xml) ------
21:22:31 T:3030468416 M:127320064 DEBUG: Alloc resources: 0.01ms (0.01 ms skin load)
21:22:32 T:3030468416 M:127258624 WARNING: CRITSEC[0xbfb7dd98]: Trying to initialze initialized section.
21:22:32 T:3030468416 M:127258624 WARNING: CRITSEC[0x8f76024]: Trying to initialze initialized section.
21:22:32 T:3030468416 M:127258624 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
21:22:39 T:2699754384 M:127279104 DEBUG: OpenDir - Using authentication url smb://WORKGROUP
21:22:39 T:3030468416 M:127279104 DEBUG: ------ Window Init (DialogBusy.xml) ------
21:22:39 T:3030468416 M:127279104 DEBUG: Alloc resources: 0.01ms (0.01 ms skin load)
21:22:40 T:3030468416 M:127279104 WARNING: CRITSEC[0xbfb7dd98]: Trying to initialze initialized section.
21:22:40 T:3030468416 M:127279104 WARNING: CRITSEC[0x8f76024]: Trying to initialze initialized section.
21:22:40 T:3030468416 M:127279104 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
21:22:48 T:2699754384 M:127287296 DEBUG: OpenDir - Using authentication url smb://MEDIASERVER
21:22:48 T:3030468416 M:127287296 DEBUG: ------ Window Init (DialogBusy.xml) ------
21:22:48 T:3030468416 M:127287296 DEBUG: Alloc resources: 0.01ms (0.01 ms skin load)
21:23:49 T:2946198416 M:127303680 NOTICE: ES: Client from 127.0.0.1 timed out
Reply
#2
i have still the same problem for a long time now. before the "servercrash" there in the forum there was some other users with this problem, so i have created an ticket (http://trac.xbmc.org/ticket/8840) about this. maybe its possible to add all your informations also to this ticket, so anyone can take an look at this (i hope so). for me its good to see i am not alone with this problem.
greetings, Stephan

Image

Image
Reply
#3
I'm having the same problem. If I manually add it work, but if I browse XBMC crashes. Crashes on Upnp too.
Reply
#4
Exact same FRUSTRATING problem >:/
I had this problem on my AMD box, but by some fluke it managed to fix itself after I purge removed samba and xbmc, then reinstalled xbmc and tried without samba... and it worked :S
So I thought "alright its sambas fault".
But then I installed samba again and it still worked, so I thought it was just a glitch.

However, now setting up an i7 xbmc box, I have the same problems, except this time the uninstall/reinstall doesn't work, and i've tried a few times, so not sure what else there is to do :/

I too would like to see this resolved.

Edit:
Just a followup... I believe the problem lies within this:
http://gitorious.org/xbmc/xbmc/commit/e711101

On my working AMD box (where it fixed itself), there seems to be an additional file in the ~/.xbmc/userdata/ called passwords.xml which is generated by the user/password box that should pop up when a share needs login details.
This file contains all the passwords i've typed in to date, with their associated directories.

So it looks like for those that this doesn't work, either the PasswordManager.cpp script isn't working properly or is not present.
Reply
#5
Alright guys i've managed to fix it again, and i think i know what it is, we have the svn repo added as well (this was my case anyway).

I had TWO repositories added before:

ppa:team-xbmc/ppa
ppa:team-xbmc-svn/ppa

I REMOVED the SVN one from my sources, so i only have ppa:team-xbmc/ppa

Then:

sudo apt-get remove --purge xbmc xbmc-standalone
and
sudo apt-get autoremove --purge

then (not sure if this is necessary but this is what i did)

sudo apt-get remove --purge samba-common
and
sudo apt-get autoremove --purge

Clear your cached packages via Synaptic Package Manager:
Settings -> Preferences -> Files -> Delete downloaded packages after installation then click Delete Cached Package Files.

Now, reinstall XBMC just from the ppa:team-xbmc/ppa repository.

So

sudo apt-get install xbmc-standalone xbmc

And now i get the username/password box popping up, rather than it hanging on "Working..."

See how you go.
Reply
#6
Merlinux Wrote:Alright guys i've managed to fix it again, and i think i know what it is, we have the svn repo added as well (this was my case anyway).

Hi Merlinux,

i dont use ubuntu or xbmc-live. i use an selfcompiled xbmc. its important to find the issue in svn so the devs can fix them, before the next release. does ist means you have now "downgraded" xbmc and dont use the svn version?
greetings, Stephan

Image

Image
Reply
#7
openelec.tv Wrote:Hi Merlinux,

i dont use ubuntu or xbmc-live. i use an selfcompiled xbmc. its important to find the issue in svn so the devs can fix them, before the next release. does ist means you have now "downgraded" xbmc and dont use the svn version?

correct, not using the SVN. So yeh they'll need to sort it out in the latest svn.
Reply
#8
Merlinux Wrote:Exact same FRUSTRATING problem >:/
I had this problem on my AMD box, but by some fluke it managed to fix itself after I purge removed samba and xbmc, then reinstalled xbmc and tried without samba... and it worked :S
So I thought "alright its sambas fault".
But then I installed samba again and it still worked, so I thought it was just a glitch.

However, now setting up an i7 xbmc box, I have the same problems, except this time the uninstall/reinstall doesn't work, and i've tried a few times, so not sure what else there is to do :/

I too would like to see this resolved.

Edit:
Just a followup... I believe the problem lies within this:
http://gitorious.org/xbmc/xbmc/commit/e711101

On my working AMD box (where it fixed itself), there seems to be an additional file in the ~/.xbmc/userdata/ called passwords.xml which is generated by the user/password box that should pop up when a share needs login details.
This file contains all the passwords i've typed in to date, with their associated directories.

So it looks like for those that this doesn't work, either the PasswordManager.cpp script isn't working properly or is not present.

Is this passwords.xml something we can create and place in there. I'm still using a 9.11 build and want to update. Made a bootable SD card to test and get browse the SMB share I need. Old build works fine..

Can I telnet into the old build and grab out that file top copy back to new build? SMB shares w/o passwords work fine..
Reply
#9
for what it's worth, i always had this problem with 9.11 and r28256. upgraded to r32246 and the issue went away.
Reply
#10
toiva Wrote:for what it's worth, i always had this problem with 9.11 and r28256. upgraded to r32246 and the issue went away.

Actually mines the other way around. Works fine with old build new one hangs...
Reply
#11
I'm having this issue with the Dharma 1 beta. I know it's open an open bug report.

I was able to access by samba shares when I added by user name and pass to the sources.xml file (i.e. <path pathversion="1">smb://user:[email protected]/TV Shows</path>).


It worked initially, but now it's hanging again. Frustrating to say the least.

Edit: I got it working again after clearing the info in the passwords.xml file found in the home userdata folder.
Reply
#12
Yea, same thing happening for me also in the Dharma beta (LIVE). Can't add my WHS smb share as a source or it freezes, but i did get it working by manually adding it.
Reply
#13
I have found a simple solution, instead of clicking Windows network(SMB), you scroll down and click add network location, leave it set to SMB add the server name, and folder share, user name and pass, don't click browse! When you add it it will add it to the list, look up a few.
Reply

Logout Mark Read Team Forum Stats Members Help
add source hangs on smb browsing0