pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_ctl.exe deleted on abrupt shutdown of Windows
6+ messages / 5 participants
[nested] [flat]

* pg_ctl.exe deleted on abrupt shutdown of Windows
@ 2020-12-15 10:44  Joel Mariadasan (jomariad) <jomariad@cisco.com>
  0 siblings, 2 replies; 6+ messages in thread

From: Joel Mariadasan (jomariad) @ 2020-12-15 10:44 UTC (permalink / raw)
  To: pgsql-general

Team,

After abrupt shutdown of Windows, we are seeing the pg_ctl.exe file getting deleted automatically.
Due to this Postgres service cannot be started and need to be re-installed.

We have checked the antivirus and confirmed that it didn't delete the file.
Can you let us know if anyone has observed the file getting deleted upon abrupt shutdown of Windows?

Thanks,
Joel

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

* Re: pg_ctl.exe deleted on abrupt shutdown of Windows
@ 2020-12-15 15:45  Adrian Klaver <adrian.klaver@aklaver.com>
  parent: Joel Mariadasan (jomariad) <jomariad@cisco.com>
  1 sibling, 0 replies; 6+ messages in thread

From: Adrian Klaver @ 2020-12-15 15:45 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 12/15/20 2:44 AM, Joel Mariadasan (jomariad) wrote:
> Team,
> 
> After abrupt shutdown of Windows, we are seeing the pg_ctl.exe file 
> getting deleted automatically.
> 
> Due to this Postgres service cannot be started and need to be re-installed.
> 
> We have checked the antivirus and confirmed that it didn’t delete the file.
> 
> Can you let us know if anyone has observed the file getting deleted upon 
> abrupt shutdown of Windows?

What is causing the shutdown?

> 
> Thanks,
> 
> Joel
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





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

* Re: pg_ctl.exe deleted on abrupt shutdown of Windows
@ 2020-12-15 16:00  Ron <ronljohnsonjr@gmail.com>
  parent: Joel Mariadasan (jomariad) <jomariad@cisco.com>
  1 sibling, 1 reply; 6+ messages in thread

From: Ron @ 2020-12-15 16:00 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 12/15/20 4:44 AM, Joel Mariadasan (jomariad) wrote:
>
> Team,
>
> After abrupt shutdown of Windows, we are seeing the pg_ctl.exe file 
> getting deleted automatically.
>

Maybe English is your second language, but "we are seeing" means that 
Windows regularly shuts down, and deletes pg_ctl.exe every time.  Therefore, 
you must be reinstalling pg_ctl.exe every time.

> Due to this Postgres service cannot be started and need to be re-installed.
>
> We have checked the antivirus and confirmed that it didn’t delete the file.
>
> Can you let us know if anyone has observed the file getting deleted upon 
> abrupt shutdown of Windows?
>

*Only* pg_ctl.exe gets deleted?  Anyway, there's nothing in Postgres that 
says "delete pg_ctl.exe on startup".

This smells strongly of filesystem corruption which requires a Windows guru.

-- 
Angular momentum makes the world go 'round.

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

* Re: pg_ctl.exe deleted on abrupt shutdown of Windows
@ 2020-12-15 17:26  Laurenz Albe <laurenz.albe@cybertec.at>
  parent: Ron <ronljohnsonjr@gmail.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Laurenz Albe @ 2020-12-15 17:26 UTC (permalink / raw)
  To: Ron <ronljohnsonjr@gmail.com>; pgsql-general@lists.postgresql.org

On Tue, 2020-12-15 at 10:00 -0600, Ron wrote:
> > After abrupt shutdown of Windows, we are seeing the pg_ctl.exe file getting deleted automatically.
>  
> Only pg_ctl.exe gets deleted?  Anyway, there's nothing in Postgres that says "delete pg_ctl.exe on startup".
> This smells strongly of filesystem corruption which requires a Windows guru.

Not that I am one, but this smacks of anti-virus software that mistakenly
thinks "pg_ctl.exe" is malware and removes or "isolates" it.

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






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

* Re: pg_ctl.exe deleted on abrupt shutdown of Windows
@ 2020-12-15 17:37  Ron <ronljohnsonjr@gmail.com>
  parent: Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 1 reply; 6+ messages in thread

From: Ron @ 2020-12-15 17:37 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 12/15/20 11:26 AM, Laurenz Albe wrote:
> On Tue, 2020-12-15 at 10:00 -0600, Ron wrote:
>>> After abrupt shutdown of Windows, we are seeing the pg_ctl.exe file getting deleted automatically.
>>   
>> Only pg_ctl.exe gets deleted?  Anyway, there's nothing in Postgres that says "delete pg_ctl.exe on startup".
>> This smells strongly of filesystem corruption which requires a Windows guru.
> Not that I am one, but this smacks of anti-virus software that mistakenly
> thinks "pg_ctl.exe" is malware and removes or "isolates" it.

OP mentioned that they checked that AV didn't "delete" the file. Nothing 
about quarantine, though.

-- 
Angular momentum makes the world go 'round.





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

* Re: pg_ctl.exe deleted on abrupt shutdown of Windows
@ 2020-12-15 17:49  Paul Förster <paul.foerster@gmail.com>
  parent: Ron <ronljohnsonjr@gmail.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Paul Förster @ 2020-12-15 17:49 UTC (permalink / raw)
  To: Ron <ronljohnsonjr@gmail.com>; +Cc: pgsql-general@lists.postgresql.org

Hi,

> On 15. Dec, 2020, at 18:37, Ron <ronljohnsonjr@gmail.com> wrote:
> 
> On 12/15/20 11:26 AM, Laurenz Albe wrote:
>> On Tue, 2020-12-15 at 10:00 -0600, Ron wrote:
>>>> After abrupt shutdown of Windows, we are seeing the pg_ctl.exe file getting deleted automatically.
>>>  Only pg_ctl.exe gets deleted?  Anyway, there's nothing in Postgres that says "delete pg_ctl.exe on startup".
>>> This smells strongly of filesystem corruption which requires a Windows guru.
>> Not that I am one, but this smacks of anti-virus software that mistakenly
>> thinks "pg_ctl.exe" is malware and removes or "isolates" it.
> 
> OP mentioned that they checked that AV didn't "delete" the file. Nothing about quarantine, though.

I'm no Windows guru either, but AFAIK, some AV software moves "infected" files some place else, i.e. out of the bin directory. That means, could it be possible that it's "deleted" from the bin directory, but be put somewhere else in a quarantine directory?

A "dir /s" or something like that may help.

And what does "shutdown" mean? Stop of the service, or proper shutdown of Windows, or sudden power-off? Or losing a network drive which the PostgreSQL software resides on and hence killing the running database, or what does "shutdown" mean in this context? What is an "*abrupt* shutdown"?

Just a thought. There's probably not much to speculate on unless there are more details.

Cheers,
Paul




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


end of thread, other threads:[~2020-12-15 17:49 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 10:44 pg_ctl.exe deleted on abrupt shutdown of Windows Joel Mariadasan (jomariad) <jomariad@cisco.com>
2020-12-15 15:45 ` Adrian Klaver <adrian.klaver@aklaver.com>
2020-12-15 16:00 ` Ron <ronljohnsonjr@gmail.com>
2020-12-15 17:26   ` Laurenz Albe <laurenz.albe@cybertec.at>
2020-12-15 17:37     ` Ron <ronljohnsonjr@gmail.com>
2020-12-15 17:49       ` Paul Förster <paul.foerster@gmail.com>

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