Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tPXxV-00DXfj-BP for pgsql-general@arkaria.postgresql.org; Mon, 23 Dec 2024 02:14:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tPXxT-0061A6-8W for pgsql-general@arkaria.postgresql.org; Mon, 23 Dec 2024 02:14:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tPXxS-00619y-Ub for pgsql-general@lists.postgresql.org; Mon, 23 Dec 2024 02:14:10 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tPXxQ-0006yL-0k for pgsql-general@lists.postgresql.org; Mon, 23 Dec 2024 02:14:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Transfer-Encoding:Content-Type: Mime-Version:References:In-Reply-To:From:Subject:Cc:To:Message-Id:Date:Sender :Reply-To:Content-ID:Content-Description; bh=jrJ1ohtvakaDDkXI+4EmqzJKQyqVvdvyFC4jxHRvcL4=; b=moraI24ZVFOMZL0/lGRPgt/ELI dGxvVgxaaBdCkfo2rdfiz0DNWPOVsdcL5RKL7MVsYsIsZfQSSUA0IoFya2giD7kNfXUO5JyLTKbGD fD9MT4mMs9jVe6CBhKBso5u9ptcdfveADdtOdTxKeIHqcI2UMm+MFiIarawY311rNq6bRDxXX7X4S 0aUqmoH3wgyaKVDAAP+S/zyq+fwzmscF2iaV0SHmXGS/00BPGGymUsNMXYiyjWzQ79zMrrsT9A2RQ /+kjsNpwiDm58PPsBltYgGqfEpsNOlPBv+yHt5E6VJfyLN6H05elVaX+5DtAuR0lwh3SqVdVbGsOR N5fogvpw==; Received: from [2409:11:4120:300:2fcc:80f5:a4ec:6bd9] (helo=localhost) by meldrar.postgresql.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.94.2) (envelope-from ) id 1tPXxI-002upV-1s; Mon, 23 Dec 2024 02:14:03 +0000 Date: Mon, 23 Dec 2024 11:13:50 +0900 (JST) Message-Id: <20241223.111350.278027966538000695.ishii@postgresql.org> To: mukesh.postgres@gmail.com Cc: pgpool-general@pgpool.net, vijay.postgres@gmail.com, pgsql-general@lists.postgresql.org Subject: Re: [pgpool-general: 9291] pgpool Connection issue: ERROR: unable to read message kind From: Tatsuo Ishii In-Reply-To: References: X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2409:11:4120:300:2fcc:80f5:a4ec:6bd9 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Hello Everyone, > > We have a Postgres setup in Azure (IAAS) with 2 DB nodes in the cluster and > pgpool is running on each DB node. We have enabled the watchdog. > > What we are doing: We are testing the connectivity to DB cluster via > HammerDB to apply the load. > HammerDB is connecting to Delegate IP via 9999 port. > > Issue: when we initiate the connection it gives error, but when we > re-initiate the connection again then it is successful. What could be the > issue > > Error message we are seeing when we initiate the connection for the first > time. > > Error in Virtual User 1: Error: Connection to database failed > connection to server at "10.35.8.4", port 9999 failed: ERROR: unable to > read message kind > DETAIL: kind does not match between main(53) slot[1] (45) > > If you want to see any configuration settings that i made, i can share. > > Please help me in this regard. The error message can be interpreted that primary PostgreSQL sent 0x53 = 'S'(parameter status message) while standby sent 0x45 = 'E' (error response). Perhaps the parameter status cannot be processed on standby for some reasons. In order to study the cause of error, I need a pgpool log with debug level 1 (log_min_messages = debug1). Can you provide it? BTW, cross posting pgpool-general and pgsql-general is not recommended. Please post to pgpool-general only next time. Best reagards, -- Tatsuo Ishii SRA OSS K.K. English: http://www.sraoss.co.jp/index_en/ Japanese:http://www.sraoss.co.jp