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 1tiCbA-00Cn00-MQ for pgsql-general@arkaria.postgresql.org; Wed, 12 Feb 2025 13:16:16 +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 1tiCb8-009LRD-Nj for pgsql-general@arkaria.postgresql.org; Wed, 12 Feb 2025 13:16:15 +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 1tiCb8-009LR1-Cw for pgsql-general@lists.postgresql.org; Wed, 12 Feb 2025 13:16:15 +0000 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tiCb7-000Piq-16 for pgsql-general@lists.postgresql.org; Wed, 12 Feb 2025 13:16:14 +0000 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-ab744d5e567so157896866b.1 for ; Wed, 12 Feb 2025 05:16:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739366172; x=1739970972; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3z5F09AMZM2V8DX114powtnFlk3v+5ZZ96FrDRfM2Kc=; b=lIZlY12HwacV53YnwSXhanbrvtzjqNnPW2BIor8Wei+lMTE6zQf9SPU/yiZ4/npjYL ppwXZKIy8Dn5rZiXS0EhW5p36MjkWg6PIbFac9UtGDsfxj2W3ayKq1F6EIBKq2yCIWlV RnoLbEUOXJQmWI7Q92Go2P+bnCi7f0SvTV3+evyMRH7Q5+HS5WwWB4jk7ezQG6ALfZGH 20U7ryLAaqZrXDoQQBRRBFxmyrkC4HDYojIM4K7h/Kd9m2IM1LEGJ1e8C50XwNacLFmI 3fJYqLfzfbPoff9/sArgz/EEftgEWmdhOVz4JcLASx9Xh6JbwNtagx07/cJZW6U5YktZ KYfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739366172; x=1739970972; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3z5F09AMZM2V8DX114powtnFlk3v+5ZZ96FrDRfM2Kc=; b=qi810CME3R45Cizss6JZ9FPiuZlJ0bHx30+lidpT2cRzFiapCiPDQikpZYVNz6NuAh QK/XXjW6t+hFcnnmqJiV23vXHe4fiAj/6V/cxVOS7SK56zb+fMnwdNYIVIylpFNKc9yF pvlLl/KTSQtBsunG3jFILj/njAwsjGoJAuD2HLvwjOxv74Kg5g7quQoFzwI3VgdOkHz3 F4zNZR2hwz/QwG8rrZ61xsfM+Ec+FeOhJbOM58gimVTvkfnDKOn4Xq9u5G/9Gvejmixm Car3zRM1syNYKaBBLBvcwnwSC2ODzz3Zf5pH4QSR4pMIRqQ0zCWEfpwbd2YAErm+waNV iB7g== X-Gm-Message-State: AOJu0YxrX3tCirtGQBMTEqcOIuLxZ+Yjp2gaLEiSFq5RrVlR4SH7hRYO KWP4WjEf252+4Ox9nUl2gQMZnM77wgM+fsghEkaNLvfERaT6dwyXorc3pSOdUWAgWr/v6jKAYxt vBpZgFbYApf/zZvU9mAbiF5gai72vv/X2 X-Gm-Gg: ASbGncu0reQrUvHWxCjk3x3oCYV24kp8asDX4WwShrWq9KZ5yZACb+39IfwXFOuNdKa 5p62Tc6HkL2mQqCeNC3NpSUMQOk35VMGLSy0/OLs56K1rVf4KlQ3VMe8Uz340EcB1bII6c/4= X-Google-Smtp-Source: AGHT+IEP47h+x26Boxfys9L0U61qln5tPhlImm2nDUR+UneGKmbC+jNDot9Q82OMuAt2yTisa1J+G8Bdh9hxYS2QZZc= X-Received: by 2002:a17:906:c10c:b0:ab6:f0d3:9687 with SMTP id a640c23a62f3a-ab7f30cf631mr251991666b.21.1739366171322; Wed, 12 Feb 2025 05:16:11 -0800 (PST) MIME-Version: 1.0 References: <20250202082618.trv7vpxw3stkqqw4@hjp.at> <20250202195713.do65y2ewc6vjk3r5@hjp.at> <147245a5-5105-4cf1-85cf-bb92176b9702@gmail.com> <5ad33e59-a786-407c-ac03-98d248f0edac@aklaver.com> In-Reply-To: <5ad33e59-a786-407c-ac03-98d248f0edac@aklaver.com> From: Paul Brindusa Date: Wed, 12 Feb 2025 13:15:57 +0000 X-Gm-Features: AWEUYZmqN_cB7Nh_xejJOmXdUOYLKy9llhNCIW-HsItYSE3ZFbhktJE57XC--sk Message-ID: Subject: Re: Log retention query To: Adrian Klaver Cc: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000c6b1b2062df1bedb" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c6b1b2062df1bedb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Good afternoon, Apologies for coming back to you so late. Again I want to thank everyone for all the help provided regarding this. The main culprit was the cron job and trying to run it as root. Main thing is i've learned a lot from your answers about the logs. Thank you again. On Sun, Feb 2, 2025 at 9:33=E2=80=AFPM Adrian Klaver wrote: > On 2/2/25 12:04, Paul Brindusa wrote: > > I am defo sure that my syntax was fine. > > > > I have tried the same syntax to remove the logs manually from the > > folder and it worked perfectly. > > > > The cronjob was set from root, so I am assuming it has the right > > privileges over the folder in cause. > > > > Did you use the correct directory in the cron command? > > > > > @ Adrian the cluster runs on Rocky9 > > What repo are you using to install Postgres from? > > > > > There is no error from cron that is the weird bit as well. > > > > I do not have MAILTO set up on cron. > > I would do that, then you should get the errors. > > You could also look in the system log at the time the cron job was > executed to see if it recorded the error. > > > > > Regards, > > > > Paul > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > --=20 Kind Regards, Paul Brindusa paulbrindusa88@gmail.com --000000000000c6b1b2062df1bedb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Good afternoon,

Apologies for coming=C2= =A0back=C2=A0to you so late.

Again I want to thank= everyone for all the help provided regarding this. The main culprit was th= e cron job and trying to run it as root.
Main thing is i've l= earned a lot from your answers about the logs.
Thank you again.


On Sun, Feb 2, 2025 at 9:33=E2=80= =AFPM Adrian Klaver <adrian= .klaver@aklaver.com> wrote:
On 2/2/25 12:04, Paul Brindusa wrote:
> I am defo sure that my syntax was fine.
>
> I have tried the same syntax to remove the logs manually from the
> folder=C2=A0 and it worked perfectly.
>
> The cronjob was set from root, so I am assuming it has the right
> privileges over the folder in cause.
>

Did you use the correct directory in the cron command?

>
> @ Adrian the cluster runs on Rocky9

What repo are you using to install Postgres from?

>
> There is no error from cron that is the weird bit as well.
>
> I do not have MAILTO set up on cron.

I would do that, then you should get the errors.

You could also look in the system log at the time the cron job was
executed to see if it recorded the error.

>
> Regards,
>
> Paul
>


--
Adrian Klaver
adrian.klave= r@aklaver.com



--
Kind Regards,
Paul Brindusa
=

--000000000000c6b1b2062df1bedb--