markwiese 2 Posted June 2, 2017 Posted June 2, 2017 Hi - Just updated Emby Server to 3.2.19.0 (from 3.2.16.0) and it will no longer load. Log (attached) shows a null argument exception. I have Emby running as a service on Server 2012 R2. 2017-06-02 18:45:54.8298 Error Main: UnhandledException *** Error Report *** Version: 3.2.19.0 Command line: C:\Users\Admin\AppData\Roaming\MediaBrowser-Server\System\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True Processor count: 4 Program data path: C:\Users\Admin\AppData\Roaming\MediaBrowser-Server Application directory: C:\Users\Admin\AppData\Roaming\MediaBrowser-Server\System System.ArgumentNullException: Value cannot be null. at System.Threading.Monitor.Enter(Object obj) at SkiaSharp.SKObject.Dispose(Boolean disposing) at SkiaSharp.SKBitmap.Dispose(Boolean disposing) at SkiaSharp.SKNativeObject.Finalize() System.ArgumentNullException at System.Threading.Monitor.Enter(Object obj) at SkiaSharp.SKObject.Dispose(Boolean disposing) at SkiaSharp.SKBitmap.Dispose(Boolean disposing) at SkiaSharp.SKNativeObject.Finalize() server-63632026259.txt unhandled_001c3efc-5e16-49be-bd72-0aea1c91b2fa.txt
markwiese 2 Posted June 2, 2017 Author Posted June 2, 2017 OK - I already managed to solve this it seems. I did the following: - stopped the hung Emby Server Windows service - ran Emby Server as an application from the Start menu - at this point I was prompted for elevation to install Microsoft Visual C++ 2015 Redistributable (x64) - 14.0.23026 - followed the prompts to complete installation of the above package - Emby Server then loaded successfully as application - stopped the application and started Emby Server as a service - now working correctly Hope this helps others that run Emby Server as a service! Seems the Visual C++ Redist prerequisite is intended to be installed by an internal task scheduler, but when Emby Server is run as a service the installation can't complete as user interaction is required. Would think there'd be arguments that could be passed to the Visual C++ Redist installer for silent installation (no user interaction required)?
Maximus Naxsus 20 Posted June 2, 2017 Posted June 2, 2017 (edited) Update fails here as well, Windows Server 2016. At the moment Emby is not running as a service. De update does not install during server restart, no hung processes. Update process appears, disappears and that's it. This would have been a disaster if I don't uncheck the 'auto update' function every time. EDIT: Visual C++ 2015 allready installed, version 14.0.24123 x64, 11.0.50727 x86. Why is Emby so sensitive with the Windows Server editions? If I remember correctly these kind of issues have been around here for awhile now. This is really sad because - imho - the server editions storage possibilities are excellent for Emby like software solution. Edited June 2, 2017 by Maximus Naxsus
Happy2Play 9784 Posted June 2, 2017 Posted June 2, 2017 Update fails here as well, Windows Server 2016. At the moment Emby is not running as a service. De update does not install during server restart, no hung processes. Update process appears, disappears and that's it. This would have been a disaster if I don't uncheck the 'auto update' function every time. EDIT: Visual C++ 2015 allready installed, version 14.0.24123 x64, 11.0.50727 x86. Why is Emby so sensitive with the Windows Server editions? If I remember correctly these kind of issue have been around here for awhile now. This is really sad because - imho - the server editions storage possibilities are excellent for Emby like software sollutions. @@Luke Is it looking for a specific version number? Your version number is higher then the version on my whs2011. Visual C++ 2015 (x64) v14.0.23026
Luke 42085 Posted June 2, 2017 Posted June 2, 2017 No, it's just using this method to check for a version beginning with 14 http://stackoverflow.com/questions/12206314/detect-if-visual-c-redistributable-for-visual-studio-2012-is-installed
Luke 42085 Posted June 2, 2017 Posted June 2, 2017 OK - I already managed to solve this it seems. I did the following: - stopped the hung Emby Server Windows service - ran Emby Server as an application from the Start menu - at this point I was prompted for elevation to install Microsoft Visual C++ 2015 Redistributable (x64) - 14.0.23026 - followed the prompts to complete installation of the above package - Emby Server then loaded successfully as application - stopped the application and started Emby Server as a service - now working correctly Hope this helps others that run Emby Server as a service! Seems the Visual C++ Redist prerequisite is intended to be installed by an internal task scheduler, but when Emby Server is run as a service the installation can't complete as user interaction is required. Would think there'd be arguments that could be passed to the Visual C++ Redist installer for silent installation (no user interaction required)? As it turns out, this is the update procedure you should be doing for the service anyway. This is what the Emby Server dashboard tells you to do when a new version is available.
markwiese 2 Posted June 3, 2017 Author Posted June 3, 2017 (edited) Hi Luke, I have been using a PowerShell script (based on https://emby.media/community/index.php?/topic/26607-powershell-script-to-update-server-when-running-as-a-service/)to update the Emby Server for at least a year now and have installed around 20 or more updates without issue, until this latest update. This is what the Emby Server dashboard tells you to do when a new version is available. I've never noticed that Emby Server advises to shutdown, install the update, run as an application, then close, and run as a service again - where are these instructions displayed? I have only ever seen the below. Tried clicking on the hyperlinked message to find the instructions you're referring to but it was just linked to the download page. Edited June 3, 2017 by markwiese 1
Luke 42085 Posted June 3, 2017 Posted June 3, 2017 That is a community hack, just be aware although it is generally OK it is not officially supported. By update manually we really just mean install the latest from the website.
Happy2Play 9784 Posted June 3, 2017 Posted June 3, 2017 (edited) @@Luke Why can't the service download the update just like running as application, then all the user has to do is stop and start the service to perform the already downloaded update? That is what I have been doing for awhile since restart hangs about 50% of the time, with normal updating. I allow the update to download then shutdown server wait for it to die, then start server performs update. Edited June 3, 2017 by Happy2Play 1
markwiese 2 Posted June 3, 2017 Author Posted June 3, 2017 (edited) That is a community hack, just be aware although it is generally OK it is not officially supported. By update manually we really just mean install the latest from the website. OK - Yeah, that's what I actually did because the URL the PowerShell script uses no longer works, so here was my actual process: I run PowerShell script PowerShell script hangs at "Waiting for Emby" (because the installer wasn't actually able to download) I download the latest installer and run it manually PowerShell script detects when Emby runs and terminates the process then runs it as a service Service shows "Running" status in services.msc, but when I try to connect to the GUI I get no response I check Task Manager - Emby process is running, but using 0% CPU, and RAM usage is not changing I forcefully terminate the process, and then run as an app, and I'm then presented with the Visual C++ Redist installer prompts Etc... So, to your point, I agree, it was due to using the PowerShell script that I ran into problems, because it blindly terminates the app (intentionally) which would've prevented the app from getting to the point where it would prompt me for the Visual C++ installation. But, to my point, wouldn't it be fairly straightforward for Emby to initiate the Visual C++ Redist installer in silent mode so that no user interaction was required? Edited June 3, 2017 by markwiese
Maximus Naxsus 20 Posted June 3, 2017 Posted June 3, 2017 FYINo idea what just happend but as I was about to leave as Emby server restarted and *.19 is now running. So.. What is the point of using the giu to disable auto update?*this* is really starting to nag me
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