If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > starting postgreSQL DB server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-21-11, 13:37
sachinites sachinites is offline
Registered User
 
Join Date: May 2011
Location: mumbai
Posts: 6
Red face starting postgreSQL DB server

i am facing the problem in starting the postgreSQL DB server . please help .. i am getting the following error or something . I guess the server has been started , but it shows this error . what should i do ? where's the problem !

abhishek@ubuntu:/host/driveD/manualInstalls/SpatialDatabase/PostgreSQL_postGIS/installPostgreSQL/n$ ./pg_ctl -D UserData -l logfile start
server starting
abhishek@ubuntu:/host/driveD/manualInstalls/SpatialDatabase/PostgreSQL_postGIS/installPostgreSQL/n$ createdb myspatdb;
createdb: could not connect to database postgres: could not connect to server: No such file or dictory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Reply With Quote
  #2 (permalink)  
Old 06-22-11, 03:18
K_L K_L is offline
Registered User
 
Join Date: Jun 2011
Posts: 4
What does the pgstartup log say?
Reply With Quote
  #3 (permalink)  
Old 06-22-11, 03:44
sachinites sachinites is offline
Registered User
 
Join Date: May 2011
Location: mumbai
Posts: 6
where is this log located ?
Reply With Quote
  #4 (permalink)  
Old 06-22-11, 03:47
K_L K_L is offline
Registered User
 
Join Date: Jun 2011
Posts: 4
I believe it would locate default in install root.
Mine is in /var/lib/pgsql
Reply With Quote
  #5 (permalink)  
Old 06-22-11, 03:56
sachinites sachinites is offline
Registered User
 
Join Date: May 2011
Location: mumbai
Posts: 6
i have installed in non-standard location .

Anyways ..

Log says :

FATAL: data directory "/host/driveD/manualInstalls/SpatialDatabase/PostgreSQL_postGIS/installPostgreSQL/bin/./UserData" has wrong ownership
HINT: The server must be started by the user that owns the data directory.

I dont know , how can i change the ownership . I am the only UNIX user , as well as the only Postgres User .
Reply With Quote
  #6 (permalink)  
Old 06-22-11, 04:05
K_L K_L is offline
Registered User
 
Join Date: Jun 2011
Posts: 4
I'm unsure, but you could try chown the folders (recursive) to postgres
chown - Wikipedia, the free encyclopedia

Or like the hint says start the db with user that owns the folders.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On