473,322 Members | 1,703 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,322 software developers and data experts.

Installing Postgres w/RH9

I just installed RH9 on a new machine and installed postgres in the
installation process. I got the following error when trying to
start the postmaster so... I tried removing the postgres software
then reinstalling. rpm first said the software was not installed
then when I tried to reinstall rpm said it was already installed.

How do I solve this problem?

Thanks for your help!
Lynn
-bash-2.05b$ postmaster&
[1] 3139
-bash-2.05b$ FATAL: File /var/lib/pgsql/data/PG_VERSION is missing. This is not
a valid data directory.

[1]+ Exit 1 postmaster
-bash-2.05b$
[root@regulus root]# cd /var/lib/pgsql
[root@regulus pgsql]# for i in `ls postgresql*.rpm`; do rpm -e $i; done
error: package postgresql72-libs-1-3.i386.rpm is not installed
error: package postgresql-7.3.2-3.i386.rpm is not installed
error: package postgresql-contrib-7.3.2-3.i386.rpm is not installed
error: package postgresql-devel-7.3.2-3.i386.rpm is not installed
error: package postgresql-docs-7.3.2-3.i386.rpm is not installed
error: package postgresql-jdbc-7.3.2-3.i386.rpm is not installed
error: package postgresql-libs-7.3.2-3.i386.rpm is not installed
error: package postgresql-odbc-7.2.5-1.i386.rpm is not installed
error: package postgresql-pl-7.3.2-3.i386.rpm is not installed
error: package postgresql-python-7.3.2-3.i386.rpm is not installed
error: package postgresql-server-7.3.2-3.i386.rpm is not installed
error: package postgresql-tcl-7.3.2-3.i386.rpm is not installed
error: package postgresql-test-7.3.2-3.i386.rpm is not installed
[root@regulus pgsql]# for i in `ls postgresql*.rpm`; do rpm -i $i; done
warning: postgresql72-libs-1-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package postgresql72-libs-1-3 is already installed
warning: postgresql-7.3.2-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package postgresql-7.3.2-3 is already installed
warning: postgresql-contrib-7.3.2-3.i386.rpm: V3 DSA signature: NOKEY, key ID
db42a60e
package postgresql-contrib-7.3.2-3 is already installed
warning: postgresql-devel-7.3.2-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package postgresql-devel-7.3.2-3 is already installed
warning: postgresql-docs-7.3.2-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package postgresql-docs-7.3.2-3 is already installed
warning: postgresql-jdbc-7.3.2-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package postgresql-jdbc-7.3.2-3 is already installed
warning: postgresql-libs-7.3.2-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package postgresql-libs-7.3.2-3 is already installed
warning: postgresql-odbc-7.2.5-1.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package postgresql-odbc-7.2.5-1 is already installed
warning: postgresql-pl-7.3.2-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package postgresql-pl-7.3.2-3 is already installed
warning: postgresql-python-7.3.2-3.i386.rpm: V3 DSA signature: NOKEY, key ID
db42a60e
package postgresql-python-7.3.2-3 is already installed
warning: postgresql-server-7.3.2-3.i386.rpm: V3 DSA signature: NOKEY, key ID
db42a60e
package postgresql-server-7.3.2-3 is already installed
warning: postgresql-tcl-7.3.2-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package postgresql-tcl-7.3.2-3 is already installed
warning: postgresql-test-7.3.2-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package postgresql-test-7.3.2-3 is already installed
[root@regulus pgsql]#
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #1
4 5181
On Tue, 23 Dec 2003 Ly********@asu.edu wrote:
I just installed RH9 on a new machine and installed postgres in the
installation process. I got the following error when trying to
start the postmaster so... I tried removing the postgres software
then reinstalling. rpm first said the software was not installed
then when I tried to reinstall rpm said it was already installed.
I've seen this happen but never been able to figure out exactly what
caused it.
How do I solve this problem?


First navigate to /var/lib/rpm and remove the three files that begin with
double underscores typically named __db.001, __db.002, and __db.003

When trying to remove packages I use the rpm -qa | grep xxx to determine
the actual package names. If, like the case of PostgreSQL, they are all
lumped together with a naming that is common to all the packages I use
this

rpm -e $(rpm -qa | grep postgres)

and nuke them all.

Also make sure that you have stopped the postmaster (PostgreSQL) before
trying to remove the packages. /etc/init.d/postgresql stop
Good luck to you.
Rod
--
"Open Source Software - You usually get more than you pay for..."
"Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 12 '05 #2
Ly********@asu.edu writes:
-bash-2.05b$ postmaster&
[1] 3139
-bash-2.05b$ FATAL: File /var/lib/pgsql/data/PG_VERSION is missing. This is not
a valid data directory.
You haven't run initdb, or at least haven't run it in that PGDATA
directory. If you think that the rpm package installation process
should have run initdb (I honestly don't know whether it would or not),
then check to see if your PGDATA setting agrees with the package docs.

[root@regulus pgsql]# for i in `ls postgresql*.rpm`; do rpm -e $i; done
error: package postgresql72-libs-1-3.i386.rpm is not installed
...
[root@regulus pgsql]# for i in `ls postgresql*.rpm`; do rpm -i $i; done
warning: postgresql72-libs-1-3.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
package postgresql72-libs-1-3 is already installed


I'm pretty sure that "rpm -e" wants just the bare package name, without
any ".rpm" extension. As somebody else noted, looking at the output of
"rpm -qa" is the most reliable way to get the names of your installed
packages.

regards, tom lane

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

Nov 12 '05 #3
El Jue 25 Dic 2003 13:02, Tom Lane escribió:
Ly********@asu.edu writes:
-bash-2.05b$ postmaster&
[1] 3139
-bash-2.05b$ FATAL: File /var/lib/pgsql/data/PG_VERSION is missing. This is not a valid data directory.


You haven't run initdb, or at least haven't run it in that PGDATA
directory. If you think that the rpm package installation process
should have run initdb (I honestly don't know whether it would or not),
then check to see if your PGDATA setting agrees with the package docs.


The problem is that he's trying to start the postmaster form the comand line,
executing it directly.

Lynn, if you installed PostgreSQL from the rpms that come with RH9 (or Lamars
rpms) just try starting PostgreSQL from the init script:

# /etc/init.d/postgresql start

That script will run initdb if necesary, and set the PGDATA environment
variable if needed also.

Good luck!

--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-----------------------------------------------------------------
Martín Marqués | mm******@unl.edu.ar
Programador, Administrador, DBA | Centro de Telemática
Universidad Nacional
del Litoral
-----------------------------------------------------------------
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 12 '05 #4
Thanks for all the help guys. This problem is solved...
Lynn

Quoting Martin Marques <ma****@bugs.unl.edu.ar>:
El Jue 25 Dic 2003 13:02, Tom Lane escribió:
Ly********@asu.edu writes:
-bash-2.05b$ postmaster&
[1] 3139
-bash-2.05b$ FATAL: File /var/lib/pgsql/data/PG_VERSION is missing. This
is not a valid data directory.


You haven't run initdb, or at least haven't run it in that PGDATA
directory. If you think that the rpm package installation process
should have run initdb (I honestly don't know whether it would or

not),
then check to see if your PGDATA setting agrees with the package

docs.

The problem is that he's trying to start the postmaster form the comand
line,
executing it directly.

Lynn, if you installed PostgreSQL from the rpms that come with RH9 (or
Lamars
rpms) just try starting PostgreSQL from the init script:

# /etc/init.d/postgresql start

That script will run initdb if necesary, and set the PGDATA environment

variable if needed also.

Good luck!

--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
-----------------------------------------------------------------
Martín Marqués | mm******@unl.edu.ar
Programador, Administrador, DBA | Centro de Telemática
Universidad Nacional
del Litoral
-----------------------------------------------------------------
---------------------------(end of
broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


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

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

Nov 12 '05 #5

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

Similar topics

2
by: javier garcia - CEBAS | last post by:
Please, disregard my last message. I've discovered that in "password" file it was mentioned a path '/var/lib/psql' where Mandrake distro installed postres previously. I've solved it. But I still...
3
by: warwick.poole | last post by:
I am interested in finding out about Enterprise scale Postgres installations and clustering, especially on Linux. Essentially I would like to know the possibility that Postgres can store the...
2
by: Adam Witney | last post by:
Forwarding to the mailing list, as I don't know how to fix it.... ------ Forwarded Message From: Henning Klein <kleinh@rz.uni-potsdam.de> Date: Tue, 22 Jun 2004 22:09:08 +0200 To:...
3
by: Marcel Boscher | last post by:
Hello everybody, i tried to "J.U.S.T" install the FullTextSearchTool tsearch2 under the guidiance of : http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/...
18
by: Joe Lester | last post by:
This thread was renamed. It used to be: "shared_buffers Question". The old thread kind of died out. I'm hoping to get some more direction by rephrasing the problem, along with some extra...
0
by: Pallav Kalva | last post by:
Hi Everybody, I am having problems while installing pgbench program. I followed the below procedure to install according to the docs: (1) Configure and build the standard Postgres...
3
by: Alejandro D. Burne | last post by:
Sorry, but no reply on pgsql-ports@postgresql.org. ---------- Forwarded message ---------- From: Alejandro D. Burne <alejandro.dburne@gmail.com> Date: Mon, 15 Nov 2004 15:00:58 +0100 Subject:...
0
by: NM | last post by:
Hello, I've got a problem inserting binary objects into the postgres database. I have binary objects (e.g. images or smth else) of any size which I want to insert into the database. Funny is it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.