I have been trying to sort out the same problem on my ML server too. I do not seem to have good sync (gs-server) issue, but i to have a lot of (CLOSE_WAIT) messages.
[kirkw@truffula]~$ sudo lsof -Ri | grep krb524
ruby 87218 1 _teamsserver 15u IPv6 0xc978a827454501d9 0t0 TCP localhost:50958->localhost:krb524 (CLOSE_WAIT)
ruby 87218 1 _teamsserver 16u IPv6 0xc978a8274f8221d9 0t0 TCP localhost:50959->localhost:krb524 (CLOSE_WAIT)
ruby 87218 1 _teamsserver 17u IPv6 0xc978a827544a8df9 0t0 TCP localhost:55509->localhost:krb524 (CLOSE_WAIT)
ruby 87218 1 _teamsserver 18u IPv6 0xc978a8272338edf9 0t0 TCP localhost:55510->localhost:krb524 (CLOSE_WAIT)
ruby 87221 1 _teamsserver 15u IPv6 0xc978a82743fd1a19 0t0 TCP localhost:50964->localhost:krb524 (CLOSE_WAIT)
ruby 87221 1 _teamsserver 16u IPv6 0xc978a827454505b9 0t0 TCP localhost:50965->localhost:krb524 (CLOSE_WAIT)
ruby 87224 1 _teamsserver 15u IPv6 0xc978a8271eb37a19 0t0 TCP localhost:50970->localhost:krb524 (CLOSE_WAIT)
ruby 87224 1 _teamsserver 16u IPv6 0xc978a8272338c5b9 0t0 TCP localhost:50971->localhost:krb524 (CLOSE_WAIT)
collabd 87231 1 _teamsserver 6u IPv4 0xc978a827549ebbe1 0t0 TCP localhost:krb524 (LISTEN)
collabd 87231 1 _teamsserver 7u IPv6 0xc978a8271ac891d9 0t0 TCP localhost:krb524 (LISTEN)
[kirkw@truffula]~$
I suspect however, that my problem is with global_settings in pg. When I connect with psql as collab, i get:
[kirkw@truffula]var$ sudo psql -U collab -h "/Library/Server/PostgreSQL For Server Services/Socket"
Password:
psql (9.1.4, server 9.2.1)
WARNING: psql version 9.1, server version 9.2.
Some psql features might not work.
Type "help" for help.
And then do a select all from global_settings:
collab=# select * from global_settings;
ERROR: relation "global_settings" does not exist
LINE 1: select * from global_settings;
^
collab=#
As you can see, "global_settings" does not exist is probably not good.
Any ideas how how to re-creat global settings? Thanks.