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 1lI7Sq-0000Pq-Rd for pgsql-general@arkaria.postgresql.org; Fri, 05 Mar 2021 10:13:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lI7Sp-0001Ok-GN for pgsql-general@arkaria.postgresql.org; Fri, 05 Mar 2021 10:13:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lI7Sp-0001Ob-76 for pgsql-general@lists.postgresql.org; Fri, 05 Mar 2021 10:13:43 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lI7Si-0007Ju-HC for pgsql-general@postgresql.org; Fri, 05 Mar 2021 10:13:42 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 2509E1D6E for ; Fri, 5 Mar 2021 12:13:35 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wAAOlogyp9Qn for ; Fri, 5 Mar 2021 12:13:32 +0200 (EET) Received: from mail.hot.ee (hot-relayhost1.estpak.ee [213.180.2.79]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id B66E91D74 for ; Fri, 5 Mar 2021 12:13:32 +0200 (EET) To: pgsql-general From: Andrus Subject: Log files polluted with permission denied error messages after every 10 seconds Message-ID: <3861ff1e-0923-7838-e826-094cc9bef737@hot.ee> Date: Fri, 5 Mar 2021 12:13:27 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------927D05143DAB43902A2A2055" Content-Language: et List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------927D05143DAB43902A2A2055 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi! Postgres 13.1 is installed in windows server. There are about 100 users. Log files contain huge number of permisson denied error messages in every day like : 2021-03-04 01:38:49.818 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied 2021-03-04 01:48:42.725 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied 2021-03-04 01:53:22.427 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied 2021-03-04 01:58:19.623 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied 2021-03-04 02:03:24.080 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied 2021-03-04 02:43:17.983 EET [7764] LOG:  invalid length of startup packet 2021-03-04 02:43:21.634 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied 2021-03-04 02:48:25.048 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied 2021-03-04 02:53:19.229 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied 2021-03-04 02:58:19.176 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied 2021-03-04 03:03:19.136 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied 2021-03-04 03:29:33.926 EET [2460] FATAL:  expected SASL response, got message type 0 2021-03-04 03:36:04.995 EET [4816] LOG:  could not rename temporary statistics file "pg_stat_tmp/global.tmp" to "pg_stat_tmp/global.stat": Permission denied 2021-03-04 03:36:09.666 EET [10340] LOG:  using stale statistics instead of current ones because stats collector is not responding 2021-03-04 03:53:20.036 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied 2021-03-04 04:03:19.001 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied On middle of day where usage is intensive those appear exactly after every 10 seconds: 2021-03-05 12:08:40.001 EET [4580] LOG:  could not rename file "pg_wal/000000010000000500000078": Permission denied 2021-03-05 12:08:50.059 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000007D": Permission denied 2021-03-05 12:09:00.115 EET [4580] LOG:  could not rename file "pg_wal/000000010000000500000082": Permission denied 2021-03-05 12:09:10.171 EET [4580] LOG:  could not rename file "pg_wal/000000010000000500000088": Permission denied 2021-03-05 12:09:20.224 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000A4": Permission denied 2021-03-05 12:09:30.281 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000A8": Permission denied 2021-03-05 12:09:40.339 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000B0": Permission denied 2021-03-05 12:09:50.397 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000E7": Permission denied 2021-03-05 12:10:00.456 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000E8": Permission denied 2021-03-05 12:10:10.514 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000E9": Permission denied 2021-03-05 12:10:20.570 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000EB": Permission denied 2021-03-05 12:10:30.626 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000EC": Permission denied How to fix this ? It looks like database is working normally, users havent reported any issues. Andrus. --------------927D05143DAB43902A2A2055 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Hi!

Postgres 13.1 is installed in windows server. There are about 100 users.

Log files contain huge number of permisson denied error messages in every day like :

2021-03-04 01:38:49.818 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied
2021-03-04 01:48:42.725 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied
2021-03-04 01:53:22.427 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied
2021-03-04 01:58:19.623 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied
2021-03-04 02:03:24.080 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied
2021-03-04 02:43:17.983 EET [7764] LOG:  invalid length of startup packet
2021-03-04 02:43:21.634 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied
2021-03-04 02:48:25.048 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied
2021-03-04 02:53:19.229 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied
2021-03-04 02:58:19.176 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied
2021-03-04 03:03:19.136 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied
2021-03-04 03:29:33.926 EET [2460] FATAL:  expected SASL response, got message type 0
2021-03-04 03:36:04.995 EET [4816] LOG:  could not rename temporary statistics file "pg_stat_tmp/global.tmp" to "pg_stat_tmp/global.stat": Permission denied
2021-03-04 03:36:09.666 EET [10340] LOG:  using stale statistics instead of current ones because stats collector is not responding
2021-03-04 03:53:20.036 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied
2021-03-04 04:03:19.001 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000001B": Permission denied

On middle of day where usage is intensive those appear exactly after every 10 seconds:

2021-03-05 12:08:40.001 EET [4580] LOG:  could not rename file "pg_wal/000000010000000500000078": Permission denied
2021-03-05 12:08:50.059 EET [4580] LOG:  could not rename file "pg_wal/00000001000000050000007D": Permission denied
2021-03-05 12:09:00.115 EET [4580] LOG:  could not rename file "pg_wal/000000010000000500000082": Permission denied
2021-03-05 12:09:10.171 EET [4580] LOG:  could not rename file "pg_wal/000000010000000500000088": Permission denied
2021-03-05 12:09:20.224 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000A4": Permission denied
2021-03-05 12:09:30.281 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000A8": Permission denied
2021-03-05 12:09:40.339 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000B0": Permission denied
2021-03-05 12:09:50.397 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000E7": Permission denied
2021-03-05 12:10:00.456 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000E8": Permission denied
2021-03-05 12:10:10.514 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000E9": Permission denied
2021-03-05 12:10:20.570 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000EB": Permission denied
2021-03-05 12:10:30.626 EET [4580] LOG:  could not rename file "pg_wal/0000000100000005000000EC": Permission denied

How to fix this ?

It looks like database is working normally, users havent reported any issues.

Andrus.

--------------927D05143DAB43902A2A2055--