new AFPClient for iOS/OSX <--SOLUTION FOR LION USERS

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Memphiz Offline
Team-XBMC Developer
Posts: 7,665
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #101
ctawn Wrote:OK, I now used the Sep 23 nightly with the same problem(s):

1. Tried to play a film called "9 Naga" located on Volume "Rakus" with the "no longer exists in your library" error.

2. many thumbnails and fanart still broken in Movie library.

Here's the xbmc.log:

http://pastebin.com/KZdC3N6M

I noticed a few things from the log:

1. I see no mention of the movie I tried to play ("9 Naga").

2. However I repeatedly see 4 "OpenDir" messages related to 4 OTHER movies in the same volume & directory, that suggest that smb:// is somehow still being used. (Even though I changed everything to afp:// in the .db files, AFAIK.)

Here's a "ls -al"

Code:
MacPro:XBMC ctawn$ ls -al
total 56
drwx------  12 ctawn  staff   408 Mar  6  2011 .
drwxr-xr-x  11 ctawn  admin   374 Jul 21  2009 ..
-rw-r--r--@  1 ctawn  staff  6148 Jun 25  2010 .DS_Store
-rw-r--r--   1 ctawn  staff     0 Jul 21  2009 .com.apple.timemachine.supported
drwxr-xr-x   5 ctawn  staff   170 Jul 21  2009 Cats
drwxr-xr-x  11 ctawn  staff   374 Jul 25  2009 Music
drwxr-xr-x   3 ctawn  staff   102 Jul 21  2009 Pictures
lrwxr-xr-x   1 ctawn  staff    30 Jul 21  2009 Video [Gendut] symlink -> /Volumes/Gendut/Video [Gendut]
lrwxr-xr-x   1 ctawn  staff    34 Aug  4  2009 Video [HumuHumu] symlink -> /Volumes/HumuHumu/Video [HumuHumu]
lrwxr-xr-x   1 ctawn  staff    48 Mar  6  2011 Video [Komodo-iTunes] symlink -> /Volumes/Komodo/Music/iTunes Music Folder/Movies
lrwxr-xr-x   1 ctawn  staff    26 Jul 21  2009 Video [Naga] symlink -> /Volumes/Naga/Video [Naga]
lrwxr-xr-x   1 ctawn  staff    28 Jul 21  2009 Video [Rakus] symlink -> /Volumes/Rakus/Video [Rakus]


Symlinks into other volumes definitily won't work. Sorry if i missunderstood you before.

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
Memphiz Offline
Team-XBMC Developer
Posts: 7,665
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #102
Paulkai Wrote:I just wonder from reading the above posts, is there a problem with afp share if you are using lion, no matter which build I have tried I can't get afp to work.

Paul

Don't know what i should say ... but normally in forums only users which have problems post something. I would like to help you - but i don't know which i should try else for reproducing that behaviour here. And i can't fix things i don't see Sad

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
Doombelly Offline
Member
Posts: 54
Joined: Jan 2011
Reputation: 0
Post: #103
Doombelly Wrote:I just installed the latest nightly. I have been using AFP a few days now with no problems and better performance than NFS.

However with the new build installed i can no longer get it to update my library. Its scans movies and tv show but dosnt find anything.

This is what it says in the log (the same lines for all my content):

[HTML]01:02:03 T:122101760 DEBUG: AFP: Using anonymous authentication.
01:02:03 T:122101760 DEBUG: VideoInfoScanner: No (new) information was found in dir afp://10.0.1.8:548/tvshows/Entourage/[/HTML]

However i know that there are new shows to update. Any ideas?

hmm... update.. some might need the beginning of the scan log:

[HTML]01:01:54 T:122101760 NOTICE: VideoInfoScanner: Starting scan ..
01:01:54 T:122101760 DEBUG: AFP: Using anonymous authentication.
01:01:54 T:115445760 DEBUG: Previous line repeats 1 times.
01:01:54 T:115445760 DEBUG: Thread Background Loader 115445760 terminating
01:01:56 T:122101760 DEBUG: VideoInfoScanner: Rescanning dir 'afp://10.0.1.8:548/movies/' due to change (fast1315852207 != FD44DEAD83F3DAA74B50CD07FEC5551F)
01:01:56 T:122101760 DEBUG: GetMovieId (afp://10.0.1.8:548/movies/Depeche Mode - One Night in Paris - The Exciter Tour 2001.mkv), query = select idMovie from movie where idFile=569
01:01:56 T:104710144 INFO: Python, unloading python shared library because no scripts are running anymore
01:01:56 T:122101760 DEBUG: GetMovieId (afp://10.0.1.8:548/movies/louis.c.k.hilarious.2010.hdtv.xvid-fqm.avi), query = select idMovie from movie where idFile=1
01:01:56 T:122101760 DEBUG: GetMovieId (afp://10.0.1.8:548/movies/RADIOHEAD LIVE IN PRAHA.mov), query = select idMovie from movie where idFile=2
01:01:56 T:122101760 DEBUG: GetMovieId (afp://10.0.1.8:548/movies/Sammy's Adventures.m4v), query = select idMovie from movie where idFile=3
01:01:56 T:122101760 DEBUG: GetMovieId (afp://10.0.1.8:548/movies/U2_ELEVATION_2001_DISC1.mkv), query = select idMovie from movie where idFile=4
01:01:56 T:122101760 DEBUG: Mysql execute: update path set strHash='fast1315852608' where idPath=1
01:01:56 T:122101760 DEBUG: VideoInfoScanner: Finished adding information from dir afp://10.0.1.8:548/movies/
01:01:56 T:122101760 DEBUG: AFP: Using anonymous authentication.
01:01:56 T:122101760 DEBUG: VideoInfoScanner: Skipping dir 'afp://[/HTML]

Memphiz told me that this did not have anything to do with AFP. However this only happens when i connect using AFP. If I connect using NFS then it will scrap fine.

I am testing using: xbmc-20110923-7ebde3d-master-atv2.deb (I also tried xbmc-20110924-0074b5e-master-atv2.deb). I have no problem scrapping using AFP and this version: xbmc-20110908-9a72b39-master-atv2.deb.

Below is a link to a log where i first try to scan the library using an AFP connection and it finds nothing. Afterwards i delete the source and create one using NFS and then it starts scanning (i stop the scan after a few moments).

http://pastebin.com/1JVU4Qnh

Any input on this issue?
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,665
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #104
Here you see what changed between sep 8th and today ...

https://github.com/xbmc/xbmc/commits/15f...ectory.cpp

imho only the "[fix] - mark files starting with "." as hidden for" is there ... but it only hides files which start with "." ... don't know what else is going on though ...

for ruling it out enable the hidden files in your settings (settings->appearence->file lists->show hidden files and directories)

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
(This post was last modified: 2011-09-26 23:57 by Memphiz.)
find quote
Doombelly Offline
Member
Posts: 54
Joined: Jan 2011
Reputation: 0
Post: #105
Memphiz Wrote:Here you see what changed between sep 8th and today ...

https://github.com/xbmc/xbmc/commits/15f...ectory.cpp

imho only the "[fix] - mark files starting with "." as hidden for" is there ... but it only hides files which start with "." ... don't know what else is going on though ...

for ruling it out enable the hidden files in your settings (settings->appearence->file lists->show hidden files and directories)

Thanks for the answer but enabling the hidden files did not do the trick.

However it could be something like that. When i add the tvshow source using NFS (and all the other ways/times i have done this) I can see all the TV-show sub folders like tvshows/game of thrones and so on.... however using AFP in these new builds (not the one from the 8th of september) i can only choose the tvshows folder. I can not see all the subfolders or choose one of those.

If i use the "files" feature TVshows just comes out empty. Normally this can be used to see everything in the folder (both scrapped and non scraped items).

Could this have something to do with it?
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,665
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #106
Doombelly Wrote:Thanks for the answer but enabling the hidden files did not do the trick.

However it could be something like that. When i add the tvshow source using NFS (and all the other ways/times i have done this) I can see all the TV-show sub folders like tvshows/game of thrones and so on.... however using AFP in these new builds (not the one from the 8th of september) i can only choose the tvshows folder. I can not see all the subfolders or choose one of those.

If i use the "files" feature TVshows just comes out empty. Normally this can be used to see everything in the folder (both scrapped and non scraped items).

Could this have something to do with it?

yeah ... if you can't see it in file mode - scraper won't see it aswell. Do you use symlonks in your shared folders or something like that? Please post a ls -alr of your tvshows folder - and which afpserver u are using so i can try to reproduce.

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
Doombelly Offline
Member
Posts: 54
Joined: Jan 2011
Reputation: 0
Post: #107
Thanks for trying to help out!

I am not sure if this is right. However if i do your command on my synology i get the following:


http://pastebin.com/y9RRWweP

I am not sure of the AFPserver as it just comes with the NAS
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,665
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #108
please do a "ls -alR "Game of Thrones"" and paste this ... beware the R us uppercase ...

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
Doombelly Offline
Member
Posts: 54
Joined: Jan 2011
Reputation: 0
Post: #109
I get an error using Game of Thrones. Not sure if i do it right.

I pasted the result for my Dexter folder:

http://pastebin.com/jFE2Kvh6
find quote
Doombelly Offline
Member
Posts: 54
Joined: Jan 2011
Reputation: 0
Post: #110
Result for Game of thrones:


http://pastebin.com/s2A9kmD0
find quote
Post Reply