danswan 13 Posted October 23, 2017 Posted October 23, 2017 (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 October 25, 2017 by danswan
Luke 42077 Posted October 23, 2017 Posted October 23, 2017 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.
danswan 13 Posted October 25, 2017 Author Posted October 25, 2017 I don't - this is a new install and no service was created.
Happy2Play 9780 Posted October 25, 2017 Posted October 25, 2017 Running Emby Server as a Windows Service
danswan 13 Posted October 25, 2017 Author Posted October 25, 2017 (edited) Yes, that's the guide I've followed Edited October 25, 2017 by danswan
Happy2Play 9780 Posted October 26, 2017 Posted October 26, 2017 (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 October 26, 2017 by Happy2Play 1
danswan 13 Posted October 26, 2017 Author Posted October 26, 2017 Hi Thanks for looking into this. Emby Server version is 3.2.34.0
naeonline 27 Posted October 26, 2017 Posted October 26, 2017 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.
danswan 13 Posted October 26, 2017 Author Posted October 26, 2017 (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 October 26, 2017 by danswan
Happy2Play 9780 Posted October 26, 2017 Posted October 26, 2017 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 9780 Posted October 26, 2017 Posted October 26, 2017 (edited) Have to wait net framework 3.5 features to install so I can uninstall Emby. Edited October 26, 2017 by Happy2Play
danswan 13 Posted October 26, 2017 Author Posted October 26, 2017 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
danswan 13 Posted October 26, 2017 Author Posted October 26, 2017 Yes there is - I cleared out all the old logs and tried to start the service - got the attached server-63644649762.txt
danswan 13 Posted October 26, 2017 Author Posted October 26, 2017 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 9780 Posted October 26, 2017 Posted October 26, 2017 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.
Luke 42077 Posted October 26, 2017 Posted October 26, 2017 What if you just run it without the service?
danswan 13 Posted October 26, 2017 Author Posted October 26, 2017 (edited) Works fine server-63644650084.txt Edited October 26, 2017 by danswan
Happy2Play 9780 Posted October 26, 2017 Posted October 26, 2017 Working on installing new server and Emby. Stable Emby requires framework 4.62. @@danswan Is your user account an admin or local account?
danswan 13 Posted October 26, 2017 Author Posted October 26, 2017 I'm an administrator, and I'm running NSSM from an elevated command prompt when installing the service
Happy2Play 9780 Posted October 26, 2017 Posted October 26, 2017 Just a guess but does it work if you set username and password instead of "Local system account" for the service?
Happy2Play 9780 Posted October 26, 2017 Posted October 26, 2017 (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 October 26, 2017 by Happy2Play
danswan 13 Posted October 27, 2017 Author Posted October 27, 2017 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 9780 Posted October 27, 2017 Posted October 27, 2017 Does the details tab in the error in event viewer show any additional information?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now