hatharry 84 Posted December 15, 2015 Share Posted December 15, 2015 Hey I am in the process of making an auto service updater but found some bugs along the way. One being setup.exe will not run if a user is not logged on. I would like to use the inbuilt emby updater but am unsure what the arguments and the processes are after clicking update in the dashboard. Any advice? Link to comment Share on other sites More sharing options...
Luke 37009 Posted December 15, 2015 Share Posted December 15, 2015 Hi there, welcome. This isn't really a bug - when you run the server as a windows service, we do not support automatic update. The server dashboard gives you instruction on how to update, which is by shutting down the service and installing the update from the website. Does that answer your question? Link to comment Share on other sites More sharing options...
hatharry 84 Posted December 15, 2015 Author Share Posted December 15, 2015 Seems like a lot of work running the setup.exe every time. Looking at how the inbuilt updater works, it downloads the new server as a package to the update folder, Then auto updates when the server is restarted. Ideally being able to download the package to the updates folder from the dashboard, Then restarting the service when needed is what I'm after. Link to comment Share on other sites More sharing options...
ebr 14903 Posted December 15, 2015 Share Posted December 15, 2015 The problem is that, when running as a service, we cannot guarantee proper permissions to download and stop and restart the service. A separate process with these permissions I believe is what will be required. Several people have volunteered to create this but none of them have followed through yet. It would be great if you want to take this on. Link to comment Share on other sites More sharing options...
hatharry 84 Posted December 17, 2015 Author Share Posted December 17, 2015 (edited) Hey This is what I've made so far. Runs from any account including the system account. Can be executed from a scheduled task or from the emby server app its self. Options include: Running Emby.ServerUpdater.exe with no switches, will download update and restart emby if an update is available and if ffmpeg is not running. Emby.ServerUpdater.exe -download , Will download update only if available. Emby.ServerUpdater.exe -restart , Will restart service only if ffmpeg is not running. Emby.ServerUpdater.exe -createtask , Will copy files to emby folder, create a windows task to run at 4am and set service startup to auto. Enjoy Download Here Edited May 2, 2016 by hatharry 4 Link to comment Share on other sites More sharing options...
Quiks 15 Posted April 30, 2016 Share Posted April 30, 2016 Thanks a lot for this hatharry! Link to comment Share on other sites More sharing options...
hatharry 84 Posted June 8, 2016 Author Share Posted June 8, 2016 (edited) I've created a patch to allow server to restart itself when running as a service #removed Edited October 28, 2016 by hatharry Link to comment Share on other sites More sharing options...
mattbeezle 0 Posted October 28, 2016 Share Posted October 28, 2016 (edited) I used Emby.ServerUpdater.exe to create a scheduled task and it appears to be working. The problem i seem to run into is that there are usually several connected clients that will basically shuffle play an entire tv series at night which ends up running all night. This prevents the scheduled task from restarting the server. Is there a way to force the restart under any circumstance? I also see the patch posted by hatharry, but I'm unclear what one does with it? Edited October 28, 2016 by mattbeezle Link to comment Share on other sites More sharing options...
hatharry 84 Posted October 28, 2016 Author Share Posted October 28, 2016 In the past the service would not restart when ffmpeg was running, thats why the feature was left out. Should be fixed in the next update. 1 Link to comment Share on other sites More sharing options...
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