Closed mhowlett closed 6 years ago
the symptoms do sound like a dependency issue to me, but i don't know why that would be if librdkafka itself is working.
what windows version are you using, and have you tried running on a different machine?
I'm running Windows 10. I had a coworker try it on Server 2012R2, and his also failed, but he got an error about ucrtbased.dll missing on his machine.
I should have that dll on my machine as part of my Windows 10 install, but I don't seem to have it either. Reinstalled my Windows 10 sdk, but no dice. Going to see if there's somewhere else I should be getting this dll.
hmm.. the machine I verified the .dlls on is running Windows 10 x64, and has Visual Studio 2015 and 2017 installed. I believe @edenhill is using VS 2015 to build the library. Maybe try installing the Visual C++ 2015 redistributable https://www.microsoft.com/en-us/download/details.aspx?id=52685 or Visual Studio 2015.
Tried the 2015 redistrib, but it fails (I think because I have 2017 installed). I uninstalled VS2015 a few months back, maybe it took some things with it.
Installed the latest Windows 10 sdk (10.0.17134.12) and we're off to the races. Thanks for the help!
closing because because i believe it's probably an unusual set of circumstances that caused this issue to occur. will re-open if others run into this.
if you've arrived at this page because you're experiencing a similar issue, it might be worth double checking you've specified the path to the monitoring interceptor .dll file correctly.
I am getting the same error
I'm getting the same error and have confirmed the path is correct. The error also tells me the path it is looking in, which is correct. Any ideas on what to do here?
What version of the monitoring-interceptors are you trying to use? 0.11.0 or 0.11.1?
For anyone arriving here using this library with dotnetcore macOS: I was getting a very similar error. The fix was to uninstall / re-install the librdkafa installed by brew.
thanks for noting that @russau
did you try without librdkafka installed via brew at all (rely on Confluent.Kafka's librdkafka.resist dependency)?
Hello @mhowlett - it's now all working for me with brew's librdkafka 1.3.0 and nuget's Confluent.Kafka 1.3.0.
If I brew uninstall librdkafka
I get the following error when I run my dotnetcore app
Unhandled exception. System.ArgumentException: dlopen() failed: dlopen(monitoring-interceptor.dylib, 6): Library not loaded: /usr/local/opt/librdkafka/lib/librdkafka.1.dylib. Referenced from: /usr/local/lib/monitoring-interceptor.dylib. Reason: image not found (plugin monitoring-interceptor)
The app does then work with no PluginLibraryPaths
configured.
I am encountering this issue using Windows with .NET 6. I verified that I only have one version of librdkafka installed, version 1.9.2, and that path that is being shown in the error is the correct path to the project's bin file.
Description
From the Kafka mailing list: