Displaying 20 results from an estimated 4000 matches similar to: "Errno::EBADF in ClassifiedController#list"
2006 Apr 17
2
Can I catch something like Errno::EBADF with rescue?
All,
I am using Net::HTTP to make requests for URLs in my app. When I get a
bad server, I get "Bad file descriptor - connect(2)" message on a
ERRNO:EBADF error.
Can I catch with rescue or otherwise gracefully react to that error?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
2006 Mar 13
2
Excessive Errno::EBADF with dispatch.fcgi
I''m running Ruby on Rails via FastCGI in an Apache environment, and I
get the following error, a lot.
(from log/fastcgi.crash.log)
[13/Mar/2006:15:52:51 :: 94704] Dispatcher failed to catch: Bad file
descriptor (Errno::EBADF)
/usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:38:in `close''
/usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:38:in `each''
2013 Aug 23
5
Ruby 2.0 Bad file descriptor (Errno::EBADF)
hi. i''ve been trying to upgrade my stack to ruby 2.0 but keep getting this on ubuntu (not on my local os x):
/hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:746:in `for_fd'': Bad file descriptor (Errno::EBADF)
from /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:746:in `block in inherit_listeners!''
from
2007 Jan 31
2
NoMethodError in ClassifiedController#create
Hope you can help. Getting the error message
NoMethodError in ClassifiedController#create
You have a nil object when you didn''t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.save
Here''s my controller code. I''m totally new to ruby on rails so help
would be much appreciated
class ClassifiedController <
2007 May 07
1
Mongrel and EBADF error consuming resources
In the last few weeks I''ve noticed the load average spiking up for 5
minutes at a time (2-3.5 on a system that usually runs around
0.5-1.5). Looking closer I found that one mongrel process and
litespeed are at the top, and using strace I''ve found that they''re
passing the file below, seems to get stuck on single file/EBADF error.
It happens with a number of different
2008 Jul 24
0
Errno::EBADF Send an Email in Rails using GMail
Hi,
would someone please help me. I have been desperatley trying to fnd
out for the last two days why the following code is not working. Any
ideas.
I''m running Instant Rails 1.4 / Rails version 1.2.5 / Ruby version
1.8.5 (i386-mswin32) / RubyGems version 1.1.1 / Action Mailer version
1.3.5 / Windows XP.
Here is a description of my emailing application:
in
2005 Nov 03
3
EBADF error?
Hi all,
I get a (usually) reproducible error for only one of my controllers. This
doesn''t happen for any of the other 10+ controllers. I didn''t see anything
weird about file permissions. The "offending" line 142 is quite innocuous
and triggers the error even when that portion of the controller is not even
being run.
.
.
.
141 while
2007 Oct 24
28
random cpu spikes, EBADF errors
In May I had problem with mongrels suddenly consuming huge cpu resources for
a minute or two and then returning to normal (load average spikes up
to 3.8and then back down to a regular
0.2 over the course of 5 minutes, then again 1/2 hour later. or 4 hours
later, no predictable rhythm).
I posted to Litespeed forums because I thought the problem was there but
didn''t get far. And a week
2007 Sep 25
0
TCPSocket.new Errno::EBADF: Bad file descriptor error
Im trying to use memcache-client, but there is a line in their where it
calls:
TCPSocket.new(host, port). It fails at this point. I''ve tried just
trying to establish a connection in my script/console with
TCPSocket.new("localhost", 11211)
TCPSocket.new("127.0.0.1", 11211)
TCPSocket.new("<my comp name>", 11211)
TCPSocket.new("<my ip
2006 Sep 13
2
Errno::EBADF: Bad file descriptor - connect
Today this error is the bane of my existence.
It is weird. My app works fine when I am running it through Mongrel,
but as soon as I try to run a unit test, the test explodes with this
error.
Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group,
2006 Nov 06
4
Errno::EBADF (Bad file descriptor)
I posted this to the discussion forum on rubyforge.org, but it appears that
it would have been better to post here.
Does anyone have any advice on how to resolve the problem reported at
http://rubyforge.org/tracker/index.php?func=detail&aid=6284&group_id=1306&atid=5145?
Thanks,
Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2003 Oct 01
2
smbmount not exiting
The following scriptlet, containing a wrong password among the
mount options,
#!/bin/bash
/bin/mount -t smbfs -o \
"netbiosname=mymachine,workgroup=group,username=user, \
password=wrongpasswd,ro,debug=4" //machine/c /mnt/dir
/bin/echo "Exit $?"
returns invariably
mount.smbfs started (version 2.2.7a-security-rollup-fix)
added interface ip=192.168.0.53
2008 May 09
0
NoMethodError in ClassifiedController#update
My project was working when I add new field category
It is showing the error in create form and edit form
i am sending u controller file as attechment
this is my model(category.rb) dor category file
class Category < ActiveRecord::Base
has_many :classifieds
end
and this is edit.rhtml
<h1>Editing Classified: <%= @classified.title -%></h1>
<%= form_tag :action =>
2007 Dec 20
2
0.24.0 won''t start
Hi,
I am having a problem where puppetd won''t start on one of my RHEL 5
machines with the --listen option enabled. 0.23.2 seems to run fine but
0.24.0 dies leaving the pid file still there.
I installed puppet using the latest gem from reductive labs. It works
fine on what is meant to be an identical system.
I tried running strace and it seems to exit after trying to write to a
bad
2001 Jan 08
2
fatal: PRNG initialisation failed
Heya,
I have compiled and installed OpenSSH on a Solaris/Sparc machine and
whenever I try to start any of the ssh programs I get
"fatal: PRNG initialisation failed -- exiting"
Now, I have looked through the mailing lists and have seen some mention
that this indicates it can't open the ssh_prng_cmds file, which
entropy.c also seems to indicate the problem is. However, this snippet
2008 Apr 16
1
File descriptor passing broken in FreeBSD 7?
Hi,
I recently tried to use the newly released mod_rails
(www.modrails.com) for Apache, and discovered it doesn't work on
FreeBSD 7. It does however work on FreeBSD 6 just fine.
I tracked it down to sendmsg() as detailed here:
http://code.google.com/p/phusion-passenger/issues/detail?id=16
The mod_rails/passenger unit tests fail on FD passing, as do the Ruby
1.8.6 standard unit
2004 Aug 17
1
[Bug] LTP: mkdir fail after setreuid
For chdir03 investigation result:
The fail is caused by the mkdir fail after setreuid.
Key code in the test case:
if ((pid =3D fork()) < 0) {
tst_brkm(TBROK, cleanup, "first fork failed");
}
if (pid =3D=3D 0) { /* first child */
/* set the child's ID to ltpuser1 */
if (setreuid(ltpuser1->pw_uid,
2006 Aug 08
1
gem install/update errors
Greetings all,
I am a newbie to the Ruby world. I just installed Ruby and I am trying
to install rails, using gem install.
Since my local pc (OS --> Win2k) is behind a proxy server, the command
gem install fails.
===========
gem install rails
Result -->
ERROR: While executing gem ... (Errno::EBADF)
Bad file descriptor - connect(2)
===========
gem install rails -p
2008 Jan 04
13
Unable to delete epoll event
I occasionally get a fatal error
unable to delete epoll event: Bad file descriptor
I think the attached patch will fix it.
The patch does two things:
1) changes the error we look for from ENOENT to EBADF. It is hard to
reproduce this error, but if I change the epoll_ctl line to
epoll_ctl(epfd, EPOLL_CTL_DEL, 666, ed->GetEpollEvent());
it does return -1 with errno = EBADF on my Linux 2.6.9
2006 Sep 23
6
Connection to backgroundrb is lost when exiting action method
Hey.
I have a very annoying problem, and was wondering what is wrong.
Suppose I have backgroundrb running, and then I have an action in some
controller. In the action I define a worker. When leaving the action,
suddenly the connection to backgroundrb is lost:
DRb URI: druby://localhost:22222
Pid: 3976
Autostart...
done
druby://localhost:42531 - #<Errno::EBADF: Bad file descriptor -