473,788 Members | 2,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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*******@postg resql.org

Nov 12 '05 #1
4 5209
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.ed u.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.un l.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.ed u.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
1673
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 have another problem: A later step in Postgres installation instructions says: "/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &" and with this I obtain: "bash: logfile: Dennied permission"
3
8705
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 database data in a central location (ex: on a SAN fiber array) and have a cluster of machines sharing processor/RAM/IO bandwidth to do the application processing. Or perhaps there is another solution similar to what www.emicnetworks.com have...
2
1773
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: awitney@sghms.ac.uk Subject: problems with installing postgres hi,
3
4610
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/ <http://www.sai.msu.su/%7Emegera/postgres/gist/tsearch/V2/> and i'm almost losing my mind... <runningagainstwallheadsfirst> after i installed postgre which works fine i change to the folder /contrib/tsearch2/
18
5155
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 observations I've recently made. The core of the problem is that Postgres is filling up my hard drive with swap files at the rate of around 3 to 7 GB per week (that's Gigabytes not Megabytes) . At this rate it takes roughly two months to fill up my 40...
0
5352
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 distribution. You can get away with just running configure at the top level and doing "make all" in src/interfaces/libpq.
3
3485
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: Problem installing Postgresql on MDK10.0 To: pgsql-ports@postgresql.org I'll be trying to install postgres 8.0b1/b4; when I make the config a
0
2705
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 works for files larger than 8000 Bytes. If a file is less than 1000 Bytes I get the following message: Error message: --invalid input syntax for type oid: "\074\077......";
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.