Sam Livingston-Gray
2006-Sep-06 17:53 UTC
[Rspec-users] DRb error when using rails_spec on OS X
Hi, all- I started playing with RSpec in a new Rails app. I''ve installed the plugin and bootstrapped it, and run ''script/rails_spec_runner'' (not rails_spec_server as the website currently reads, btw) in a separate shell, then in another shell I run ''script/rails_spec'' and get the following: /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo'': getaddrinfo: No address associated with nodename (SocketError) from /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `open_server_inaddr_any'' from /usr/local/lib/ruby/1.8/drb/drb.rb:860:in `open_server'' from /usr/local/lib/ruby/1.8/drb/drb.rb:756:in `open_server'' from /usr/local/lib/ruby/1.8/drb/drb.rb:754:in `open_server'' from /usr/local/lib/ruby/1.8/drb/drb.rb:1336:in `initialize'' from /usr/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'' from script/rails_spec:6 Running ''rake spec:models'' does work, though with the same overhead of ''rake test:units''. I''m on Mac OS 10.4.7 running ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0] and RSpec 0.6.3. The firewall on this machine is active, but I''ve opened port 8989 for both TCP and UDP (you know, just in case) with no change in behavior. Any help would be appreciated. Thanks, -Sam
aslak hellesoy
2006-Sep-06 19:12 UTC
[Rspec-users] DRb error when using rails_spec on OS X
On 9/6/06, Sam Livingston-Gray <geeksam at gmail.com> wrote:> Hi, all- > > I started playing with RSpec in a new Rails app. I''ve installed the > plugin and bootstrapped it, and run ''script/rails_spec_runner'' (not > rails_spec_server as the website currently reads, btw)I''ve fixed this on trunk. The file will from now on be called script/rails_spec_server as the docs say.> in a separate > shell, then in another shell I run ''script/rails_spec'' and get the > following: >That should give you the same as if you run just ''spec'' (the standard rspec help). What you should do is ''script/rails_spec spec'' although your problem seems to be related to something else.> /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo'': getaddrinfo: > No address associated with nodename (SocketError) > from /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `open_server_inaddr_any'' > from /usr/local/lib/ruby/1.8/drb/drb.rb:860:in `open_server'' > from /usr/local/lib/ruby/1.8/drb/drb.rb:756:in `open_server'' > from /usr/local/lib/ruby/1.8/drb/drb.rb:754:in `open_server'' > from /usr/local/lib/ruby/1.8/drb/drb.rb:1336:in `initialize'' > from /usr/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'' > from script/rails_spec:6 > > Running ''rake spec:models'' does work, though with the same overhead of > ''rake test:units''. > > I''m on Mac OS 10.4.7 running ruby 1.8.4 (2005-12-24) > [powerpc-darwin8.4.0] and RSpec 0.6.3. The firewall on this machineWeird. I can''t reproduce this. I have the same versions of everything as you. It''s probably a drb issue.> is active, but I''ve opened port 8989 for both TCP and UDP (you know, > just in case) with no change in behavior. > > Any help would be appreciated. >Let''s determine whether it''s a pure Drb problem. Can you get this example to work? => http://www.rubycentral.com/book/ospace.html#UG If that doesn''t work your problem is outside rspec. Let me know how it goes and I''ll dig further. Aslak> Thanks, > -Sam > _______________________________________________ > Rspec-users mailing list > Rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >
aslak hellesoy
2006-Sep-06 19:34 UTC
[Rspec-users] DRb error when using rails_spec on OS X
On 9/6/06, aslak hellesoy <aslak.hellesoy at gmail.com> wrote:> On 9/6/06, Sam Livingston-Gray <geeksam at gmail.com> wrote: > > Hi, all- > > > > I started playing with RSpec in a new Rails app. I''ve installed the > > plugin and bootstrapped it, and run ''script/rails_spec_runner'' (not > > rails_spec_server as the website currently reads, btw) > > I''ve fixed this on trunk. The file will from now on be called > script/rails_spec_server as the docs say. > > > in a separate > > shell, then in another shell I run ''script/rails_spec'' and get the > > following: > > > > That should give you the same as if you run just ''spec'' (the standard > rspec help). What you should do is ''script/rails_spec spec'' although > your problem seems to be related to something else. > > > /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `getaddrinfo'': getaddrinfo: > > No address associated with nodename (SocketError) > > from /usr/local/lib/ruby/1.8/drb/drb.rb:837:in `open_server_inaddr_any'' > > from /usr/local/lib/ruby/1.8/drb/drb.rb:860:in `open_server'' > > from /usr/local/lib/ruby/1.8/drb/drb.rb:756:in `open_server'' > > from /usr/local/lib/ruby/1.8/drb/drb.rb:754:in `open_server'' > > from /usr/local/lib/ruby/1.8/drb/drb.rb:1336:in `initialize'' > > from /usr/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'' > > from script/rails_spec:6 > > > > Running ''rake spec:models'' does work, though with the same overhead of > > ''rake test:units''. > > > > I''m on Mac OS 10.4.7 running ruby 1.8.4 (2005-12-24) > > [powerpc-darwin8.4.0] and RSpec 0.6.3. The firewall on this machine > > > Weird. I can''t reproduce this. I have the same versions of everything as you. > It''s probably a drb issue. > > > is active, but I''ve opened port 8989 for both TCP and UDP (you know, > > just in case) with no change in behavior. > > > > Any help would be appreciated. > > > > Let''s determine whether it''s a pure Drb problem. Can you get this > example to work? > => http://www.rubycentral.com/book/ospace.html#UG > > If that doesn''t work your problem is outside rspec. Let me know how it > goes and I''ll dig further. >Try these: a) Replace ''druby://localhost:8989'' with ''druby://localhost:0'' in both rails_spec and rails_spec_runner b) Replace ''druby://localhost:8989'' with ''druby://localhost.localdomain:8989:'' in both rails_spec and rails_spec_runner c) Replace ''druby://localhost:8989'' with ''druby://127.0.0.1:8989:'' in both rails_spec and rails_spec_runner Do any of these get you further? Aslak> Aslak > > > Thanks, > > -Sam > > _______________________________________________ > > Rspec-users mailing list > > Rspec-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rspec-users > > >
Sam Livingston-Gray
2006-Sep-07 04:44 UTC
[Rspec-users] DRb error when using rails_spec on OS X
> > Weird. I can''t reproduce this. I have the same versions of everything as you. > > It''s probably a drb issue.Looks like it, yes.> > Let''s determine whether it''s a pure Drb problem. Can you get this > > example to work? > > => http://www.rubycentral.com/book/ospace.html#UG > > > > If that doesn''t work your problem is outside rspec. Let me know how it > > goes and I''ll dig further.Nope, same issue (and therefore, officially Not Your Problem). (> Try these: > > a) Replace ''druby://localhost:8989'' with ''druby://localhost:0'' in both > rails_spec and rails_spec_runnerSame behavior...> b) Replace ''druby://localhost:8989'' with > ''druby://localhost.localdomain:8989:'' in both rails_spec and > rails_spec_runnerDoing this, rails_spec_runner aborts with the following: Loading Rails environment Ready /usr/local/lib/ruby/1.8/drb/drb.rb:862:in `initialize'': getaddrinfo: No address associated with nodename (SocketError) from /usr/local/lib/ruby/1.8/drb/drb.rb:862:in `open_server'' from /usr/local/lib/ruby/1.8/drb/drb.rb:756:in `open_server'' from /usr/local/lib/ruby/1.8/drb/drb.rb:754:in `open_server'' from /usr/local/lib/ruby/1.8/drb/drb.rb:1336:in `initialize'' from /usr/local/lib/ruby/1.8/drb/drb.rb:1624:in `start_service'' from script/rails_spec_runner:47> c) Replace ''druby://localhost:8989'' with ''druby://127.0.0.1:8989:'' in > both rails_spec and rails_spec_runnerSame as (a), above. Thanks for the help, though. The spec runner will probably work on the Windows box where I''ve been doing most of my for-pay Rails dev anyway; this was certainly enough for me to get a flavor of using RSpect with Rails. (It''s certainly no slower than the Test::Unit stuff... and as a bonus, it doesn''t overload %w( unit functional integration ). ( -Sam