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

Error message: Unable to read free space information for the pg_xlog... #82

Open
btostevepritchard opened this issue Mar 17, 2017 · 1 comment

Comments

@btostevepritchard
Copy link

When I run pg_view, it is repeatedly outputting the message:

Unable to read free space information for the pg_xlog and data directories for the directory /pgsql/9.5/data: [Errno 13] Permission denied: '/pgsql/9.5/data/pg_xlog/lost+found'

This makes the pg_view display unreadable.

I think the reason that this is happening is because I have /pg_xlog mounted on a separate partition (symlinked from $PGDATA/pg_xlog), and Linux has created a lost+found directory:

drwx------ 2 root root 4096 Mar 15 09:20 lost+found

So my postgres user doesn't have access to this directory.

Could pg_view just skip "lost+found" if it's not readable? (obviously it wouldn't know what space is used by it)

Also, if there is an error, could pg_view just show "????" or similar in the appropriate field, rather than the display being rendered unusable by the repeated outputting of error messages?

@alexeyklyukin
Copy link
Contributor

Thanks for your report.

The problem is that the gatherers for the directory information are running in separate threads, and the stderr output is disabled after those gatherers start.

The fix is in progress.

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

2 participants