Skip to content

Yggdrasil library not found after upgrade to 5.1.1 #278

@baltie

Description

@baltie

Describe the bug
After upgrading from version 5.1.0 to 5.1.1, we get a TypeInitializationException and our service refuses to start.

To Reproduce
Create new .NET 8.0 project with Unleash client 5.1.1 package and initialize the client. Publish it as a Docker image based on mcr.microsoft.com/dotnet/aspnet:8.0-alpine. Run the image and see that it fails during initialization of Unleash.

Log output

System.TypeInitializationException: The type initializer for 'Yggdrasil.FFI' threw an exception.
 ---> System.IO.FileNotFoundException: Embedded resource libyggdrasilffi_x86_64-musl.so not found.
   at NativeLibLoader.LoadNativeLibrary()
   at Yggdrasil.FFI..cctor()
   --- End of inner exception stack trace ---
   at Yggdrasil.FFI.NewEngine()
   at Yggdrasil.YggdrasilEngine..ctor(List`1 strategies)
   at Unleash.UnleashServices..ctor(UnleashSettings settings, EventCallbackConfig eventConfig, List`1 strategies)
   at Unleash.DefaultUnleash..ctor(UnleashSettings settings, IStrategy[] strategies)
   at ***
   at Program.<Main>$(String[] args)

Desktop (please complete the following information):

  • OS: Alpine Linux 3.21.3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions