Restart failed with 'service postgresql restart'

Help me start the server.
As I mentioned in an earlier post today (subject: password
authentication failed for user postgres), 'service postgresql restart'
had stopped the server but *server
start failed*.

Step wise list of commands to be given would be great!
Do I need to login as postgres?

Being new to PostgreSQL, am looking for some hand-holding.

Thanks
Viv

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Major Services [ Di, 02 März 2010 17:43 ] [ ID #2033785 ]

Re: Restart failed with 'service postgresql restart'

After verifying that the postmaster was not running you did remove the
postmaster.pid file, right?

FATAL: lock file "postmaster.pid"already exists


On 3/2/10 11:43 AM, Major Services wrote:
> Help me start the server.
> As I mentioned in an earlier post today (subject: password
> authentication failed for user postgres), 'service postgresql restart'
> had stopped the server but *server
> start failed*.
>
> Step wise list of commands to be given would be great!
> Do I need to login as postgres?
>
> Being new to PostgreSQL, am looking for some hand-holding.
>
> Thanks
> Viv
>
>

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
paul.a [ Di, 02 März 2010 17:54 ] [ ID #2033786 ]

Re: Restart failed with 'service postgresql restart'

Hi

There is a nice entry at the Postgres archive.
http://archives.postgresql.org/pgsql-general/2004-08/msg0162 4.php

did you remove the /tmp/.s.PGSQL.5432.lock files??
Maybee it helps

Greets
ho

-----Ursprüngliche Nachricht-----
Von: pgsql-admin-owner [at] postgresql.org
[mailto:pgsql-admin-owner [at] postgresql.org] Im Auftrag von Paul Anderson
Gesendet: Dienstag, 02. März 2010 17:55
An: pgsql-admin [at] postgresql.org
Betreff: Re: [ADMIN] Restart failed with 'service postgresql restart'

After verifying that the postmaster was not running you did remove the
postmaster.pid file, right?

FATAL: lock file "postmaster.pid"already exists


On 3/2/10 11:43 AM, Major Services wrote:
> Help me start the server.
> As I mentioned in an earlier post today (subject: password
> authentication failed for user postgres), 'service postgresql restart'
> had stopped the server but *server
> start failed*.
>
> Step wise list of commands to be given would be great!
> Do I need to login as postgres?
>
> Being new to PostgreSQL, am looking for some hand-holding.
>
> Thanks
> Viv
>
>

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin


--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Newsticker [ Di, 02 März 2010 19:02 ] [ ID #2033787 ]

Re: Restart failed with 'service postgresql restart'

Where to look for postmaster.pid?
It is not in the data directory. There is one file postmaster.opts there.

Should I try running 'pg_ctl start -l logfile' ?

On Tue, Mar 2, 2010 at 10:24 PM, Paul Anderson <paul.a [at] pnlassociates.com> w=
rote:
> After verifying that the postmaster was not running you did remove the
> postmaster.pid file, right?
>
> FATAL: lock file "postmaster.pid"already exists
>
>
> On 3/2/10 11:43 AM, Major Services wrote:
>>
>> Help me start the server.
>> As I mentioned in an earlier post today (subject: password
>> authentication failed for user postgres), 'service postgresql restart'
>> had stopped the server but =A0*server
>> start failed*.
>>
>> Step wise list of commands to be given would be great!
>> Do I need to login as postgres?
>>
>> Being new to PostgreSQL, am looking for some hand-holding.
>>
>> Thanks
>> Viv
>>
>>
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Major Services [ Mi, 03 März 2010 05:28 ] [ ID #2033900 ]

Re: Restart failed with 'service postgresql restart'

'pg_ctl status' returns 'neither postmaster nor postgres running'.

Looking for help restart postgres.

Thanks

On Wed, Mar 3, 2010 at 9:58 AM, Major Services <services.major [at] gmail.com> w=
rote:
> Where to look for postmaster.pid?
> It is not in the data directory. There is one file postmaster.opts there.
>
> Should I try running 'pg_ctl start -l logfile' ?
>
> On Tue, Mar 2, 2010 at 10:24 PM, Paul Anderson <paul.a [at] pnlassociates.com>=
wrote:
>> After verifying that the postmaster was not running you did remove the
>> postmaster.pid file, right?
>>
>> FATAL: lock file "postmaster.pid"already exists
>>
>>
>> On 3/2/10 11:43 AM, Major Services wrote:
>>>
>>> Help me start the server.
>>> As I mentioned in an earlier post today (subject: password
>>> authentication failed for user postgres), 'service postgresql restart'
>>> had stopped the server but =A0*server
>>> start failed*.
>>>
>>> Step wise list of commands to be given would be great!
>>> Do I need to login as postgres?
>>>
>>> Being new to PostgreSQL, am looking for some hand-holding.
>>>
>>> Thanks
>>> Viv
>>>
>>>
>>
>> --
>> Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-admin
>>
>

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Major Services [ Mi, 03 März 2010 08:21 ] [ ID #2033901 ]

Re: Restart failed with 'service postgresql restart'

--=-M5Q1hdtxV9x5y8HZmCth
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Let's see.
Could you provide us again pgstartup.log?

First problem was you had a problem with postgresql.conf syntax.
Then, you had a problem with lock files, probably because a bad shutdown
(perhaps a kill?)

Anyway, how long have you worked with Unix environments? I think you are
new to this world, don't you? ;-)

In order to start postgres you have several ways to do it.

- as root user: "service postgresql start" or "/etc/init.d/postgresql
start"
- as postgres user "su - postgres", run "pg_ctl start -D /var/lib/pgsql"


-----Original Message-----
From: Major Services <services.major [at] gmail.com>
To: Paul Anderson <paul.a [at] pnlassociates.com>
Cc: pgsql-admin [at] postgresql.org
Subject: Re: [ADMIN] Restart failed with 'service postgresql restart'
Date: Wed, 3 Mar 2010 12:51:09 +0530


'pg_ctl status' returns 'neither postmaster nor postgres running'.

Looking for help restart postgres.

Thanks

On Wed, Mar 3, 2010 at 9:58 AM, Major Services <services.major [at] gmail.com> wrote:
> Where to look for postmaster.pid?
> It is not in the data directory. There is one file postmaster.opts there.
>
> Should I try running 'pg_ctl start -l logfile' ?
>
> On Tue, Mar 2, 2010 at 10:24 PM, Paul Anderson <paul.a [at] pnlassociates.com> wrote:
>> After verifying that the postmaster was not running you did remove the
>> postmaster.pid file, right?
>>
>> FATAL: lock file "postmaster.pid"already exists
>>
>>
>> On 3/2/10 11:43 AM, Major Services wrote:
>>>
>>> Help me start the server.
>>> As I mentioned in an earlier post today (subject: password
>>> authentication failed for user postgres), 'service postgresql restart'
>>> had stopped the server but *server
>>> start failed*.
>>>
>>> Step wise list of commands to be given would be great!
>>> Do I need to login as postgres?
>>>
>>> Being new to PostgreSQL, am looking for some hand-holding.
>>>
>>> Thanks
>>> Viv
>>>
>>>
>>
>> --
>> Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-admin
>>
>




--=-M5Q1hdtxV9x5y8HZmCth
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.1">
</HEAD>
<BODY>
Let's see.<BR>
Could you provide us again pgstartup.log?<BR>
<BR>
First problem was you had a problem with postgresql.conf syntax.<BR>
Then, you had a problem with lock files, probably because a bad shutdown (perhaps a kill?)<BR>
<BR>
Anyway, how long have you worked with Unix environments? I think you are new to this world, don't you? ;-)<BR>
<BR>
In order to start postgres you have several ways to do it.<BR>
<BR>
- as root user: "service postgresql start" or "/etc/init.d/postgresql start"<BR>
- as postgres user "su - postgres", run "pg_ctl start -D /var/lib/pgsql"<BR>
<BR>
<BR>
-----Original Message-----<BR>
<B>From</B>: Major Services <<A HREF="mailto:Major%20Services%20%3cservices.major [at] gmail.com%3e">services.major [at] gmail.com</A>><BR>
<B>To</B>: Paul Anderson <<A HREF="mailto:Paul%20Anderson%20%3cpaul.a [at] pnlassociates.com%3e">paul.a [at] pnlassociates.com</A>><BR>
<B>Cc</B>: <A HREF="mailto:pgsql-admin [at] postgresql.org">pgsql-admin [at] postgresql.org</A><BR>
<B>Subject</B>: Re: [ADMIN] Restart failed with 'service postgresql restart'<BR>
<B>Date</B>: Wed, 3 Mar 2010 12:51:09 +0530<BR>
<BR>
<PRE>
'pg_ctl status' returns 'neither postmaster nor postgres running'.

Looking for help restart postgres.

Thanks

On Wed, Mar 3, 2010 at 9:58 AM, Major Services <<A HREF="mailto:services.major [at] gmail.com">services.major [at] gmail.com</A>> wrote:
> Where to look for postmaster.pid?
> It is not in the data directory. There is one file postmaster.opts there.
>
> Should I try running 'pg_ctl start -l logfile' ?
>
> On Tue, Mar 2, 2010 at 10:24 PM, Paul Anderson <<A HREF="mailto:paul.a [at] pnlassociates.com">paul.a [at] pnlassociates.com</A>> wrote:
>> After verifying that the postmaster was not running you did remove the
>> postmaster.pid file, right?
>>
>> FATAL: lock file "postmaster.pid"already exists
>>
>>
>> On 3/2/10 11:43 AM, Major Services wrote:
>>>
>>> Help me start the server.
>>> As I mentioned in an earlier post today (subject: password
>>> authentication failed for user postgres), 'service postgresql restart'
>>> had stopped the server but  *server
>>> start failed*.
>>>
>>> Step wise list of commands to be given would be great!
>>> Do I need to login as postgres?
>>>
>>> Being new to PostgreSQL, am looking for some hand-holding.
>>>
>>> Thanks
>>> Viv
>>>
>>>
>>
>> --
>> Sent via pgsql-admin mailing list (<A HREF="mailto:pgsql-admin [at] postgresql.org">pgsql-admin [at] postgresql.org</A>)
>> To make changes to your subscription:
>> <A HREF="http://www.postgresql.org/mailpref/pgsql-admin">http://www.postgresql.org/mailpref/pgsql-admin</A>
>>
>

</PRE>
<BR>
</BODY>
</HTML>

--=-M5Q1hdtxV9x5y8HZmCth--
imartinez [ Mi, 03 März 2010 13:04 ] [ ID #2033902 ]

Re: Restart failed with 'service postgresql restart'

For me, postmaster.pid is in the same directory as postgresql.conf. Do
you still get the message about the pid file when you try to start?

Paul

On 3/2/10 11:28 PM, Major Services wrote:
> Where to look for postmaster.pid?
> It is not in the data directory. There is one file postmaster.opts there.
>
> Should I try running 'pg_ctl start -l logfile' ?
>
> On Tue, Mar 2, 2010 at 10:24 PM, Paul Anderson<paul.a [at] pnlassociates.com> wrote:
>
>> After verifying that the postmaster was not running you did remove the
>> postmaster.pid file, right?
>>
>> FATAL: lock file "postmaster.pid"already exists
>>
>>
>> On 3/2/10 11:43 AM, Major Services wrote:
>>
>>> Help me start the server.
>>> As I mentioned in an earlier post today (subject: password
>>> authentication failed for user postgres), 'service postgresql restart'
>>> had stopped the server but *server
>>> start failed*.
>>>
>>> Step wise list of commands to be given would be great!
>>> Do I need to login as postgres?
>>>
>>> Being new to PostgreSQL, am looking for some hand-holding.
>>>
>>> Thanks
>>> Viv
>>>
>>>
>>>
>> --
>> Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-admin
>>
>>
>

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
paul.a [ Mi, 03 März 2010 13:12 ] [ ID #2033903 ]

Re: Restart failed with 'service postgresql restart'

Hi,

There is no change in the pgstartup.log

Now I hope, I can run the start command; either one of the two - by
root or postgres. Right?

Yes, I am new to both; as mentioned earlier also.
Look forward to mastering PostgreSQL with the help of the community!

Thanks a lot.

On Wed, Mar 3, 2010 at 5:34 PM, I=F1igo Martinez Lasala
<imartinez [at] vectorsf.com> wrote:
> Let's see.
> Could you provide us again pgstartup.log?
>
> First problem was you had a problem with postgresql.conf syntax.
> Then, you had a problem with lock files, probably because a bad shutdown
> (perhaps a kill?)
>
> Anyway, how long have you worked with Unix environments? I think you are =
new
> to this world, don't you? ;-)
>
> In order to start postgres you have several ways to do it.
>
> - as root user: "service postgresql start" or "/etc/init.d/postgresql sta=
rt"
> - as postgres user "su - postgres", run "pg_ctl start -D /var/lib/pgsql"
>
>
> -----Original Message-----
> From: Major Services <services.major [at] gmail.com>
> To: Paul Anderson <paul.a [at] pnlassociates.com>
> Cc: pgsql-admin [at] postgresql.org
> Subject: Re: [ADMIN] Restart failed with 'service postgresql restart'
> Date: Wed, 3 Mar 2010 12:51:09 +0530
>
> 'pg_ctl status' returns 'neither postmaster nor postgres running'.
>
> Looking for help restart postgres.
>
> Thanks
>
> On Wed, Mar 3, 2010 at 9:58 AM, Major Services <services.major [at] gmail.com>
> wrote:
>> Where to look for postmaster.pid?
>> It is not in the data directory. There is one file postmaster.opts there.
>>
>> Should I try running 'pg_ctl start -l logfile' ?
>>
>> On Tue, Mar 2, 2010 at 10:24 PM, Paul Anderson <paul.a [at] pnlassociates.com>
>> wrote:
>>> After verifying that the postmaster was not running you did remove the
>>> postmaster.pid file, right?
>>>
>>> FATAL: lock file "postmaster.pid"already exists
>>>
>>>
>>> On 3/2/10 11:43 AM, Major Services wrote:
>>>>
>>>> Help me start the server.
>>>> As I mentioned in an earlier post today (subject: password
>>>> authentication failed for user postgres), 'service postgresql restart'
>>>> had stopped the server but =A0*server
>>>> start failed*.
>>>>
>>>> Step wise list of commands to be given would be great!
>>>> Do I need to login as postgres?
>>>>
>>>> Being new to PostgreSQL, am looking for some hand-holding.
>>>>
>>>> Thanks
>>>> Viv
>>>>
>>>>
>>>
>>> --
>>> Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
>>> To make changes to your subscription:
>>> http://www.postgresql.org/mailpref/pgsql-admin
>>>
>>
>
>
>

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Major Services [ Mi, 03 März 2010 13:32 ] [ ID #2033904 ]
Datenbanken » gmane.comp.db.postgresql.admin » Restart failed with 'service postgresql restart'

Vorheriges Thema: Quirks in Sorting Pg_description
Nächstes Thema: The OS Command for pg_hotbackup -- Use lvmsnapshot instead of tarcvzf