When I try to start rails with "ruby -rdebug script\server" it throws a DRbServerNotFound exception and fails to start. (trace below) Rails runs just fine when I run it like this: "ruby script\server" I''m running on Webrick and using Sqlite. Is this a known issue? Is there a workaround? thanks much, Kristof Here''s the exception trace: c:/ruby/lib/ruby/site_ruby/1.8/ubygems.rb:4:require ''rubygems'' (rdb:1) c c:/ruby/lib/ruby/1.8/drb/drb.rb:1572: `DRb::DRbServerNotFound'' (DRb::DRbServerNotFound) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:195:in `require'' from c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller/cgi_process.rb:4 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:195:in `require'' from c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.7.0/lib/action_controller.rb:46 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:195:in `require'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:175:in `activate'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:23:in `require'' from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.0.3/lib/active_support/dependencies.rb:195:in `require'' from ./script/../config/environment.rb:40 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'' from script/server:42 c:/ruby/lib/ruby/1.8/drb/drb.rb:1572: raise DRbServerNotFound unless server (rdb:1)
On 8 Apr 2005 23:40:05 -0000, km <0jqy6jy02-O/bDAPVd7B0N+BqQ9rBEUg@public.gmane.org> wrote:> When I try to start rails with "ruby -rdebug script\server" it throws > a DRbServerNotFound exception and fails to start. (trace below)I see this too, is this someone everyone knows about and we just missed because we''re newbs or is not the intended use of WEBrick/Rails? Jim
Debugger stops whenever an exception is thrown, just say ''cont'' and it will continue. Also if you want to debug your app you might wish to use Breakpoint or Console instead of ''ruby -r debug script\server''. Regards, Zsombor -- http://deezsombor.blogspot.com
Hi, How use this to debug??? I don''t understend how it work and how to use.. Thank you Dee Zsombor escreveu:>Debugger stops whenever an exception is thrown, just say ''cont'' and it >will continue. Also if you want to debug your app you might wish to >use Breakpoint or Console instead of ''ruby -r debug script\server''. > >Regards, >Zsombor > >-- Pedro C. Valentini pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org +55 (21) 8708-8035
http://wiki.rubyonrails.com/rails/show/HowtoDebugWithBreakpoint Searching the wiki is always a great starting point....... John W Higgins develop-U23jnKMpDSxBDgjK7y7TUQ@public.gmane.org Quoting Pedro Valentini <pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org>:> Hi, > How use this to debug??? > I don''t understend how it work and how to use.. > > Thank you > > > Dee Zsombor escreveu: > > >Debugger stops whenever an exception is thrown, just say ''cont'' and it > >will continue. Also if you want to debug your app you might wish to > >use Breakpoint or Console instead of ''ruby -r debug script\server''. > > > >Regards, > >Zsombor > > > > > > -- > > Pedro C. Valentini > pedro-p14LI7ZcAE/pVLaUnt/cCQC/G2K4zDHf@public.gmane.org > +55 (21) 8708-8035 > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
On Apr 25, 2005, at 11:16 AM, John W Higgins wrote:> http://wiki.rubyonrails.com/rails/show/HowtoDebugWithBreakpoint > > Searching the wiki is always a great starting point....... > > John W Higgins > develop-U23jnKMpDSxBDgjK7y7TUQ@public.gmane.org[snip> ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program.Please refrain from posting to the list until you fix your mail server troubles (we''re all still seeing over a dozen duplicates of the same mail from you). . Thank you. Might want to start searching for the problem here: Received: from 198.107.43.163 ([198.107.43.163]) by webmail.wishdev.com (IMP) with HTTP for <develop-U23jnKMpDSxBDgjK7y7TUQ@public.gmane.org@localhost>; Mon, 25 Apr 2005 11:16:35 -0700 -- Michael Schubert Maintaining badly written code is like trying to solve a crossword puzzle set by someone who can''t spell -- Jacob Kaplan-Moss
Sorry for the mistake yet again folks - I''ve switched over to my gmail account. Don''t know what the problem is - I''ve sent emails to this list as well as others after my last little hiccup without problems - oh well, sometimes things aren''t meant to work the way you would like them to. This should solve the problem. John W Higgins wishdev-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org On 4/25/05, Michael Schubert <michael-CIUEQDs/xG9fq8cQ1yknNg@public.gmane.org> wrote:> On Apr 25, 2005, at 11:16 AM, John W Higgins wrote: > > > http://wiki.rubyonrails.com/rails/show/HowtoDebugWithBreakpoint > > > > Searching the wiki is always a great starting point....... > > > > John W Higgins > > develop-U23jnKMpDSxBDgjK7y7TUQ@public.gmane.org > > [snip > > > ---------------------------------------------------------------- > > This message was sent using IMP, the Internet Messaging Program. > > Please refrain from posting to the list until you fix your mail server > troubles (we''re all still seeing over a dozen duplicates of the same > mail from you). . Thank you. > > Might want to start searching for the problem here: > Received: from 198.107.43.163 ([198.107.43.163]) by > webmail.wishdev.com (IMP) with HTTP for > <develop-U23jnKMpDSxBDgjK7y7TUQ@public.gmane.org@localhost>; Mon, 25 Apr 2005 11:16:35 -0700 > > -- > Michael Schubert > > Maintaining badly written code is like trying to solve a crossword > puzzle set by someone who can''t spell -- Jacob Kaplan-Moss > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John W Higgins wrote: Hey, someone really needs to fix their MTA! I''m getting a ton of these messages. - -- David Morton Maia Mailguard server side anti-spam/anti-virus solution: http://www.maiamailguard.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCbX3MSIxC85HZHLMRAtTPAJ9RTScq77Z7/8MSH+w+r8+s5c8DagCgk4YS CJu5jioAzZmoErEaundvU8Y=rFO8 -----END PGP SIGNATURE-----
Hi all, Sorry for this obvious newby question, but I''ve been pouring over the tutorials and other docs for a couple of days trying to figure this out. I have a simple form with the action set to itself. It doesn''t really do anything yet, as I''m trying to get the basics working first. I can browse to the page no problem, but submitting the form returns a "not found" error. I thought that the get and post should go through the same code path (unless I explicitly test for the post and do something else, which I''m not yet doing). Obviously this isn''t entirely true, but I can''t figure out how it''s suppose to work. Can anybody offer some advice? Regards, Ami.
On 4/27/05, Ami Ganguli <ami.ganguli-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi all, > > Sorry for this obvious newby question, but I''ve been pouring over the > tutorials and other docs for a couple of days trying to figure this > out. > > I have a simple form with the action set to itself. It doesn''t really > do anything yet, as I''m trying to get the basics working first. I can > browse to the page no problem, but submitting the form returns a "not > found" error. > > I thought that the get and post should go through the same code path > (unless I explicitly test for the post and do something else, which > I''m not yet doing). Obviously this isn''t entirely true, but I can''t > figure out how it''s suppose to work.This *is* entirely true, are you sure that the URLs are exactly the same? If you can provide simple steps to reproduce this please file a ticket at dev.rubyonrails.org> Can anybody offer some advice? > > Regards, > Ami. > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Cheers Koz