etc/prometheus/prometheus.yml: operation not permitted #12492
Replies: 5 comments 1 reply
-
From the error message, it seems like the Prometheus process in the container is not allowed to read the configuration file at /etc/prometheus/prometheus.yml. This could be a Docker-related issue. First, let's ensure that the Ensure the file permissions are correct on the host system, that is, the file can be read by the user in Docker. You could try changing the permissions using |
Beta Was this translation helpful? Give feedback.
-
@roidelapluie Thanks for responding. This is the structure of the application as you can already see, I have the This is what I have in my
|
Beta Was this translation helpful? Give feedback.
-
@roidelapluie And just to show , I have changed the permissions on the file as suggested. |
Beta Was this translation helpful? Give feedback.
-
I have also tried mounting the who directory like so
but that too does not help because I get the same error log. |
Beta Was this translation helpful? Give feedback.
-
@roidelapluie are you able to help with this? |
Beta Was this translation helpful? Give feedback.
-
What did you do?
When starting up the prometheus container locally, I get the following error.
This issues seems to have been going on for a while as seen here
#5976
Has a solution been for for the error?
This is the image being used
I have also tried this
But I get the same error.
Expected Behaviour
Prometheus should start up without any hickups
Current Behaviour
Prometheus never starts up.
Possible Solution
Update the Dockerfile and take necessary steps to eliminate the permission denied issue.
What did you expect to see?
A working prometheus container.
What did you see instead? Under which circumstances?
Current Behaviour
Prometheus never starts up.
System information
No response
Prometheus version
Prometheus configuration file
No response
Alertmanager version
No response
Alertmanager configuration file
No response
Logs
Beta Was this translation helpful? Give feedback.
All reactions