[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] newbie postgresql - HELP postgresql not responding!!



Opps,
I'm not quite sure what I have done but I'm getting e-mails saying that the
postgresql server has stopped responding.
I have tried to restart it and I get:

[root init.d]#  ./postgresql status
postmaster is stopped
[root init.d]#  ./postgresql start
Setting up PostgreSQL: failed!
[root init.d]#  ./postgresql restart
Shutting down PostgreSQL: not running!
Setting up PostgreSQL: failed!

I've had a look at the log file and it says this:
040111.13:48:37.749   [472] DEBUG:  Data Base System is in production state
at Sun Jan 11 13:48:37 2004
pq_recvbuf: unexpected EOF on client connection
pq_recvbuf: unexpected EOF on client connection
Smart Shutdown request at Sun Jan 11 14:10:44 2004
040111.14:10:44.145  [1791] DEBUG:  Data Base System shutting down at Sun
Jan 11 14:10:44 2004
040111.14:10:44.146  [1791] DEBUG:  Data Base System shut down at Sun Jan 11
14:10:44 2004
040111.14:12:42.459   [473] DEBUG:  Data Base System is starting up at Sun
Jan 11 14:12:42 2004
040111.14:12:42.473   [473] DEBUG:  Data Base System was shut down at Sun
Jan 11 14:10:44 2004
040111.14:12:42.474   [473] DEBUG:  Data Base System is in production state
at Sun Jan 11 14:12:42 2004
pq_recvbuf: unexpected EOF on client connection
pq_recvbuf: unexpected EOF on client connection
No pg_hba.conf entry for host localhost, user admin, database template1
No pg_hba.conf entry for host localhost, user admin, database template1
No pg_hba.conf entry for host localhost, user admin, database template1
No pg_hba.conf entry for host localhost, user admin, database template1
No pg_hba.conf entry for host localhost, user admin, database template1
Password authentication failed for user 'postgres'
Password authentication failed for user 'postgres'
Password authentication failed for user 'postgres'
find_hba_entry: Host-based authentication config file does not exist or
permissions are not setup correctly! Unable to open file
"/var/lib/pgsql/data/pg_hba.conf".
Missing or erroneous pg_hba.conf file, see postmaster log for details
Smart Shutdown request at Tue Jan 13 15:30:00 2004
040113.15:30:00.926  [9171] DEBUG:  Data Base System shutting down at Tue
Jan 13 15:30:00 2004
040113.15:30:00.926  [9171] FATAL 2:  Open(cntlfile) failed: 13
040113.15:30:00.926  [9171] FATAL 2:  Open(cntlfile) failed: 13
Shutdown failed - abort
/usr/bin/postmaster does not find the database system.  Expected to find it
in the PGDATA directory "/var/lib/pgsql/data", but unable to open file with
pathname "/var/lib/pgsql/data/base/template1/pg_class".

Now I was trying to fix a problem when trying to create a database which
sent back an error saying...
=>
=> I get this error message
=> "psql: No pg_hba.conf entry for host localhost, user admin, database
=> template1"

I cahnge the file permissions to admin so I could download the file. (I
didnot alter the file or upload it back to the raq!) So im guessing
postgresql wont run with the permissions set to admin. what should these be
set to?

Thank you very much for your help and time over the past weeks everyone.
Jason

-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Jason Humphrey
Sent: 13 January 2004 21:54
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-users] newbie postgresql


O! Erm do they do the same thing? If not where can I buy Mysql from? And how
would I install it?
Thanks

-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Tom Cameron
Sent: 13 January 2004 21:16
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: RE: [cobalt-users] newbie postgresql



=> 	I'm trying to run a php web content manager called "mambo". When I'm
=> installing it tells me that my server (a raq4) supports sql and
=> there is no
=> problems. The next step asks for a mysql username and password and the
=> database name.
=>
=> So.. I need to create a database with a username and password. I
=> ssh in as
=> admin then su -. im using the command line "createdb mambodbbws -u
=> jhumphrey"
=> I believe this Should create a database called mambodbbws with a user
=> jhumphrey.
=>
=> I get this error message
=> "psql: No pg_hba.conf entry for host localhost, user admin, database
=> template1"
=>
=> I have tried su postgresql but it asks for a password and I
=> don't know what
=> it is because I guess cobalt sets a standard one.

Are you sure you have not got MySQL and PostgreSQL mixed up here? The raq
comes with PostgreSQL but not MySQL by default.

Tom


_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users