Ticket #321 (closed Defect: invalid)

Opened 5 years ago

Last modified 4 years ago

Symlinks not working in Sapphire 1.0b7p6 on AppleTV 2.4

Reported by: vmnrao Owned by:
Priority: normal Milestone:
Component: Other Version: 1.0b7
Keywords: Cc:

Description

I am using Sapphire 1.0b7p6 on AppleTV OS 2.4. I have 3 volumes (call them A, B, C) mounted on Sapphire and I have created symbolic links to directories on drives B and C on drive A. However, while Sapphire sees the non-symlink directories in drive A, it does not display the Symlink directories. These directories are visible on NitoTV, however.

Change History

comment:1 follow-up: ↓ 2 Changed 5 years ago by gbooker

  • Milestone set to Awaiting User Feedback

comment:2 in reply to: ↑ 1 Changed 5 years ago by vmnrao

Replying to gbooker:

gbooker- sorry I am relatively new to Trac. I looked through the Bug Reporting post, and I'm not sure if you'd like me to post additional information, or if perhaps I didn't search correctly and this problem has already been reported. Please let me know and I'll help out as best I can. Thanks!

comment:3 Changed 5 years ago by gbooker

Bullet point 3 and on

comment:4 Changed 4 years ago by vmnrao

I look into this further, and I simplified this: I have 3 volumes: A, B, C. All 3 are mounted on Sapphire. I created symlinks to directories on B and C and put the symlinks on A. This way, all of my content is now accessible via A. However, Sapphire only shows a few of the symlinked directories- not all of them. And I cannot find a pattern in those it displays- it shows some symlinks from volume B and some from volume C, but it displays only 8 symlinks when there should be 65 symlinks showing.

I checked the console log shows and it shows nothing I can see regarding this problem. I verified it was logging at the time of the problem,and rebootewd and tried it a few times to make sure. Console log follows:

Oct 27 00:24:18 AppleTV /System/Library/PrivateFrameworks/AppleTV.framework/Resources/SettingsHelper: Request to change power settings: 0
Oct 27 00:24:18 AppleTV /System/Library/PrivateFrameworks/AppleTV.framework/Resources/SettingsHelper: WDOG: reset boot count to zero
2009-10-27 00:24:38.730 Finder[198] success loading AppleShareClient
2009-10-27 00:24:38.826 Finder[198] success loading DVDPlayback.framework
2009-10-27 00:24:40.084 Finder[198] [DEBUG] +[XBMCAppliance initialize]
2009-10-27 00:24:40.087 Finder[198] [INFO]  Launcher running in pure mode
2009-10-27 00:24:40.087 Finder[198] [DEBUG] +[XBMCAppliance className]
2009-10-27 00:24:40.296 Finder[198] [DEBUG] +[XBMCAppliance className] called for whitelist check, so I'm lying, m'kay?
2009-10-27 00:25:24.687 Finder[198] Save successful
2009-10-27 00:25:33.003 Finder[198] Save successful

comment:5 follow-up: ↓ 6 Changed 4 years ago by gbooker

Why do you bother with symlinks in the first place? Sapphire can browse all drives, and you can create arbitrary directories as collections.

Did you create the symlinks with the proper capitalization? Since it is possible to create drives which are case sensitive, Sapphire is case sensitive, but the default is for a filesystem to be case insensitive.

Have you told Sapphire to not import any collections?

comment:6 in reply to: ↑ 5 Changed 4 years ago by vmnrao

I am using symlinks because I have thousands of archived home videos sorted into hundreds of directories spanning multiple volumes, and I'd like to be able to access them all in one place. The easiest way I can think of to do this is using symlinks to put all the directories on one volume, and access them from there. I am curious why the symlinks are not showing up properly in Sapphire- this should work, should it not? NitoTV shows and accesses the same symlink directories just fine, so I am pretty sure this is a Sapphire bug.

And yes, I have told Sapphire not to import any collections so far.

comment:7 Changed 4 years ago by gbooker

Could you post the metaData.sapphireDataV2 file so I can examine it. Also, it would be helpful to know the locations of the symlinks as well as where they are pointing. An "ls -l" would likely fulfill this. Lastly, it would be helpful to know some examples of Symlinks which are working, and those which are not.

comment:8 Changed 4 years ago by vmnrao

Thanks, gbooker. Here is the info you requested (note I am testing it on my TV show collection right now as my videos are being converted- I am aware of the proper way to configure movies/TV shows with IMDB/TV information retrieval):

  1. metaData.sapphireDataV2 file:

This file exceeds the attachment size limit, so you can find it here:  http://vikram-rao.com/metaData.sapphireDataV2

  1. Location of symlinks and where they are pointing (results of ls -l):
    ALL SYMLINKS:
    -bash-2.05b$ ls -l
    total 1040
    lrwxr-xr-x   1 frontrow  frontrow  34 Oct 27 00:11 60_Minutes symlink -> /Volumes/HANDBRAKE2/_TV/60_Minutes
    lrwxr-xr-x   1 frontrow  frontrow  52 Oct  3 00:46 A-Team, The -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/A-Team, The
    lrwxr-xr-x   1 frontrow  frontrow  48 Oct  6 19:04 Airwolf -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Airwolf
    lrwxr-xr-x   1 frontrow  frontrow  49 Oct 27 00:11 Alfred Hitchcock Presents symlink -> /Volumes/HANDBRAKE2/_TV/Alfred Hitchcock Presents
    lrwxr-xr-x   1 frontrow  frontrow  47 Oct 27 00:11 Andy Griffith Show, The symlink -> /Volumes/HANDBRAKE2/_TV/Andy Griffith Show, The
    lrwxr-xr-x   1 frontrow  frontrow  61 Oct  4 05:30 Battlestar Galactica -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Battlestar Galactica
    lrwxr-xr-x   1 frontrow  frontrow  58 Oct  6 19:07 Bionic Woman, The -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Bionic Woman, The
    lrwxr-xr-x   1 frontrow  frontrow  48 Oct 27 00:11 Brady Bunch Variety Hour symlink -> /Volumes/HANDBRAKE2/_TV/Brady Bunch Variety Hour
    lrwxr-xr-x   1 frontrow  frontrow  35 Oct 27 00:11 Brady Bunch symlink -> /Volumes/HANDBRAKE2/_TV/Brady Bunch
    lrwxr-xr-x   1 frontrow  frontrow  44 Oct 27 00:11 Brothers and Sisters symlink -> /Volumes/HANDBRAKE2/_TV/Brothers and Sisters
    lrwxr-xr-x   1 frontrow  frontrow  53 Oct 27 00:11 CSI Crime Scene Investigation symlink -> /Volumes/HANDBRAKE2/_TV/CSI Crime Scene Investigation
    lrwxr-xr-x   1 frontrow  frontrow  43 Oct 27 00:11 Chappelle Show, The symlink -> /Volumes/HANDBRAKE2/_TV/Chappelle Show, The
    lrwxr-xr-x   1 frontrow  frontrow  33 Oct 27 00:11 Cold Case symlink -> /Volumes/HANDBRAKE2/_TV/Cold Case
    lrwxr-xr-x   1 frontrow  frontrow  31 Oct 27 00:11 Columbo symlink -> /Volumes/HANDBRAKE2/_TV/Columbo
    lrwxr-xr-x   1 frontrow  frontrow  37 Oct 27 00:11 Conan O'brien symlink -> /Volumes/HANDBRAKE2/_TV/Conan O'brien
    lrwxr-xr-x   1 frontrow  frontrow  39 Oct 27 00:11 Cosby Show, The symlink -> /Volumes/HANDBRAKE2/_TV/Cosby Show, The
    lrwxr-xr-x   1 frontrow  frontrow  47 Oct 29 02:22 Dallas symlink -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Dallas
    lrwxr-xr-x   1 frontrow  frontrow  53 Oct 12 01:45 Dark Shadows -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Dark Shadows
    lrwxr-xr-x   1 frontrow  frontrow  54 Oct  5 01:57 Early Edition -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Early Edition
    lrwxr-xr-x   1 frontrow  frontrow  47 Oct 27 00:11 Everybody Loves Raymond symlink -> /Volumes/HANDBRAKE2/_TV/Everybody Loves Raymond
    lrwxr-xr-x   1 frontrow  frontrow  35 Oct 27 00:11 Family Ties symlink -> /Volumes/HANDBRAKE2/_TV/Family Ties
    lrwxr-xr-x   1 frontrow  frontrow  47 Oct 27 00:11 Flintstones, The (1962) symlink -> /Volumes/HANDBRAKE2/_TV/Flintstones, The (1962)
    lrwxr-xr-x   1 frontrow  frontrow  31 Oct 27 00:11 Frasier symlink -> /Volumes/HANDBRAKE2/_TV/Frasier
    lrwxr-xr-x   1 frontrow  frontrow  41 Oct 27 00:11 Gilligan's Island symlink -> /Volumes/HANDBRAKE2/_TV/Gilligan's Island
    lrwxr-xr-x   1 frontrow  frontrow  39 Oct 27 00:11 Gomer Pyle USMC symlink -> /Volumes/HANDBRAKE2/_TV/Gomer Pyle USMC
    lrwxr-xr-x   1 frontrow  frontrow  34 Oct 27 00:11 Hills, The symlink -> /Volumes/HANDBRAKE2/_TV/Hills, The
    lrwxr-xr-x   1 frontrow  frontrow  37 Oct 27 00:11 Homicide LOTS symlink -> /Volumes/HANDBRAKE2/_TV/Homicide LOTS
    lrwxr-xr-x   1 frontrow  frontrow  42 Oct 27 00:11 I Dream of Jeannie symlink -> /Volumes/HANDBRAKE2/_TV/I Dream of Jeannie
    lrwxr-xr-x   1 frontrow  frontrow  52 Oct  6 19:07 I Love Lucy -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/I Love Lucy
    lrwxr-xr-x   1 frontrow  frontrow  44 Oct 27 00:11 Incredible Hulk, The symlink -> /Volumes/HANDBRAKE2/_TV/Incredible Hulk, The
    lrwxr-xr-x   1 frontrow  frontrow  39 Oct 27 00:11 Jeffersons, The symlink -> /Volumes/HANDBRAKE2/_TV/Jeffersons, The
    lrwxr-xr-x   1 frontrow  frontrow  46 Oct 27 00:11 Knight Rider (Classic) symlink -> /Volumes/HANDBRAKE2/_TV/Knight Rider (Classic)
    lrwxr-xr-x   1 frontrow  frontrow  42 Oct 27 00:11 Land of the Giants symlink -> /Volumes/HANDBRAKE2/_TV/Land of the Giants
    lrwxr-xr-x   1 frontrow  frontrow  53 Oct 27 00:11 Law and Order Criminal Intent symlink -> /Volumes/HANDBRAKE2/_TV/Law and Order Criminal Intent
    lrwxr-xr-x   1 frontrow  frontrow  33 Oct 27 00:11 Letterman symlink -> /Volumes/HANDBRAKE2/_TV/Letterman
    lrwxr-xr-x   1 frontrow  frontrow  36 Oct 27 00:11 Looney Toons symlink -> /Volumes/HANDBRAKE2/_TV/Looney Toons
    lrwxr-xr-x   1 frontrow  frontrow  28 Oct 27 00:11 Lost symlink -> /Volumes/HANDBRAKE2/_TV/Lost
    lrwxr-xr-x   1 frontrow  frontrow  39 Oct 27 00:11 MASH_S11_D3.m4v symlink -> /Volumes/HANDBRAKE2/_TV/MASH_S11_D3.m4v
    lrwxr-xr-x   1 frontrow  frontrow  41 Oct 27 00:11 Northern Exposure symlink -> /Volumes/HANDBRAKE2/_TV/Northern Exposure
    lrwxr-xr-x   1 frontrow  frontrow  36 Oct 27 00:11 Outer Limits symlink -> /Volumes/HANDBRAKE2/_TV/Outer Limits
    lrwxr-xr-x   1 frontrow  frontrow  36 Oct 27 00:11 Quantum Leap symlink -> /Volumes/HANDBRAKE2/_TV/Quantum Leap
    lrwxr-xr-x   1 frontrow  frontrow  32 Oct 27 00:11 Seinfeld symlink -> /Volumes/HANDBRAKE2/_TV/Seinfeld
    lrwxr-xr-x   1 frontrow  frontrow  37 Oct 27 00:11 Simpsons, The symlink -> /Volumes/HANDBRAKE2/_TV/Simpsons, The
    lrwxr-xr-x   1 frontrow  frontrow  68 Oct  6 19:07 Six Million Dollar Man, The -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Six Million Dollar Man, The
    lrwxr-xr-x   1 frontrow  frontrow  55 Oct 27 00:11 South Park - Collectors Edition symlink -> /Volumes/HANDBRAKE2/_TV/South Park - Collectors Edition
    lrwxr-xr-x   1 frontrow  frontrow  33 Oct 27 00:11 Spin_City symlink -> /Volumes/HANDBRAKE2/_TV/Spin_City
    lrwxr-xr-x   1 frontrow  frontrow  66 Oct 21 10:21 Star Trek Animated Series -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Star Trek Animated Series
    lrwxr-xr-x   1 frontrow  frontrow  63 Oct  4 14:13 Star Trek Deep Space 9 -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Star Trek Deep Space 9
    lrwxr-xr-x   1 frontrow  frontrow  61 Oct  6 19:07 Star Trek Enterprise -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Star Trek Enterprise
    lrwxr-xr-x   1 frontrow  frontrow  44 Oct 27 00:11 Star Trek TNG HI-RES symlink -> /Volumes/HANDBRAKE2/_TV/Star Trek TNG HI-RES
    lrwxr-xr-x   1 frontrow  frontrow  44 Oct 27 00:11 Star Trek TNG LO-RES symlink -> /Volumes/HANDBRAKE2/_TV/Star Trek TNG LO-RES
    lrwxr-xr-x   1 frontrow  frontrow  46 Oct 27 00:11 Star Trek TOS Enhanced symlink -> /Volumes/HANDBRAKE2/_TV/Star Trek TOS Enhanced
    lrwxr-xr-x   1 frontrow  frontrow  58 Oct  3 00:46 Star Trek Voyager -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Star Trek Voyager
    lrwxr-xr-x   1 frontrow  frontrow  37 Oct 27 00:11 Takedown, The symlink -> /Volumes/HANDBRAKE2/_TV/Takedown, The
    lrwxr-xr-x   1 frontrow  frontrow  61 Oct 15 00:52 Tales from the Crypt -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Tales from the Crypt
    lrwxr-xr-x   1 frontrow  frontrow  47 Oct 27 00:11 Tales from the Darkside symlink -> /Volumes/HANDBRAKE2/_TV/Tales from the Darkside
    lrwxr-xr-x   1 frontrow  frontrow  51 Oct 22 18:57 The Ropers -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/The Ropers
    lrwxr-xr-x   1 frontrow  frontrow  37 Oct 27 00:11 The West Wing symlink -> /Volumes/HANDBRAKE2/_TV/The West Wing
    lrwxr-xr-x   1 frontrow  frontrow  48 Oct 27 00:11 Twilight Zone, The (TOR) symlink -> /Volumes/HANDBRAKE2/_TV/Twilight Zone, The (TOR)
    lrwxr-xr-x   1 frontrow  frontrow  48 Oct 27 00:11 Twilight Zone, The (VIK) symlink -> /Volumes/HANDBRAKE2/_TV/Twilight Zone, The (VIK)
    lrwxr-xr-x   1 frontrow  frontrow  41 Oct 27 00:11 Untouchables, The symlink -> /Volumes/HANDBRAKE2/_TV/Untouchables, The
    lrwxr-xr-x   1 frontrow  frontrow  60 Oct  3 03:35 Walker Texas Ranger -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Walker Texas Ranger
    lrwxr-xr-x   1 frontrow  frontrow  36 Oct 27 00:11 Yes Minister symlink -> /Volumes/HANDBRAKE2/_TV/Yes Minister
    lrwxr-xr-x   1 frontrow  frontrow  42 Oct 27 00:11 Yes Prime Minister symlink -> /Volumes/HANDBRAKE2/_TV/Yes Prime Minister
    lrwxr-xr-x   1 frontrow  frontrow  30 Oct 27 00:11 _Other symlink -> /Volumes/HANDBRAKE2/_TV/_Other
    
  1. Here's a list of ALL the symlinks that ARE working:
lrwxr-xr-x   1 frontrow  frontrow  53 Oct 27 00:11 CSI Crime Scene Investigation symlink -> /Volumes/HANDBRAKE2/_TV/CSI Crime Scene Investigation

lrwxr-xr-x   1 frontrow  frontrow  47 Oct 29 02:22 Dallas symlink -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Dallas

lrwxr-xr-x   1 frontrow  frontrow  47 Oct 27 00:11 Flintstones, The (1962) symlink -> /Volumes/HANDBRAKE2/_TV/Flintstones, The (1962)

lrwxr-xr-x   1 frontrow  frontrow  46 Oct 27 00:11 Knight Rider (Classic) symlink -> /Volumes/HANDBRAKE2/_TV/Knight Rider (Classic)

lrwxr-xr-x   1 frontrow  frontrow  68 Oct  6 19:07 Six Million Dollar Man, The -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Six Million Dollar Man, The

lrwxr-xr-x   1 frontrow  frontrow  61 Oct  6 19:07 Star Trek Enterprise -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Star Trek Enterprise

lrwxr-xr-x   1 frontrow  frontrow  61 Oct 15 00:52 Tales from the Crypt -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Tales from the Crypt

lrwxr-xr-x   1 frontrow  frontrow  60 Oct  3 03:35 Walker Texas Ranger -> /Volumes/HANDBRAKE2_BACKUP/HB3_MAIN/_TV2/Walker Texas Ranger

Please let me know if you need any additional information.

comment:9 follow-up: ↓ 10 Changed 4 years ago by gbooker

  • Status changed from new to closed
  • Resolution set to invalid
  • Milestone Awaiting User Feedback deleted

In every single case of a symlink that works, Sapphire knows of an actual file in that directory. In every single case where the symlink does not work, Sapphire does not know of an actual file in that directory. Since you have not conducted an actual import, Sapphire does not know of a majority of the files. Even just the scanning stage of the import will be sufficient for it to locate these files.

This likely means that you are browsing in sapphire with the unwatched only filter. This filter does not search for files it does not know about for efficiency purposes. Hit the left arrow in any browser to change the filter.

Last thing to note: Sapphire use a sqlite database for checking the existence of files in knows about. This is very at performing lookups, checking for certain types of files within a directory structure, etc.... Symlinks require Sapphire to perform several operations which are significantly slower, namely several lookups per symlink. I strongly recommend that you abandon using Symlinks with Sapphire for the sake of speed. If you try browsing using the unwatched or favorite filters, you will notice this speed hit with symlinks (the speed hit without symlinks is practically unnoticeable). Tell it to do an import, and let its virtual directories serve the purpose in which you created the symlinks in the first place. If you only want Sapphire to look in certain places, go into its settings, tell it to not import your collections, then manually browse to a directory containing your shows, such as /Volumes/HANDBRAKE2/_TV, set that directory as a collection (mark menu, right arrow), and make sure that collection is marked to be imported.
Sapphire was created because we had the exact same situation and we got tired of creating Symlinks just so we could browse our shows in a sensible manner. Now, we don't have to organize our media because Sapphire's virtual directories do that for us. I personally have data strewn across 3 drives, soon to be 4, and the other developer has even more.

Since I strongly believe that the first two paragraphs describe your situation, then I do not believe this is a bug in Sapphire. As such, this is being marked as invalid. If that is not the case, reply with anything else you can think of, and I'll reopen the ticket.

comment:10 in reply to: ↑ 9 Changed 4 years ago by vmnrao

Sorry for bothering you with this. You are, of course, correct. I simply did not populate the file list to update the listing.

Note: See TracTickets for help on using tickets.