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

Automated Setup leaves a file behind preventing startup in influxdb:latest #701

Open
aidanmorgan opened this issue Aug 10, 2023 · 1 comment

Comments

@aidanmorgan
Copy link

aidanmorgan commented Aug 10, 2023

I am trying to create an empty influxdb running in docker on my m2 macbook pro which is failing with a strange error. The database appears to do the automated setup bootstrapping, and restart the instance, but then fails with the following error:

sed: couldn't open temporary file /etc/influxdb2/sedPav3Lj: Permission denied

The command I am running from a terminal is:

docker run -it -p 8086:8086 \
      -v $PWD/influx-data:/var/lib/influxdb2 \
      -v $PWD/influx-config:/etc/influxdb2 \
      -e DOCKER_INFLUXDB_INIT_MODE=setup \
      -e DOCKER_INFLUXDB_INIT_USERNAME=admin \
      -e DOCKER_INFLUXDB_INIT_PASSWORD=password \
      -e DOCKER_INFLUXDB_INIT_ORG=test-org \
      -e DOCKER_INFLUXDB_INIT_BUCKET=test-bucket \
      -e DOCKER_INFLUXDB_INIT_RETENTION=3d \
      -e DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=my-super-secret-auth-token \
      influxdb:latest

I've attached the logs generated by the process here: logs.txt

I can make the instance boot by running chmod +rwx influx-config/sedKfbRwb and then running the same docker command again.

@aidanmorgan aidanmorgan changed the title Automated Setup leaves a file preventing startup in influxdb:latest Automated Setup leaves a file behind preventing startup in influxdb:latest Aug 10, 2023
@aidanmorgan
Copy link
Author

I've tried the same script on a x86 box running ubuntu in a GH Codespace, and it works initialises and runs as expected, so I suspect this issue is specific to docker on a m2 macbook pro.

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