PostgreSQL on Mac unable to login to database

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Re: PostgreSQL on Mac unable to login to database

Postby kraada » Wed Oct 16, 2013 8:00 am

Please type the following at a Terminal and paste the results here:

ps aux | grep -i postgres
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: PostgreSQL on Mac unable to login to database

Postby clartann » Wed Oct 16, 2013 11:50 pm

1546 0.1 0.0 2435120 544 s000 S+ 11:50pm 0:00.00 grep -i postgres
clartann
 
Posts: 3
Joined: Fri Oct 11, 2013 6:48 pm

Re: PostgreSQL on Mac unable to login to database

Postby kraada » Thu Oct 17, 2013 8:01 am

PostgreSQL is not installed successfully. Please try reinstalling it manually using this link.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: PostgreSQL on Mac unable to login to database

Postby benegizer » Mon Oct 21, 2013 11:35 am

I just encountered the same problem with the same error message. (Also on a mac running Mountain Lion)

Two things may have caused it. one, I I accidentally deleted the PostgreSQL user, and another thing that might have caused it was I had to reset my spotlight index (having problems with Time Machine)

I re-downloaded PostgreSQL, and installed it (now the PostgreSQL user is present at the login screen when I restart) but I still get the same error message. When I try to create a new one i get

Unable to create PostgreSQL database: PT3_2013_10_22_002537
Reason: Unable to login to database (template1). Reason: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

When I try to browse I get

Unable to login to database (template1) Reason: could not connect to server: No such file or directory Is the server running locally and excepting connections on UNIX domain socket "/tmp/.s.PGSQL.5432"?

any ideas?


thanks in advance.
benegizer
 
Posts: 10
Joined: Tue Jul 20, 2010 12:51 pm

Re: PostgreSQL on Mac unable to login to database

Postby kraada » Mon Oct 21, 2013 3:20 pm

Open Applications -> Utilities -> Console; do you see errors listed for PostgreSQL there? If so, what do they say?
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: PostgreSQL on Mac unable to login to database

Postby benegizer » Mon Oct 21, 2013 6:13 pm

com.apple.launchd.peruser.501 (0x0-0xe80e].com.pokertracker.pokertracker3[1800]) Job appears to have crashed: Bus error: 10

Then next is the report crash
benegizer
 
Posts: 10
Joined: Tue Jul 20, 2010 12:51 pm

Re: PostgreSQL on Mac unable to login to database

Postby kraada » Tue Oct 22, 2013 9:50 am

But you don't see anything for PostgreSQL?
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: PostgreSQL on Mac unable to login to database

Postby benegizer » Tue Oct 22, 2013 9:53 am

nope. But let me open it up and try again
benegizer
 
Posts: 10
Joined: Tue Jul 20, 2010 12:51 pm

Re: PostgreSQL on Mac unable to login to database

Postby benegizer » Tue Oct 22, 2013 9:55 am

10/22/13 10:53:47.370 PM com.apple.launchd[1]: (com.edb.launchd.postgresql-9.0[18999]) Exited with code: 2
10/22/13 10:53:47.370 PM com.apple.launchd[1]: (com.edb.launchd.postgresql-9.0) Throttling respawn: Will start in 10 seconds
10/22/13 10:53:57.381 PM com.apple.launchd[1]: (com.edb.launchd.postgresql-9.0[19000]) Exited with code: 2
10/22/13 10:53:57.381 PM com.apple.launchd[1]: (com.edb.launchd.postgresql-9.0) Throttling respawn: Will start in 10 seconds
10/22/13 10:54:07.392 PM com.apple.launchd[1]: (com.edb.launchd.postgresql-9.0[19002]) Exited with code: 2
10/22/13 10:54:07.392 PM com.apple.launchd[1]: (com.edb.launchd.postgresql-9.0) Throttling respawn: Will start in 10 seconds
benegizer
 
Posts: 10
Joined: Tue Jul 20, 2010 12:51 pm

Re: PostgreSQL on Mac unable to login to database

Postby kraada » Tue Oct 22, 2013 10:58 am

Ok, that means that something is keeping it from starting up. Open up the last file in /Library/PostgreSQL/9.0/data/pg_log and paste the contents here please.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

PreviousNext

Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 12 guests

cron