Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

None of my iDevices can read my iTunes library after an hour of availibility. When I first start iTunes I can read the library, but after about 30 minutes my iPad's and iPhones can no longer access the library. I see it in the shared list, but no access.

None of my iDevices can read my iTunes library after about 30 minutes. My iDevices lose connection to my library and I have to do one of the three following things in iTunes to regain connectivity: 1. Restart iTunes 2: Stop / Start Home Services 3: Start playing a song.

I'ts as if iTunes goes into a background or sleep mode. During the loss of connectivity my iDevices show that there's a library shared, but I cannot connect to it.

iPhone 4, iOS 5

Posted on May 13, 2012 1:34 PM

Reply
221 replies

Aug 1, 2012 7:40 AM in response to SilverSevens

it's worked for me too.. this has been bugging me for months !


I put my ATV3 back to wireless from wired ét Violá - no homeshare issues now for 3 days.


what bugs me about all of this is that I recall putting my old ATV2 onto a wired network to resolve wi-fi issues.. now it looks like ATV3 has the opposite problem. Regardless, I wish Apple would test things like this a bit better, before they release their updates on the unsuspecting world.

Aug 2, 2012 11:01 AM in response to aut0maticdan

Your script has been quite helpful, many thanks. Here's a suggested patch though



--- homesharing-keepalive.rb.orig 2012-08-02 10:55:13.000000000 -0700 +++ homesharing-keepalive.rb 2012-08-02 10:55:13.000000000 -0700 @@ -20,6 +20,16 @@ puts "Home sharing is broken. I am going to restart iTunes." `osascript -e 'tell application "iTunes" to quit'` # exit iTunes sleep 10 # give iTunes time to shut down + cont = 1 + while cont == 1 do + if `ps -eo uid,pid,comm | egrep 'iTunes$'` != "" + puts "iTunes failed to stop.. continuing loop" + sleep 10 + else + puts "Ok, iTunes successfully stopped" + cont = 0 + end + end `open -a iTunes` # start iTunes sleep 30 # to avoid getting into an iTunes restart loop puts "iTunes restarted"


I added this after several times coming home (or waking up) to a case where the script had attempted to stop iTunes and either due to it thinking devices were active homesharing, active downloads, or it asking for a password (to check for downloads) and there would be a cascade of tons of windows asking me to confirm the Quit or Don't Quit.


Now the script loops until you interact with whatever popup is there and iTunes actually does exit. Then it continues on as before. Plus you don't yank it out from under an active store download if you force quit. I'm not a ruby coder at all, so please excuse any lame syntax.

Aug 18, 2012 12:15 AM in response to mireki1975

I am so glad I found this thread.


I have two Apple TVs, one wireless one wired. Also have a few iPhones, iPads, iPod. Frequent problems with iTunes Home Sharing failing to respond on any Apple TV or iDevice, requiring restarting iTunes on my (headless) Mac Mini. Annoying to say the least.


So, tried the script from SilverSevens which reduced the incidence but not 100%, I still had one instance where Home Sharing would fail.


Continued reading the thread to the end, and found the later advice: Make sure any wired Apple TVs are set to never sleep.


So, wired Apple TV: Set it to never sleep, and guess what? 7 days straight now without one Home Sharing failure. The script has sat there silently without any output for that whole week.


Now, there's been a number of iTunes and Apple TV updates, so I'm not sure exactly which version it started failing, or whether it was when I added a second Apple TV to the network. But who cares! With the help of you guys, my networked home is back to its old self!


Thanks everyone.

Aug 18, 2012 12:43 AM in response to rmcq1

Rmcq1: Thank you, but script credit should go to aut0maticdan as it is his creation and an excellent creation. Mmarionsd1 also made a patch for the script. We actually found the 'wired' resolution on another thread and incorporated it into ours after doing some exhaustive research on the issue.

But again, thank you for posting that this worked for you. Spread the word that you found a fix that can work. We're looking for all the help we can get and growing the thread so that maybe, oh maybe apple will notice.

Aug 29, 2012 10:03 PM in response to SilverSevens

Hi all just thought I'd thank you all for giving me some light reading while I've been sat awake since 3am.


So this problem has been bugging me so much for a few months now, it hasn't been so bad as I use splashtop desktop on my iPad so it's easy to port in to my Mac Mini (which I have as my media server) and reboot iTunes, even if I'm out of the house.


After reading nearly all the previous posts then seeing the potential, and now confirmed "fix" I thought I would try the method here.


My Set Up

Mac Mini using a shared library for all my media, photos sharing etc.

2 ATV2 In two bedrooms, wi-fi

1 ATV3 Main TV wired

3 iPads ( 2's and one 3)

3 iPhones

1 iPod touch


Right I thought, iTunes has bombed again after a restart about 6 hours ago I'll go make a coffee and try the ATV3 on wifi. Coffee in hand I unplugged the ATV3 while I had iTunes open on my TV. Just out of curiosity I tried to connect my iPad to the shared Video library without having restarted iTunes, and BAM, connected straight away no loading time it just connected straight up!


I find this hard to believe that Apple can't fix this if it does indeed appear to be a ATV3 sticking open ports. Wonder how many first time Apple users there are out there who are getting frustrated at something like this.


btw I have noticed the high number of time the ATV3 seems to flick on and off all the time. Is this the cause of the sticking problem I wonder ?

None of my iDevices can read my iTunes library after an hour of availibility. When I first start iTunes I can read the library, but after about 30 minutes my iPad's and iPhones can no longer access the library. I see it in the shared list, but no access.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.