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 1rs7fC-004wp5-TW for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2024 20:56:55 +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 1rs7fB-008YKs-RY for pgsql-general@arkaria.postgresql.org; Wed, 03 Apr 2024 20:56:53 +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 1rs7fB-008YKj-GK for pgsql-general@lists.postgresql.org; Wed, 03 Apr 2024 20:56:53 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rs7f9-000Q1X-8M for pgsql-general@lists.postgresql.org; Wed, 03 Apr 2024 20:56:52 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a46a7208eedso43320766b.0 for ; Wed, 03 Apr 2024 13:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712177810; x=1712782610; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=K/UBLA/VYrGJZhF1//hF9J6/c+NDKl3+aeZ8aOYQz78=; b=lBcWie49aXEG3OBlxMk9mwD65990x9CJ3LdrXZp/y/gGH9xHNiZgyZGMwDM1qsbcV8 ODoRBsonaQM1/lNyQJDCqKcN9pqxP0JFd+152mx0Hik84TbwUrXdRtSa+NH4WzwxO1Sc VXrcauZnMgTrH/1deWj8Vsh9xIZtJdk0Jvad4qnPcsFQ+Pz51wdzihbjhjhU+QcI3G/O NmSI5Vz+oJO8HtfncOeIXus5UHbi/QLb8JQ6WdJ09T8RWJ/qxvRNEX3Ls1sHV4wwYtHg oO5l4vyyMgJqYAXbiPKl09Awtj/7EOaj4yOjFFEgGpAe9tLrjgIKA/Nt7ALxBbeoczcF Y2kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712177810; x=1712782610; h=content-transfer-encoding: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=K/UBLA/VYrGJZhF1//hF9J6/c+NDKl3+aeZ8aOYQz78=; b=kjCAQ8ue84s65Cev73DwDl7VQpL7e2IyJoab6SZduvZlAusRBYSd4448cU1ahWpjqc 19rzuG6UMyJPLyPy9l/AsHytxSdpcOF9Y61P3Jqc5xJSEMwJVirOH5Th7W8M0J7A9Xm4 8D2aFTRVQg1EHrTyl8S0Zc5k5DEWWdtJq/LlHQKnEMQ7IawjoEyurbTZ6+sW7yg39yCa S/sZffMnoeBkjS2u+TsDI/QJDUU04FfM2qeW/hYCLp+p8djWn8bvnBo/hdS5HgEQsUPh 97UO3MUXCyFZpL7E3tcyOWJuPL4me3ek0QgECOfXBEdBuh6ev1/+ifJuqe23qY3xXENH aJ9Q== X-Gm-Message-State: AOJu0YyPpCp7JQ1RhPpw5Vnte+21ssfP3iAVRSYqXc+dQp3fcw7iu3Vu +6qkgI7a/9Qn17+3JuOHoZiMRkR3zN4rcn/0qKrTgUzxh7ke11BWcHQFKbVpN4tX+LCH5Pj3i9o 4FwVtw64I7BqkEzN96TSY8hEw8T0= X-Google-Smtp-Source: AGHT+IHdjT/dsGtqYKB9mVulmY1auVwUJGS3aC7VhqnTofefnOdaJI8l69F/gs/BfjIztLBw17xH+1iX04IfOV931d0= X-Received: by 2002:a17:906:6d5a:b0:a51:86a8:b73d with SMTP id a26-20020a1709066d5a00b00a5186a8b73dmr106942ejt.20.1712177809595; Wed, 03 Apr 2024 13:56:49 -0700 (PDT) MIME-Version: 1.0 References: <4D67E594-098F-4234-87D8-68F827AF2531@arcict.com> <2E2F11F8-718A-4E6A-81E0-4F5CC1F1273A@arcict.com> <19556056-40E7-4FA3-A2A1-0A345AEBFD9E@arcict.com> <76FAACAC-F64A-43DA-BDBF-340A40C47045@arcict.com> <80036B55-2935-4F22-9151-5661F5AA04A7@arcict.com> In-Reply-To: <80036B55-2935-4F22-9151-5661F5AA04A7@arcict.com> From: Thomas Munro Date: Thu, 4 Apr 2024 09:56:12 +1300 Message-ID: Subject: Re: could not open file "global/pg_filenode.map": Operation not permitted To: Nick Renders Cc: pgsql-general@lists.postgresql.org 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 On Thu, Apr 4, 2024 at 3:11=E2=80=AFAM Nick Renders w= rote: > In the macOS Finder, when you show the Info (command+i) for an external d= rive (or any partition that is not the boot drive), there is a checkbox "Ig= nore ownership on this volume" in the Permissions section. I think it is by= default "on" for external drives. Hmm. Sounds suspicious, but why would only this file be affected? > The external SSD is an Orico drive that is connected with USB-C. It is in= itialised as a GUID Partition Map with a single AFPS partition. > > We have run PostgreSQL 15 and earlier, before upgrading to 16 when it cam= e out last year. We didn't have any problems with 16 until recently, after = upgrading to Sonoma. Interesting. So the rename might have something to do with it, though I don't have a theory for how,. Can you show what the permissions and ownership looks like for pg_* under there, normally, and once the system reaches this state? Something like: tmunro@phonebox postgresql % ls -slap pgdata/global/pg_* 16 -rw------- 1 tmunro staff 8192 4 Apr 09:50 pgdata/global/pg_control 8 -rw------- 1 tmunro staff 524 4 Apr 09:50 pgdata/global/pg_filenode= .map I'm asking for "pg_*" because I want to see pg_control as well, to understand the permissions for the other files in the cluster, and because I want to see if there are any stray remnants of a temporary file, which would be called pg_filenode.map.tmp.