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

Incomplete error message when mkdir fails #2264

Closed
RichiH opened this Issue Dec 7, 2016 · 4 comments

Comments

Projects
None yet
2 participants
@RichiH
Copy link
Member

RichiH commented Dec 7, 2016

I made a mistake setting up my unit file's working directory and was greeted by:

Dec 07 23:24:05 33c3-prom01 prometheus[28076]: time="2016-12-07T23:24:05+01:00" level=info msg="Starting prometheus (version=1.4.1, branch=master, revision=63fe65bf2ff8c480bb4350e4d278d3208ca687be)" source="main.go:77"
Dec 07 23:24:05 33c3-prom01 prometheus[28076]: time="2016-12-07T23:24:05+01:00" level=info msg="Build context (go=go1.7.4, user=prometheus@33c3-prom01, date=20161204-09:54:20)" source="main.go:78"
Dec 07 23:24:05 33c3-prom01 prometheus[28076]: time="2016-12-07T23:24:05+01:00" level=info msg="Loading configuration file /home/prometheus/work/go/src/github.com/prometheus/prometheus/prometheus.yml" source="main.go:250"
Dec 07 23:24:05 33c3-prom01 prometheus[28076]: time="2016-12-07T23:24:05+01:00" level=error msg="Error opening memory series storage: mkdir data: permission denied" source="main.go:184"
Dec 07 23:24:05 33c3-prom01 systemd[1]: prometheus.service: main process exited, code=exited, status=1/FAILURE
Dec 07 23:24:05 33c3-prom01 systemd[1]: Unit prometheus.service entered failed state.

It would be better to show $PWD of where the mkdir failed.

@RichiH

This comment has been minimized.

Copy link
Member Author

RichiH commented Dec 31, 2016

@grobie

This comment has been minimized.

Copy link
Member

grobie commented Dec 31, 2016

This was fixed in #2270 as referenced above.

@RichiH

This comment has been minimized.

Copy link
Member Author

RichiH commented Dec 31, 2016

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 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.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.