I followed the steps outlined in the tutorial - pretty much steps 1-5. When I tried to run the cookbook & started WEBrick, the command prompt window looked identical to that of figure 12...yet, when I accessed http://localhost:3000/recipe/list, I got this error: Errno::EBADF in RecipeController#list... Bad file descriptor - connect(2) What does this mean? Any assitance would be greatly appreciated! eyewire -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060519/d00d5895/attachment.htm
Hi Anna, I''ve never seen that error. I''m assuming this is displayed in your browser. Is that right? Does the response contain any more information? Are you able to connect to the database using MySQL-Front? Any other information would be helpful. Best regards, Bill ----- Original Message ----- From: Anna Penney To: instantrails-users at rubyforge.org Sent: Friday, May 19, 2006 6:25 PM Subject: [Norton AntiSpam] [Instantrails-users] completing & verifying Rails setup I followed the steps outlined in the tutorial - pretty much steps 1-5. When I tried to run the cookbook & started WEBrick, the command prompt window looked identical to that of figure 12...yet, when I accessed http://localhost:3000/recipe/list, I got this error: Errno::EBADF in RecipeController#list... Bad file descriptor - connect(2) What does this mean? Any assitance would be greatly appreciated! eyewire ------------------------------------------------------------------------------ _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060520/73eb407c/attachment-0001.htm
David Morton
2006-May-20 13:57 UTC
[Instantrails-users] completing & verifying Rails setup
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Anna Penney wrote:> http://localhost:3000/recipe/list, I got this error: Errno::EBADF in > RecipeController#list... Bad file descriptor - connect(2) > > What does this mean? Any assitance would be greatly appreciated!What version of windows are you using? - -- David Morton Maia Mailguard - http://www.maiamailguard.com Morton Software Design and Consulting - http://www.dgrmm.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEbyBLSIxC85HZHLMRAirBAJ9T0m3yluRg+hzF42WZRrF54rc7HgCfdX+Y 0NTf7AN6KsYDXQ0zHtsAh0w=u3wq -----END PGP SIGNATURE-----
Bill, I tried it again this morning and it worked. What I had done was clicked on the http://localhost:3000/recipe/list link on the completing_and_verifying.html page. I typed it in this time and was able to get the Online Cookbook! Thanks, Anna ----- Original Message ----- From: Bill Walton To: instantrails-users at rubyforge.org Sent: Saturday, May 20, 2006 6:48 AM Subject: Re: [Instantrails-users] completing & verifying Rails setup Hi Anna, I''ve never seen that error. I''m assuming this is displayed in your browser. Is that right? Does the response contain any more information? Are you able to connect to the database using MySQL-Front? Any other information would be helpful. Best regards, Bill ----- Original Message ----- From: Anna Penney To: instantrails-users at rubyforge.org Sent: Friday, May 19, 2006 6:25 PM Subject: [Norton AntiSpam] [Instantrails-users] completing & verifying Rails setup I followed the steps outlined in the tutorial - pretty much steps 1-5. When I tried to run the cookbook & started WEBrick, the command prompt window looked identical to that of figure 12...yet, when I accessed http://localhost:3000/recipe/list, I got this error: Errno::EBADF in RecipeController#list... Bad file descriptor - connect(2) What does this mean? Any assitance would be greatly appreciated! eyewire ---------------------------------------------------------------------------- _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users ------------------------------------------------------------------------------ _______________________________________________ Instantrails-users mailing list Instantrails-users at rubyforge.org http://rubyforge.org/mailman/listinfo/instantrails-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060520/755210b1/attachment.htm
Here''s a copy of my explanation that I sent Bill: I tried it again this morning and it worked. What I had done was clicked on the http://localhost:3000/recipe/list link on the completing_and_verifying.html page. I typed it in this time and was able to get the Online Cookbook! Thanks, Anna ----- Original Message ----- From: "David Morton" <mortonda at dgrmm.net> To: <instantrails-users at rubyforge.org> Sent: Saturday, May 20, 2006 6:57 AM Subject: Re: [Instantrails-users] completing & verifying Rails setup> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Anna Penney wrote: > >> http://localhost:3000/recipe/list, I got this error: Errno::EBADF in >> RecipeController#list... Bad file descriptor - connect(2) >> >> What does this mean? Any assitance would be greatly appreciated! > > What version of windows are you using? > > > - -- > David Morton > Maia Mailguard - http://www.maiamailguard.com > Morton Software Design and Consulting - http://www.dgrmm.net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFEbyBLSIxC85HZHLMRAirBAJ9T0m3yluRg+hzF42WZRrF54rc7HgCfdX+Y > 0NTf7AN6KsYDXQ0zHtsAh0w> =u3wq > -----END PGP SIGNATURE----- > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users
I''ve never seen this either, but I did a google search for it and it appears to have something to do with an unexpectedly dropped socket connection. But I couldn''t find anything further (in the short amount of time that I had to spend on it), especially what could cause the dropped socket connection. I do recall Zed Shaw saying the the pure Ruby MySQL adapter caused dropped database connections (which is a socket connection) for him under high loads. Although, this case is hardly a "high load". As an experiment, you could try Instant Rails 1.3 (instead of 1.3a), because the uses the C based MySQL adapter instead of the pure Ruby MySQL adapter. The C based adapter caused seg faults on Windows 2000, but was OK on Windows XP. Anyway, its possible that this could fix your problem. Curt On 5/20/06, David Morton <mortonda at dgrmm.net> wrote:> > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Anna Penney wrote: > > > http://localhost:3000/recipe/list, I got this error: Errno::EBADF in > > RecipeController#list... Bad file descriptor - connect(2) > > > > What does this mean? Any assitance would be greatly appreciated! > > What version of windows are you using? > > > - -- > David Morton > Maia Mailguard - http://www.maiamailguard.com > Morton Software Design and Consulting - http://www.dgrmm.net > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.2 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFEbyBLSIxC85HZHLMRAirBAJ9T0m3yluRg+hzF42WZRrF54rc7HgCfdX+Y > 0NTf7AN6KsYDXQ0zHtsAh0w> =u3wq > -----END PGP SIGNATURE----- > _______________________________________________ > Instantrails-users mailing list > Instantrails-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/instantrails-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060520/ba629614/attachment.htm
Never mind, I see you got it working. Have fun! Curt On 5/20/06, Curt Hibbs <curt.hibbs at gmail.com> wrote:> > I''ve never seen this either, but I did a google search for it and it > appears to have something to do with an unexpectedly dropped socket > connection. But I couldn''t find anything further (in the short amount of > time that I had to spend on it), especially what could cause the dropped > socket connection. > > I do recall Zed Shaw saying the the pure Ruby MySQL adapter caused dropped > database connections (which is a socket connection) for him under high > loads. Although, this case is hardly a "high load". > > As an experiment, you could try Instant Rails 1.3 (instead of 1.3a), > because the uses the C based MySQL adapter instead of the pure Ruby MySQL > adapter. The C based adapter caused seg faults on Windows 2000, but was OK > on Windows XP. Anyway, its possible that this could fix your problem. > > Curt > > > On 5/20/06, David Morton <mortonda at dgrmm.net> wrote: > > > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Anna Penney wrote: > > > > > http://localhost:3000/recipe/list, I got this error: Errno::EBADF in > > > RecipeController#list... Bad file descriptor - connect(2) > > > > > > What does this mean? Any assitance would be greatly appreciated! > > > > What version of windows are you using? > > > > > > - -- > > David Morton > > Maia Mailguard - http://www.maiamailguard.com > > Morton Software Design and Consulting - http://www.dgrmm.net > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.4.2 (MingW32) > > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > > > iD8DBQFEbyBLSIxC85HZHLMRAirBAJ9T0m3yluRg+hzF42WZRrF54rc7HgCfdX+Y > > 0NTf7AN6KsYDXQ0zHtsAh0w> > =u3wq > > -----END PGP SIGNATURE----- > > _______________________________________________ > > Instantrails-users mailing list > > Instantrails-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/instantrails-users > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/instantrails-users/attachments/20060520/3d3f7955/attachment.htm