just fyi:
reason i'm trying to get the postgres_server running is that my profile manager, wiki, calendar and contacts have been acting up since update to 2.2
i found that you have to use
/Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend/wipeDB. sh
but when i do that, i get:
devicemgr:state = "STOPPED"
postgres_server:error = "CANNOT_START_SERVICE_TIMEOUT_ERR"
(in /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend)
Couldn't drop device_management : #<PGError: could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"?
>
(in /Applications/Server.app/Contents/ServerRoot/usr/share/devicemgr/backend)
could not connect to server: Connection refused
Is the server running locally and accepting
connections on Unix domain socket "/Library/Server/PostgreSQL For Server Services/Socket/.s.PGSQL.5432"?
looking at the code of wipeDB.sh, it shows that it is trying to start postgres_server with
sudo $SERVER_ROOT/usr/sbin/serveradmin start postgres_server
if i look at the postgres_server with
sudo serveradmin fullstatus postgres_server
i get
postgres_server:dataDirHasBeenInitialized = yes
postgres_server:PG_VERSION = "9.2.1"
postgres_server:dataDir = "/Library/Server/PostgreSQL For Server Services/Data"
postgres_server:postgresIsResponding = no
postgres_server:dataDirIsDirectory = yes
postgres_server:PGserverVersion = 0
postgres_server:dataDirExists = yes
postgres_server:setStateVersion = 1
postgres_server:state = "RUNNING"
which shows that the server is running but it's not responding.
after a long search i ended up in this thread.
i think the problem is that my postgres_server is not working properly.
and i have no idea why...
any help/pointers GREATLY appreciated.
thanks