[Backgroundrb-devel] Server dying with perpetual "Connection reset by peer"

David Balatero david.balatero at gmail.com
Wed Aug 8 14:09:29 EDT 2007

I was able to solve this very problem by changing my host from "localhost"
to "" in my config/backgroundrb.yml file yesterday. Does that work
for you? Some systems apparently have trouble resolving hostnames --
although localhost seems like a no-brainer to resolve...

- David

On 7/30/07, Daniel Azuma <dazuma at alumni.caltech.edu> wrote:
> On 30 Jul, 2007, at 08:06, Mason Hale wrote:
> > On 7/29/07, Daniel Azuma <dazuma at alumni.caltech.edu> wrote:
> >> This appears to be the same issue that Peer Allan observed back in
> >> May-- in that case the workers were triggered on a schedule, but in
> >> my case it is triggered via a remote MiddleMan.
> >
> > By "triggered via a remote MiddleMan" do you mean that one
> > backgroundrb worker is spawning additional workers? If so, then
> > that could be the problem. I had a lot of connection reset by peer
> > errors when trying to spawn workers from other workers.
> Sorry, I didn't give a very clear description. All I meant was that
> I'm not using the scheduler (which other people seem to be having
> trouble with). I'm simply using MiddleMan from rails and spawning
> workers that way, not trying to spawn workers from other workers. I
> merely want to use backgroundrb to detach certain jobs from the HTTP
> request and run them asynchronously.
> > If not, are you using Unix sockets? I've seen cases where the
> > process names become very long, due to the class name and job key
> > being concatenated into the process name. If the name is too long,
> > then backgroundrb may not be able to locate a matching socket file
> > to make the connection. If that might be the case, try shortening
> > your class names and/or setting explicit, short jobkeys for your
> > worker processes.
> I've tried both the drbunix and druby protocols, if that's what
> you're asking, and have had the same result with both. (I assume the
> difference between them is that the former uses unix sockets whereas
> the latter uses ip?) However, I'll look into the process names
> anyway. Thanks.
> Daniel
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20070808/707e5a83/attachment.html 

More information about the Backgroundrb-devel mailing list