Crestj 68 Posted October 11, 2013 Posted October 11, 2013 (edited) I started using the service feature and now notice that each server update requires me to download the update manually and install them after shutting the service down. Is this because I'm using the service or is it a feature of the new server? The server always used to just prompt me to update and I could just click to restart MBServer. My server is logged in with a user permenantly anyway (for MediaCentreMaster) so I don't really need to use a service but I thought it would be neater. Also, I know the Dashboard cannot restart the service yet but does the Shutdown Server button stop the service? Edited October 11, 2013 by Crestj
Solution CBers 7113 Posted October 11, 2013 Solution Posted October 11, 2013 It's due to a current limitation within the service. During dev testing, we were having issues with consistently restarting the service, so the manual download and restart was implemented. If it's causing a problem, stop the service and restart as previously done. Automatic downloads and updates will be performed, you will only have to restart the server. 1
Crestj 68 Posted October 11, 2013 Author Posted October 11, 2013 Thanks, good to know. I'll switch back to the old method until this limitation is resolved.
Logos302 86 Posted November 14, 2013 Posted November 14, 2013 I know this is kinda old but is this still the case?
ebr 15662 Posted November 14, 2013 Posted November 14, 2013 1 month is old now . Yes, this is still the case. We were not able to reliably restart the application when running as a service.
Logos302 86 Posted November 14, 2013 Posted November 14, 2013 time flies . Does your restart server app work with running as a service?
ebr 15662 Posted November 15, 2013 Posted November 15, 2013 time flies . Does your restart server app work with running as a service? Give it a try. I fear it will have the same issues. If so, I will modify it to not run if you are in service mode.
Luke 40063 Posted November 15, 2013 Posted November 15, 2013 Yea, IApplicationHost has a CanSelfRestart property. It might be throwing an exception if that's false and you try to call it anyway.
gthrift 57 Posted November 15, 2013 Posted November 15, 2013 I've had the plugin installed since it was released and am running the server as a service. This morning was the first time the service did not start automatically. The server also restarted last night due to Windows Update, so that may have had something to do with it.
ebr 15662 Posted November 15, 2013 Posted November 15, 2013 I've had the plugin installed since it was released and am running the server as a service. This morning was the first time the service did not start automatically. The server also restarted last night due to Windows Update, so that may have had something to do with it. So, is it actually re-starting or are you getting the exception Luke mentioned and it isn't?
gthrift 57 Posted November 15, 2013 Posted November 15, 2013 (edited) 2013-11-14 04:00:01.0696, Info, App, DailyTrigger fired for task: Scheduled Server Restart 2013-11-14 04:00:01.0852, Info, App, Executing Scheduled Server Restart 2013-11-14 04:00:01.1008, Info, App, Re-starting server as requested/scheduled... 2013-11-14 04:00:01.5688, Info, Main, Disposing app host 2013-11-14 04:00:01.5844, Info, App, Disposing ApplicationHost 2013-11-14 04:00:01.5844, Info, App, Disposing TaskManager 2013-11-14 04:00:05.1256, Info, Main, Media Browser Server started 2013-11-14 04:00:05.1568, Info, Main, Command line: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe 2013-11-14 04:00:05.1568, Info, Main, Server: SERVER 2013-11-14 04:00:05.1568, Info, Main, Operating system: Microsoft Windows NT 6.1.7601 Service Pack 1 2013-11-14 04:00:05.1568, Info, Main, Program data path: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server 2013-11-14 04:00:05.1724, Info, Main, Executable: C:\Users\Administrator\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe It looks like it to me. Edited November 15, 2013 by gthrift
Luke 40063 Posted November 15, 2013 Posted November 15, 2013 It is throwing an exception, so if running as a service it's not going to get very far... if (!CanSelfRestart) { throw new InvalidOperationException("The server is unable to self-restart. Please restart manually."); } If the plugin calls this without a try/catch it may crash the server.
ebr 15662 Posted November 15, 2013 Posted November 15, 2013 gthrift - based on your command line it doesn't look like you are running as a service... luke - it is within a scheduled task so the task should simply fail with the message you provided.
gthrift 57 Posted November 16, 2013 Posted November 16, 2013 That's weird. It is running as a service. Its on a headless server that had not been logged into until I pulled those logs.
JustEric78 24 Posted November 21, 2013 Posted November 21, 2013 I may be off base on my understanding of the topic but why not just create a script to restart the service and then create a scheduled task to run the script every night? This will just automatically download and install updates no? Script I have for this already in place is quite simple.. Net Stop "MediaBrowser" Net Start "MediaBrowser"
gcw07 347 Posted November 22, 2013 Posted November 22, 2013 I may be off base on my understanding of the topic but why not just create a script to restart the service and then create a scheduled task to run the script every night? This will just automatically download and install updates no? Script I have for this already in place is quite simple.. Net Stop "MediaBrowser" Net Start "MediaBrowser" Problem with the script is that there is no actual feedback. You run the script, but you don't know if the script actually executed properly, just that it ran.
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