473,394 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

7.4 Crashed... Why?

Looks like my copy of 7.4, which seems to have been running fine until now,
crashed last night at about 1am.

All my alarms went off and I got it started again, but I'd like to know what
happened so I can sleep soundly. :-)

Here's the serverlog entry:

LOG: recycled transaction log file "0000000000000028"
FATAL: lock file "/usr/local/pgsql/data/postmaster.pid" already exists
HINT: Is another postmaster (PID 1010) running in data directory
"/usr/local/pgsql/data"?

Not much. Looks like it tried to restart itself, found the old pid file and
crapped out... Or something. Why would it restart itself?

Any ideas?

We're running on RedHat 7.2.

Thanks,
Hunter
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #1
4 1735
Hunter Hillegas <li***@lastonepicked.com> writes:
Here's the serverlog entry:
LOG: recycled transaction log file "0000000000000028"
FATAL: lock file "/usr/local/pgsql/data/postmaster.pid" already exists
HINT: Is another postmaster (PID 1010) running in data directory
"/usr/local/pgsql/data"? Not much. Looks like it tried to restart itself, found the old pid file and
crapped out... Or something. Why would it restart itself?


The postmaster *never* restarts itself. What the above looks like to me
is some random script decided to try to start a new postmaster, and the
new postmaster quite properly refused to do anything because there
already was a running postmaster. You should look into your cron jobs
and see what sort of interesting stuff might lurk there.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Nov 12 '05 #2
Thanks Tom.

Good to know that postmaster doesn't restart itself.

I did find a cron job that was running in the suspect time... But all it
does is the following:

DATE=`date +%Y%m%d`
DB1=/root/database_backup/db1_db.$DATE
su - postgres -c "/usr/local/pgsql/bin/pg_dump db1" >> $DB1
gzip $DB1

Is it possible this could cause some strange behavior? This backup script
has been running for a year (every night) w/o any trouble.

Very strange.
From: Tom Lane <tg*@sss.pgh.pa.us>
Date: Fri, 05 Dec 2003 22:18:33 -0500
To: Hunter Hillegas <li***@lastonepicked.com>
Cc: PostgreSQL <pg***********@postgresql.org>
Subject: Re: [GENERAL] 7.4 Crashed... Why?

Hunter Hillegas <li***@lastonepicked.com> writes:
Here's the serverlog entry:
LOG: recycled transaction log file "0000000000000028"
FATAL: lock file "/usr/local/pgsql/data/postmaster.pid" already exists
HINT: Is another postmaster (PID 1010) running in data directory
"/usr/local/pgsql/data"?

Not much. Looks like it tried to restart itself, found the old pid file and
crapped out... Or something. Why would it restart itself?


The postmaster *never* restarts itself. What the above looks like to me
is some random script decided to try to start a new postmaster, and the
new postmaster quite properly refused to do anything because there
already was a running postmaster. You should look into your cron jobs
and see what sort of interesting stuff might lurk there.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #3
Hunter Hillegas <li***@lastonepicked.com> writes:
I did find a cron job that was running in the suspect time... But all it
does is the following:
DATE=`date +%Y%m%d`
DB1=/root/database_backup/db1_db.$DATE
su - postgres -c "/usr/local/pgsql/bin/pg_dump db1" >> $DB1
gzip $DB1
Is it possible this could cause some strange behavior? This backup script
has been running for a year (every night) w/o any trouble.


The cron script itself certainly looks unexceptional. But if "su - postgres"
executes postgres' ~/.profile or other shell-startup scripts (I think it
does so on some platforms but not others), maybe you had some weird
behavior recently added to those scripts?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #4
Verified that no shell startup scripts are running... And the backup
proceeded normally last night with no crash.

I'm starting to think that I'm not going to be able to track this down and
have to hope it doesn't happen again.
From: Tom Lane <tg*@sss.pgh.pa.us>
Date: Sat, 06 Dec 2003 20:36:39 -0500
To: Hunter Hillegas <li***@lastonepicked.com>
Cc: PostgreSQL <pg***********@postgresql.org>
Subject: Re: [GENERAL] 7.4 Crashed... Why?

Hunter Hillegas <li***@lastonepicked.com> writes:
I did find a cron job that was running in the suspect time... But all it
does is the following:
DATE=`date +%Y%m%d`
DB1=/root/database_backup/db1_db.$DATE
su - postgres -c "/usr/local/pgsql/bin/pg_dump db1" >> $DB1
gzip $DB1
Is it possible this could cause some strange behavior? This backup script
has been running for a year (every night) w/o any trouble.


The cron script itself certainly looks unexceptional. But if "su - postgres"
executes postgres' ~/.profile or other shell-startup scripts (I think it
does so on some platforms but not others), maybe you had some weird
behavior recently added to those scripts?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Subhash | last post by:
Hello, I am trying to generate dynamic graphics using the GD library and TTF fonts. The resulting image shows up fine. But in the apache error_log file the following lines are appended: child...
0
by: Sarah Tanembaum | last post by:
It turns out that the culprit that crashed my php5ts.dll as below is php_threads.dll. Is there any fix for this? Thanks BTW: I remove php_threads.dll from extensions and it works now. Am I...
0
by: Matt | last post by:
Hi everyone, I'm using the command "mysqlcheck --all-databases --auto-repair --silent" and I see these warnings and errors (listed below) on a daily occurrence. What could cause these indexes to...
2
by: ChrisWinterscheid | last post by:
Occasionally we see these messages in the db2diag.log file. Can someone tell me what they mean and are they anything to worry about? 2005-03-03-10.42.04.286220 Instance:db2inst1 Node:000...
0
by: Hemant Shah | last post by:
Folks, One of our system crashed last week. It had few database instances on it. They are all for development and was deteremined that they do not need to be backed up (database backup, the file...
4
by: Fish | last post by:
I have an Access applicaion I built for my buiness. Last week the application crashed and I haven't been able to get it running again since in any form. Now every time I try to run the...
0
by: Curious | last post by:
A program crashed silently. Fortunately, I was able to get a .dmp file. Hopefully it can provide us with info on why it crashed. When I opened the .dmp file in Notepad, it took a long time to...
8
by: Pallav singh | last post by:
#include<iostream.h> #include<memory.h> #include<string.h> // product class Pizza { private : std::string Topping;
1
by: raghulvarma | last post by:
Hai friends, I need to know what would happen when my IIS gets crashed? what would happen to all the projects present inside it?How should I rectify that?What should I do when I am...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.