13 Jun
matte

matte il 13 June 2008 parla di Configurazioni, Rails Snippet

Problema tra Mongrel tcphack e Mac OS X Leopard 10.5.3

Se una volta installato il nuovo aggiornamento a Leopard ottenete il seguente errore:

    1 /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/tcphack.rb:12:in `initialize_without_backlog': getaddrinfo: nodename nor servname provided, or not known (SocketError)
    2   from /opt/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel/tcphack.rb:12:in `initialize'
    3   from /opt/local/lib/ruby/1.8/drb/drb.rb:865:in `open'
    4   from /opt/local/lib/ruby/1.8/drb/drb.rb:865:in `open_server'
    5   from /opt/local/lib/ruby/1.8/drb/drb.rb:759:in `open_server'
    6   from /opt/local/lib/ruby/1.8/drb/drb.rb:757:in `each'
    7   from /opt/local/lib/ruby/1.8/drb/drb.rb:757:in `open_server'
    8   from /opt/local/lib/ruby/1.8/drb/drb.rb:1339:in `initialize'
    9   from /opt/local/lib/ruby/1.8/drb/drb.rb:1627:in `new'
   10    ... 44 levels...
   11   from /opt/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
   12   from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
   13   from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
   14   from ./script/server:3

Significa che avete installato il plugin backgroundrb e che per far riparte il vostro amato Mongrel dovete cambiare all’interno del file backgroundrb.rb dentro /vendor/plugins/backgroundrb/lib la riga 11:

    1 DRb.start_service('druby://localhost:0')

con la riga:

    1 DRb.start_service(nil)

Scrivi un commento