hatharry 70 Posted February 8, 2017 Author Share Posted February 8, 2017 (edited) @@Volfan6415, Windows 7? the scheduled task module is missing. Edited February 8, 2017 by hatharry Link to comment Share on other sites More sharing options...
Volfan6415 17 Posted February 9, 2017 Share Posted February 9, 2017 It's windows home server 2011 Link to comment Share on other sites More sharing options...
chjohans 30 Posted February 25, 2017 Share Posted February 25, 2017 I am using the exe-version since a few months ago. It worked for a couple of updates and it has since then stopped working. I read something about an update but can't find it on githup (which has not been updated in moths), and the linking between the two threads in this forum is quite confusing. I do see references to others that have this working. So exactly which version should be used and where is it maintained? Link to comment Share on other sites More sharing options...
hatharry 70 Posted February 26, 2017 Author Share Posted February 26, 2017 @@chjohans, PowerShell script on post #1 Link to comment Share on other sites More sharing options...
chjohans 30 Posted February 26, 2017 Share Posted February 26, 2017 Thanks hatharry, got it installed. One question tho, what is the default behavior of the script and can it be changed? The reason I'm asking is because when using the exe-version I had it scheduled daily with option to restart the server only if it found an update. Then I had a schedule to force a weekly restart to take care of any necessary restarts in the case that some updated plugins needed a restart of the server. Can the same thing be done with the script version as well? Link to comment Share on other sites More sharing options...
hatharry 70 Posted February 26, 2017 Author Share Posted February 26, 2017 @@chjohans, add this to a task PowerShell.exe &{Restart-Service emby} Link to comment Share on other sites More sharing options...
chjohans 30 Posted February 26, 2017 Share Posted February 26, 2017 OK, will do. I assume this will update, and force a restart even if there is no update? Link to comment Share on other sites More sharing options...
chjohans 30 Posted February 26, 2017 Share Posted February 26, 2017 Sorry was a bit quick here, didn't fully read what you wrote and assumed it was command line options to your script. Of course it won't as it's just restarting the emby service through powershell Link to comment Share on other sites More sharing options...
chjohans 30 Posted February 26, 2017 Share Posted February 26, 2017 (edited) By the way, this doesn't work as it will not start the Emby server again. I've noticed earlier that a restart of the Emby server usually ends up with an error message. It appears that it needs some time between stop and start or it will fail. So I'm just reusing a simple shell script that does this: @echo off net stop "Emby Server" timeout 120 net start "Emby Server" This has been proven to work reliable over time, just a restart of the service will usually leave the service not running. Edited February 26, 2017 by chjohans Link to comment Share on other sites More sharing options...
hatharry 70 Posted February 27, 2017 Author Share Posted February 27, 2017 @@chjohans, Try this: powershell.exe &{Stop-Service Emby; Wait-Process MediaBrowser.ServerApplication; Start-Service Emby} Link to comment Share on other sites More sharing options...
chjohans 30 Posted February 28, 2017 Share Posted February 28, 2017 Thanks hatharry, appreciated. I guess your approach is better since it will wait for the service to terminate rather than for a fixed time. Link to comment Share on other sites More sharing options...
jeffshead 3 Posted March 30, 2017 Share Posted March 30, 2017 (edited) UPDATE: I updated PS to v5 and now it's working! I can't get this to work. I get the following error when I run it with and without the "-installtask" switch: I'm on a Win2012 box. Edited March 30, 2017 by jeffshead Link to comment Share on other sites More sharing options...
Spotta 6 Posted March 31, 2017 Share Posted March 31, 2017 I had this working lovely on my old box (from the .exe originally i think) but after building a new box (Win 7) I can only seem to get as far as the below error Link to comment Share on other sites More sharing options...
Quinky 0 Posted March 31, 2017 Share Posted March 31, 2017 I had this working lovely on my old box (from the .exe originally i think) but after building a new box (Win 7) I can only seem to get as far as the below error Can you first install this: https://www.microsoft.com/en-us/download/details.aspx?id=50395 and try again? This updates your powershell to the latest version. Link to comment Share on other sites More sharing options...
Spotta 6 Posted March 31, 2017 Share Posted March 31, 2017 Thanks for the Quick reply! I installed this about 30 mins ago as Win 7 comes with PS v2 and I saw the previous poster had issues until they had upgraded to v5. The version I am on is the latest, details are in the above image. Link to comment Share on other sites More sharing options...
hatharry 70 Posted March 31, 2017 Author Share Posted March 31, 2017 @@Spotta, Updated to support windows 7 and server 2008 r2 1 Link to comment Share on other sites More sharing options...
Spotta 6 Posted March 31, 2017 Share Posted March 31, 2017 Worked a treat. Thank you! Link to comment Share on other sites More sharing options...
freddyfinn 9 Posted June 10, 2017 Share Posted June 10, 2017 Windows Service Updater Has started updating to beta level all of a sudden. I tried what hansolo77 suggested however it's still downloading the beta. OK, does the server automatically download and install the latest Stable build automatically, and just need restarted? If so, I think I'll just take off the -download bit. I seem to recall it does, so I'll try that out. I'm still not sure what version of the Updater I should get, if it's the one in the 1st post, or the one FrostByte has (since his had some added functions). But since it all worked before, I'm going to assume it's just a matter of that extra flag. I'll report back my findings if it updates to the beta again even if though I have it set in the server settings to just get the Stable. ---- - Edit I just changed the scheduled task to remove the -download flag, and now it's just the -restart flag. Rather than wait 24 hours, I went ahead and ran the task. Once it completed, I re-opened the Emby Server Dashboard, and found it was no longer on 3.0.8500 and is now on 3.1.6024.25990. So I don't know what's going on. I know it's this Updater utility that's doing it, because I had the task disabled for 2 days and it didn't do it then. I'm going to try deleting the task and the program and re-download it. ---- - Edit 2 - Fixed it (maybe)! I erased the existing Updater Folder, extracted the latest .zip from the Releases GitHub to a new Updater Folder. Installed the latest stable over top of the beta/dev, restarted the server. I then opened a command prompt and ran Emby.ServerUpdater.exe (no flags). Waited and watched. The server went down then came back up. Reopened the Dashboard and it's the same version (latest stable)! I then tried it with the -restart flag, and like before it just restarted without updating. I then did the -restart -download and it still stayed the same (like it should)! I'm happy now! Quick question.. do I really need the -download flag if I'm also doing the restart? It looks like in the OP you have it set so the (Default) without any flags will automatically restart and install any updates already. If so, I'll just take all the flags off, and it should still work (update and restart) right? Any suggestions? Link to comment Share on other sites More sharing options...
hatharry 70 Posted June 10, 2017 Author Share Posted June 10, 2017 @@freddyfinn, I haven't updated the exe in a very long time I would recommend you move to the updated PowerShell script from the first post Link to comment Share on other sites More sharing options...
freddyfinn 9 Posted June 10, 2017 Share Posted June 10, 2017 (edited) @@freddyfinn, I haven't updated the exe in a very long time I would recommend you move to the updated PowerShell script from the first postHi @@hatharry, that was the first thing I did. It's got me stumped why it just started happening. I used the updated installer as well v1.01 from your repository. It's not a huge drama as installing the beta fixed a streaming issue I was having. Edited June 10, 2017 by freddyfinn Link to comment Share on other sites More sharing options...
freddyfinn 9 Posted June 11, 2017 Share Posted June 11, 2017 @hatharry I wonder if this has anything to do with it. https://emby.media/community/index.php?/topic/47994-stable-32190-release-overriding-beta-cycle/?hl=%2Bbeta+%2Breleases&do=findComment&comment=455231 Mine seems to be doing the exact apposite. Link to comment Share on other sites More sharing options...
hatharry 70 Posted June 13, 2017 Author Share Posted June 13, 2017 Updated to handle new update level 1 Link to comment Share on other sites More sharing options...
freddyfinn 9 Posted June 14, 2017 Share Posted June 14, 2017 Updated to handle new update level Thanks @@hatharry ! Working perfectly again. :) Link to comment Share on other sites More sharing options...
wyerd 11 Posted June 16, 2017 Share Posted June 16, 2017 Thanks @@hatharry ! Working perfectly again. :) Hmm.... I updated my power shell script with hatharry's latest, but it's still downloading the beta version of Emby server. Link to comment Share on other sites More sharing options...
freddyfinn 9 Posted June 16, 2017 Share Posted June 16, 2017 Hmm.... I updated my power shell script with hatharry's latest, but it's still downloading the beta version of Emby server. Make sure you reinstall the current stable release before you run the script otherwise you will stay on the beta Chanel. 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