[pgpool-general: 2366] Re: superuser: unknown (Connection error)

Nozomi Anzai anzai at sraoss.co.jp
Thu Dec 26 10:05:32 JST 2013


Hi,

Thank you for sending information. I reproduced your situation and fixed
this problem.
Now pgpoolAdmin shows "supeuser: yes" or "superuser: no" when a backend
node works, and pgpool_pgctl() is executed by the login user only when he
is a super user.

Could you try the latest master snapshot?
http://git.postgresql.org/gitweb/?p=pgpooladmin.git;a=snapshot;h=9cf159246892e3388b36f4b43cccc0c62e54a29f;sf=tgz


> Hi,
> 
> Thanks for replay ;) Please see attachements. There is 
> pgpooladmin_screen.jpg and file pgpool.conf. SSH use public key 
> authentication. In all files named pg_hba.conf on postgres clusters are 
> lines:
> 
> host    all             all ip_address_db_cluster1/32      trust
> host    all             all ip_address_db_cluster2/32      trust
> host    all             all             ip_address_pgpool/32 trust
> 
> 
> W dniu 2013-12-18 10:47, Nozomi Anzai pisze:
> > Hi,
> >
> >> Hello,
> >>
> >> I have a problem with pgpooladmin. I have the information, that -
> >> superuser: unknown (Connection error) (see attachment -
> >> pgpooladmin_statement.jpg). Please help me, what should I do to solve
> >> the problem.
> > I'm afraid your pgpool and pgpoolAdmin cannot connect its backend nodes.
> > What is shown in "status" column in "Backend info (PostgreSQL)" area?
> > It expected there is "postgres: Up", but if you don't set sr_check_user/
> > password nor health_check_user/password in pgpool.conf, there will be
> > "postgres: down" even when the backend PostgreSQL is active.
> >
> > Could you show us your pgpool.conf?
> >
> >> The function - pgpool_pgctl - is installed correctly, I
> >> think. For example function "SELECT pgpool_pgctl('reload', '')" return
> >> true:
> >>
> >> postgres �� pgcl1:~> psql template1 -c "SELECT pgpool_pgctl('reload', '')";
> >>    pgpool_pgctl
> >> --------------
> >>    t
> >> (1 row)
> >>
> >> A superuser whose name is same as the pgpoolAdmin's login user exists in
> >> the backend. PgpoolAdmin's login user is postgres.
> >>
> >> -- 
> >> Pozdrawiam / Best regards
> >> Aleksander Englert
> >> aleksander_englert �� skg.pl
> >> tel. 033/8281168
> >> kom. +48692469269
> >>
> >> SKG S.A.
> >> 43-309 Bielsko-Biała, Al. Armii Krajowej 336
> >> tel. +48 33 8281-100, fax +48 33 8281-105
> >> e-mail: firma �� skg.pl
> >>
> >> Nr KRS: 47940, Sąd Rejonowy w Bielsku-Białej, VIII Wydział Gospodarczy KRS
> >> NIP: 547-12-57-936, Regon: 070711270
> >> Kapitał zakładowy: 500 000 zł w całości opłacony
> >>
> >> Niniejsza wiadomość może zawierać informacje prawnie chronione.
> >> Wiadomość skierowana jest wyłącznie do
> >> adresata/ adresatów określonych wyżej i stanowi własność nadawcy.
> >> Odbiorca, który otrzymał tę wiadomość
> >> przypadkowo, proszony jest o jej nie rozpowszechnianie, a następnie
> >> poinformowanie nadawcy i jej
> >> usunięcie. Rozpowszechnianie, kopiowanie, ujawnianie lub przekazywanie
> >> osobom trzecim w jakiejkolwiek
> >> formie informacji zawartych w niniejszej wiadomości w całości lub części
> >> jest zakazane.
> >>
> >> The information contained in this message may be privileged and
> >> confidential and protected from disclosure.
> >> Information included in that message is addressed only to the
> >> addressee/addressees determined above and is the property
> >> of the sender. If you have received this communication in error, please
> >> notify the sender immediately by replaying
> >> to the message and deleting it from your computer. Any dissemination,
> >> distribution or copying of this communication
> >> to the third parties is strictly prohibited.
> >
> 
> -- 
> Pozdrawiam / Best regards
> Aleksander Englert
> aleksander_englert �� skg.pl
> tel. 033/8281168
> kom. +48692469269
> 
> SKG S.A.
> 43-309 Bielsko-Biała, Al. Armii Krajowej 336
> tel. +48 33 8281-100, fax +48 33 8281-105
> e-mail: firma �� skg.pl
> 
> Nr KRS: 47940, Sąd Rejonowy w Bielsku-Białej, VIII Wydział Gospodarczy KRS
> NIP: 547-12-57-936, Regon: 070711270
> Kapitał zakładowy: 500 000 zł w całości opłacony
> 
> Niniejsza wiadomość może zawierać informacje prawnie chronione. 
> Wiadomość skierowana jest wyłącznie do
> adresata/ adresatów określonych wyżej i stanowi własność nadawcy. 
> Odbiorca, który otrzymał tę wiadomość
> przypadkowo, proszony jest o jej nie rozpowszechnianie, a następnie 
> poinformowanie nadawcy i jej
> usunięcie. Rozpowszechnianie, kopiowanie, ujawnianie lub przekazywanie 
> osobom trzecim w jakiejkolwiek
> formie informacji zawartych w niniejszej wiadomości w całości lub części 
> jest zakazane.
> 
> The information contained in this message may be privileged and 
> confidential and protected from disclosure.
> Information included in that message is addressed only to the 
> addressee/addressees determined above and is the property
> of the sender. If you have received this communication in error, please 
> notify the sender immediately by replaying
> to the message and deleting it from your computer. Any dissemination, 
> distribution or copying of this communication
> to the third parties is strictly prohibited.


-- 
Nozomi Anzai
SRA OSS, Inc. Japan


More information about the pgpool-general mailing list