Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build is failing on Mac and Linux #1070

Closed
7 tasks
KGKallasmaa opened this issue Oct 3, 2023 · 3 comments
Closed
7 tasks

Build is failing on Mac and Linux #1070

KGKallasmaa opened this issue Oct 3, 2023 · 3 comments

Comments

@KGKallasmaa
Copy link

KGKallasmaa commented Oct 3, 2023

Description

This docker file has worked for many months.
Last week when I wanted to start working on it, the docker compose failed.

I got this error

Screenshot 2023-10-03 at 21 12 47

How to reproduce

Step1. Create a docker file

FROM golang:1.21.1-alpine3.18 AS builder
WORKDIR /app
COPY ./src/go.mod /app
COPY ./src/go.sum /app
RUN go mod download
RUN apk update && apk upgrade &&
apk add --no-cache pkgconf git bash build-base sudo clang openssl openssl-dev cyrus-sasl-dev
RUN git clone https://github.com/confluentinc/librdkafka.git && cd librdkafka && ./configure --prefix /usr --enable-sasl && make && make install
RUN echo "openssl_conf = openssl_init" > /etc/ssl/openssl.cnf
&& echo "[openssl_init]" >> /etc/ssl/openssl.cnf
&& echo "cipher_suites = ECDHE-ECDSA-AES128-GCM-SHA256" >> /etc/ssl/openssl.cnf
&& echo "ssl_conf = ssl_init" >> /etc/ssl/openssl.cnf
&& echo "[ssl_init]" >> /etc/ssl/openssl.cnf
&& echo "security.protocol = SASL_SSL" >> /etc/ssl/openssl.cnf
COPY ./src /app
RUN go build -tags dynamic -o /docker-gs-ping .
FROM alpine:3.18 AS runner
WORKDIR /
COPY --from=builder /usr/lib /usr/lib
COPY --from=builder /usr/lib/sasl2 /usr/lib/sasl2
COPY --from=builder /docker-gs-ping /docker-gs-ping
ENTRYPOINT ["/docker-gs-ping"]

Step2: Run docker-compose up --build

Checklist

Please provide the following information:

  • confluent-kafka-go and librdkafka version (LibraryVersion()): v2.2.0
  • Apache Kafka broker version:
  • Client configuration: ConfigMap{...} return kafka.ConfigMap{
    "bootstrap.servers": clusterUrl,
    "sasl.mechanisms": "PLAIN",
    "security.protocol": "SASL_SSL",
    "sasl.username": clusterApiKey,
    "sasl.password": clusterApiSecret,
    "session.timeout.ms": 90_000,
    "group.id": "example",
    "auto.offset.reset": "smallest",
    "heartbeat.interval.ms": 20_000,
    }
  • Operating system: Mac M1
  • Provide client logs (with "debug": ".." as necessary)
  • Provide broker log excerpts
  • Critical issue
@milindl
Copy link
Contributor

milindl commented Oct 5, 2023

Thanks for pointing this out. It seems like rd_ts_t isn't a part of the publicly exposed types here, let me check this.

@milindl
Copy link
Contributor

milindl commented Oct 5, 2023

I would guess this is due to the merge of confluentinc/librdkafka#4422 .

@milindl
Copy link
Contributor

milindl commented Oct 11, 2023

Fixed by confluentinc/librdkafka#4458, please reopen if this continues to happen.
Thanks for the report!

@milindl milindl closed this as completed Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants