Command [/usr/local/bin/dub path /var/lib/kafka/data writable] FAILED !
See original GitHub issueI’m using kafka image v6.1.4-2-ubi8 pulled from https://hub.docker.com/layers/confluentinc/cp-kafka/6.1.4-2-ubi8/images/sha256-f3edca939e7484f5930eb91a8a42c5a30bf0b8e2556400c6677509b20cb26510?context=explore
Building my own Docker using above and using it in a kubernetes pod
While trying to run the image, I am getting the mentioned error
===> User
uid=1000670000(1000670000) gid=0(root) groups=0(root),1000670000
===> Configuring ...
SSL is enabled.
===> Running preflight checks ...
===> Check if /var/lib/kafka/data is writable ...
Command [/usr/local/bin/dub path /var/lib/kafka/data writable] FAILED !
I tried a lot of changes but nothing seems to work
USER root
RUN yum -y update --disableplugin=subscription-manager && \
yum -y upgrade --disableplugin=subscription-manager && \
groupadd -g 1001 fcigroup && \
useradd -u 1001 -g 1001 -m fciuser && \
chown -R fciuser: /var/lib/kafka && \
chown -R fciuser: /home && \
chown -R fciuser: /etc && \
chown -R fciuser: /var/lib/kafka/data && \
chmod -R 777 /var/log/kafka && \
chmod -R 777 /home && \
chmod -R 777 /etc/kafka && \
chmod -R 777 /var/lib/kafka && \
chmod -R 777 /var/lib/kafka/data
USER 1001
I even removed USER 1001
but even that didn’t seem to solve my issue
USER root
RUN yum -y update --disableplugin=subscription-manager && \
yum -y upgrade --disableplugin=subscription-manager && \
chmod -R a+rwx /var/log/kafka && \
chmod -R a+rx /home && \
chmod -R a+rwx /var/lib/kafka && \
chmod -R a+rwx /var/lib/kafka/data && \
chmod -R a+rwx /etc/kafka
I had to add /etc/kafka
because earlier even that was throwing similar error
Any help is appreciated
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Latest tag fails with "Command [/usr/local/bin/dub path /etc/ ...
Tried to update my containers today, but gets this error.
Read more >Change zookeeper user id for kafka docker images
I was able to successfully run version 4.0.0 but its failing for newer version. ... Check if /var/lib/zookeeper/data is writable .
Read more >(No title)
Im using docker swarm to set up a kafka-queue container. for some reason since 3 days ago, the kafka-queue fails to start with...
Read more >Docker error on OS X (with new Docker)
I ran these commands: ... PS: I tried to run Kafka without Docker a few days ago, again, I failed. ... kafka_1 |...
Read more >Developer Guide — Confluent Platform 3.1.2 documentation
dub path /etc/kafka/ writable curl -XGET ZOOKEEPER_SERVER_CONFIG_URL > /etc/kafka/zookeeper.properties curl -XGET ZOOKEEPER_SERVER_ID_URL > /var/lib/zookeeper/ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great, thanks for confirming - We can track things here. I have some in-flight PRs I’ll list here that I believe will resolve things:
Internally we’re testing these changes to validate things are resolved before we merge & do mass rebuilds & re-releases of images. ETA is within the next couple of weeks. I will update things here as we make progress.
Hello folks-
After verifying these fixes worked in an OpenShift cluster with a random-uid-but-root-group runAs user, we have verified that this issue is no longer present. For the time being, I have pushed new a new
6.2.2-3-ub8
tag, and updated the6.2.2
tag to these new images.The following releases will also see this update something this week (I will update this issue as we release them):
[Edit]
5.4.6
,5.4.6-3-deb8
,5.4.6-3-deb9
,5.4.6-3-ubi8
on 01-10-20225.5.7
,5.5.7-3-deb8
,5.5.7-3-deb9
,5.5.7-3-ubi8
on 01-10-20226.0.5
,6.0.5-3-ubi8
on 01-11-20226.1.4
,6.1.4-3-ubi8
on 01-11-20226.2.2
,6.2.2-3-ubi8
on 01-10-227.0.1
,7.0.1-3-ubi8
,latest
,latest-ubi8
on 1-11-2022