You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the code i am trying to run this:
_sqliteConnection = new SqliteConnection("Data Source=:memory:");
_sqliteConnection.Open();
Include stack traces
System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception.
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.DllNotFoundException: Unable to load shared library 'e_sqlite3' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
Error loading shared library /app/e_sqlite3.so: No such file or directory
Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/e_sqlite3.so: No such file or directory
Error loading shared library e_sqlite3.so: No such file or directory
Error relocating /app/libe_sqlite3.so: fcntl64: symbol not found
Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/libe_sqlite3.so: No such file or directory
Error loading shared library libe_sqlite3.so: No such file or directory
Error loading shared library /app/e_sqlite3: No such file or directory
Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/e_sqlite3: No such file or directory
Error loading shared library e_sqlite3: No such file or directory
Error loading shared library /app/libe_sqlite3: No such file or directory
Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/libe_sqlite3: No such file or directory
Error loading shared library libe_sqlite3: No such file or directory
at SQLitePCL.SQLite3Provider_e_sqlite3.NativeMethods.sqlite3_libversion_number()
at SQLitePCL.SQLite3Provider_e_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
at SQLitePCL.Batteries_V2.Init()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
at Microsoft.Data.Sqlite.SqliteConnection..cctor()
--- End of inner exception stack trace ---
at Microsoft.Data.Sqlite.SqliteConnection..ctor(String connectionString)
The text was updated successfully, but these errors were encountered:
What minimum version should i use?
For now this is what installed on 8.0-alpine-amd64
/lib $ ldd --version
musl libc (x86_64)
Version 1.2.5
Dynamic Program Loader
Usage: /lib/ld-musl-x86_64.so.1 [options] [--] pathname
File a bug
I am trying to upgrade from version 6.0.23 to 9.0.0-rc.1.24451.1
Tried version 8 got the same error.
Include your code
in the code i am trying to run this:
_sqliteConnection = new SqliteConnection("Data Source=:memory:");
_sqliteConnection.Open();
Include stack traces
System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception.
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.DllNotFoundException: Unable to load shared library 'e_sqlite3' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
Error loading shared library /app/e_sqlite3.so: No such file or directory
Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/e_sqlite3.so: No such file or directory
Error loading shared library e_sqlite3.so: No such file or directory
Error relocating /app/libe_sqlite3.so: fcntl64: symbol not found
Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/libe_sqlite3.so: No such file or directory
Error loading shared library libe_sqlite3.so: No such file or directory
Error loading shared library /app/e_sqlite3: No such file or directory
Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/e_sqlite3: No such file or directory
Error loading shared library e_sqlite3: No such file or directory
Error loading shared library /app/libe_sqlite3: No such file or directory
Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/libe_sqlite3: No such file or directory
Error loading shared library libe_sqlite3: No such file or directory
at SQLitePCL.SQLite3Provider_e_sqlite3.NativeMethods.sqlite3_libversion_number()
at SQLitePCL.SQLite3Provider_e_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
at SQLitePCL.Batteries_V2.Init()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
at Microsoft.Data.Sqlite.SqliteConnection..cctor()
--- End of inner exception stack trace ---
at Microsoft.Data.Sqlite.SqliteConnection..ctor(String connectionString)
The text was updated successfully, but these errors were encountered: