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 1tQ86u-000IX4-Aq for pgsql-general@arkaria.postgresql.org; Tue, 24 Dec 2024 16:50:20 +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 1tQ85u-006rcZ-5T for pgsql-general@arkaria.postgresql.org; Tue, 24 Dec 2024 16:49:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tQ85s-006rcR-P3 for pgsql-general@lists.postgresql.org; Tue, 24 Dec 2024 16:49:17 +0000 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tQ85n-001PmW-QE for pgsql-general@postgresql.org; Tue, 24 Dec 2024 16:49:15 +0000 Received: from phl-compute-07.internal (phl-compute-07.phl.internal [10.202.2.47]) by mailfhigh.phl.internal (Postfix) with ESMTP id 4A56611400F4; Tue, 24 Dec 2024 11:49:09 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-07.internal (MEProxy); Tue, 24 Dec 2024 11:49:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1735058949; x=1735145349; bh=o4clJYQ6cEo12ioIsyZiHlTbMh1YS2VDW/BnZbvCfwg=; b= ZZAEURp2tS91xMDKwmf+ErPDKC38Ul9npsSCIlt2ARx0xAjlsX6CpOhLht1++oWu oo0MofVNMb+zoR8qxhPTl8Kq1T6NOzgch02yx+oQLIdgK49Xb289X83Bcl46pp2w Hf02RoSRlqy3uW4sSVToZlJFDipNRLVIpqUOndkDB2eNZP+GF5ZE75FZRLLsQvdd KLnGDI/YZO0AJ2mrPYhW1vLhkBZUnuGNj6X3n9xTaC2SV49B+0/JmVN0t8XV3ak5 wI2GQptrTyueuMI3pXceziE97rVOhIC0BwjHJGvf7PZEGXT9u/pABN3CxwNE51QQ 8a5mJq4HHCh+1KhIskag2w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1735058949; x=1735145349; bh=o 4clJYQ6cEo12ioIsyZiHlTbMh1YS2VDW/BnZbvCfwg=; b=YcAldwpIS5fP77QOL WWalWWCYGFjS1s5OmgmPD4uTdUbhyvdDp1oH71QOSChdykUYLzC0b3ZV4sQgu9ma p0jO+JBRgTaWC5GJIp3qPCErmDMTXkCi2QxSw71jfc6vyKQM8mMk9OmrN9ZjioLY E0/hw4vdBufcn4Na8oIgIH3h11w8pcJlrN7Cfhh3ab90/rSr+2P2c7dt5q8Fapmr L2QN36V48jV28x+avCX3gig/sTi5cd8RA6TP1z9hwRBrn92PanoG9F6hwm41KFMA Fd78nFjLGLnNIFR/3Mqzr6999+NSA+J1htdiBfWCZPmbqaAtSUZci1445pIAartP UWQGg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddugedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpeeufeegueehveffkefgveeu ueevueehudejtdduffefgfduieelleejheehtdfftdenucffohhmrghinhepphhoshhtgh hrvghsqhhlrdhorhhgpdhrvghpmhhgrhdrohhrghenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrg hvvghrrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgt phhtthhopehmrghtthhhihgrsheslhgvihhsihdrnhgvthdprhgtphhtthhopehpghhsqh hlqdhgvghnvghrrghlsehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 24 Dec 2024 11:49:08 -0500 (EST) Message-ID: <29dc3d01-e89c-47b2-ae4c-1180f7edfd37@aklaver.com> Date: Tue, 24 Dec 2024 08:49:07 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: repmgr(d) versions 5.5 vs 5.4 from apt.postgresql.org To: Matthias Leisi , pgsql-general References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/24/24 01:28, Matthias Leisi wrote: > I installed Postgres 16/17 from apt.postgresql.org >  (with the intent of using version 17) on > Debian 12/Bookworm. Both have the same version of repmgr: > > postgres@dev-pgcl01:~$ /usr/lib/postgresql/17/bin/repmgr  --version > repmgr 5.5.0 > postgres@dev-pgcl01:~$ /usr/lib/postgresql/16/bin/repmgr  --version > repmgr 5.5.0 > > root@dev-pgcl01:~# apt-cache show postgresql-17-repmgr | grep "Filename" > Filename: > pool/main/r/repmgr/postgresql-17-repmgr_5.5.0-2.pgdg120+1_arm64.deb > > In postgresql.conf, I explicitly load the version 17 .so (just to be > sure it’s not loading something potentially different): > > shared_preload_libraries = '/usr/lib/postgresql/17/lib/repmgr.so' > > repmgr.conf is minimalistic: > > node_id=1 > node_name=node1 > conninfo='host=10.20.70.26 user=repmgr dbname=repmgr connect_timeout=2' > data_directory='/var/lib/postgresql/17/' > failover=automatic > use_replication_slots=true > promote_command='/usr/bin/repmgr standby promote -f > /etc/postgresql/17/main/repmgr.conf --log-to-file' > follow_command='/usr/bin/repmgr standby follow -f > /etc/postgresql/17/main/repmgr.conf --log-to-file --upstream-node-id=%n‘ > > (plus a few configs about the logs) > > > The suggested ALTER EXTENSION from the log hint does not do anything I > could see. > > The same effect if I try the same using version 16. > > How to continue from here? What am I missing? Maybe as shown here: https://www.repmgr.org/docs/current/configuration-file-optional-settings.html " pg_bindir (string) Path to the PostgreSQL binary directory (location of pg_ctl, pg_basebackup etc.). Only required if these are not in the system PATH. [...] Debian/Ubuntu users: you will probably need to set this to the directory where pg_ctl is located, e.g. /usr/lib/postgresql/9.6/bin/. " Also looks to me like there is version 5.4 installed somewhere else that is being picked up. I would do a find to locate out all the repmgr instances installed. > > Thanks for your help, > — Matthias > > -- > Matthias Leisi > Katzenrütistrasse 68, 8153 Rümlang > Mobile +41 79 377 04 43 > matthias@leisi.net > > > -- Adrian Klaver adrian.klaver@aklaver.com