From: Andrus <kobruleht2@hot.ee>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Niels Jespersen <NJN@dst.dk>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: SV: Log files polluted with permission denied error messages after every 10 seconds
Date: Tue, 9 Mar 2021 18:24:59 +0200
Message-ID: <2586bd2e-77d4-e3e2-2f30-d5c83f52f001@hot.ee> (raw)
In-Reply-To: <CA+hUKGLm_vYuqVPdB3dCW1Hms+ZeDosrrEiOzpL0orZCUE8gdA@mail.gmail.com>
References: <3861ff1e-0923-7838-e826-094cc9bef737@hot.ee>
<676dc946300076e60d6af455ac1bfa489fbbdd8b.camel@cybertec.at>
<97e00b3b-9357-4386-d4bd-b9128e4b8924@hot.ee>
<YELcpyM5Nc1H7L2m@paquier.xyz>
<CA+hUKGLprgytAo1UfnGPP8sC9+cohTLMRW_o4zPXFSo-COa-Vg@mail.gmail.com>
<1881481.1615240712@sss.pgh.pa.us>
<af26b07f-1809-6229-9eff-61167723e61e@hot.ee>
<a759c992bb0e4c53965323e4c25a480e@dst.dk>
<94330326-5fa0-279a-937c-c4806e1fcd5a@hot.ee>
<CA+hUKGLm_vYuqVPdB3dCW1Hms+ZeDosrrEiOzpL0orZCUE8gdA@mail.gmail.com>
Hi!
Maybe this does the reverse?
> https://docs.microsoft.com/en-us/sysinternals/downloads/handle
Examined todays logs in other windows 2019 server with Postgres 13.1
Permission denied occurs single file but permanently . Last entry is 6
minutes ago:
2021-03-09 00:02:23.915 EET [11328] LOG: could not rename file
"pg_wal/000000010000004C00000034": Permission denied
2021-03-09 00:07:24.430 EET [11328] LOG: could not rename file
"pg_wal/000000010000004C00000034": Permission denied
2021-03-09 00:12:34.392 EET [11328] LOG: could not rename file
"pg_wal/000000010000004C00000034": Permission denied
2021-03-09 00:17:24.270 EET [11328] LOG: could not rename file
"pg_wal/000000010000004C00000034": Permission denied
2021-03-09 00:22:23.780 EET [11328] LOG: could not rename file
"pg_wal/000000010000004C00000034": Permission denied
..
2021-03-09 17:59:04 EET checkpointerLOG: could not rename file
"pg_wal/000000010000004C00000034": Permission denied
Used Resource Monitor / CPU / Associated Handles and searched for
"000000010000004C00000034". Resource Monitor shows that process 11336 is
using that file
pg_stat_activity shows that this is "background writer" waiting for
event BgWriterMain or BgWriterHibernate
Permisson denied exception occurs accoring to log above in process
11328 which is listed as checkpointer.
So Background writer has locked the file permanently. Checkpointer tries
to write into it and gets permission denied error all the time.
How to fix this ?
Andrus.
Attachments:ememfomdjpicdamp.png (image/png, 135.3K) downloadview image
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: kobruleht2@hot.ee, thomas.munro@gmail.com, NJN@dst.dk, tgl@sss.pgh.pa.us, michael@paquier.xyz, laurenz.albe@cybertec.at
Subject: Re: Log files polluted with permission denied error messages after every 10 seconds
In-Reply-To: <2586bd2e-77d4-e3e2-2f30-d5c83f52f001@hot.ee>
References: <3861ff1e-0923-7838-e826-094cc9bef737@hot.ee> <676dc946300076e60d6af455ac1bfa489fbbdd8b.camel@cybertec.at> <97e00b3b-9357-4386-d4bd-b9128e4b8924@hot.ee> <YELcpyM5Nc1H7L2m@paquier.xyz> <CA+hUKGLprgytAo1UfnGPP8sC9+cohTLMRW_o4zPXFSo-COa-Vg@mail.gmail.com> <1881481.1615240712@sss.pgh.pa.us> <af26b07f-1809-6229-9eff-61167723e61e@hot.ee> <a759c992bb0e4c53965323e4c25a480e@dst.dk> <94330326-5fa0-279a-937c-c4806e1fcd5a@hot.ee> <CA+hUKGLm_vYuqVPdB3dCW1Hms+ZeDosrrEiOzpL0orZCUE8gdA@mail.gmail.com> <2586bd2e-77d4-e3e2-2f30-d5c83f52f001@hot.ee>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox