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

On CircleCI EventuateKafkaNativeContainer fails to start with /opt/kafka/config/ not writable #65

Open
cer opened this issue Aug 20, 2024 · 2 comments

Comments

@cer
Copy link
Contributor

cer commented Aug 20, 2024

===> User
uid=1000(appuser) gid=1000(appuser)
===> Setting default values of environment variables if not already set.
===> Configuring ...
Running in KRaft mode...
/opt/kafka/config/ file not writable
cer added a commit that referenced this issue Aug 20, 2024
cer added a commit that referenced this issue Aug 20, 2024
cer added a commit that referenced this issue Aug 20, 2024
cer added a commit that referenced this issue Aug 20, 2024
cer added a commit that referenced this issue Aug 20, 2024
@cer
Copy link
Contributor Author

cer commented Aug 20, 2024

This is bizzare.

Executed commands in the container before it starts Kafka:

$ ls -ltd /opt/kafka/config/

drwxrwxr-x    2 appuser  root          4096 Jul 23 09:00 /opt/kafka/config/

$ id

uid=1000(appuser) gid=1000(appuser)

$ sh -c '[[ -w /opt/kafka/config/ ]] && echo yes

yes

The kafka startup script also has the same identity:

06:01:45.869 [Test worker] ERROR tc.apache/kafka-native:latest - Log output from the failed container:

uid=1000(appuser) gid=1000(appuser)
===> User
uid=1000(appuser) gid=1000(appuser)
===> Setting default values of environment variables if not already set.
===> Configuring ...
Running in KRaft mode...
/opt/kafka/config/ file not writable

The only difference with running locally is that the id command output includes `groups=...".

@cer
Copy link
Contributor Author

cer commented Aug 20, 2024

Running on CircleCI:

======== Command sh -c [[ -w /opt/kafka/config/ ]] && echo yes :  -> 
ExitCode=0
Stdout=yes

Stderr=
======== Command bash -c [[ -w /opt/kafka/config/ ]] && echo yes :  -> 
ExitCode=1
Stdout=
Stderr=

vs.

Running on Mac or Git Actions:

======== Command sh -c [[ -w /opt/kafka/config/ ]] && echo yes :  -> 
ExitCode=0
Stdout=yes

Stderr=
======== Command bash -c [[ -w /opt/kafka/config/ ]] && echo yes :  -> 
ExitCode=0
Stdout=yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant