Problem with SMB shares
#1
I have XBMC on a range of devices at home, stretching from my AppleTV to my HTPC and all the notebooks/laptops in the house. They all connect to my central home server which dishes out the media to them. Now they all work fine except for my HTPC running Windows Vista.

The problem is this. Every time after I start XBMC, to get a video to play I have to enter the file browser and connect to the shares entering my password (it remembers the username). The password was entered when I added the shares and it is also saved as the default SMB password. I have no idea why it is doing this when all my other devices (mind you none of them running Windows) are saving passwords fine.

Any clues?
Reply
#2
You've changed the username or password after scanning to library? Unfortunately we store those credentials in the database (see http://trac.xbmc.org/ticket/5357). If so, only way to get things right is either to change the password via a sqlite editor or remove any items and re-scrape with the newly added and correct credentials.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#3
When I try to connect to my SMB shares (from my Linux box running Samba) by browsing I get "Error -1073741772: share not available". When I specify all the particulars I get a dialog asking me to "Lock preferences for smb://server/share" prompting for my username and password. I put those in and select OK and it goes away for a second then askes again.

If I just OK that dialog box (my username is already filled in but the password has nothing) then I get

Code:
Unable to connect

XBMC was unable to connect to the network location.
This could be due to the network not being connected.
Would you like to add it anyway?
Reply
#4
I have changed credentials now, to make it easier to enter (added it to the sources list as well, so no need to type password) but the problem surfaced before any such changes were made. I did, however, switch builds a few times, could that have something to do with it?
Reply
#5
Please post a full debug log using pastebin or any other similar service.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#6
While on the subject, is it just me that have slow listing over smb?
Reply
#7
First: get the latest build from the third party sticky. The error above sounds like the Atlantis build -> known error

second: If it's slow try to disable the firewall and try again (once on client once on server). Somehow it waits for a timeout and I dunno how to fix that.
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.
Reply
#8
already using the latest third party build from jester.
And disabeling the firewall does not seem like a very good idea.
Reply
#9
Why dont you try it for testing purposes anyways.
Reply
#10
I believe their is option in advancesettings.xml to remove stat option which should make it faster.
Reply
#11
Similar problems here. After upgrading samba from 3.0 to 3.2 (debian etch->lenny), xbmc started to ask for username/password of smb shares.

From xbmc.log:

Code:
21:57:48 M: 34418688   ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://user:pw@host/share'
                             unix_err:'2' nt_err : 'c0000022' error : 'Access denied'
21:57:48 M: 34418688   ERROR: DIRECTORY::CDirectory::GetDirectory - Error getting smb://user:pw@host/share/

After downgrading to the old samba version, everything works fine again.

So this problems seems to be related to samba 3.2. Unfortunately i was not able yet to find any information about any samba setting that might need to be set to have it also working with the newer version.
Reply
#12
CrashX: yeah but it shouldn't be a problem. The line is a local gbit lan so the speed should be about the same as that for local listing most of the time.
Disabeling the firewalls did nothing for me.
Reply
#13
Please post full debug logs so we can get an idea how long it takes ..
Reply
#14
haarspalter Wrote:Similar problems here. After upgrading samba from 3.0 to 3.2 (debian etch->lenny), xbmc started to ask for username/password of smb shares.
Are you sure you're running latest svn? The error log you showed reminds me of the old 8.10 version. Please try the latest version.
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.
Reply

Logout Mark Read Team Forum Stats Members Help
Problem with SMB shares0