pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Log files polluted with permission denied error messages after every 10 seconds
14+ messages / 6 participants
[nested] [flat]

Commits from this thread:
  2021-03-22 909b449e00 78c24e97dd  Fix concurrency issues with WAL segment recycling on Windows
* Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-05 10:13  Andrus <kobruleht2@hot.ee>
  0 siblings, 1 reply; 14+ messages in thread

From: Andrus @ 2021-03-05 10:13 UTC (permalink / raw)
  To: pgsql-general

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.

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-05 13:50  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Andrus <kobruleht2@hot.ee>
  0 siblings, 1 reply; 14+ messages in thread

From: Laurenz Albe @ 2021-03-05 13:50 UTC (permalink / raw)
  To: Andrus <kobruleht2@hot.ee>; pgsql-general

On Fri, 2021-03-05 at 12:13 +0200, Andrus wrote:
> 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

Windows?

Don't let anti-virus software mess with the data directory.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-05 17:36  Andrus <kobruleht2@hot.ee>
  parent: Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 2 replies; 14+ messages in thread

From: Andrus @ 2021-03-05 17:36 UTC (permalink / raw)
  To: Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-general

Hi!

 >Windows? Don't let anti-virus software mess with the data directory.

Windows default Windows Defender is active. I excluded data, pg_wal 
folders and postgres process:


Then turned real-time protection off:

Problem persists. New entry is written after every 10 seconds.

pg_wal also contains files with .deleted extension like

0000000100000005000000B2.deleted

Andrus.

Attachments:

lmdmpeklegefajgf.png (image/png, 12.7K) download view image
llogbpkfpifipcib.png (image/png, 10.9K) download view image
^ permalink raw reply [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-06 01:36  Michael Paquier <michael@paquier.xyz>
  parent: Andrus <kobruleht2@hot.ee>
  1 sibling, 3 replies; 14+ messages in thread

From: Michael Paquier @ 2021-03-06 01:36 UTC (permalink / raw)
  To: Andrus <kobruleht2@hot.ee>; +Cc: Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-general

On Fri, Mar 05, 2021 at 07:36:37PM +0200, Andrus wrote:
> Then turned real-time protection off:
> 
> Problem persists. New entry is written after every 10 seconds.

On which files are those complaints?  It seems to me that you may have
more going on in this system that interacts with your data folder than
you think.

> pg_wal also contains files with .deleted extension like
> 
> 0000000100000005000000B2.deleted

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). 
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-06 08:47  Andrus <kobruleht2@hot.ee>
  parent: Michael Paquier <michael@paquier.xyz>
  2 siblings, 0 replies; 14+ messages in thread

From: Andrus @ 2021-03-06 08:47 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-general

Hi!

 > On which files are those complaints?

log contains file names:

...

2021-03-06 10:27:51.468 EET [4580] LOG:  could not rename file 
"pg_wal/000000010000000600000092": Permission denied
2021-03-06 10:28:01.526 EET [4580] LOG:  could not rename file 
"pg_wal/000000010000000600000098": Permission denied
2021-03-06 10:28:11.582 EET [4580] LOG:  could not rename file 
"pg_wal/000000010000000600000099": Permission denied
2021-03-06 10:28:21.637 EET [4580] LOG:  could not rename file 
"pg_wal/0000000100000006000000E8": Permission denied
2021-03-06 10:28:31.692 EET [4580] LOG:  could not rename file 
"pg_wal/0000000100000006000000EA": Permission denied
2021-03-06 10:28:41.750 EET [4580] LOG:  could not rename file 
"pg_wal/0000000100000006000000EB": Permission denied
2021-03-06 10:28:51.807 EET [4580] LOG:  could not rename file 
"pg_wal/0000000100000006000000EC": Permission denied
2021-03-06 10:29:01.864 EET [4580] LOG:  could not rename file 
"pg_wal/0000000100000006000000ED": Permission denied
2021-03-06 10:29:11.920 EET [4580] LOG:  could not rename file 
"pg_wal/0000000100000006000000EE": Permission denied
2021-03-06 10:29:21.976 EET [4580] LOG:  could not rename file 
"pg_wal/0000000100000006000000EF": Permission denied
2021-03-06 10:29:32.033 EET [4580] LOG:  could not rename file 
"pg_wal/0000000100000006000000F0": Permission denied

Server was installed some days ago. Numbers in end of file names are 
small. So it looks like almost every wal file in timeline causes entry.

> It seems to me that you may have
> more going on in this system that interacts with your data folder than
> you think.

There is Windows server backup utility client from 
https://www.r1soft.com/  . It looks like it performs block-level 
realtime backup of HDD .

Its about box shows last year 2015 , but Windows Server 2019 is used. 
Maybe it is outdated and causes the issue. It is maintained by by ISP 
and I cannot stop it easily.

I havent found an option in its config to susped or configure it.

Config contains

max_wal_size = 1GB

There are 67 files in pg_wal. Earlier have have similar errors in my app 
if windows temporary directory contains  200000 files by mistake. 
Cleaning temp directory and adding random number to temporary file names 
seems to fix this.

Should max_wal or or other param size decrased or increased to avoid 
file access conflict.


> pg_wal also contains files with .deleted extension like
>> 0000000100000005000000B2.deleted
> 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).

.deleted files have dates ealier dates (yesterday and 4th or March). 
Almost all regular wal files have todays date.

There are about 30 .deleted files from totel 67 files in pg_wal. Will 
postgres remove .deleted files automatically or should I create windows 
task which deletes them periodically ?

Andrus.

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-06 17:53  Andrus <kobruleht2@hot.ee>
  parent: Michael Paquier <michael@paquier.xyz>
  2 siblings, 1 reply; 14+ messages in thread

From: Andrus @ 2021-03-06 17:53 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-general

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.

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-07 09:27  Michael Paquier <michael@paquier.xyz>
  parent: Andrus <kobruleht2@hot.ee>
  0 siblings, 1 reply; 14+ messages in thread

From: Michael Paquier @ 2021-03-07 09:27 UTC (permalink / raw)
  To: Andrus <kobruleht2@hot.ee>; +Cc: Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-general

On Sat, Mar 06, 2021 at 07:53:11PM +0200, Andrus wrote:
> 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:

On Windows, RemoveXlogFile() would still rename a given WAL segment
file with a ".deleted" suffix with ou without wal_recycle in the case
where the a recycling of a WAL segment is not necessary, for example
if max_wal_size is already full.  So this has no effect.

> Should chekpointer process terminated to force it to use new setting. Is it
> safe to kill it during database usage.

I don't understand what you mean here.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-07 09:45  Andrus <kobruleht2@hot.ee>
  parent: Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 14+ messages in thread

From: Andrus @ 2021-03-07 09:45 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-general

Hi!

On Windows, RemoveXlogFile() would still rename a given WAL segment
> file with a ".deleted" suffix with ou without wal_recycle in the case
> where the a recycling of a WAL segment is not necessary, for example
> if max_wal_size is already full.  So this has no effect.

Should files with .deleted extension deleted manually to save disk space 
? May of them have dates before today.

Andrus.

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-07 23:38  Michael Paquier <michael@paquier.xyz>
  parent: Andrus <kobruleht2@hot.ee>
  0 siblings, 0 replies; 14+ messages in thread

From: Michael Paquier @ 2021-03-07 23:38 UTC (permalink / raw)
  To: Andrus <kobruleht2@hot.ee>; +Cc: Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-general

On Sun, Mar 07, 2021 at 11:45:26AM +0200, Andrus wrote:
> Should files with .deleted extension deleted manually to save disk space ?
> May of them have dates before today.

RemoveOldXlogFiles() would discard any of those .deleted files because
they don't match a legal WAL segment name, so checkpoints are not able
to work on them even in the future.  I would avoid meddling with
anything that a backend may finish to touch while running, but that 
should not really matter here as they are just never chosen for
deletion.  Piling up those files is not a good thing, so while you
still need to figure out what's causing those files to remain around
on your side, perhaps we should improve the situation in the backend
itself.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-08 21:25  Thomas Munro <thomas.munro@gmail.com>
  parent: Michael Paquier <michael@paquier.xyz>
  2 siblings, 2 replies; 14+ messages in thread

From: Thomas Munro @ 2021-03-08 21:25 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: Andrus <kobruleht2@hot.ee>; Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-general

On Sat, Mar 6, 2021 at 2:36 PM Michael Paquier <michael@paquier.xyz> wrote:
> On Fri, Mar 05, 2021 at 07:36:37PM +0200, Andrus wrote:
> > Then turned real-time protection off:
> >
> > Problem persists. New entry is written after every 10 seconds.
>
> On which files are those complaints?  It seems to me that you may have
> more going on in this system that interacts with your data folder than
> you think.

Suggestion received off-list from my colleague Bevan Arps, when I was
complaining about this general variety of problem: maybe we should
look into using Windows' RestartManager[1][2] API to find out which
processes (at least the pids, maybe also names) currently have a file
open?  Then, if it is indeed a sharing violation that's causing the
problem, we might at least be able to log message that says who's
blocking us once we reach that dreaded retry loop.  There are other
ways to get that information too, I believe, no idea which API would
be best, but this one looks to be the best documented.  I'm unlikely
to work on this myself as a card carrying Unix hacker, so I'm just
passing on this insight in case it's useful...

Another thought: if it's not a sharing violation, I wonder if we
should consider dumping more raw Windows error information in the
messages we log, because, if I recall correctly, we're converting many
Windows error codes into few Unix-style error numbers and thereby
throwing away valuable clues.  It makes it a bit more confusing when
trying to ask a Windows expert what might be happening.

[1] https://docs.microsoft.com/en-us/windows/win32/rstmgr/restart-manager-portal
[2] https://devblogs.microsoft.com/oldnewthing/20120217-00/?p=8283





^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-08 21:58  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Thomas Munro <thomas.munro@gmail.com>
  1 sibling, 1 reply; 14+ messages in thread

From: Tom Lane @ 2021-03-08 21:58 UTC (permalink / raw)
  To: Thomas Munro <thomas.munro@gmail.com>; +Cc: Michael Paquier <michael@paquier.xyz>; Andrus <kobruleht2@hot.ee>; Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-general

Thomas Munro <thomas.munro@gmail.com> writes:
> Another thought: if it's not a sharing violation, I wonder if we
> should consider dumping more raw Windows error information in the
> messages we log, because, if I recall correctly, we're converting many
> Windows error codes into few Unix-style error numbers and thereby
> throwing away valuable clues.  It makes it a bit more confusing when
> trying to ask a Windows expert what might be happening.

Yeah, I've wondered for some time if the apparent EACCES code is
actually being mapped from something other than ERROR_SHARING_VIOLATION
in (some of?) these reports.  The hard part is to hold onto the
Windows error code alongside errno without massively invasive changes.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-08 22:01  Andrus <kobruleht2@hot.ee>
  parent: Thomas Munro <thomas.munro@gmail.com>
  1 sibling, 0 replies; 14+ messages in thread

From: Andrus @ 2021-03-08 22:01 UTC (permalink / raw)
  To: Thomas Munro <thomas.munro@gmail.com>; Michael Paquier <michael@paquier.xyz>; +Cc: Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-general


> Another thought: if it's not a sharing violation, I wonder if we
> should consider dumping more raw Windows error information in the
> messages we log, because, if I recall correctly, we're converting many
> Windows error codes into few Unix-style error numbers and thereby
> throwing away valuable clues.  It makes it a bit more confusing when
> trying to ask a Windows expert what might be happening.

Knowing process name holding file and other detailed information would 
be very useful.

In other Win 2019 server/Postgres 13  excluding Postgres drive from 
fprot scan seems to decrease those errors.

However they still occur even if no fprot is active.

There are also regular stat errors in windows servers is size queries  like

ERROR: could not stat file "base/45010/172654232": Permission denied;

in query

SELECT pg_size_pretty(pg_database_size('eeva')::bigint)::char(10) as size

and

ERROR: could not stat file "base/45010/172654232": Permission denied;

in query

     SELECT
pg_catalog.pg_size_pretty(SUM(
         CASE WHEN pg_catalog.has_database_privilege(d.datname, 'CONNECT')
             THEN pg_catalog.pg_database_size(d.datname)
             ELSE 0
         END)::bigint) ::char(50) AS SIZE
     FROM pg_catalog.pg_database d

and

ERROR: could not stat file "base/45010/172654232": Permission 
denied;Error while executing the query


     SELECT d.datname::char(15),
          pg_catalog.pg_get_userbyid(d.datdba)::char(18) AS Owner,
         CASE WHEN pg_catalog.has_database_privilege(d.datname, 'CONNECT')
             THEN 
pg_catalog.pg_size_pretty(pg_catalog.pg_database_size(d.datname)::bigint)
             ELSE 'No Access'
         END::char(50) AS SIZE
     FROM pg_catalog.pg_database d
         ORDER BY
         CASE WHEN pg_catalog.has_database_privilege(d.datname, 'CONNECT')
             THEN pg_catalog.pg_database_size(d.datname)
             ELSE NULL
         END DESC -- nulls first

Andrus.

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-08 22:23  Andrus <kobruleht2@hot.ee>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 14+ messages in thread

From: Andrus @ 2021-03-08 22:23 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Thomas Munro <thomas.munro@gmail.com>; +Cc: Michael Paquier <michael@paquier.xyz>; Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-general


> Yeah, I've wondered for some time if the apparent EACCES code is
> actually being mapped from something other than ERROR_SHARING_VIOLATION
> in (some of?) these reports.  The hard part is to hold onto the
> Windows error code alongside errno without massively invasive changes.

Permission denied error occur in  Windows. Debian logs doesnt contain it.

In Windows also pg_database_size('mydb')  and similar ones fail 
frequently with permission denied error.

I got information about r1soft idera backup client used. It runs only 
once per night for 16 minutes and compares disk blocks to find changed 
blocks to backup. So it should not cause permission denied errors after 
every 10 seconds.

Andrus.

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: Log files polluted with permission denied error messages after every 10 seconds
@ 2021-03-09 10:19  Thomas Kellerer <shammat@gmx.net>
  parent: Andrus <kobruleht2@hot.ee>
  1 sibling, 0 replies; 14+ messages in thread

From: Thomas Kellerer @ 2021-03-09 10:19 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org



Andrus schrieb am 05.03.2021 um 18:36:
> Hi!
>
>>Windows? Don't let anti-virus software mess with the data directory.
>
> Windows default Windows Defender is active. I excluded data, pg_wal folders and postgres process:
>
>
> Then turned real-time protection off:
>
> Problem persists. New entry is written after every 10 seconds.
>
> pg_wal also contains files with .deleted extension like
>
> 0000000100000005000000B2.deleted
>
> Andrus.
>
>
The data directory should not be stored in "C:\Program File"s on Windows.

I wouldn't be surprised if "Program Files" has some additional security settings that come into play here.

%ProgramData% is a better location for the data directory.


Thomas





^ permalink  raw  reply  [nested|flat] 14+ messages in thread


end of thread, other threads:[~2021-03-09 10:19 UTC | newest]

Thread overview: 14+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 10:13 Log files polluted with permission denied error messages after every 10 seconds Andrus <kobruleht2@hot.ee>
2021-03-05 13:50 ` Laurenz Albe <laurenz.albe@cybertec.at>
2021-03-05 17:36   ` Andrus <kobruleht2@hot.ee>
2021-03-06 01:36     ` Michael Paquier <michael@paquier.xyz>
2021-03-06 08:47       ` Andrus <kobruleht2@hot.ee>
2021-03-06 17:53       ` Andrus <kobruleht2@hot.ee>
2021-03-07 09:27         ` Michael Paquier <michael@paquier.xyz>
2021-03-07 09:45           ` Andrus <kobruleht2@hot.ee>
2021-03-07 23:38             ` Michael Paquier <michael@paquier.xyz>
2021-03-08 21:25       ` Thomas Munro <thomas.munro@gmail.com>
2021-03-08 21:58         ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-08 22:23           ` Andrus <kobruleht2@hot.ee>
2021-03-08 22:01         ` Andrus <kobruleht2@hot.ee>
2021-03-09 10:19     ` Thomas Kellerer <shammat@gmx.net>

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