-
Notifications
You must be signed in to change notification settings - Fork 140
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
Latest tag fails with "Command [/usr/local/bin/dub path /etc/kafka/ writable] FAILED !" #127
Comments
same thing: |
Happens here too, |
Here is a diff between 7.0.0 and 7.0.1, some changes were done to folder permissions, but I am not knowledgeable to say why/which change caused this |
Perfect :D This is really working out for me. |
Probably something with log4j or something like that. I downgraded 6.x.x version and worked fine for me. In couple of days latest tag will work again. |
@mihajloracic I see the same with 6.2.2 as well |
Hi Folks - Apologies for the disruption, we're putting in a fix for all latest released docker images in #129 - You'll see a new The original intention of #116 is to make these images more secure by not having world writeable directories. This issue highlights a testing gap that I've raised with our internal Quality Engineering teams. |
For 7.0.0 working. i'm using aks and image: confluentinc/cp-kafka:latest if have a problem they automatic change. |
Is there any workaround until then? All our builds are failing. we pinned the versions as far as 6.XX |
@vianini Could you please explain your interim fix? |
|
I'm using that image as part of docker-compose. There, just setting What's happening is that On my computer I'm running my container in rootless mode with Podman, so that |
This also affects the kafka connect image. |
Also schema-registry-images, this was reported 4 days ago: confluentinc/schema-registry-images#48 (comment) , and explains the problem arising with OpenShift. |
Well user 0 or root has access to everything, so of course that works, but now you're running a container as root, which is an anti-pattern.
I've asked that this be tracked as a separate issue, as this scenario is when things are ran in an OpenShift cluster, where-as things here are just broken out-of-the-box, which we're releasing a fix for, but likely won't resolve things when ran in an OpenShift cluster. |
I agree. It's only root inside the container though, I'm running my containers in root-less mode, so a container is really just a child process started by my own user, UID 0 inside it maps to my own UID on the host, whereas any other UID inside the container maps to yet another separate unprivileged user. I believe it's one of safest way to execute containers. Here is some background for info: https://www.redhat.com/en/blog/understanding-root-inside-and-outside-container Though yeah, avoid root even inside is certainly better. Anyhow, thanks also for your other comments, great to hear another image is on the way with adapted permissions on that folder. |
Any reason not to just temporarily switch to root, apply chown, and switch back to appuser? This built for me. |
Thats in essence, what this PR is doing #129 We're rebuilding images with these changes, and sending them through some sanity testing before we release new tags. By end of week you should see updated tags. |
@andrewegel I only run the cp-kafka-connect-base image from the confluent stack. I updated it to 7.0.1, but information endpoint still shows version 7.0.0-ccs:
Is that expected? |
That snip-it doesn't provide a lot of context so I can't really answer, but I think thats something connecting to a kafka broker running the Confluent Community Server version 7.0.0. |
Hello Folks - I have pushed new tags to the docker-hub with #129 The following tags have been updated:
I miss-entered a revision value for Please re-pull these tags ( |
This is what I've been using to reproduce the issue, and its functioning now:
|
Thank you @andrewegel ! It is working for me now. |
Do we know when this will be also released to dockerhub?! If i pull the image from docker hub i get still the same error |
@tnagel1 @david-dufour-kw : I've released fixed docker images that resolve the original issue. If you find that the latest tags on docker hub don't resolve the problem you are encountering (and please check you are pulling the new image tags), please provide more details in a separate issue:
Once I can reproduce locally, I can work on fixing things. |
Sorry, I was mistaken. I delete the cp-kafka images from my local Docker and was able to resolve the issue. |
Thats why I said here:
The |
latest-ubi8 still has this error. It's easy to fix with chown but when you cant access production machine or for others developers that testing your things it's annoying more even hard. kafka_1 | ===> Running preflight checks ...
kafka_1 | ===> Check if /var/lib/kafka/data is writable ...
kafka_1 | Command [/usr/local/bin/dub path /var/lib/kafka/data writable] FAILED ! kafka:
image: confluentinc/cp-kafka:latest-ubi8
ports:
- "9092:9092"
environment:
KAFKA_LISTENERS: SASL_PLAINTEXT://:9092
KAFKA_ADVERTISED_LISTENERS: LISTENER_DOCKER_INTERNAL://kafka1:19092,LISTENER_DOCKER_EXTERNAL://${DOCKER_HOST_IP:-127.0.0.1}:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: LISTENER_DOCKER_INTERNAL:PLAINTEXT,LISTENER_DOCKER_EXTERNAL:SASL_PLAINTEXT
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
ZOOKEEPER_SASL_ENABLED: "false"
KAFKA_OPTS: "-Djava.security.auth.login.config=/etc/kafka/kafka_server_jaas.conf"
KAFKA_INTER_BROKER_LISTENER_NAME: SASL_PLAINTEXT
KAFKA_SASL_ENABLED_MECHANISMS: PLAIN
KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: PLAIN
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /kafka_server_jaas.conf:/etc/kafka/kafka_server_jaas.conf
- /data:/var/lib/kafka/data
volumes:
kafka-data:
driver: local |
Seting
|
I am getting this error for version 7.1.1 when I use ubuntu, but not when I use mac. edit: yeah that isn't working edit2: I think it has something to do with docker edit3: able to fix the issue using this article: https://www.jujens.eu/posts/en/2017/Jul/02/docker-userns-remap/ |
Update your docker-compose with kafka-connect:
image: confluentinc/cp-kafka-connect-base:6.2.0
container_name: kafka-connect
user: root
...... |
@andrewegel What is being written to etc/kafka that requires filesystem to enable writing access? |
Issue Occur "uid=1000660005(1000660000) gid=1000660005 groups=1000660005, Command [/usr/local/bin/dub path /etc/kafka/ writable] FAILED !" I used -3-ubi version. I still received this error on OpenShift cluster. Is this issue being fixed? |
Getting the similar error in
|
Hi @astenman, can you please share the version of cp-kafka, that worked for you . |
Hi @DilLip-Chowdary-Codes , I am using the same version and getting the same issue. did you get to fix it? |
We fixed that issue by building our own image |
Hi @yuhsuan0323 could you provide more details on how to do that? Apparently few have mentioned that 7.0.0 version worked but did not work when I tried that. |
… FAILED !` error in cp-schema-registry confluentinc/kafka-images#127
Hitting same issue with the latest build
|
confluentinc/cp-kafka:7.4.0
sudo docker start kafka && sudo docker exec -u root -it kafka chown -R appuser:appuser /var/lib/kafka |
I was struggling with the same problem, I tried both oldest and newer versions without any result, |
There is an issue with the latest cp-kafka docker image version 7.0.1 which prevents it from starting (see confluentinc/kafka-images#127). Pinning kafka and zookeeper images a version 7.0.0 for now.
There is an issue with the latest cp-kafka docker image version 7.0.1 which prevents it from starting (see confluentinc/kafka-images#127). Pinning kafka and zookeeper images a version 7.0.0 for now.
Tried to update my containers today, but gets this error
The text was updated successfully, but these errors were encountered: