PMS as a service

Cjmurph, When Plex Media Server.exe falls over just after starting up, is it possible to get the full error logged or there is no way of that error message/code being returned to the wrapper?

PMS 0.9.9.9 crashes on launch and when manually launched outside the service wrapper, the error can be seen as 

Ordinal Not Found

The Ordinal 4445 could not be located in the dynamic link library LIBEA32.dll

But when run through the service, we just get a loop of continuous restart and all that we can see in the service log file is this:

08/04/2014 01:57:41: Plex Media Server version is 0.9.9.9. Can use startup argument.
08/04/2014 01:57:41: Plex Media Server Started.
08/04/2014 01:57:41: Plex Media Server has stopped!
08/04/2014 01:57:41: Killing Plex.
08/04/2014 01:57:41: Re-starting Plex process.
08/04/2014 01:57:51: Attempting to start Plex
08/04/2014 01:57:51: Plex Media Server version is 0.9.9.9. Can use startup argument.
08/04/2014 01:57:51: Plex Media Server Started.
08/04/2014 01:57:51: Plex Media Server has stopped!
08/04/2014 01:57:51: Killing Plex.
08/04/2014 01:57:51: Re-starting Plex process.
08/04/2014 01:58:01: Attempting to start Plex
08/04/2014 01:58:01: Plex Media Server version is 0.9.9.9. Can use startup argument.
08/04/2014 01:58:01: Plex Media Server Started.
08/04/2014 01:58:01: Plex Media Server has stopped!
08/04/2014 01:58:01: Killing Plex.
08/04/2014 01:58:01: Re-starting Plex process.
08/04/2014 01:58:11: Attempting to start Plex

and on and on .........

I could get the exit code from plex, but that's just an integer and pretty meaningless to the end user, it won't stop the endless attempts to restart. Plex has its own logs, it would be more useful to add a link to them in the task icon than try and muddy the service logs with the process output from plex. It's a pretty straight forward troubleshooting workflow imo.

I could get the exit code from plex, but that's just an integer and pretty meaningless to the end user, it won't stop the endless attempts to restart. Plex has its own logs, it would be more useful to add a link to them in the task icon than try and muddy the service logs with the process output from plex. It's a pretty straight forward troubleshooting workflow imo.

Thanks. PMS logs not available for this one. PMS 0.9.9.9 it was crashing before getting as far as logging anything. A few users got it to work by re-download but I have not as the download has the Digital Signature and is the right size.

The thread is here https://forums.plex.tv/topic/105322-error-on-launching-pms-999/

So if we get this sort of problem and it is obvious when it happens we just need to stop the service and launch it manually to troubleshoot

Thanks. PMS logs not available for this one. PMS 0.9.9.9 it was crashing before getting as far as logging anything. A few users got it to work by re-download but I have not as the download has the Digital Signature and is the right size.

The thread is here https://forums.plex.tv/topic/105322-error-on-launching-pms-999/

So if we get this sort of problem and it is obvious when it happens we just need to stop the service and launch it manually to troubleshoot

Yeah, that's what I'd do.

It may be worthwhile me only attempting x amount of restarts within a certain time frame rather than endlessly retrying though.

It may be worthwhile me only attempting x amount of restarts within a certain time frame rather than endlessly retrying though.

Agreed

Thank you cjmurph for this check here - I forgot to do the registry edit to stop PMS starting in the install account and you trapped it when the machine was restarted and the service started . Good check, User symptom is an empty library but i am pleased we did not end up with multiple processes running in different user accounts

Thank you for including this extra check

08/04/2014 18:32:24: PlexMediaServerService Started
08/04/2014 18:32:24: Plex executable found at C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe
08/04/2014 18:32:26: Attempting to start Plex
08/04/2014 18:32:26: Plex Media Server already running in session 1.
08/04/2014 18:32:26: Unable to attach to already running Plex Media Server instance. The existing instance will continue unmanaged. Please close all instances of Plex Media Server on this computer prior to starting the service
08/04/2014 18:32:26: Killing Plex.
08/04/2014 18:32:26: PlexDlnaServer Stopped.
08/04/2014 18:32:26: PlexScriptHost Stopped.
08/04/2014 18:32:26: PlexMediaServerService Stopped

What's the advantage running PMS as a service?

What's the advantage running PMS as a service?


You don't need to have a user logged on for Plex to run. Plex will be restarted if it crashes. Plex starts automatically with the system.

Thanks!

Hey guys, if I wanted to update my service app how would I go about it? Is there anything special I need to know? Or does it uninstall like any other software?

Well for best results,


stop the service.

Uninstall the service through control panel add/remove programs.

Install the new version.


It should update without needing to uninstall, but I messed up the versioning at one point so the surest way is what I have outlined above.

Well for best results,

stop the service.
Uninstall the service through control panel add/remove programs.
Install the new version.

It should update without needing to uninstall, but I messed up the versioning at one point so the surest way is what I have outlined above.

Oh? I wasn't aware of that. Maybe I should check to see what version I am running first haha. I just naturally thought it was the original version I installed all those months back.

Can I ask, when you input a username and password for this at installation do you just use your main account even if it has admin rights? Or are you meant to create a specific account for plex with less powerful rights?

Secondly I am using Server 2012 Essentials R2 but my clients are not on the domain as I used skipdomain. will my HDTV with the Samsung Plex app be able to locate this server on the servers domain?

With regard to user account, whatever you like. I use admin account, others use a more restricted account.


Domain won’t matter.

Lots of people use an admin account for Plex Media Server (service). I do not. In fact I go further than that and only have READ-ONLY Access to the media files

The Samsung Plex App version 1.0.13 (latest) has had lots of changes relating to shared Plex Media Server and Remote Access to servers. So it would find the server through the myPlex account provided the server is connected to Plex.tv / myPlex through an open port -  see Plex Media Server Connect

You should browse the Samsung forum as the new version is not available for all models at the moment and there are issues as well

@cjmurph,

I have a feature request that I do not know if you can implement or not. I know a user here who was so disturbed by the automatic updates to Web 2.0 that he built a small cmd line tool to turn it on or off at will. I really do not want to mention his name but he has it working already as we speak. So, I was thinking to myself, what if it was included in your nice Tray app (or a similar feature)? Similar to how you can easily turn on/off the Plex service? All this cmd does is write a file to a 'staging' error for the update and thus causes a permissions error which in effect causes the update download to abort itself. According to him It only affects updates to the Web app and nothing more.

I would first need to get his permission to share the cmd tool, but if he does not want to share it, would it be possible for you to create something similar please? I can't tell you enough how much I hate my Server updating itself without any input from me. Granted updates can be a good thing at times but that is for me to determine, not the Plex staff. Besides, I want to do that on a schedule that I keep and maintain myself.

Any thoughts on this idea?

I am a little confused, I do appologise.

I have this installed and it seems to be running as a service in server 2012 E R2, I have the tray icon etc. However I am confused about linking it to media etc? Do I need to also install the normal Plex Server software? If so does it matter to which user?

I am a little confused, I do appologise.

I have this installed and it seems to be running as a service in server 2012 E R2, I have the tray icon etc. However I am confused about linking it to media etc? Do I need to also install the normal Plex Server software? If so does it matter to which user?


Use the Web interface from your main pc (not the server) add sections, etc as per normal.

Ah OK, so just to confirm I do not need Plex Server installed? Just the Plex Server Service you privded here?

Will this allow automatic scanning of new media to be added to the plex library?

Ah OK, so just to confirm I do not need Plex Server installed? Just the Plex Server Service you privded here?

Will this allow automatic scanning of new media to be added to the plex library?


No, you need Plex Media server installed.