Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upError opening memory series storage #1600
Comments
brian-brazil
added
the
kind/question
label
Apr 28, 2016
This comment has been minimized.
This comment has been minimized.
|
We do not recommend using NFS for Prometheus. This is likely a file locking issue, which is notoriously difficult to get working with NFS. |
This comment has been minimized.
This comment has been minimized.
|
Alriiight... thank you Brian! |
This comment has been minimized.
This comment has been minimized.
|
Prometheus keeps a file lock to protect against concurrent use of the same storage directory by two different Prometheus instances. I assume this is what broke here. |
This comment has been minimized.
This comment has been minimized.
waqark3389
commented
Jul 22, 2016
|
Any workaround to this? I moved my prometheus directory including everything inside it from /opt/prometheus/prometheus-1.0.0.linux-amd64/ to /opt/prometheus/ and am getting the same above error while attempting to start. |
This comment has been minimized.
This comment has been minimized.
|
Are you sure you killed the old prometheus? |
This comment has been minimized.
This comment has been minimized.
waqark3389
commented
Jul 22, 2016
|
Yeah I did. I think its due to the fact that I am using systemd file. I will double check my systemd service file as I've just read that two instances can cause this. |
This comment has been minimized.
This comment has been minimized.
waqark3389
commented
Jul 22, 2016
•
|
Apologies, was a problem with my systemd script. Changed to the following and all works fine. [Service] [Install] |
brian-brazil
closed this
Jul 22, 2016
This comment has been minimized.
This comment has been minimized.
dalgibbard
commented
May 13, 2017
|
FWIW; we've hit this issue or similar twice now whilst using MapR (NFS) as the backend storage for running Prometheus in Mesos/Marathon. Seems that prometheus locks up if the backend storage has a 'moment'. And then it's a bit hit and miss as to whether the lock remains in the backend or not. Moving the 'DIRTY' file away, and back again seems to be sufficient to get Prometheus running again if the lock is persisted, but the Prometheus process refuses to stop; even when stopping docker the process becomes defunct/zombie... Thanks! :) |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Spritekin commentedApr 28, 2016
Hi,
I got this message while restarting my prometheus.
time="2016-04-28T03:55:26Z" level=error msg="Error opening memory series storage: resource temporarily unavailable" source="main.go:139"
The data is on a NFS storage at /prometheus/data.
I changed the target directory to /prometheus/data2 and it starts fine. But of course no data available.
I'm running prometheus 0.17 from the official docker image (only with my yaml files added).
I was hoping anyone would shed a light.