Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 66E96133798E for ; Thu, 24 Feb 2011 21:46:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 66227-08 for ; Fri, 25 Feb 2011 01:46:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yx0-f174.google.com (mail-yx0-f174.google.com [209.85.213.174]) by mail.postgresql.org (Postfix) with ESMTP id 833F2133616B for ; Thu, 24 Feb 2011 21:46:07 -0400 (AST) Received: by yxs7 with SMTP id 7so544772yxs.19 for ; Thu, 24 Feb 2011 17:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=N2WrDiQeu5q/RwhmKXgg5+5WCnyr3DkULV/jhAmuIG4=; b=m+UGklUXAwwZQhhgHnmUVWapWFNYZEWdtaJn1Kt+uxtt7Gvl1AhQtMa7rndG+Ug9cd C4ytlfA5l4IHdeR5R+7lLot92WsHJLyZizgTRnyG8+Jq1Ef+WiO9tsRqC2aeLUAWhotD k1rCrz37IrDiTFQNETR+fKU8vhAOPkP/9na+0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=SBqTc1J5hgGFN/hbjTYY28HbzHStOl3X1lcKjD7wn0SccPzzrobL+QhsiYA40qhiMD A9hYlEFJMCjQwjlOA9hIFel8V0TzXkZv1UC83VAG9pcSKAh0zaOhCn4dDol0T7+1YZ2z 02rrI48bqzYlF2AFSokzlWNYaeUm3h4bnfWTA= MIME-Version: 1.0 Received: by 10.150.31.3 with SMTP id e3mr2859083ybe.255.1298598367225; Thu, 24 Feb 2011 17:46:07 -0800 (PST) Received: by 10.146.168.5 with HTTP; Thu, 24 Feb 2011 17:46:07 -0800 (PST) In-Reply-To: <146722076.1170287.1298584490006.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> References: <146722076.1170287.1298584490006.JavaMail.root@sz0093a.westchester.pa.mail.comcast.net> Date: Fri, 25 Feb 2011 09:46:07 +0800 Message-ID: Subject: Re: Error stopping postgresql service From: Maalini Samuganardan To: Lou Picciano , devrim@gunduz.org, Kevin.Grittner@wicourts.gov Cc: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary=000e0cd357c86266f3049d117e28 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201102/224 X-Sequence-Number: 36863 --000e0cd357c86266f3049d117e28 Content-Type: text/plain; charset=ISO-8859-1 Hi All, Thank you for your reply. Let me explain a bit more in detail. This is the first time I am installing PostgreSQL Advanced Server. I do not have any database yet, except for the edb database. OS : Fedora 14 PostgreSQL Version : PPAS 8.4.7 I downloaded from enterprisedb website. Installation was done using GUI - ./ppasmeta-8.4.5.18-linux-x64.bin Below is the output from the log file /var/lib/pgsql/pgstartup.log :- The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale en_US.UTF-8. The default database encoding has accordingly been set to UTF8. The default text search configuration will be set to "english". fixing permissions on existing directory /var/lib/pgsql/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 24MB creating configuration files ... ok creating template1 database in /var/lib/pgsql/data/base/1 ... ok initializing pg_authid ... ok initializing dependencies ... ok creating system views ... ok loading system objects' descriptions ... ok creating conversions ... ok creating dictionaries ... ok setting privileges on built-in objects ... ok creating information schema ... ok vacuuming database template1 ... ok copying template1 to template0 ... ok copying template1 to postgres ... ok Success. You can now start the database server using: /usr/bin/postgres -D /var/lib/pgsql/data or /usr/bin/pg_ctl -D /var/lib/pgsql/data -l logfile start runuser: cannot set groups: Operation not permitted runuser: cannot set groups: Operation not permitted runuser: cannot set groups: Operation not permitted runuser: cannot set groups: Operation not permitted runuser: cannot set groups: Operation not permitted runuser: warning: cannot change directory to /var/lib/pgsql: Permission denied -bash: /var/lib/pgsql/.bash_profile: Permission denied postmaster cannot access the server configuration file "/var/lib/pgsql/data/postgresql.conf": Permission denied runuser: warning: cannot change directory to /var/lib/pgsql: Permission denied -bash: /var/lib/pgsql/.bash_profile: Permission denied postmaster cannot access the server configuration file "/var/lib/pgsql/data/postgresql.conf": Permission denied runuser: warning: cannot change directory to /var/lib/pgsql: Permission denied -bash: /var/lib/pgsql/.bash_profile: Permission denied postmaster cannot access the server configuration file "/var/lib/pgsql/data/postgresql.conf": Permission denied runuser: warning: cannot change directory to /var/lib/pgsql: Permission denied The weird part is i checked the owner and group of the folder "pgsql" is "enterprisedb". I do not know why it says in the log file that the file is owned by "postgres". If I want to do a complete and clean installation, where are the location of files that I need to remove manually? Please help. I don't mind reinstalling the whole thing. Thank you Best Regards, Maalini On Fri, Feb 25, 2011 at 5:54 AM, Lou Picciano wrote: > Maalini - > > On first glance (and not knowing the architecture of your particular > 'service'), this looks very explainable on the basis of PostgreSQL being > instructed to do a 'graceful' shutdown - while you may have users connected. > > Depending on how your service 'stop' issues the shutdown command, > PostgreSQL may never stop! > > Probably need to give us more specifics about the layout of your service. > > Lou Picciano > > ----- Original Message ----- > From: "Maalini Samuganardan" > To: pgsql-admin@postgresql.org > Sent: Wednesday, February 23, 2011 9:20:10 PM > Subject: [ADMIN] Error stopping postgresql service > > Hi, > > I am getting an error when try to stop the postgresql server. > No problem starting. > > Please find error message below. > > Thank you. > > [root@edbws01 run]# service postgresql status > postmaster is stopped > [root@edbws01 run]# service postgresql start > Starting postgresql service: [ OK ] > [root@edbws01 run]# service postgresql stop > Stopping postgresql service: [FAILED] > [root@edbws01 run]# > > Regards, > Maalini > --000e0cd357c86266f3049d117e28 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi All,

Thank you for your reply.=A0

Let me explain a bit more in detail.

This is= the first time I am installing PostgreSQL Advanced Server. I do not have a= ny database yet, except for the edb database.=A0
OS : Fedora 14
PostgreSQL Version : PPAS 8.4.7
I d= ownloaded from enterprisedb website.
Installation was done using = GUI =A0- =A0./ppasmeta-8= .4.5.18-linux-x64.bin

Below is the output from the log file=A0/var/lib/pgsql/pgstartup.log :-

T= he files belonging to this database system will be owned by user "post= gres".
This user must also= own the server process.

The database cluster will be initialized with locale en_US.= UTF-8.
The default databas= e encoding has accordingly been set to UTF8.
The default text search configurati= on will be set to "english".

fixing permissions on= existing directory /var/lib/pgsql/data ... ok
creating subdirectories ... ok
selecting default m= ax_connections ... 100
selecting default shared_buffers ... 24MB
= creating configuration f= iles ... ok
creating template1 = database in /var/lib/pgsql/data/base/1 ... ok
initializing pg_authid ... ok
initializing depend= encies ... ok
creating system views ... ok
loading system objects' descriptions ... o= k
creating conversion= s ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating informatio= n schema ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... = ok
copying template1 t= o postgres ... ok

Success. You can now start the database server using:

=A0=A0 =A0/usr/bin/po= stgres -D /var/lib/pgsql/data
or
=A0=A0 =A0/usr/bin/= pg_ctl -D /var/lib/pgsql/data -l logfile start

runuser: cannot set groups: Operati= on not permitted
runuser: cannot set= groups: Operation not permitted
runuser: cannot set groups: Operation not permitt= ed
runuser: cannot set= groups: Operation not permitted
runuser: cannot set groups: Operation not permitt= ed
runuser: warning: c= annot change directory to /var/lib/pgsql: Permission denied
-bash: /var/lib/pgsql/= .bash_profile: Permission denied
postmaster cannot a= ccess the server configuration file "/var/lib/pgsql/data/postgresql.co= nf": Permission denied
runuser: warning: cannot change directory to /var/lib/= pgsql: Permission denied
-bash: /var/lib/pgs= ql/.bash_profile: Permission denied
postmaster cannot access the server configurat= ion file "/var/lib/pgsql/data/postgresql.conf": Permission denied=
runuser: warning: c= annot change directory to /var/lib/pgsql: Permission denied
-bash: /var/lib/pgsql/= .bash_profile: Permission denied
postmaster cannot a= ccess the server configuration file "/var/lib/pgsql/data/postgresql.co= nf": Permission denied
runuser: warning: cannot change directory to /var/lib/= pgsql: Permission denied

The weird part is i checked the owner and group o= f the folder "pgsql" is "enterprisedb". I do not know w= hy it says in the log file that the file is owned by "postgres".<= /div>

If I want to do a complete and clean installation, wher= e are the location of files that I need to remove manually?=A0
Pl= ease help. I don't mind reinstalling the whole thing.

Thank you
Best Regards,
Maalini

=

On Fri, Feb 25, 2011 at 5:54 = AM, Lou Picciano <loupicciano@comcast.net> wrote:
Maalini -=A0

On first glance (= and not knowing the architecture of your particular 'service'), thi= s looks very explainable on the basis of PostgreSQL being instructed to do = a 'graceful' shutdown - while you may have users connected.

Depending on how your service 'stop' issues the= shutdown command, PostgreSQL may never stop!

Prob= ably need to give us more specifics about the layout of your service.

Lou Picciano
<= div>

----- Original Message -----
From: = "Maalini Samuganardan" <maalini.sam@gmail.com>
To: pgsql-a= dmin@postgresql.org
Sent: Wednesday, February 23, 2011 9:20:10 PMSubject: [ADMIN] Error stopping postgresql service

Hi,

I am getting an error when try to stop the postgresql server.=A0
=
No problem starting.

Please find error messag= e below.

Thank you.

[root@edbws01 run]# service postgresql status
postmaster is stopped
[root@edbws01 run]# service postgresql sta= rt
Starting postgresql service: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 [ =A0OK =A0]
[root@edbws01 run]# service postgresql stop
Stopping postgre= sql service: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 [F= AILED]
[root@edbws01 run]#=A0

Rega= rds,
Maalini

--000e0cd357c86266f3049d117e28--