question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

librdkafka fails to load on 2.1-aspnetcore-runtime-alpine

See original GitHub issue

Description

using container 2.1-aspnetcore-runtime works, 2.1-aspnetcore-runtime-alpine fails

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. —> System.DllNotFoundException: Failed to load the librdkafka native library. submission-term-dd1.1.vclyzsukdl49@tcwsddu1 at Confluent.Kafka.Impl.LibRdKafka.Initialize(String userSpecifiedPath) submission-term-dd1.1.vclyzsukdl49@tcwsddu1 at Confluent.Kafka.Producer…ctor(IEnumerable1 config, Boolean manualPoll, Boolean disableDeliveryReports) submission-term-dd1.1.vclyzsukdl49@tcwsddu1 at Confluent.Kafka.Producer2…ctor(IEnumerable1 config, ISerializer1 keySerializer, ISerializer`1 valueSerializer, Boolean manualPoll, Boolean disableDeliveryReports)

How to reproduce

Create a ASP.Net Core 2.1 project with Confluent.Kafka 0.11.5. Include the standard producer. Build the project and deploy in Docker using the official Microsoft Alpine image.

Using the official (stretch) container works fine.

Checklist

Please provide the following information:

  • [x ] Confluent.Kafka nuget version: 0.11.5
  • Apache Kafka version:
  • Client configuration:
  • [x ] Operating system: Alpine Linux container
  • Provide logs (with “debug” : “…” as necessary in configuration)
  • Provide broker log excerpts
  • Critical issue

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:36 (12 by maintainers)

github_iconTop GitHub Comments

4reactions
scovelcommented, Sep 6, 2018

The official Alpine build is a good start but what I need is support in the NuGet package as @mhowlett mentioned. We’re developing on Macs and PCs, and deploying to Docker.

The Alpine image is significantly smaller than the default image (stretch) so it is a big win if we can use it.

2reactions
mhowlettcommented, Jan 8, 2019

thanks @darrenfurr . just wanted to note that we’re tracking this internally (off-the-shelf support for alpine that is). It will be done after 1.0-RC1. i’m not sure if it’ll make into 1.0 (likely not), but likely 1.0.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found