Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
ProGet: AD/LDAP issues with 2024 Docker image
-
LdapV4 Exception thrown after ProGet 23.0.30 -> 24.0.0 Docker upgrade (Rocky Linux 8 Host w/ Docker version 26.0.1). Any pointers would be appreciated! I will write up a proper support ticket soon, if this isn't a quick and easy answer...
Logged:04/23/2024 09:02:44 Level:Error Category:LdapV4 Message:The type initializer for 'Ldap' threw an exception. Details:System.TypeInitializationException: The type initializer for 'Ldap' threw an exception. ---> System.DllNotFoundException: Unable to load shared library 'libldap-2.5.so.0' 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: /usr/local/proget/service/libldap-2.5.so.0: cannot open shared object file: No such file or directory /tmp/Inedo/ExtensionCache/c7314d6c38d09c9df3f884ffa6bd618e742a69d8/package/runtimes/linux/lib/net8.0/libldap-2.5.so.0: cannot open shared object file: No such file or directory /usr/local/proget/service/liblibldap-2.5.so.0: cannot open shared object file: No such file or directory /tmp/Inedo/ExtensionCache/c7314d6c38d09c9df3f884ffa6bd618e742a69d8/package/runtimes/linux/lib/net8.0/liblibldap-2.5.so.0: cannot open shared object file: No such file or directory /usr/local/proget/service/libldap-2.5.so.0.so: cannot open shared object file: No such file or directory /tmp/Inedo/ExtensionCache/c7314d6c38d09c9df3f884ffa6bd618e742a69d8/package/runtimes/linux/lib/net8.0/libldap-2.5.so.0.so: cannot open shared object file: No such file or directory /usr/local/proget/service/liblibldap-2.5.so.0.so: cannot open shared object file: No such file or directory /tmp/Inedo/ExtensionCache/c7314d6c38d09c9df3f884ffa6bd618e742a69d8/package/runtimes/linux/lib/net8.0/liblibldap-2.5.so.0.so: cannot open shared object file: No such file or directory at Interop.Ldap.<ldap_get_option_int>g____PInvoke|7_0(IntPtr __ldapHandle_native, LdapOption __option_native, Int32* __outValue_native) at Interop.Ldap.ldap_get_option_int(IntPtr ldapHandle, LdapOption option, Int32& outValue) at Interop.Ldap..cctor() --- End of inner exception stack trace --- at Interop.Ldap.ldap_initialize(IntPtr& ld, String uri) at System.DirectoryServices.Protocols.LdapConnection.InternalInitConnectionHandle() at System.DirectoryServices.Protocols.LdapConnection.Init() at System.DirectoryServices.Protocols.LdapConnection..ctor(LdapDirectoryIdentifier identifier, NetworkCredential credential, AuthType authType) at Inedo.Extensions.UserDirectories.DirectoryServicesLdapClient.Connect(String server, Nullable`1 port, Boolean ldaps, Boolean bypassSslCertificate) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E438548\Src\InedoCore\InedoExtension\UserDirectories\DirectoryServicesLdapClient.cs:line 12 at Inedo.Extensions.UserDirectories.ADUserDirectoryV4.GetDomainNameFromNetbiosName(String netbiosName) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E438548\Src\InedoCore\InedoExtension\UserDirectories\ADUserDirectoryV4.cs:line 420
My best guess aright now is that this relates to one of the many breaking changes with dotnet 8.0 container images (several links as example possibilities):
https://learn.microsoft.com/en-us/dotnet/core/compatibility/containers/8.0/krb5-libs-package
https://learn.microsoft.com/en-us/dotnet/core/compatibility/containers/8.0/aspnet-port
https://learn.microsoft.com/en-us/dotnet/core/compatibility/containers/8.0/app-userIn my ProGet 2023 container, it looks like maybe the ldap libs are referenced from /tmp/Inedo/ExtensionCache/, whereas I have nothing in that same location when I try running the 2024 container. Here's that location's contents in the 2023 container:
root@c8a91627f629:/usr/local/proget# ls -laR /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c: total 12 drwxrwxr-x+ 3 root root 56 Apr 23 13:08 . drwxrwxr-x+ 6 root root 4096 Apr 23 13:08 .. -rw-rw-r--+ 1 root root 0 Apr 23 21:08 .lastUsed drwxrwxr-x+ 3 root root 4096 Apr 23 13:08 package -rw-rw-r--+ 1 root root 443 Jan 15 16:03 upack.json /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c/package: total 2140 drwxrwxr-x+ 3 root root 4096 Apr 23 13:08 . drwxrwxr-x+ 3 root root 56 Apr 23 13:08 .. -rw-rw-r--+ 1 root root 40960 Feb 23 2022 Inedo.AssetDirectories.dll -rw-rw-r--+ 1 root root 75264 Mar 7 2023 Inedo.DependencyScan.dll -rw-rw-r--+ 1 root root 108544 Feb 20 2023 Inedo.UPack.dll -rw-rw-r--+ 1 root root 12250 Jan 15 21:03 InedoCore.deps.json -rw-rw-r--+ 1 root root 491008 Jan 15 21:03 InedoCore.dll -rw-rw-r--+ 1 root root 144024 Jan 15 21:03 InedoCore.pdb -rw-rw-r--+ 1 root root 52616 Oct 19 2020 Microsoft.Extensions.Logging.Abstractions.dll -rw-rw-r--+ 1 root root 26224 Oct 22 2021 Microsoft.Win32.SystemEvents.dll -rw-rw-r--+ 1 root root 238592 Jan 8 2021 Novell.Directory.Ldap.NETStandard.dll -rw-rw-r--+ 1 root root 74864 Jan 14 2022 System.DirectoryServices.Protocols.dll -rw-rw-r--+ 1 root root 131760 Jan 23 2023 System.DirectoryServices.dll -rw-rw-r--+ 1 root root 175216 Oct 22 2021 System.Drawing.Common.dll -rw-rw-r--+ 1 root root 104048 Oct 22 2021 System.Security.Permissions.dll -rw-rw-r--+ 1 root root 457880 May 17 2022 System.Text.Json.dll -rw-rw-r--+ 1 root root 25712 Oct 22 2021 System.Windows.Extensions.dll drwxrwxr-x+ 5 root root 42 Apr 23 13:08 runtimes /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c/package/runtimes: total 4 drwxrwxr-x+ 5 root root 42 Apr 23 13:08 . drwxrwxr-x+ 3 root root 4096 Apr 23 13:08 .. drwxrwxr-x+ 3 root root 17 Apr 23 13:08 linux drwxrwxr-x+ 3 root root 17 Apr 23 13:08 unix drwxrwxr-x+ 3 root root 17 Apr 23 13:08 win /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c/package/runtimes/linux: total 0 drwxrwxr-x+ 3 root root 17 Apr 23 13:08 . drwxrwxr-x+ 5 root root 42 Apr 23 13:08 .. drwxrwxr-x+ 3 root root 20 Apr 23 13:08 lib /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c/package/runtimes/linux/lib: total 0 drwxrwxr-x+ 3 root root 20 Apr 23 13:08 . drwxrwxr-x+ 3 root root 17 Apr 23 13:08 .. drwxrwxr-x+ 2 root root 52 Apr 23 13:08 net6.0 /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c/package/runtimes/linux/lib/net6.0: total 144 drwxrwxr-x+ 2 root root 52 Apr 23 13:08 . drwxrwxr-x+ 3 root root 20 Apr 23 13:08 .. -rw-rw-r--+ 1 root root 143456 Jan 14 2022 System.DirectoryServices.Protocols.dll /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c/package/runtimes/unix: total 0 drwxrwxr-x+ 3 root root 17 Apr 23 13:08 . drwxrwxr-x+ 5 root root 42 Apr 23 13:08 .. drwxrwxr-x+ 3 root root 20 Apr 23 13:08 lib /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c/package/runtimes/unix/lib: total 0 drwxrwxr-x+ 3 root root 20 Apr 23 13:08 . drwxrwxr-x+ 3 root root 17 Apr 23 13:08 .. drwxrwxr-x+ 2 root root 39 Apr 23 13:08 net6.0 /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c/package/runtimes/unix/lib/net6.0: total 420 drwxrwxr-x+ 2 root root 39 Apr 23 13:08 . drwxrwxr-x+ 3 root root 20 Apr 23 13:08 .. -rw-rw-r--+ 1 root root 427112 Oct 22 2021 System.Drawing.Common.dll /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c/package/runtimes/win: total 0 drwxrwxr-x+ 3 root root 17 Apr 23 13:08 . drwxrwxr-x+ 5 root root 42 Apr 23 13:08 .. drwxrwxr-x+ 3 root root 20 Apr 23 13:08 lib /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c/package/runtimes/win/lib: total 4 drwxrwxr-x+ 3 root root 20 Apr 23 13:08 . drwxrwxr-x+ 3 root root 17 Apr 23 13:08 .. drwxrwxr-x+ 2 root root 4096 Apr 23 13:08 net6.0 /tmp/Inedo/ExtensionCache/7462773e85b56c435a5575cf8e889f57673c571c/package/runtimes/win/lib/net6.0: total 1064 drwxrwxr-x+ 2 root root 4096 Apr 23 13:08 . drwxrwxr-x+ 3 root root 20 Apr 23 13:08 .. -rw-rw-r--+ 1 root root 53352 Oct 22 2021 Microsoft.Win32.SystemEvents.dll -rw-rw-r--+ 1 root root 139376 Jan 14 2022 System.DirectoryServices.Protocols.dll -rw-rw-r--+ 1 root root 383616 Jan 23 2023 System.DirectoryServices.dll -rw-rw-r--+ 1 root root 454248 Oct 22 2021 System.Drawing.Common.dll -rw-rw-r--+ 1 root root 43112 Oct 22 2021 System.Windows.Extensions.dll
-
Hi @scott-goodwin_8239 ,
Thanks for the detailed report; you're right, it's definitely related to some kind of library/platform problem. There seems to be a known bug in one of the libraries that can cause this in some cases on Linux.
Fortunately we already identified a good workaround/fix to this issue (PG-2626), and we plan to ship it on Friday evening; please let us know if you'd like to try this in a prerelease version.
Thanks,
Alana
-
Thanks for the quick reply!
I'll wait until the next build is released before testing the fix. Since I have a lot of other tasks on my plate right now, and the rollback to 2023 worked perfectly, there is no particular rush
Cheers