# Backgroundrb - Connection refused

**URL:** <https://www.ruby-forum.com/t/backgroundrb-connection-refused/134626>\
**Category:** Rails\
**Created:** [April 13, 2008, 4:11am UTC](https://www.ruby-forum.com/t/backgroundrb-connection-refused/134626 "2008-04-13T04:11:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghoti143](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Post date:** [April 13, 2008, 4:11am UTC](https://www.ruby-forum.com/t/backgroundrb-connection-refused/134626/1 "2008-04-13T04:11:25Z")

</div>

Problem: getting the connection refused to backgroundrb after switching  
from lighttpd to mongrel with mongrel\_cluster + ngnix.

## Error

ERROR:connection closed  
ERROR:Connection refused - connect(2)

\*running lighttpd on port 3000 will work  
\*running via ngnix to the mongrel cluster will get the error  
\*running via mongrel directly on port 8000 will get the error  
\*tried the start/stop of order of operation so drb should start first,  
etc.  
\*tried running the client browser from localhost as well and get this  
error too.

I would appreciate any help/pointers. I wish I can see some log where  
backgroundrdb logged the actual ip of client trying to connection to  
give any possible clue.

## Env

ubuntu 7.04 on VMWARE ESX 3.5, both RoR run on the same host as drb.

## backgroundrb.yml

## port: 22222 timer\_sleep: 60 load\_rails: true environment: development host: localhost database\_yml: config/database.yml acl: deny: all allow: localhost 127.0.0.1 order: allow, deny

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![ghoti143](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/90db22/32.png) [@ghoti143](https://www.ruby-forum.com/u/ghoti143)\
**Post date:** [April 14, 2008, 8:36am UTC](https://www.ruby-forum.com/t/backgroundrb-connection-refused/134626/2 "2008-04-14T08:36:35Z")

</div>

Problem found. I thought I did already, but must use IP and not  
hostname.
