[PATCH conductor] Redmine #752: Reconnect console if no qpid broker found.
This fixes the apparent error in connector log to the effect of:
warning Connect failed: Connection refused
warning Connection closed
<stacktrace>
This is not actually an error in connector, but a missing connect option
in the console. The way to test this is to stop qpidd service, then try
to start connector service. Watch the connector log for the above error.
Assuming you verified the error, apply patch, rebuild console and install
gem or rpm (I do gem, since I can force it to install over the old one).
Leaving qpidd stopped, attempt to start the connector again. Note that you
may do this manually w/o the service using:
./image_factory_connector -p 2003 start
Which will give you the output in STDOUT. You should now see the log above
minus the stacktrace. Let it try a few times, then start the qpidd service
in another window. After a few seconds, the connector should give some more
output showing it has connected, something like this:
$ ./image_factory_connector -p 2003 start
2011-03-23 15:17:06 warning Connect failed: Connection refused
2011-03-23 15:17:06 warning Connection closed
2011-03-23 15:17:09 warning Connect failed: Connection refused
2011-03-23 15:17:09 warning Connection closed
2011-03-23 15:17:15 warning Connect failed: Connection refused
2011-03-23 15:17:15 warning Connection closed
> Thin web server (v1.2.7 codename No Hup)
> Maximum connections set to 1024
> Listening on 0.0.0.0:2003, CTRL+C to stop