ankenyr / jellyfin-youtube-metadata-plugin

Youtube Metadata Plugin for Jellyfin
GNU Affero General Public License v3.0
481 stars 31 forks source link

Failed to load assembly `codecoveragemessages.dll` after updating to 1.0.3.10 #107

Closed alpha-tango-kilo closed 2 months ago

alpha-tango-kilo commented 2 months ago

Jellyfin server running 10.9.2 (based on the LinuxServer docker image, with yt-dlp installed), on a Debian bookworm host system

Tried uninstalling and reinstalling the plugin, no difference

On Jellyfin start-up I see this in the logs. The interface just says "Status Malfunctioned"

[12:11:59] [ERR] [1] Emby.Server.Implementations.Plugins.PluginManager: Failed to load assembly /config/data/plugins/YoutubeMetadata_1.0.3.10/CodeCoverage/codecoveragemessages.dll. Unknown exception was thrown. Disabling plugin
System.BadImageFormatException: Bad IL format. The format of the file '/config/data/plugins/YoutubeMetadata_1.0.3.10/CodeCoverage/codecoveragemessages.dll' is invalid.
   at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
   at Emby.Server.Implementations.Plugins.PluginManager.LoadAssemblies()+MoveNext()
TheFrenchGhosty commented 2 months ago

The release zip wasn't "cleaned": https://github.com/ankenyr/jellyfin-youtube-metadata-plugin/releases/tag/1.0.3.10

It contains a lot of useless files generated during build.

If you want to fix yourself: in YoutubeMetadata_1.0.3.10/ delete everything except Jellyfin.Plugin.YoutubeMetadata.dll meta.json NYoutubeDLP.dll System.IO.Abstractions.dll

I contacted ankenyr about it

alpha-tango-kilo commented 2 months ago

Yep, that solved it, thanks! Interestingly, in Jellyfin's UI it now reports I'm using YoutubeMetadata 1.0.4.0 🤔

bigboigahoy commented 2 months ago

Yep, that solved it, thanks! Interestingly, in Jellyfin's UI it now reports I'm using YoutubeMetadata 1.0.4.0 🤔

This seems to be the case for me as well.

ankenyr commented 2 months ago

Already working on this, not sure what happened but I am moving things to a dev container and using jellyfins jprm module to manage the repository. It should make things easier to manage in the future.

ankenyr commented 2 months ago

Ok 1.0.3.12 is out. I had some issues and to prevent anyone who may have downloaded one of the bad versions I incremented the number a few times.

ankenyr commented 2 months ago

Also thanks to @TheFrenchGhosty for the help in troubleshooting.

TheFrenchGhosty commented 2 months ago

Just something to note: the scheduled task that automatically update the plugin might not work.

If you have the problem and are stuck on 1.0.3.10 / 1.0.3.9 you have to go find the plugin in the plugin catalog, install the latest version, and go back to the installed plugin list, and uninstall the old version.

We spent like an hour trying stuff to avoid that, but nothing has worked, my guess is that because .10 is marked as "malfunctioned" Jellyfin isn't able to update it (the meta.json file of the "malfunctioned" version is modified by Jellyfin to contain "autoUpdate": false,).

alpha-tango-kilo commented 2 months ago

Thanks both! Manually upgraded to 1.0.3.12 and it's looking good 😃

TheFrenchGhosty commented 2 months ago

@alpha-tango-kilo perfect :)