[pgpool-general: 7364] Re: User "pgpool" does not have a valid SCRAM

Tatsuo Ishii ishii at sraoss.co.jp
Thu Dec 17 21:21:38 JST 2020


> Now they are correct and it can connect. Nevertheless, I'm having
> other issues. Here is the Backend Connection Settings
> 
> 
> # - Backend Connection Settings -
> backend_hostname0 = 'qs-auth-01.dc.internal'
> backend_port0 = 5432
> backend_weight0 = 1
> backend_data_directory0 = '/export/pgsql/data'
> backend_flag0 = 'ALLOW_TO_FAILOVER'
> backend_application_name0 = 'qs-auth-01.dc.internal'
> backend_hostname1 = 'qs-auth-02.dc. internal '
> backend_port1 = 5432
> backend_weight1 = 1
> backend_data_directory1 = '/export/pgsql/data'
> backend_flag1 = 'ALLOW_TO_FAILOVER'
> backend_application_name1 = 'qs-auth-02.dc.internal'
> 
> 
> node qs-auth-01.dc.internal should be the primary and has postgres running
> there, but pgpool seems to ignore it.
> node qs-auth-02.dc.internal is shutdown as I want to apply replication from
> node 1.
> 
> Here is the log:
>
> Dec 17 09:18:32 qs-auth-02 pgpool[20471]: [915-1] 2020-12-17 09:18:32: pid
> 20471: ERROR:  failed to make persistent db connection
> Dec 17 09:18:32 qs-auth-02 pgpool[20471]: [915-2] 2020-12-17 09:18:32: pid
> 20471: DETAIL:  connection to host:"qs-auth-02.dc.internal:5432" failed
> Dec 17 09:18:32 qs-auth-02 pgpool[20471]: [916-1] 2020-12-17 09:18:32: pid
> 20471: LOG:  health check retrying on DB node: 1 (round:2)
> Dec 17 09:18:33 qs-auth-02 pgpool[20471]: [917-1] 2020-12-17 09:18:33: pid
> 20471: LOG:  failed to connect to PostgreSQL server on
> "qs-auth-02.dc.internal:5432", getsockopt() detected error "Connection
> refused"
> Dec 17 09:18:33 qs-auth-02 pgpool[20471]: [918-1] 2020-12-17 09:18:33: pid
> 20471: ERROR:  failed to make persistent db connection
> Dec 17 09:18:33 qs-auth-02 pgpool[20471]: [918-2] 2020-12-17 09:18:33: pid
> 20471: DETAIL:  connection to host:"qs-auth-02.dc.internal:5432" failed
> Dec 17 09:18:33 qs-auth-02 pgpool[20471]: [919-1] 2020-12-17 09:18:33: pid
> 20471: LOG:  health check retrying on DB node: 1 (round:3)
> Dec 17 09:18:34 qs-auth-02 pgpool[20471]: [920-1] 2020-12-17 09:18:34: pid
> 20471: LOG:  failed to connect to PostgreSQL server on
> "qs-auth-02.dc.internal:5432", getsockopt() detected error "Connection
> refused"
> 
> I see nothing in the node qs-auth-01.dc.internal postgres logs. Is there
> another place where pgpool looks to find postgres servers?

Probably pgpool recognizes backend_hostname0 (qs-auth-01.dc.internal)
as in "down" or "unused" status.  You can verify it by executing "show
pool_nodes" from psql command connecting to pgpool.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp


More information about the pgpool-general mailing list