PlexConnect icon indicating copy to clipboard operation
PlexConnect copied to clipboard

Plexconnect process hangs and has to be re-started manually

Open hamishtaplin opened this issue 12 years ago • 14 comments

Every so often Plexconnect will just hang and ATV get's stuck on 'Trailers is unavailable'. Running this:

sudo launchctl unload /Library/LaunchDaemons/com.plex.plexconnect.bash.plist

doesn't solve it and I have to find the Python processes and kill them manually before restarting the server with:

sudo launchctl load /Library/LaunchDaemons/com.plex.plexconnect.bash.plist

The logs don't show anything at all, it just stops working.

This is running on OS X 10.8.5

hamishtaplin avatar Oct 07 '14 17:10 hamishtaplin

I use to experience that challenge, especially if the show I was previously watching lasted more than 50 or 75 minutes.  Thou, I must also say that since the last (everything) update (I know, sounds like a Bagel, right?) we have not experienced the error any longer.  I'm sure the team will troubleshoot and identify a solution for us.  In the meantime and to avoid restarting PMS or PConnect, I discover that by restarting ATV, I could accomplish the same. 

Please make sure that you are running the latest versions of: Mavericks, PMS, ATV (iOS 7) & PConnect.  Once installed, restart your Mac Computer and let the software initialize the registries.  If the problem persist, while on ATV:

  1. Hold the Menu button on your Apple Remote until the screen lands on the ATV main menu screen.
  2. Navigate to "Settings" and depress the big grey button on your Apple Remote select
  3. Highlight "General Settings" at the top of the menu and depress the big grey button on your Apple Remote to select
  4. Scroll all the way down to "Restart" menu option and depress the big grey button on your Apple Remote to select (be careful, the "Restart" and "Reset" options on the menu are one above each other.  If you choose "Reset", you'll need to to re-enter all the corresponding parameters in your ATV again in order to connect to PMS & PConnect.  Not Fun, trust me, I have done it myself a couple of times and after screaming at iBaa I realize the I was been the... "donkey". 
  5. Optional: go and make yourself a cocktail or grab a snack
  6. Once ATV completed restarting, Navigate to "Trailers" and resume your enjoyment

Edwin ...your neighborhood friendly Boricua!

On Oct 07, 2014, at 10:00 AM, hamishtaplin [email protected] wrote:

Every so often Plexconnect will just hang and ATV get's stuck on 'Trailers is unavailable'. Running this: sudo launchctl unload /Library/LaunchDaemons/com.plex.plexconnect.bash.plist doesn't solve it and I have to find the Python processes and kill them manually before restarting the server with: sudo launchctl load /Library/LaunchDaemons/com.plex.plexconnect.bash.plist The logs don't show anything at all, it just stops working. This is running on OS X 10.8.5 — Reply to this email directly or view it on GitHub.=

emandino avatar Oct 07 '14 19:10 emandino

I'm seeing the same issue, as described as hamishtaplin. I noticed that if I perform an nslookup against the computer running PlexConnect, I get the following (PlexConnect running on 10.0.1.30):

 $ nslookup google.com 10.0.1.30 
;; Warning: ID mismatch: expected ID 45572, got 54236
;; Warning: ID mismatch: expected ID 45572, got 45591
;; Warning: ID mismatch: expected ID 45572, got 50542
;; connection timed out; no servers could be reached

I should note that I'm not sending all DNS traffic to PlexConnect, only from my AppleTVs. The above was just from troubleshooting the issue. I get similar results if I look up www.icloud.com, trailers.apple.com.

It seems like this happens once every 24-48 hours, but I don't feel like I've experienced the issue enough times to say for certain.

PlexConnect running on a 2008 MacPro running 10.10.1

jehanalvani avatar Dec 27 '14 17:12 jehanalvani

Experiencing the same issue here, even with a master branch from Jan. 11 - I resorted to using screen instead of a service so I could go, kill it and restart it... Hoping this'll get fixed.

unity avatar Jan 24 '15 21:01 unity

Are your PlexConnect Mac hosts wifi or Ethernet?

wahlmanj avatar Feb 05 '15 00:02 wahlmanj

I've had the same experience with both.

On Feb 4, 2015, at 7:40 PM, wahlmanj [email protected] wrote:

Are your PlexConnect Mac hosts wifi or Ethernet?

— Reply to this email directly or view it on GitHub.

jehanalvani avatar Feb 05 '15 00:02 jehanalvani

Mac is wired, hosts the PMS too, and when the process hangs, only a kill -KILL will kill it.

unity avatar Feb 15 '15 08:02 unity

Is there any further info I can give regarding this. It drives my family mad as it happens almost every day and I'm the only one who knows how to fix it!

hamishtaplin avatar Mar 18 '15 18:03 hamishtaplin

I think I've had this happen on a QNAP occasionally - if so then it seems related to attempting to get a listing (or similar) from Plex itself that takes too long (ie the By Folder list in either TV or Movies - I've got a huge library), and hitting the menu button before it finishes displaying. Can't get it to happen very often, but this is almost always the way it goes.

Updated my Plex server itself (to 0.9.11.16 from a somewhat older version) a couple of days ago - listings have sped up and not seen it get stuck since.

Rycochet avatar Mar 19 '15 09:03 Rycochet

I'm experiencing the same issue on my setup. Using the mac as a dns server instead of using the built-in dns. Once or twice a day it hangs like this, and I believe it all started after updating the apple tv to iOS 7.

PMS and PlexConnect running on a 10.6.8 mac mini.

Edit: I meant to say running 10.8.5.

aegzorz avatar Mar 22 '15 08:03 aegzorz

I've sampled the process when it hangs: https://gist.github.com/aegzorz/30ec69478ea59b3e3fc3

Looks like it's deadlocked or something. Not sure how to debug more thoroughly, any help would be much appreciated!

aegzorz avatar Apr 15 '15 07:04 aegzorz

I seem to have the same issue with my (OS X) server. How can I contribute? Logs/traces?

ptz0n avatar Jun 14 '15 08:06 ptz0n

Same issue here... consistently. Is there a verbosity level setting for the logs? Any way to enable debug logging?

sbussetti avatar Aug 12 '15 04:08 sbussetti

I have the same symptoms (same error, same frequency) but I'm running PlexConnect on Windows. Restarting the service fixes the problem, but sometimes I have to do it multiple times a day. I'd love some help on how to troubleshoot.

arijbrown avatar Sep 06 '15 23:09 arijbrown

Help requests should be posted in the forum

https://forums.plex.tv/categories/appletv-plexconnect

moodyblue avatar Feb 23 '18 09:02 moodyblue