Jump to content

Windows service on Server 2016 - won't start


Recommended Posts

Posted (edited)

I've followed the guide to create the Emby Service, I've created a few other services using NSSM with no issue, but I can't get Emby to work. 

 

The guide is a little unclear, as I wasn't sure whether to use NSSM 64 or 32bit (it's a 64bit server, as you'd expect), but I've tried both ways, and either way I get the same thing. It's showing up in my list of services, but when I try to start it, it immediately stops. Event viewer just says "Service cannot be started. The service process could not connect to the service controller"

 

I can see on here that other people have got this working OK. What have I done wrong?

Edited by danswan
Posted

Do you have an actual windows service created by emby? if so then that is the old way and you should just run that service directly.

Posted

I don't - this is a new install and no service was created. 

Posted (edited)

Yes, that's the guide I've followed

 

post-2216-0-93691800-1508959257_thumb.png

 

post-2216-0-52804900-1508959258_thumb.png

 

post-2216-0-97409100-1508959258_thumb.png

 

post-2216-0-44865000-1508959259_thumb.png

 

post-2216-0-69945800-1508959259_thumb.png

 

 

Edited by danswan
Posted

What version of emby server?

Happy2Play
Posted (edited)

I just installed server 2016 with (GUI) in hyper-v, installed Emby Net Core 3.2.34.0 beta via setup file and installed service via NSSM per guide without any issues. 

 

Only addition things I had to do is allow Visual C++ 2015 install and changed Local policy for Administrator so I could use Edge, but creating another account should resolve that though.

 

 

@@danswan

 

Do I need to test on Stable?  Or other scenario?

Edited by Happy2Play
  • Like 1
Posted

Hi

 

Thanks for looking into this. Emby Server version is 3.2.34.0

Posted

Alternatively, instead of a service you can just create a scheduled task to run emby. Choose the options to run as a user without having to be logged on and run the scheduled task when the computer starts up.

Posted (edited)

Alternatively, instead of a service you can just create a scheduled task to run emby. Choose the options to run as a user without having to be logged on and run the scheduled task when the computer starts up.

 

I might just do that. I just have everything else I need 24/7 running as a service, but no reason Emby has to I suppose

 

@@Happy2Play - the NSSM download has x86 and x64 versions. Which did you use? Did you change NSSM to use a login other than its default (Local System)?

Edited by danswan
Happy2Play
Posted

I might just do that. I just have everything else I need 24/7 running as a service, but no reason Emby has to I suppose

 

@@Happy2Play - the NSSM download has x86 and x64 versions. Which did you use? Did you change NSSM to use a login other than its default (Local System)?

 

NSSM is x64 and login was default (Local System).  I can't see there really being a difference with Stable and Beta server but I will test it now.

Happy2Play
Posted (edited)

Have to wait net framework 3.5 features to install so I can uninstall Emby.

 

59f239e3efe01_netframework.jpg

Edited by Happy2Play
Posted

NSSM is x64 and login was default (Local System).  I can't see there really being a difference with Stable and Beta server but I will test it now.

Sounds like you've got exactly what I've got here. It looks like it's started (doesn't obviously error) but refresh the services screen and it's stopped a couple of seconds later

Posted

Is there an emby server log?

Posted

Yes there is - I cleared out all the old logs and tried to start the service - got the attached

server-63644649762.txt

Posted

It's using a non-standard port for http, but it was the same using the default port. Works fine when running the executable normally

Happy2Play
Posted

Sounds like you've got exactly what I've got here. It looks like it's started (doesn't obviously error) but refresh the services screen and it's stopped a couple of seconds later

 

The service runs fine for me on the Beta setup Server has run for hours without issue and stopping and restarting service works without issue.  Something is going wrong with my framework 3.5 install so I am working on creating a new image right now.

Posted

What if you just run it without the service?

Happy2Play
Posted

Working on installing new server and Emby.  Stable Emby requires framework 4.62.

 

 

@@danswan

 

Is your user account an admin or local account?

Posted

I'm an administrator, and I'm running NSSM from an elevated command prompt when installing the service

Happy2Play
Posted

Just a guess but does it work if you set username and password instead of "Local system account" for the service?

Happy2Play
Posted (edited)

 

 


Just a guess but does it work if you set username and password instead of "Local system account" for the service?
Well that shouldn't matter.  I installed a new server, new user admin account, installed Emby (Stable) requiring framework 4.62, visual c++ 2013 and 2015, created service via guide and service runs without issue Edited by Happy2Play
Posted

Well that shouldn't matter.  I installed a new server, new user admin account, installed Emby (Stable) requiring framework 4.62, visual c++ 2013 and 2015, created service via guide and service runs without issue

Yeah, I have tried using my usual admin login, which does have access to all libraries, with the same results. 

Happy2Play
Posted

Does the details tab in the error in event viewer show any additional information?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...