Posted by
Updated onFebruary 1, 2023

Not happy with your web hosting service provider?

Approx. read time : 2 min

warn [cpanel] Cpanel::AdminBin::adminrun(postgres) (exit code = 1) set error in context postgres:
warn [Postgres::updateprivs] Encountered error in Postgres::updateprivs: postgresadmin had an unknown error

When PostgreSQL is installed on the server, accessing it (PostgreSQL databases) from cPanel shows offline. In such situations, best way to troubleshoot is refer /usr/local/apache/logs/error_log. See what they show. If they report any error as above, perform the steps in this post.

Login to your server as root.

Login to WHM >> SQL Services >> Postgres Config >> Click on “Install Config”.
Login to WHM >> SQL Services >> Postgres Config >> “Set a Postgresql password too”

Try accessing PostgreSQL databases now.


My name is Neha Khanna, I work for I am interested in posting content on various topics. I aim at posting informative articles that provide value to people.