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 1l2iUy-0008EE-Vk for pgsql-pkg-yum@arkaria.postgresql.org; Thu, 21 Jan 2021 22:32:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l2iUx-00066B-UI for pgsql-pkg-yum@arkaria.postgresql.org; Thu, 21 Jan 2021 22:32:15 +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 1l2iTw-0005yJ-22 for pgsql-pkg-yum@lists.postgresql.org; Thu, 21 Jan 2021 22:31:12 +0000 Received: from mail-oo1-f41.google.com ([209.85.161.41]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l2iTt-0004FQ-Ph for pgsql-pkg-yum@lists.postgresql.org; Thu, 21 Jan 2021 22:31:11 +0000 Received: by mail-oo1-f41.google.com with SMTP id y72so429601ooa.5 for ; Thu, 21 Jan 2021 14:31:09 -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:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wl26K/UZxv6Fqe/3pLrEOaTztC+LS1mJQU5j53a42i0=; b=K6R1Q4y93qkt8A8rfRFAFQpmjs1BUswasYFT8RrvHfyxjlkc6vHyzAUHOpc/YNXTlt K0LRkmMxdxR/6amRAc0vnZTHnu3worecJrbAnS1W7it1AzRcjTVl09/Mf55/Ya4mp27N XJQr9pynR0wx6Uv4uMzlbk4Tn8pzTRKW1HSp+qOPPthreTxBNSuHJRjVWDZ+WMdgjznk t/eO1F7i4tSDLI0mT3XQDMsAPRtyQs9meSyWT8P7wNtN+45VHVfvqMKMnkkmg5lND/rI 1z/wr4Syj4mv6lWbgKLyZp+GwinauSq3gP7xif4s33GieoxHYQGnmDROx+4c0TteE/Ue f4cg== X-Gm-Message-State: AOAM533Yme1/2PskARLpUpDhivpn5NSVcdP1cqxNow9GiT77sC+bpR9m SFLh/KUscxGlSX3r/jaoa53rDFHk/wF9qqr31hAvAQ6I X-Google-Smtp-Source: ABdhPJwohBq4H/x5uWeAAjQrSMx07z00qz6GejeeAm2Lphmd5eobbvVHlZyKAPkrJkP4UWFWdWHwzer8NqbRm7LlE7Y= X-Received: by 2002:a4a:364a:: with SMTP id p10mr1544749ooe.48.1611268268988; Thu, 21 Jan 2021 14:31:08 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Greg Clough Date: Thu, 21 Jan 2021 22:30:57 +0000 Message-ID: Subject: Re: PGDG packaged RepMgr v5.2.1 does not create necessary directories To: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= Cc: pgsql-pkg-yum@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000cf9c0205b970a077" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000cf9c0205b970a077 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Devrim, When repmgr tried to start, it failed because those directories don't exist. I cleaned it up with a fresh OS install and tried the 2ndQuadrant repo packages... and these made the directories during the "yum install". I didn't think repmgr was SUID root (but I didn't check), so it can't mkdir in /run during startup, right? Maybe I've screwed something up here, so I'll do some more basic testing, and send you the output. Thanks, Greg. On Thu, 21 Jan 2021 at 21:43, Devrim G=C3=BCnd=C3=BCz w= rote: > > Hi Greg, > > On Mon, 2021-01-18 at 17:27 +0000, Greg Clough wrote: > > [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 > > systemd will create these directories. See: > > /usr/lib/tmpfiles.d/repmgr_13.conf > > What error are you getting? > > Cheers, > -- > Devrim G=C3=BCnd=C3=BCz > Open Source Solution Architect, Red Hat Certified Engineer > Twitter: @DevrimGunduz , @DevrimGunduzTR > --000000000000cf9c0205b970a077 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Devrim,

When repmgr tried to start, = it failed because those directories don't exist.=C2=A0 I cleaned it up = with a fresh OS install and tried the 2ndQuadrant repo packages... and thes= e made the directories during the "yum install".

I didn= 9;t think repmgr was SUID root (but I=C2=A0didn't check), so it can'= ;t mkdir in /run during startup, right?

Maybe I've screwed somet= hing up here, so I'll do some more basic testing, and send you the outp= ut.

Thanks,
Greg.

On Thu, 21 Jan 20= 21 at 21:43, Devrim G=C3=BCnd=C3=BCz <devrim@gunduz.org> wrote:

Hi Greg,

On Mon, 2021-01-18 at 17:27 +0000, Greg Clough wrote:
> [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

systemd will create these directories. See:

=C2=A0/usr/lib/tmpfiles.d/repmgr_13.conf

What error are you getting?

Cheers,
--
Devrim G=C3=BCnd=C3=BCz
Open Source Solution Architect, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR
--000000000000cf9c0205b970a077--