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 1rjccn-006jK9-5D for pgsql-general@arkaria.postgresql.org; Mon, 11 Mar 2024 10:11:18 +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 1rjccl-00BaiH-D6 for pgsql-general@arkaria.postgresql.org; Mon, 11 Mar 2024 10:11:15 +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 1rjcck-00Baez-WC for pgsql-general@lists.postgresql.org; Mon, 11 Mar 2024 10:11:15 +0000 Received: from mail.arcict.com ([91.183.106.63] helo=arcict.com) by magus.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rjccg-003uii-IR for pgsql-general@lists.postgresql.org; Mon, 11 Mar 2024 10:11:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=arcict.com; s=cra20arc; bh=l5WL2fEusb/bo9dP4Ycz4IfAjRzJChHP40Jetdyaqvs=; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From; b=LPSsxASmEGh+FzzGT1+vAtBPMxsG5gPcTKEHEvClmy fj9Y/lmzMnABavu2if3xf9Vld4ChLG6wuuWQqfWqxUBW9hKtidxlvl2qAlO80XdZJvAskZCyeDYcP aeLxtRYgBcEq4+fehxom4cf7S4Ps2ahuEpIcNFE46lFwfQ3gF9pI= Received: from [192.163.1.153] (HELO [169.254.133.180]) by arcict.com (CommuniGate Pro SMTP 6.3.18) with ESMTPS id 5951922 for pgsql-general@lists.postgresql.org; Mon, 11 Mar 2024 11:11:09 +0100 From: Nick Renders To: pgsql-general@lists.postgresql.org Subject: Re: could not open file "global/pg_filenode.map": Operation not permitted Date: Mon, 11 Mar 2024 11:11:09 +0100 X-Mailer: MailMate (1.14r5964) Message-ID: <2E2F11F8-718A-4E6A-81E0-4F5CC1F1273A@arcict.com> In-Reply-To: References: <4D67E594-098F-4234-87D8-68F827AF2531@arcict.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thank you for your reply Laurenz. I don't think it is related to any third party security software. We have= several other machines with a similar setup, but this is the only server= that has this issue. The one thing different about this machine however, is that it runs 2 ins= tances of Postgres: - cluster A on port 165 - cluster B on port 164 Cluster A is actually a backup from another Postgres server that is resto= red on a daily basis via Barman. This means that we login remotely from t= he Barman server over SSH, stop cluster A's service (port 165), clear the= Data folder, restore the latest back into the Data folder, and start up = the service again. Cluster B's Data and service (port 164) remain untouched during all this = time. This is the cluster that experiences the intermittent "operation no= t permitted" issue. Over the past 2 weeks, I have suspended our restore script and the issue = did not occur. I have just performed another restore on cluster A and now cluster B is t= hrowing errors in the log again. Any idea why this is happening? It does not occur with every restore, but= it seems to be related anyway. Thanks, Nick Renders On 26 Feb 2024, at 16:29, Laurenz Albe wrote: > On Mon, 2024-02-26 at 15:14 +0100, Nick Renders wrote: >> We have a Postgres server that intermittently logs the following: >> >> 2024-02-26 10:29:41.580 CET [63962] FATAL:=C2=A0 could not open file "= global/pg_filenode.map": Operation not permitted >> 2024-02-26 10:30:11.147 CET [90610] LOG:=C2=A0 could not open file "po= stmaster.pid": Operation not permitted; continuing anyway >> >> This has happened 3 times over the last 2 weeks now, without any indic= ation what caused it. >> The privileges of those 2 files are all in order. >> When this happens, the server is no longer accessible, and we need to = restart the service (pg_ctl restart). >> Once restarted, Popstgres runs fine again for a couple of days. >> >> We are running PostgreSQL 16.2 on macOS 14.3.1. > > Perhaps that is some kind of virus checker or something else that locks= files. > > Yours, > Laurenz Albe