Wiki Forum Sign up! Explore Home

Not signed in (Sign In)

LiveSearch

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorxadio
    • CommentTimeJan 11th 2008
     permalink
    I am getting the following error after I login when trying to connect to hxxp://sub.domain.org:3000/activities/list

    DRb::DRbConnError (druby://localhost:9010 - #<Errno::ECONNREFUSED: Connection refused - connect(2)>):

    Any thoughts?

    --Detail

    Executing:
    ./script/server -e production

    Okay:

    hxxp://domain.org:3000/login/signup
    hxxp://sub.domain.org:3000/


    No Good:

    hxxp://sub.domain.org:3000/activities/list


    Detailed error:

    Processing ActivitiesController#list (for xxx.xxx.xxx.xxx at 2008-01-11 12:02:16) [G
    ET]
    Session ID: f66xxxxxxxxxxxxxxxxxxb9c
    Parameters: {"action"=>"list", "controller"=>"activities"}
    default field list: ["name", "project_id", "description", "company_id", "full_name",
    "issue_name"]


    DRb::DRbConnError (druby://localhost:9010 - #<Errno::ECONNREFUSED: Connection refuse
    d - connect(2)>):
    /usr/lib/ruby/1.8/drb/drb.rb:736:in `open'
    /usr/lib/ruby/1.8/drb/drb.rb:729:in `each'
    /usr/lib/ruby/1.8/drb/drb.rb:729:in `open'
    /usr/lib/ruby/1.8/drb/drb.rb:1189:in `initialize'

    ...
    [A lot of ruby errors]
    ...
    ./script/server:3:in `require'
    ./script/server:3

    Rendering /usr/local/bin/clockingit/cit/public/500.html (500 Internal Server Error)
    •  
      CommentAuthorxadio
    • CommentTimeJan 13th 2008 edited
     permalink
    Yea solved it thanks to Erland (unbeknownst to him :) )!

    The reason I received this error was because Ferret Server was not running. [REF]

    When I tried running ferret server using ./script/runner "load './lib/daemons/ferret_server'" I received the following

    /usr/local/bin/clockingit/cit/vendor/rails/railties/lib/commands/runner.rb:47:
    undefined method `start' for ActsAsFerret::Remote::Server:Class (NoMethodError)


    So I decided to research ferret server and found that a google search of ActsAsFerret::Remote::Server.start resulted in the following:
    ... using daemontools or runit, you're out of luck with the 0.4.3 release,
    because it's no longer possible to call ActsAsFerret::Remote::Server.start. ...


    Basically there is a fix as of 11/22/07 for ActsAsFerret. I am not really sure when acts_as_ferret was updated, so I reinstalled it.
    subversion and maybe subversion-tools required (sudo apt-get install subversion subversion-tools)
    sudo ./script/plugin install svn://projects.jkraemer.net/acts_as_ferret/trunk/plugin/acts_as_ferret --force

    That didn't really fix my problem* so I then installed the acts_as_ferret gem
    sudo gem install acts_as_ferret

    That also didn't fix the problem* so I skipped the runner and ran these commands

    sudo setsid ./script/push_server
    sudo ./script/ferret_server start
    sudo setsid ./script/server

    sudo ./script/server -d
    did not work as it should have

    And everything works fine now.


    --Foot Note--
    *Please note that I am unsure whether you need to update acts_as_ferret or install the gem, but that is what I did and it worked. I remember that before I did that I had a problem when trying to run ./script/ferret_server.

    --Resources--
    In no particular order
    • CommentAuthordarkpollo
    • CommentTimeJan 14th 2008
     permalink
    What a great post with lot of info! :). Thanks! :D