I've go two OpenACS installations, and neither will startup correctly when the server reboots -- you have you restart aolserver after restarting the server or you get the "OpenACS Installation: Error ... Possible causes might include:" page. This means I have to worry about leaving the server unattended.
On one server, which has both OACS and postgresql on it, it's because postgresql isn't up yet when OACS first tries to connect to it. That doesn't surprise me because their startup priorities are both 98. postgresql's should be a lower number -- any suggestions?
However, the second server is puzzling me. It connects to postgresql running on the first server. I'm not restarting them both at the same time, just the second one, but what I get is this:
[20/Mar/2003:14:00:26][286.16384][-main-] Notice: dbdrv: opening database 'postgres:pekoe::bma'
[20/Mar/2003:14:00:26][286.16384][-main-] Notice: Opening bma on pekoe, port
[20/Mar/2003:14:00:26][286.16384][-main-] Error: Ns_PgOpenDb(postgres): Could not connect to pekoe::bma:
could not connect to server: Network is unreachable
Is the server running on host pekoe and accepting
TCP/IP connections on port 5432?
[20/Mar/2003:14:00:26][286.16384][-main-] Error: dbdrv: failed to open database
'postgres:pekoe::bma'
[20/Mar/2003:14:00:26][286.16384][-main-] Notice: Couldn't allocate a handle from database pool "pool1".
If I then restart aolserver, all is fine. It's as if the network isn't up yet when aolserver first tries to connect to postgresql. The answer to "Is the server running on host pekoe and accepting TCP/IP connections on port 5432?" is "yes," this server just can't see that yet. How can I delay aolserver startup until the network and/or postgresql are ready?