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

Unable to read postmaster.pid for default #96

Closed
fluca1978 opened this issue Nov 14, 2017 · 1 comment
Closed

Unable to read postmaster.pid for default #96

fluca1978 opened this issue Nov 14, 2017 · 1 comment

Comments

@fluca1978
Copy link

I've a remote FreeBSD machine running PostgreSQL 9.6.5 (procfs enabled, if that matters). From an ubuntu machine I try to use pg_view installed from the repostiory (de5325a).

Now when I try to start the pg_view command I have the error in the subject:

% pg_view -U postgres -d testdb -h 192.168.222.100 -o console -v
Unable to read postmaster.pid for default at /mnt/data1/pgdata
 HINT:             make sure Postgres is running
ERROR: 2017-11-14 10:53:05,369 Unable to read postmaster.pid for default at /mnt/data1/pgdata
 HINT:             make sure Postgres is running
failed to read pid of the postmaster on {'host': '192.168.222.100', 'user': 'postgres', 'database': 'testdb'}
ERROR: 2017-11-14 10:53:05,369 failed to read pid of the postmaster on {'host': '192.168.222.100', 'user': 'postgres', 'database': 'testdb'}
unable to continue with cluster default
ERROR: 2017-11-14 10:53:05,370 unable to continue with cluster default
No suitable PostgreSQL instances detected, exiting...
ERROR: 2017-11-14 10:53:05,370 No suitable PostgreSQL instances detected, exiting...
hint: use -v for details, or specify connection parameters manually in the configuration file (-c)
ERROR: 2017-11-14 10:53:05,370 hint: use -v for details, or specify connection parameters manually in the configuration file (-c)
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/pg_view/__init__.py", line 254, in main
    sys.exit(1)
SystemExit: 1

I'm using python 2.7.
Of course, PostgreSQL is running, as well as the postmaster.pid file is in place.
What am I missing?

@alexeyklyukin
Copy link
Contributor

Queries from the system other than the one the database is running at are not supported, as pg_view uses information from local /proc in order to deliver system statistics. That is also the reason behind the fact that pg_view is currently Linux only. We would very much like to address both in 2.0, by allowing the system be collected by sprocs inside the remote database and querying the results from local pg_view.

There is a proof-on-concept PR from @a1exsh #80

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