Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Could not load file or assembly 'FluentMigrator.Runner.SQLite' #279

Closed
1 task done
Klarstein opened this issue Jan 5, 2024 · 6 comments
Closed
1 task done

Comments

@Klarstein
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Sonarr throws an epic fail since the last update and won't spin up anymore.

Expected Behavior

A complete startup.

Steps To Reproduce

Config:
docker-compose

A clean install as tryout with:
docker run -d --name=sonarrtemp -e PUID=1000 -e PGID=1000 -e TZ=Etc/UTC -p 8989:8989 lscr.io/linuxserver/sonarr:latest

Throws the same error.

Environment

- OS: Ubuntu server 22.04.3 LTS  
- How docker service was installed: via the Docker apt repository

CPU architecture

x86-64

Docker creation

services:
  sonarr:
    image: lscr.io/linuxserver/sonarr:latest
    container_name: sonarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - sonarrconfig:/config
      - /data:/media
    ports:
      - 8989:8989

Container logs

[custom-init] No custom files found, skipping...
[Info] Bootstrap: Starting Sonarr - /app/sonarr/bin/Sonarr - Version 4.0.0.748 
[Info] AppFolderInfo: Data directory is being overridden to [/config] 
[Debug] Bootstrap: Console selected 
[Info] AppFolderInfo: Data directory is being overridden to [/config] 


[Fatal] ConsoleApp: EPIC FAIL! 

[v4.0.0.748] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'FluentMigrator.Runner.SQLite, Version=3.3.2.9, Culture=neutral, PublicKeyToken=594eef046ac5ecb'. An internal error occurred.
 (0x8007054F)
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeAssembly.get_DefinedTypes()
System.IO.FileLoadException: Could not load file or assembly 'FluentMigrator.Runner.SQLite, Version=3.3.2.9, Culture=neutral, PublicKeyToken=594eef046ac5ecb'. An internal error occurred.
 (0x8007054F)
File name: 'FluentMigrator.Runner.SQLite, Version=3.3.2.9, Culture=neutral, PublicKeyToken=594eef046ac5ecb'
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture)
   at System.Reflection.RuntimePropertyInfo.GetValue(Object obj, Object[] index)
   at DryIoc.Portable.<>c__DisplayClass2_0.<GetAssemblyTypesMethod>b__0(Assembly a)
   at DryIoc.Portable.GetAssemblyTypes(Assembly a)
   at DryIoc.Registrator.GetImplementationTypes(Assembly assembly)
   at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.MoveNext()
   at DryIoc.Registrator.RegisterMany(IRegistrator registrator, IEnumerable`1 implTypes, Func`2 getServiceTypes, Func`2 getImplFactory, Func`3 getServiceKey, Nullable`1 ifAlreadyRegistered)
   at DryIoc.Registrator.RegisterMany(IRegistrator registrator, IEnumerable`1 implTypes, IReuse reuse, Made made, Setup setup, Nullable`1 ifAlreadyRegistered, Func`2 serviceTypeCondition, Boolean nonPublicServiceTypes, Object serviceKey)
   at DryIoc.Registrator.RegisterMany(IRegistrator registrator, IEnumerable`1 implTypeAssemblies, Func`2 serviceTypeCondition, IReuse reuse, Made made, Setup setup, Nullable`1 ifAlreadyRegistered, Boolean nonPublicServiceTypes, Object serviceKey)
   at NzbDrone.Common.Composition.Extensions.ServiceCollectionExtensions.AutoAddServices(IContainer container, List`1 assemblyNames)
   at NzbDrone.Host.Bootstrap.<>c__DisplayClass3_0.<CreateConsoleHostBuilder>b__2(IContainer c)
   at Microsoft.Extensions.Hosting.HostingHostBuilderExtensions.<>c__DisplayClass10_0`1.<ConfigureContainer>b__0(HostBuilderContext context, TContainerBuilder builder)
   at Microsoft.Extensions.Hosting.Internal.ConfigureContainerAdapter`1.ConfigureContainer(HostBuilderContext hostContext, Object containerBuilder)
   at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
   at Microsoft.Extensions.Hosting.HostBuilder.Build()
   at NzbDrone.Host.Bootstrap.Start(String[] args, Action`1 trayCallback)
   at NzbDrone.Console.ConsoleApp.Main(String[] args)
Copy link

github-actions bot commented Jan 5, 2024

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@smith8ca
Copy link

Seeing the same issue on Raspbian OS (x64); Launching via docker-comopse ...

@dannytrigo
Copy link

I have the same issue. Likely an issue with sonarr rather than the lsio image

@Klarstein
Copy link
Author

@smith8ca and @dannytrigo I was wondering if your Docker environments are setup to use namespace remapping (username-remap)?

It might explain the error, but it’s weird that before V4 everything was working with the use of namespaces.

@LinuxServer-CI
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Copy link

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

5 participants