Forum: Ruby on Rails Connection refused

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A049c3597983fdaaa2af2b0010c49abc?d=identicon&s=25 Tim Perrett (timperrett)
on 2006-05-25 13:51
Hey all

Ive been getting this error...

(mod_fastcgi.c.1739) connect failed: Connection refused on
unix:/var/www/sites/stage.butlerandtanner.com/tmp/sockets/fcgi.socket-1

Anyone else seen this error before? i run IRB and get...

irb(main):001:0> require 'fcgi.so'
=> true

irb(main):001:0> require 'fcgi'
=> true

so i know the fastcgi bindings are working, but i when i try and run
anything through the main rails app it errors giving that output. Im
running lighttpd-1.4.11, and just trying to get rails working.

My lighty FastCGI conf is...

### FastCGI plugin.conf
  fastcgi.server = ( ".fcgi" =>
    ( servername =>
      ( "socket" => basedir + servername + "/tmp/sockets/fcgi.socket",
     	"min-procs" => 2,
        "max-procs" => 2,
        "max-load-per-proc" => 4,
        "idle-timeout" => 20,
        "bin-path" => basedir + servername + "/public/dispatch.fcgi",
        "bin-environment" => ( "RAILS_ENV" => "production" )
      )
    )
  )

the var server names are held in the main conf file and set like...

var.basedir = "/var/www/sites/"
var.servername = "stage.butlerandtanner.com"

Can anyone help?

Thanks

Tim Perrett
This topic is locked and can not be replied to.