On Sun, Aug 30, 2009 at 11:52:51AM -0400, Jim Ohlstein wrote:
2009/08/30 10:29:00 [alert] 2042#0: open socket #1023 left in connection
2009/08/30 10:29:00 [alert] 2042#0: aborting
Other servers seem to be running fine including ones with busy sites.
For the moment I have reverted that VPS to 0.8.10.
Could you do the following:
1) enable coredumps
2) set in nginx.conf:
3) reconfigure nginx, if there are open connections, then nginx creates
coredump on exit
Do you want nginx reconfigured "--with-debug" or is there another option
No. The coredump is enough, it's just should have debug info (gcc -g option).
4) look in log for alerts: open socket #... left in connection NN
5) run "gdb /path/to/nginx /path/to/core", then
p ((ngx_connection_t *) ngx_cycle->connections[NN]->data)->uri
p ((ngx_connection_t *) ngx_cycle->connections[NN]->data)->main->count
where NN is NN from log message.