Jump to content

Recommended Posts

pwhodges
Posted

Sometimes the host operating system holds on to a file, which can prevent the update being completed.  Try restarting the device on which Emby is running.

Paul

  • Thanks 1
justinrh
Posted

I rebooted a couple of times and eventually it did update.  Seems Emby needs to add some error trapping and messaging around update ...

  • Thanks 1
sa2000
Posted

Yes could have been a file/folder lock. There is already a registered issue for improved UI / Messaging for this. 

Is there a "Updater-xxxxxxxxxxxxx.log" file in the logs folder?

C:\Users\jojo\AppData\Roaming\Emby-Server\programdata\logs

There would normally also be a very small embyserver log file for attempt to launch the updater

I can see in the log you provided that the 4.9.3.0 package was downloaded at 18:37:47

2026-01-22 18:37:47.087 Info App: Update Revision 4.9.3.0 available.  Updating...
2026-01-22 18:37:47.090 Info HttpClient: GetTempFileResponse url: https://github.com/MediaBrowser/Emby.Releases/releases/download/4.9.3.0/embyserver-win-x64-4.9.3.0.7z
2026-01-22 18:37:47.090 Info HttpClient: GET https://github.com/MediaBrowser/Emby.Releases/releases/download/4.9.3.0/embyserver-win-x64-4.9.3.0.7z
2026-01-22 18:37:47.200 Info TaskManager: Check for plugin updates Completed after 0 minute(s) and 0 seconds

About a minute later,  the server was shutdown - I presume that was manual shutdown.

2026-01-22 18:38:45.459 Info Server: http/1.1 POST http://localhost:8096/system/shutdown. Source Ip: ::1, UserAgent: Go-http-client/1.1
2026-01-22 18:38:45.460 Info Server: http/1.1 Response 204 to ::1. Time: 1ms. POST http://localhost:8096/system/shutdown

Not sure if the shutdown cancelled the update - there is a log entry

2026-01-22 18:38:45.819 Info InstallationManager: Package installation cancelled: MBServer 4.9.3.0

If there is an Updater-xxxx.log file then can have a look. Also if you sort the logs folder view by date, then can see if there are any other log files relatiing to the updater - after the timestamp for embyserver-63904703925.txt

justinrh
Posted

No updater logs, @sa2000but I really do appreciate the info and your investigation.  You are so awesome!  👏

  • Thanks 1
sa2000
Posted
11 hours ago, justinrh said:

No updater logs

That suggests it did not get run. Will have to see if this was a one-off. Otherwise more diagnostics would be needed - eg adding debug logging, seeing what is in the "updates" folder within the programdata area and if the package got unzipped into a "%Temp%\emby-server-updater" folder

As it takes many hours for all the release packages to be created, sometimes an update is shown as available before the specific package for the OS / Platform is ready to be downloaded and installed. That could have been what happened

justinrh
Posted (edited)
14 hours ago, sa2000 said:

As it takes many hours for all the release packages to be created, sometimes an update is shown as available before the specific package for the OS / Platform is ready to be downloaded and installed. That could have been what happened

Don't think that is what happened this time since that new version had been installed (automatically) on my other Windows server for days/weeks.

Found this:  "C:\Users\jojo\AppData\Roaming\Emby-Server\programdata\updates\embyserver-win-x64-{version}.7z.ver" but I guess it is a moot point now.

Edited by justinrh
sa2000
Posted (edited)
10 hours ago, justinrh said:

Found this:  "C:\Users\jojo\AppData\Roaming\Emby-Server\programdata\updates\embyserver-win-x64-{version}.7z.ver" but I guess it is a moot point now.

Yes. What is the timestamp of the file ? (last modified date/time)

The logs you provided show 2 attempts to download and there is no log entry to say that the task completed

2026-01-22 18:37:46.977 Info TaskManager: Executing Check for application updates
2026-01-22 18:37:47.087 Info App: Update Revision 4.9.3.0 available.  Updating...
2026-01-22 18:37:47.090 Info HttpClient: GetTempFileResponse url: https://github.com/MediaBrowser/Emby.Releases/releases/download/4.9.3.0/embyserver-win-x64-4.9.3.0.7z
2026-01-22 18:37:47.090 Info HttpClient: GET https://github.com/MediaBrowser/Emby.Releases/releases/download/4.9.3.0/embyserve

and after the restart, the download was re-requested - which suggests that the earlier download did not work/ did not complete / hung ?

2026-01-22 18:38:57.256 Info TaskManager: Executing Check for application updates
2026-01-22 18:38:57.376 Info App: Update Revision 4.9.3.0 available.  Updating...
2026-01-22 18:38:57.379 Info HttpClient: GetTempFileResponse url: https://github.com/MediaBrowser/Emby.Releases/releases/download/4.9.3.0/embyserver-win-x64-4.9.3.0.7z
2026-01-22 18:38:57.379 Info HttpClient: GET https://github.com/MediaBrowser/Emby.Releases/releases/download/4.9.3.0/embyserver-win-x64-4.9.3.0.7z

Debug logging may have given more information. Not sure if the task completion log lines would appear if debug logging is not enabled.

Edited by sa2000
justinrh
Posted

image.png.7d9a3bd4eeb6a7c6306f1d9a5450c2f5.png

sa2000
Posted

Thanks - so for some reason the attempts to download at 4.9.3.0 at 18:37 and 18:38 did not work and it worked later on at 20:04

Not possible to say why. Debug Logging may have given extra info. The request might have just hung for some reason

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...