AppleTV 2 (black) - SMB issue: "Failed to stat file"

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
halfbrick Offline
Junior Member
Posts: 1
Joined: May 2012
Reputation: 0
Post: #1
I'm running XBMC 11.0 on an ATV2 and I've added shares to two directories on my SMB shared Hard drive (TV & Movies).
The Movies directory seemed to scan OK, and now lists the movies with all album art etc.
But TV has not scanned at all.
In the log it looks like it's borking the path to each file as it scans.
The log has loads of entries like this:
Code:
20:11:37 T:83140608   ERROR: GetDirectory - Failed to stat file smb://192%2e168%2e1%2e1/Share/USBDisk%5f1/Movies/%20Clockwork%20Orange%2eavi
20:11:37 T:83140608   ERROR: GetDirectory - Failed to stat file smb://192%2e168%2e1%2e1/Share/USBDisk%5f1/Movies/eth%20MacFarlanes%20Cavalcade%20of%20Cartoon%20Comedy%2eavi
20:11:37 T:83140608   ERROR: GetDirectory - Failed to stat file smb://192%2e168%2e1%2e1/Share/USBDisk%5f1/Movies/ill%20Hicks%20%2d%20One%20Night%20Stand%2eavi

It seems like it's trimming the first character from every filename. Any idea how to fix this?

Thanks

UPDATE:
I made sure I had the latest nightly, deleted all my sources, and re-added them from the UI. Still the same error.
This used to work fine, but then I updated to the latest version. So pretty sure it's not my SMB setup.

UPDATE2:
I can browse the files in the share I added and most of them have the first character of the filename trimmed and so don't play. Some don't though.
I can't spot any pattern in those trimmed and those not.
(This post was last modified: 2012-05-06 10:27 by halfbrick.)
find quote
opperpanter Offline
Junior Member
Posts: 17
Joined: Jun 2012
Reputation: 0
Post: #2
I am having similar problems. I added a smb share as source and browsing it via Videos-Files.
The list of folders shows up, but very quickly xbmc freezes. Sometimes I can move the cursor around before it happens. It definetely happens when I press ENTER on a folder trying to enter it.

xbmc.log

Code:
20:17:41 T:1099715088   ERROR: GetDirectory - Failed to stat file smb://NAS/download/movies/%28arthouse%29%20Pedro%2eAlmod%5fvar%2eMujeres%2eal%2eBorde%2ede%2eun%2eAtaque%2​ede%2eNervios%2e1988%2eDVD5%2eNL

every time it complains about this folder, even though I never tried to enter it.
find quote
Ochrese Offline
Junior Member
Posts: 5
Joined: Feb 2013
Reputation: 0
Post: #3
Hi,

Did either of you ever get a fix to this?

I'm getting the same behaviour on RaspBMC

Code:
smb://BELKINSERVER/elements/Media/S/Planet.Earth/lanet.Earth.s01e02.mkv
07:19:53 T:2802754624   ERROR: GetDirectory - Failed to stat file smb://BELKINSERVER/elements/Media/S/Planet.Earth/lanet.Earth.s01e04.mkv
07:19:53 T:2802754624   ERROR: GetDirectory - Failed to stat file smb://BELKINSERVER/elements/Media/S/Planet.Earth/lanet.Earth.s01e06.mkv
07:19:53 T:2802754624   ERROR: GetDirectory - Failed to stat file smb://BELKINSERVER/elements/Media/S/Planet.Earth/lanet.Earth.s01e08.mkv
07:19:53 T:2802754624   ERROR: GetDirectory - Failed to stat file smb://BELKINSERVER/elements/Media/S/Planet.Earth/lanet.Earth.s01e10.mkv

Thanks,

Och
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,842
Joined: Feb 2011
Reputation: 117
Location: germany
Post: #4
use ip instead of netbios name. Netbios resolultion might be wonky on some networks ...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Ochrese Offline
Junior Member
Posts: 5
Joined: Feb 2013
Reputation: 0
Post: #5
Memphiz,

Thanks I tried using IP and it didn't make any difference. I've ended up mounting the SMB share as a local drive and using that as a source. That all works fine, the underlying Linux seems to be able to handle it correctly.

Och
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,842
Joined: Feb 2011
Reputation: 117
Location: germany
Post: #6
means you are not talking about xbmc running on ios i guess...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote