-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi,
We were using DeviceDetection for Debian platform before, and there was no problem so far, but when we switched to Alphine image, we are getting the same error, when trying create the provider file.
[EROR] 51Degrees: Unable to create provider from data file '/app-server-efs/51degrees/Enterprise-HashV41.hash' System.Exception: Failed to load the Device Detection native library, common causes include: - Missing dependencies: o On Windows, the Visual C++ runtime is not installed, see the Visual Studio download page for the latest C++ Redistributable: https://visualstudio.microsoft.com/downloads/ o On Linux, the libatomic shared object is missing. On Debian based distributions, run ‘apt install libatomic1’; on RedHat based distributions, run ‘<yum|dnf> install libatomic’. - The DLL file was not copied to the output directory during build, refer to the ‘System.DllNotFoundException’ inner exception for the exact library file name. - The incorrect DLL was copied to the output directory, this maybe be caused by the build chain determining the incorrect platform or the incorrect platform has been specified in the build process. If using the dotnet command, see https://docs.microsoft.com/en-us/dotnet/core/rid-catalog to specify the correct runtime. If using Visual Studio, make sure the selected Platform (x86/x64) matches your environment. - If building for .NET Framework, the AnyCPU configuration is not supported, make sure to build for the required Platform (x86/x64). - Your environment may not be among the ones we automatically test and build packages for. You can check the list of tested environments at: https://51degrees.com/documentation/4.4/_info__tested_versions.html. If your environment isn't listed or you are using a unique virtual environment e.g. running on Mac CPUs, in such cases, we recommend compiling the C code specifically for your target environment. This does not rule out the potential compatibility with other environments, but implies that the packages may not have been specifically built for them. ---> System.TypeInitializationException: The type initializer for 'FiftyOne.DeviceDetection.Hash.Engine.OnPremise.Interop.DeviceDetectionHashEngineModulePINVOKE' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SWIGExceptionHelper' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'FiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll' 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/runtimes/linux-x64/native/FiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll.so: No such file or directory Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/FiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll.so: No such file or directory Error loading shared library /app/FiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll.so: No such file or directory Error loading shared library FiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll.so: No such file or directory Error loading shared library /app/runtimes/linux-x64/native/libFiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll.so: No such file or directory Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/libFiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll.so: No such file or directory Error loading shared library /app/libFiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll.so: No such file or directory Error loading shared library libFiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll.so: No such file or directory Error loading shared library libatomic.so.1: No such file or directory (needed by /app/runtimes/linux-x64/native/FiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll) Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/FiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll: No such file or directory Error loading shared library /app/FiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll: No such file or directory Error loading shared library FiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll: No such file or directory Error loading shared library /app/runtimes/linux-x64/native/libFiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll: No such file or directory Error loading shared library /usr/share/dotnet/shared/Microsoft.NETCore.App/8.0.8/libFiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll: No such file or directory Error loading shared library /app/libFiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll: No such file or directory Error loading shared library libFiftyOne.DeviceDetection.Hash.Engine.OnPremise.Native.dll: No such file or directory
Does FiftyOneDegree support Alphine images ? We do have Libatomic installed in the new image runtime
RUN apk add libatomic