Jump to content


Photo

Emby Service Updater


  • Please log in to reply
127 replies to this topic

#41 hatharry OFFLINE  

hatharry

    Advanced Member

  • Members
  • 120 posts
  • Local time: 04:34 PM

Posted 09 November 2016 - 08:58 PM

@Happy2Play

----

- 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!

 



#42 hansolo77 OFFLINE  

hansolo77

    Advanced Member

  • Members
  • 221 posts
  • Local time: 12:34 AM
  • LocationColumbus, Ohio

Posted 09 November 2016 - 09:34 PM

Ah, I see now. So alone it will only restart if there is an update. Cool. I'll still keep an eye on this and report back if it messes up again.

#43 Volfan6415 OFFLINE  

Volfan6415

    Advanced Member

  • Members
  • 106 posts
  • Local time: 05:34 AM

Posted 21 January 2017 - 04:40 PM

Hey so i have been using this for awhile, however, recently it stopped working.  The service restarts and the task seems to run but emby doesn't actually update.  I have tried to run the program via command line to follow the console outputs however nothing actually outputs to the console so i can't see where the program is failing.  Any ideas?



#44 hatharry OFFLINE  

hatharry

    Advanced Member

  • Members
  • 120 posts
  • Local time: 04:34 PM

Posted 21 January 2017 - 11:36 PM

@Volfan6415 updates are downloaded to emby-server\updates delete that folder and restart emby



#45 Volfan6415 OFFLINE  

Volfan6415

    Advanced Member

  • Members
  • 106 posts
  • Local time: 05:34 AM

Posted 22 January 2017 - 01:29 AM

hatharry ... I deleted the folder and I can see where it creates a new folder with updates when the program runs again but the updates aren't actually applied?

#46 hatharry OFFLINE  

hatharry

    Advanced Member

  • Members
  • 120 posts
  • Local time: 04:34 PM

Posted 22 January 2017 - 01:36 AM

@Volfan6415 the updates will not be applied if transcoding is in process. A manual restart is required.



#47 Volfan6415 OFFLINE  

Volfan6415

    Advanced Member

  • Members
  • 106 posts
  • Local time: 05:34 AM

Posted 24 January 2017 - 10:19 AM

Ok so still not working, I have reset the server, reset the computer. I have also run the task when I can verify in the server that no transcoding is occurring. As I mentioned earlier I can see that the new update downloads, and if I delete the update folder and rerun the task a new update downloads it just does not get applied. What do I need to do to start debugging this?

#48 jordy OFFLINE  

jordy

    Advanced Member

  • Members
  • 1296 posts
  • Local time: 02:04 PM
  • LocationAdelaide, Australia

Posted 24 January 2017 - 10:35 AM

Ok so still not working, I have reset the server, reset the computer. I have also run the task when I can verify in the server that no transcoding is occurring. As I mentioned earlier I can see that the new update downloads, and if I delete the update folder and rerun the task a new update downloads it just does not get applied. What do I need to do to start debugging this?

I can second this. Using Emby.ServerUpdater.exe file does not actually update the server. As per Volfan6415, it only downloads a ~25Mb zip file but nothing else happens. Tried running as Admin but no difference. Running on a Surface Pro 3 / Win10Pro / Emby Dev Server.

FYI, the .ps script works fine every time. When will the code be included in the server so this is no longer a manual process?



#49 hatharry OFFLINE  

hatharry

    Advanced Member

  • Members
  • 120 posts
  • Local time: 04:34 PM

Posted 24 January 2017 - 10:44 AM

@Volfan6415, @jordy i haven't put much time on this in a while. I'm current working on a service wrapper in which has been running on my server for quite some time.

Ive sent a pull request to the main code.


  • jordy and FrostByte like this

#50 Volfan6415 OFFLINE  

Volfan6415

    Advanced Member

  • Members
  • 106 posts
  • Local time: 05:34 AM

Posted 24 January 2017 - 11:27 AM

Is there a major difference in the operation of the .ps script and the .exe? Perhaps this difference could lead to why the .ps script still works and the .exe is failing?  I can see in the code for the .exe that there are messages being written to the console, but when i run the .exe at the command line i don't see any messages. If i knew how to make those messages display i would be happy to debug and see if i can locate the problem.

 

I wonder what is taking so long to include this in the main server.  Anything that specifically needs testing? Happy to help out.  Maybe @Luke can chime in with some insight.



#51 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 134323 posts
  • Local time: 12:34 AM

Posted 24 January 2017 - 02:29 PM

Insight about what?



#52 Volfan6415 OFFLINE  

Volfan6415

    Advanced Member

  • Members
  • 106 posts
  • Local time: 05:34 AM

Posted 24 January 2017 - 04:19 PM

Insight about what?


This being included in the main code.

#53 hatharry OFFLINE  

hatharry

    Advanced Member

  • Members
  • 120 posts
  • Local time: 04:34 PM

Posted 25 January 2017 - 01:04 AM

@Volfan6415, The PS download's the web installer, installs emby, kill's the foreground process then starts the service. The exe download's the offline zip and restarts emby.

The latest releases do not support updating when starting as a service.



#54 Volfan6415 OFFLINE  

Volfan6415

    Advanced Member

  • Members
  • 106 posts
  • Local time: 05:34 AM

Posted 25 January 2017 - 02:04 AM

@Volfan6415, The PS download's the web installer, installs emby, kill's the foreground process then starts the service. The exe download's the offline zip and restarts emby.
The latest releases do not support updating when starting as a service.

So something in the latest builds doesn't let the auto server update exe work? What is the reason for disabling the update while running as service? I thought that was the whole point of the Emby server updated exe.

Edited by Volfan6415, 25 January 2017 - 02:04 AM.


#55 hatharry OFFLINE  

hatharry

    Advanced Member

  • Members
  • 120 posts
  • Local time: 04:34 PM

Posted 25 January 2017 - 03:05 AM

@Volfan6415, Please test my updated PS script https://emby.media/c...dater/?p=273674


  • FrostByte likes this

#56 Volfan6415 OFFLINE  

Volfan6415

    Advanced Member

  • Members
  • 106 posts
  • Local time: 05:34 AM

Posted 26 January 2017 - 11:02 AM

@Volfan6415, Please test my updated PS script https://emby.media/c...dater/?p=273674

 

When trying to run the powershell script i am getting the following error Message 

 

Test-Path:Cannont Bind argument to parameter 'Path' because it is an empty string.  ..... at line 74 Char:23

if (Test-Path $this.location) {


Edited by Volfan6415, 26 January 2017 - 11:02 AM.


#57 hatharry OFFLINE  

hatharry

    Advanced Member

  • Members
  • 120 posts
  • Local time: 04:34 PM

Posted 26 January 2017 - 11:12 AM

@Volfan6415, Please test again


Edited by hatharry, 26 January 2017 - 11:49 AM.


#58 Volfan6415 OFFLINE  

Volfan6415

    Advanced Member

  • Members
  • 106 posts
  • Local time: 05:34 AM

Posted 26 January 2017 - 12:12 PM

Script worked that time.  If i create a scheduled task will the task run and work is the user is not logged on?  I run emby on a windows server that normally does not have a user logged on.



#59 hatharry OFFLINE  

hatharry

    Advanced Member

  • Members
  • 120 posts
  • Local time: 04:34 PM

Posted 26 January 2017 - 12:16 PM

Script worked that time.  If i create a scheduled task will the task run and work is the user is not logged on?  I run emby on a windows server that normally does not have a user logged on.

 

Scheduled Task should work fine. Make sure you check "run with highest privileges"



#60 wyerd OFFLINE  

wyerd

    Advanced Member

  • Members
  • 51 posts
  • Local time: 12:34 AM

Posted 28 January 2017 - 05:41 PM

It's not working for me either since 3.1.4.0. It stops and restarts the Emby service, but the update isn't loading or running.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users