influxdata / influxdata/influxdata-docker
Automated Setup leaves a file behind preventing startup in influxdb:latest
- Dominant language
- Shell
- Stars
- 364
- Forks
- 255
- Avg merge
- 3h 18m
- Merged PRs (30d)
- 7
Description
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](https://github.com/influxdata/influxdata-docker/files/12311470/logs.txt)
I can make the instance boot by running `chmod +rwx influx-config/sedKfbRwb` and then running the same docker command again.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Docker command in the issue and the attached logs.txt, then trace the image's automated setup and restart path that operates on /etc/influxdb2. Reproduce the mounted-volume setup on the stated environment and verify that startup completes without leaving a permission-blocking temporary file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, shell
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100