PMS as a service

Thanks, I’ve tried redownloading 1.1.4 with no success. I also went back to 1.1.3 and had the same issue.
Do I need to put the msi in any particular location?

Trying to install PMSService, downloaded and don’t see a .exe or a WIKI on how to install…

@Hassled1 said:
Thanks, I’ve tried redownloading 1.1.4 with no success. I also went back to 1.1.3 and had the same issue.
Do I need to put the msi in any particular location?

No, msi’s normally unpack to your system temp folder I think. It’s very strange. Obviously you’ve installed other software without issue? I’d maybe try a cleaner software like ccleaner or something, see if that helps.

@marc0nline said:
Trying to install PMSService, downloaded and don’t see a .exe or a WIKI on how to install…

You must not have downloaded the msi from the releases page that’s discussed and linked to, in the first post of this thread then.

I’ve tried twice to run 1.1.4 and keep getting the error “Failed to grant ‘login as service’ rights to user, (-2147023564 Office1
ame)”. Office1 is the name of the computer on the network and my Plex username would be where name is.

@Dominic26 said:
I’ve tried twice to run 1.1.4 and keep getting the error “Failed to grant ‘login as service’ rights to user, (-2147023564 Office1
ame)”. Office1 is the name of the computer on the network and my Plex username would be where name is.

The error is stating that the installer wasn’t able to add the login as a service right to that user. You’ll need to do it yourself then run the installer again.

To add the log on as a service right to an account,

  1. open local security policy (control panel>administrative tools>local security policy).
  2. In the console tree, double click local policies and then click user rights assignment
  3. In the details pane, double click log on as a service.
  4. Click add user or group then add the account to the list.

Windows 10 - It did this (took 10 seconds) works well.

https://support.microsoft.com/en-us/help/4026268/windows-change-startup-apps-in-windows-10

To change which apps run at startup, press and hold (or right-click) the Start button, select Task Manager, and then select the Startup tab. Choose an app, then select Enable or Disable.
To add or remove an app from the Startup tab, press the Windows Logo Key + R, type shell:startup, and then select OK. This opens the Startup folder. Select Start . Find the app you’re looking to add or remove, and press and hold (or right-click) it. Select More > Open File Location. In the file location folder, press and hold (or right-click) the app and select Copy. Paste the shortcut to your app into the Startup folder to have it run at startup.

@“oscar.calvo” said:
I am noticing that Plex is not detecting hardware acceleration for transcoding.
It seems to happen because session 0 does not have access to hardware drivers.

More in this link:http://forums.plex.tv/discussion/306168/dvr-transcode-ignored-on-hdhomerun-prime#latest
and
https://forums.plex.tv/discussion/294293/plex-hardware-transcoding-not-working-for-me-am-i-missing-something-simple

Have you tried to use interactive services?

  • Enable interactive services
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows" /v "NoInteractiveServices" /t REG_DWORD /d "0" /f

  • Create service with type “interact”
    sc create plex binpath= "cmd.exe /k start /WAIT "C:\whateveryourstartupscriptis.bat"" type= own type= interact >NUL

  • start it
    sc start plex >NUL

new version 1.1.5. resolves issue of plex processes not being stopped properly when the service itself is stopped from the services snap in.

@cjmurph said:

@marc0nline said:
Trying to install PMSService, downloaded and don’t see a .exe or a WIKI on how to install…

You must not have downloaded the msi from the releases page that’s discussed and linked to, in the first post of this thread then.

Thanks!

Should I uncheck “Start Plex Media Server At Login” before installing the service? And is there anything else I should do before installing the service?

@Dominic26 said:
Should I uncheck “Start Plex Media Server At Login” before installing the service? And is there anything else I should do before installing the service?

Just read the first post, it should have the information you need. The most common problem for people is mapped drives, but there’s a drive mapping option in the service now, so that should be less of an issue.

I am currently using NSSM, and it works flawlessly. No problems with updates, no logging in necessary, and light weight using CMD.

https://nssm.cc/

Just to check if I understand correctly, if I want to update my server while running PmsService:

  1. Stop Plex Media Server using the taskbar icon
  2. Download the latest version of PMS from the Plex website
  3. Run the installer like normal (i.e. install the latest Plex version “over” the current install)
  4. Restart the server using the taskbar icon

Is that right?

Are there any downsides to installing a new version of PMS over an old one as opposed to using the web interface to update?

@theramsplex said:
Just to check if I understand correctly, if I want to update my server while running PmsService:

  1. Stop Plex Media Server using the taskbar icon
  2. Download the latest version of PMS from the Plex website
  3. Run the installer like normal (i.e. install the latest Plex version “over” the current install)
  4. Restart the server using the taskbar icon

Is that right?

Are there any downsides to installing a new version of PMS over an old one as opposed to using the web interface to update?

For task bar icon - yes the Plex Service Tray App icon labelled Manage Plex Media Server Service
The above steps are correct if you use the same windows account for the install and for running the service.
I have a complication in that the service runs in a non-admin account whereas the install is run using an admin account - so I have an extra step before restarting to delete the Run registry key for Plex Media Server.exe for the install user

If you are using the service you must never use the web interface.
You can install on top - no issue.
For downgrades, you must uninstall and then install

Under users I had my daughter listed as in my home (I’ve since removed her from my home). This was causing me to enter a 4 digit pin to get onto Plex. Could this be the reason I’ve been having so much trouble with the service?

@Dominic26 said:
Under users I had my daughter listed as in my home (I’ve since removed her from my home). This was causing me to enter a 4 digit pin to get onto Plex. Could this be the reason I’ve been having so much trouble with the service?

No, it’s unrelated.

What problems are you having? I see your post earlier about the user not having log on as a service permission, that’s pretty common. Anything else?

Just as a quick question is pmsservice compatible with automatic update through plex itself? Currently I have implemented an own custom update mechanism, which manually stops the service/plex, does the update and start the service/plex again.

@daeks said:
Just as a quick question is pmsservice compatible with automatic update through plex itself? Currently I have implemented an own custom update mechanism, which manually stops the service/plex, does the update and start the service/plex again.

I’m wondering this as well? I was just about to set up PlexServerAutoUpdater.

@daeks said:
Just as a quick question is pmsservice compatible with automatic update through plex itself? Currently I have implemented an own custom update mechanism, which manually stops the service/plex, does the update and start the service/plex again.

The issue is that the default behaviour of the service is to restart Plex if it stops. Updating via the web interface or automatically stops Plex before installing the new version. If the service attempts to restart Plex while the installer is running it can corrupt the library.

The behaviour can be changed in the service settings, and/or the delay before a restart can be made large enough to allow the install to finish. This is not definitive though and may still break everything.

The only nice way would be for the service to see Plex exit with a certain exit code and therefore not restart Plex. The service would then need to track the installer and wait for it to end before starting Plex.

Honestly, it’s so much mucking around for such a minor inconvenience. I update my Plex install maybe every 3 months or so. It takes a couple of minutes tops to log into my server, stop Plex, install the new version and start Plex again all via the tray application.