Skip to content

Scheduled docker Data Importer and Failed to open stream : Permission denied #8489

Answered by dlegranddk
dlegranddk asked this question in Q&A
Discussion options

You must be logged in to vote

For those who would have the same issue, I think I found a stable solution.

On docker compose, I just added an healthcheck
healthcheck: test: curl --fail http://ip:port/health || exit 1 interval: 600s timeout: 3s retries: 3 start_period: 300s

and actually also an autoheal service
autoheal: image: willfarrell/autoheal:1.2.0 volumes: - "/var/run/docker.sock:/var/run/docker.sock" environment: AUTOHEAL_CONTAINER_LABEL: autoheal AUTOHEAL_START_PERIOD: 600 AUTOHEAL_INTERVAL: 30

and for the last few days, the imports have all been successfull. I'm still learning docker but that seems useful.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dlegranddk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant