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

influx should gracefully fail if it doesn't have permissions to write to it's log file #947

Closed
sanga opened this issue Sep 18, 2014 · 1 comment
Assignees

Comments

@sanga
Copy link
Contributor

sanga commented Sep 18, 2014

[09/18/14 12:42:25] [INFO] Loading configuration file /etc/influxdb/config.toml
FileLogWriter("/var/log/influxdb/influxdb.log"): open /var/log/influxdb/influxdb.log: permission denied
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x4e35ae]

This is against 0.8.2. I can include the stack if you like, but I assume this is trivial to reproduce locally

@jvshahid jvshahid added the bug label Sep 18, 2014
@href
Copy link

href commented Sep 24, 2014

I had this problem as well. What's worse is that the process would just hang on queries (but not on writes) and I would see nothing in the logs.

So to add to this, it might be good to check for the right permissions when the server starts, so a faulty server configuration can be fixed early on.

toddboom added a commit that referenced this issue Nov 14, 2014
Fix #947: exit nice if no permission to write log
@dgnorton dgnorton removed the review label Nov 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants