Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1bGi-0002Cs-5C for pgsql-pkg-yum@arkaria.postgresql.org; Mon, 18 Jan 2021 20:36:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l1bGg-0003Ia-TG for pgsql-pkg-yum@arkaria.postgresql.org; Mon, 18 Jan 2021 20:36:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1YJC-0006Pd-AY for pgsql-pkg-yum@lists.postgresql.org; Mon, 18 Jan 2021 17:27:18 +0000 Received: from mail-oi1-f179.google.com ([209.85.167.179]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l1YJ7-0000z2-6Y for pgsql-pkg-yum@lists.postgresql.org; Mon, 18 Jan 2021 17:27:17 +0000 Received: by mail-oi1-f179.google.com with SMTP id x71so2610074oia.9 for ; Mon, 18 Jan 2021 09:27:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=ZKKfDcQSb1Zj+ERFCkdpinwwZRMBXCuweeSFGUWAIUA=; b=kGPtP32Q4yhTudt6xV7lutCL6iI4KfXnUuQitYsAi0cmfkyLUuwYdU7/sFAFjXKsff hm8LHqclqfradFZueX/nFxmaLsjOql459/r4CuGCmLTg3mBnn/EoYu0b0OZ69l8c+49U Fl7BINnN0j6pO71ZPfetKBr1Rq3mKRLkV4iZej0Zo2nD1eeOd9t0XtYxtwv16u7/T7oD o4UyyPWluzk5LO1+WzFkg5L1Zdq1NFQGPWaGXrA3Yaf+qdYN0S+CcRS0DuRBgsNQbGoD j/7Usr4P/KRG5cHf6P8ie7BFRAvjT9tsekuYE7qLZ/ft3icMD8gMRaZWV8G3gW5EniQA CEWA== X-Gm-Message-State: AOAM533xGjHNOiX1rbY5EoYYNydFMzF4Keph0JUJQuBWAHZTHsL3uEb0 IkQ4r0WTNxtlQ08Fr8TWRQp9eESMLHCMaLS3fsxNIIF6AhQ= X-Google-Smtp-Source: ABdhPJwbUGTBWMzXmd8pcZNkLoaFY5UFdpTmc23WW6DS/QmxJ5L7TGx1MZ+u5NHlClb6XVMnvNaQLS/fGwg6wcnKQ3w= X-Received: by 2002:aca:ab53:: with SMTP id u80mr247942oie.49.1610990831912; Mon, 18 Jan 2021 09:27:11 -0800 (PST) MIME-Version: 1.0 From: Greg Clough Date: Mon, 18 Jan 2021 17:27:00 +0000 Message-ID: Subject: PGDG packaged RepMgr v5.2.1 does not create necessary directories To: pgsql-pkg-yum@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, When I install RepMgr v5.2.1 for PostgreSQL v13.1 on CentOS v7.9.2009 using the PGDG repo, the following /run/repmgr and /var/run/repmgr directories are missing, which prevents RepMgr from starting: [root@localhost ~]# yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm Loaded plugins: fastestmirror, langpacks pgdg-redhat-repo-latest.noarch.rpm | 6.8 kB 00:00 ... [root@localhost ~]# yum install postgresql13-server repmgr13 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile ... Installed: postgresql13-server.x86_64 0:13.1-3PGDG.rhel7 repmgr_13.x86_64 0:5.2.1-1.rhel7 Dependency Installed: postgresql13.x86_64 0:13.1-3PGDG.rhel7 postgresql13-libs.x86_64 0:13.1-3PGDG.rhel7 Complete! [root@localhost ~]# ls -ald /run/repmgr /var/run/repmgr ls: cannot access /run/repmgr: No such file or directory ls: cannot access /var/run/repmgr: No such file or directory If I install the 2ndQuadrant repo, then it works fine: [root@localhost ~]# curl https://dl.2ndquadrant.com/default/release/get/13/rpm | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 5375 100 5375 0 0 11245 0 --:--:-- --:--:-- --:--:-- 11244 Installation finished: 2ndquadrant.com RPM repository dl/default/release for PG13 [root@localhost ~]# yum install postgresql13-server repmgr13 Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.melbourne.co.uk * extras: mirror.as29550.net * updates: mirror.as29550.net Resolving Dependencies --> Running transaction check ---> Package postgresql13-server.x86_64 0:13.1-3PGDG.rhel7 will be installed --> Processing Dependency: postgresql13-libs(x86-64) = 13.1-3PGDG.rhel7 for package: postgresql13-server-13.1-3PGDG.rhel7.x86_64 --> Processing Dependency: postgresql13(x86-64) = 13.1-3PGDG.rhel7 for package: postgresql13-server-13.1-3PGDG.rhel7.x86_64 --> Processing Dependency: libpq.so.5()(64bit) for package: postgresql13-server-13.1-3PGDG.rhel7.x86_64 ---> Package repmgr13.x86_64 0:5.2.1-1.el7 will be installed --> Running transaction check ---> Package postgresql13.x86_64 0:13.1-3PGDG.rhel7 will be installed ---> Package postgresql13-libs.x86_64 0:13.1-3PGDG.rhel7 will be installed --> Finished Dependency Resolution Dependencies Resolved =================================================================================================================================================================================================================== Package Arch Version Repository Size =================================================================================================================================================================================================================== Installing: postgresql13-server x86_64 13.1-3PGDG.rhel7 pgdg13 5.4 M repmgr13 x86_64 5.2.1-1.el7 2ndquadrant-dl-default-release-pg13 269 k Installing for dependencies: postgresql13 x86_64 13.1-3PGDG.rhel7 pgdg13 1.4 M postgresql13-libs x86_64 13.1-3PGDG.rhel7 pgdg13 379 k Transaction Summary =================================================================================================================================================================================================================== Install 2 Packages (+2 Dependent packages) Total download size: 7.4 M Installed size: 31 M Is this ok [y/d/N]: y Downloading packages: (1/4): postgresql13-libs-13.1-3PGDG.rhel7.x86_64.rpm | 379 kB 00:00:01 (2/4): postgresql13-13.1-3PGDG.rhel7.x86_64.rpm | 1.4 MB 00:00:01 warning: /var/cache/yum/x86_64/7/2ndquadrant-dl-default-release-pg13/packages/repmgr13-5.2.1-1.el7.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID d6baf0c3: NOKEY Public key for repmgr13-5.2.1-1.el7.x86_64.rpm is not installed (3/4): repmgr13-5.2.1-1.el7.x86_64.rpm | 269 kB 00:00:00 (4/4): postgresql13-server-13.1-3PGDG.rhel7.x86_64.rpm | 5.4 MB 00:00:01 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 2.7 MB/s | 7.4 MB 00:00:02 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-2NDQ-DL-DEFAULT Importing GPG key 0xD6BAF0C3: Userid : "Public repository signing key 2ndQuadrant " Fingerprint: 8565 305c ea7d 0b66 4933 d250 9904 cd4b d6ba f0c3 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-2NDQ-DL-DEFAULT Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : postgresql13-libs-13.1-3PGDG.rhel7.x86_64 1/4 Installing : postgresql13-13.1-3PGDG.rhel7.x86_64 2/4 Installing : postgresql13-server-13.1-3PGDG.rhel7.x86_64 3/4 Installing : repmgr13-5.2.1-1.el7.x86_64 4/4 Verifying : postgresql13-libs-13.1-3PGDG.rhel7.x86_64 1/4 Verifying : repmgr13-5.2.1-1.el7.x86_64 2/4 Verifying : postgresql13-server-13.1-3PGDG.rhel7.x86_64 3/4 Verifying : postgresql13-13.1-3PGDG.rhel7.x86_64 4/4 Installed: postgresql13-server.x86_64 0:13.1-3PGDG.rhel7 repmgr13.x86_64 0:5.2.1-1.el7 Dependency Installed: postgresql13.x86_64 0:13.1-3PGDG.rhel7 postgresql13-libs.x86_64 0:13.1-3PGDG.rhel7 Complete! [root@localhost ~]# ls -ald /run/repmgr /var/run/repmgr drwxr-xr-x. 2 postgres postgres 40 Jan 18 16:53 /run/repmgr drwxr-xr-x. 2 postgres postgres 40 Jan 18 16:53 /var/run/repmgr Unless I'm barking up the wrong tree and have made a rookie error, could you please update the PGDG YUM package to include these two directories with the correct ownership and permissions? Thanks. Greg.