Hey there, when I set my ATV3 PLex tv settings, TV Show View, Season view and unwatched synopsis, it stays for a while but if I reboot my plex server or after some time the settings revert back to the default. I tried running plexconnect manually, changing the settings on my ATV and then closing Plex Connect via CTRL-C but the ATVSettings.cfg does not update.
There is a default setting but nothing listed under my TV UDID.
Any idea why this will not update the PLEX TV settings on my ATV3 or why the settings will not stay? Can I enter the settings manually? If so can someone post a sample so I have the syntax.
PlexConnect and server are hosted on my media server PC in the basement running WHS 2011. I connect all my devices to that server.
I have Plex Cconnect and plex server running as a service at startup. However, I tried opening plexconnect.py manually so the terminal window is open. Then I head over to my ATV and set up the TV settings the way I want. Then I power off the ATV (sleep) and go back to the server and close Plex Connect via a ctrl-c. It says shutting down so I assume that qualifies as gracefully.
The settings still do not seem to update. I do have 2 ATV's running plex however I have not touched the second one in quite a while.
>>20:50:41 DNSServer: Failed to create socket on UDP port 53: [Errno 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted
Figured it out. I was running plexconnect and server as a service at startup. Consequently the plexconnect DOS window would never come up and therefore could not be shut down properly. The UDP port 53 conflict was because the port was in use by plexconnect when the service started at server startup and then I was starting plexconnect.py manually so 2 instances were trying to run at the same time.
I stopped it starting as a service and started it manually and it updated the settings file fine.
Figured it out. I was running plexconnect and server as a service at startup. Consequently the plexconnect DOS window would never come up and therefore could not be shut down properly. The UDP port 53 conflict was because the port was in use by plexconnect when the service started at server startup and then I was starting plexconnect.py manually so 2 instances were trying to run at the same time.
I stopped it starting as a service and started it manually and it updated the settings file fine.
Thanks
How did you plexconnect as a server at startup? That would be great so that I don't have to remember to run the PlexConnect.py in a DOS window.
I just created 2 tasks under the task scheduler (Server manager - configuration - task scheduler).
the first one was for Plexconnect. Create a basic task with the following.
Under the general tab tick off "run whether user is logged in or not" and "run with highest privileges". Under "when running the task, use the following user account" you should select an account with admin privileges.
Under the triggers tab select "at system startup" from the begin the task drop down box. Make sure the enabled box is ticked on.
Under the actions tab select "start a program" from the action drop down box. Under program/script browse to your plexconnect.py file.
Under the conditions tab make sure that "start task only if the computer is idle for:" is unticked. The rest I just leave alone.
Under the settings tab I tick off the following: allow the task to be run on demand, if the task fails restart every 1 minute, If the running task does not end when requested, force it to stop. Make sure to untick "stop the task if it runs longer than."
Under the history tab I just leave it alone.
Save the task. You can see your tasks under task Scheduler Library. Make sure the task is enabled under status and says "at system startup" under triggers.
Do the exact same thing for your plexserver except point the path to your plexmediaserver.exe file.
Reboot the box and do not log in. once it's up check and see if your ATV works. Mine works every time. Remember that if you log into the box you will not see the customary Plexconnect dos window but it will still be running. If you want to see the dos window you have to disable the tasks you created, reboot the box, and then you can start plexconnect manually.
Baa - I think, if my memory is correct, I tried setting up both plex connect and plex server as a service but couldn’t make it work. Setting them up as a task does work however.
Mitch1001 - I’m not sure I understand your question. You create 2 separate tasks. One for Plexconnect.py and one for plexmediaserver.exe as per the instructions above.
If you want to save your atv tv settings first you must run plexconnect.py manually so that you get the dos window showing plexconnect running. Then Go to the atv and make whatever tv settings changes you want to the atv. Close the atv. Go back to the plex server and close the plexcommect.py program by hitting Ctrl-c. It will tell you it is shutting down. Then your plex tv settings should have saved successfully. Now you can enable or create your 2 tasks to run plexconnect and plex media server and reboot your server. Plexconnect and plex media server will start automatically at startup now.
Your atv tv settings will not update properly if you start plexconnect.py through the task manager.
Baa - I think, if my memory is correct, I tried setting up both plex connect and plex server as a service but couldn't make it work. Setting them up as a task does work however.
Mitch1001 - I'm not sure I understand your question. You create 2 separate tasks. One for Plexconnect.py and one for plexmediaserver.exe as per the instructions above.
If you want to save your atv tv settings first you must run plexconnect.py manually so that you get the dos window showing plexconnect running. Then Go to the atv and make whatever tv settings changes you want to the atv. Close the atv. Go back to the plex server and close the plexcommect.py program by hitting Ctrl-c. It will tell you it is shutting down. Then your plex tv settings should have saved successfully. Now you can enable or create your 2 tasks to run plexconnect and plex media server and reboot your server. Plexconnect and plex media server will start automatically at startup now.
Your atv tv settings will not update properly if you start plexconnect.py through the task manager.
Cheers
Chris
This is no longer true for how to run PlexConnect as a service or have it save settings.cfg when doing so, if you use the new officially supported way to run as a service ;)
You might want to update your installation at some point.
Thanks for the link and the info. I did see this and even though this is the "officially" supported way to have the software run at startup why would I want to download and install another piece of software, make sure the software is the correct version because it wont work if you accidentally download and install the wrong version, and then worry about .bat files when I can just set it up as a task and be done with it.
No muss no fuss.
Setting it up as a task seems like a much easier and cleaner way in my opinion and it works every time.
Earlier Settings were only saved on a shutdown… but during the course of events saving Settings when leaving the settings page was added as well. This means: Today it is not that important any more. On the other hand every application should have the chance to clean up behind itself…