Kafka Volume
angelbot-ai
PROOP

3 months ago

When I attach a volume to Kafka, it doesnt seem to working. apparently railway is attaching the volume as room where as kafka is running as a user and does not have access to the attached volume. what is the fix for this?

$10 Bounty

2 Replies

3 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 3 months ago


dardameiz
PRO

3 months ago

Hey! Railway mounts volumes as root but Kafka runs as a non-root user, so it can't access the volume. Quick fix: add a Start Command like chown -R 1000:1000 /your/volume/path && kafka-start-command to give Kafka ownership before it starts. If you're not sure of the user ID, try 1000 or 1001 (common for Kafka images), or just do chmod 777 /your/volume/path for testing. Which Kafka image are you using?


dardameiz
PRO

3 months ago

Could you solve it? :)


Loading...