Opened 12 years ago

Closed 12 years ago

#35509 closed defect (invalid)

postgresql91: daemon not launching service

Reported by: ckipel@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: jyrkiwahlstedt
Port: postgresql91

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Running "sudo port load postgresql91-server" seems like it works at first but when I run "psql" after, I get:

psql: 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"?

I check to see if the service is running with ps aux | grep postgres and I get:

root           32115   0.0  0.0  2434584   1020   ??  Ss   10:33PM   0:00.01 /opt/local/bin/daemondo --label=postgresql91-server --start-cmd /opt/local/etc/LaunchDaemons/org.macports.postgresql91-server/postgresql91-server.wrapper start ; --stop-cmd /opt/local/etc/LaunchDaemons/org.macports.postgresql91-server/postgresql91-server.wrapper stop ; --restart-cmd /opt/local/etc/LaunchDaemons/org.macports.postgresql91-server/postgresql91-server.wrapper restart ; --pid=none

I tried doing "sudo /opt/local/etc/LaunchDaemons/org.macports.postgresql91-server/postgresql91-server.wrapper start ; --stop-cmd /opt/local/etc/LaunchDaemons/org.macports.postgresql91-server/postgresql91-server.wrapper stop ; --restart-cmd /opt/local/etc/LaunchDaemons/org.macports.postgresql91-server/postgresql91-server.wrapper restart ; --pid=none"

and I get:

server starting
-bash: --stop-cmd: command not found
-bash: --restart-cmd: command not found
-bash: --pid=none: command not found

I am running Xcode 4.4, MacPorts 2.1.2, and Mountain Lion 10.8. Let me know if I need to run any debug or diagnostics to provide more information.

Change History (4)

comment:1 Changed 12 years ago by ckipel@…

Cc: ckipel@… added

Cc Me!

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jwa@… added; ckipel@… removed
Description: modified (diff)
Keywords: postgresql removed
Owner: changed from macports-tickets@… to mww@…
Port: postgresql91 added

comment:3 Changed 12 years ago by ckipel@…

I ended up reinstalling Mountain Lion from scratch and it seemed to have fixed it. There was probably some configuration problem on my system - please close.

comment:4 Changed 12 years ago by jyrkiwahlstedt

Resolution: invalid
Status: newclosed

closed

Note: See TracTickets for help on using tickets.