From: Andrus <kobruleht2@hot.ee>
To: Michael Paquier <michael@paquier.xyz>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Log files polluted with permission denied error messages after every 10 seconds
Date: Sat, 6 Mar 2021 19:53:11 +0200
Message-ID: <c3541c40-00d9-aeb6-1a97-43d6c4e37d94@hot.ee> (raw)
In-Reply-To: <YELcpyM5Nc1H7L2m@paquier.xyz>
References: <3861ff1e-0923-7838-e826-094cc9bef737@hot.ee>
<676dc946300076e60d6af455ac1bfa489fbbdd8b.camel@cybertec.at>
<97e00b3b-9357-4386-d4bd-b9128e4b8924@hot.ee>
<YELcpyM5Nc1H7L2m@paquier.xyz>
Hi!
These are generated on Windows when removing a past WAL segment, where
the process involves a rename followed by durable_unlink() that would
> generate some LOG entries in the logs if the internal unlink() failed
> (see RemoveXlogFile() in xlog.c).
I changed wal_recycle to off. So checkpointer should no more try to
rename wal files. Iit still tries to rename files. No idea way it does
not use this setting:
2021-03-06 19:44:28 EET checkpointer LOG: could not rename file
"pg_wal/0000000100000006000000EB": Permission denied
2021-03-06 19:44:38 EET checkpointer LOG: could not rename file
"pg_wal/0000000100000006000000F0": Permission denied
2021-03-06 19:44:48 EET checkpointer LOG: could not rename file
"pg_wal/0000000100000006000000F7": Permission denied
2021-03-06 19:44:58 EET checkpointer LOG: could not rename file
"pg_wal/0000000100000006000000FB": Permission denied
2021-03-06 19:45:08 EET postmaster LOG: received SIGHUP, reloading
configuration files
2021-03-06 19:45:08 EET postmaster LOG: parameter "wal_recycle"
changed to "off"
2021-03-06 19:45:08 EET checkpointer LOG: could not rename file
"pg_wal/0000000100000006000000FE": Permission denied
2021-03-06 19:45:18 EET checkpointer LOG: could not rename file
"pg_wal/0000000100000006000000FF": Permission denied
2021-03-06 19:45:28 EET checkpointer LOG: could not rename file
"pg_wal/000000010000000700000000": Permission denied
2021-03-06 19:45:38 EET checkpointer LOG: could not rename file
"pg_wal/000000010000000700000002": Permission denied
2021-03-06 19:45:48 EET checkpointer LOG: could not rename file
"pg_wal/000000010000000700000011": Permission denied
2021-03-06 19:45:59 EET checkpointer LOG: could not rename file
"pg_wal/000000010000000700000012": Permission denied
2021-03-06 19:46:09 EET checkpointer LOG: could not rename file
"pg_wal/000000010000000700000015": Permission denied
2021-03-06 19:46:19 EET checkpointer LOG: could not rename file
"pg_wal/000000010000000700000016": Permission denied
Should chekpointer process terminated to force it to use new setting. Is
it safe to kill it during database usage.
Andrus.
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, michael@paquier.xyz, laurenz.albe@cybertec.at
Subject: Re: Log files polluted with permission denied error messages after every 10 seconds
In-Reply-To: <c3541c40-00d9-aeb6-1a97-43d6c4e37d94@hot.ee>
References: <3861ff1e-0923-7838-e826-094cc9bef737@hot.ee> <676dc946300076e60d6af455ac1bfa489fbbdd8b.camel@cybertec.at> <97e00b3b-9357-4386-d4bd-b9128e4b8924@hot.ee> <YELcpyM5Nc1H7L2m@paquier.xyz> <c3541c40-00d9-aeb6-1a97-43d6c4e37d94@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