search for: ebadf

Displaying 20 results from an estimated 219 matches for "ebadf".

2007 May 07
1
Mongrel and EBADF error consuming resources
...he 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 urls, and they''re all caches_page so I don''t think it has anything to do with my rails code. Also, the mongrel process is still usable during this time (I can request pages from it and the loop below continues uneffected, so its not one...
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/.
2007 Oct 24
28
random cpu spikes, EBADF errors
...wo cached files for a few minutes (but still functions fine for other requests, I can ping specific rails pages on all mongrels during this period). strace -e read,write,close produces this repeatedly the whole time (short excerpt of 1000s of lines): close(5) = -1 EBADF (Bad file descriptor) read(5, "GET /flower_delivery/florists_in_covehithe_suffolk_england_uk HTTP/1.1\nAccept: image/gif, image/x-xbitmap, image/jpeg, image"..., 16384) = 473 close(5) = 0 close(5) = -1 EBADF (Bad file descripto...
2003 Oct 01
2
smbmount not exiting
...(0x7, 0xbfffd000) = 0 [pid 3493] close(0) = 0 [pid 3493] close(1) = 0 [pid 3493] close(2) = 0 [pid 3493] close(4) = 0 [pid 3493] close(5) = 0 [pid 3493] close(6) = -1 EBADF (Bad file descriptor) [pid 3493] close(7) = -1 EBADF (Bad file descriptor) [pid 3493] close(8) = -1 EBADF (Bad file descriptor) [pid 3493] close(9) = -1 EBADF (Bad file descriptor) <snip 1011 identical lines> [pid 3493]...
2007 Jul 20
2
Errno::EBADF in ClassifiedController#list
Hi I was working with a tutorial from a book yesterday and I got to a point where I configuered the routing and it was working fine. And didnt make any changes to it except for debuging. But today I get the following error. Any ides on why is doing this ? ? ? Errno::EBADF in ClassifiedController#list Bad file descriptor - connect(2) RAILS_ROOT: ./script/../config/.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&q...
2005 Nov 03
3
EBADF error?
...Average Redundancy Per Shell/ 143 break 144 end . . . The error looks like this in the logs/development.log file. I''ve edited it slightly to allow for posting. Processing Base#index (for 127.0.0.1 at Thu Nov 03 15:43:02 Eastern... Parameters: {} Errno::EBADF (Bad file descriptor): /app/controllers/datasets_controller.rb:142:in `write'' Rendering C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.9.1/ (cont.) lib/action_controller/templates/rescues/layout.rhtml (cont.) (500 Internal Error) I''m running Rails 0.1...
2006 Aug 14
4
too many close calls for non-opened fds
............................... = 0 open("/dev/null", O_RDWR|0x800, 0123) .................... = 3 close(3) ................................................. = 0 sysconf(_SC_OPEN_MAX) .................................... = 2048 close(3) ................................................. ERR#9 EBADF close(4) ................................................. ERR#9 EBADF close(5) ................................................. ERR#9 EBADF close(6) ................................................. ERR#9 EBADF close(7) ................................................. ERR#9 EBADF close(8) .........
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'' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:597:in `each_cgi'' /usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/fcgi_handler.rb:52:in `process!''...
2006 Sep 23
6
Connection to backgroundrb is lost when exiting action method
...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 - connect(2)> druby://localhost:42531 - #<Errno::EBADF: Bad file descriptor - connect(2)> ... When I''m still in the action, for instance using ''sleep 10''. As long I''m inside the action, there''s no problem with the worker....
2007 Dec 20
2
0.24.0 won''t start
...t seems to exit after trying to write to a bad file descriptor: rt_sigaction(SIGINT, {SIG_DFL}, {0x34f2c8d0b0, [INT], SA_RESTORER|SA_RESTART, 0x3dde2300b0}, 8) = 0 close(7) = 0 munmap(0x2aaaaaaad000, 4096) = 0 close(7) = -1 EBADF (Bad file descriptor) munmap(0x2aaaaaaac000, 4096) = 0 write(7, "\25\3\1\0 -\2040\17\311F \372bz\\\10Gi\2}\344\325S\247j\373\257`\361}b"..., 37) = -1 EBADF (Bad file descriptor) close(4) = 0 munmap(0x2aaaad757000, 4096) = 0 close(3)...
2009 Aug 11
5
Failed to retrieve current state of resource: No child processes
...t; 21 10833 <... close resumed> ) = 0 22 10764 <... _llseek resumed> 0xbf7f5270, SEEK_CUR) = -1 ESPIPE (Illegal seek) 23 10833 close(5 <unfinished ...> 24 10764 fstat64(5, <unfinished ...> 25 10833 <... close resumed> ) = -1 EBADF (Bad file descriptor) 26 10764 <... fstat64 resumed> {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 27 10833 close(6) = 0 28 10833 close(7 <unfinished ...> 29 10764 select(6, [5], [], [], {0, 16463} <unfinished ...> 30 10833 <... close...
2001 Jan 08
2
fatal: PRNG initialisation failed
...= 0 brk(0x000EADB8) = 0 ioctl(3, TCGETA, 0xFFBEEC64) Err#25 ENOTTY read(3, " # e n t r o p y g a".., 8192) = 1517 read(3, 0x000E79CC, 8192) = 0 fstat(-1, 0xFFBEEDE8) Err#9 EBADF fstat(-1, 0xFFBEE1B8) Err#9 EBADF Not sure that those last EBADF from fstat are referring to.. I'm not that good with truss.. Anyone know what the problem is? Or where I can start looking to solve it? Could you reply to me as I'm not on the list.. Cheers guys!...
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 system. 2) it tests the variable errno, not e. This obviously was a typo, so even if some systems do re...
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,
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
2008 Apr 16
1
File descriptor passing broken in FreeBSD 7?
...ork 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 tests. They all fail with EBADF I've also tried this test case (with minor appropriate changes to file paths etc.) http://www.gnome.org/~markmc/code/test-descriptor-passing.c Again it works in FreeBSD 6, but not in FreeBSD 7 (albeit with ECONNREFUSED not EBADF). Any ideas? Cheers Phil
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 /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:745:in `map'' from /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unic...
2004 Aug 17
1
[Bug] LTP: mkdir fail after setreuid
...04 6 BROK : Remaining cases broken >chown04 7 BROK : Remaining cases broken >creat06 3 FAIL : unexpected error - 20 : Not a directory - >expected 2 >dup05 1 BROK : mkfifo(dupfile, 0700) Failed, errno=3D17 : File >exists >call returned -1 and ERRNO =3D EBADF >call returned -1 and ERRNO =3D EBADF >call returned -1 and ERRNO =3D EBADF >call returned -1 and ERRNO =3D EBADF >fchmod04 1 BROK : mkdir(2) of testdir_4 failed >fchmod05 1 BROK : mkdir(2) of testdir failed >fstat02 1 BROK : open(testfile, O_RDWR|O_CREAT, 0644)...
2008 Jul 24
0
Errno::EBADF Send an Email in Rails using GMail
...end raise end end def starttls getok(''STARTTLS'') rescue return false return true end def quit begin getok(''QUIT'') rescue EOFError, OpenSSL::SSL::SSLError end end end I get the following error message: Errno::EBADF in EmailerController#sendmail Bad file descriptor - connect(2) RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace C:/InstantRails/rails_apps/YOTO/vendor/plugins/action_mailer_tls/lib/ smtp_tls.rb:10:in `initialize'' C:/InstantRails/rails_apps/YOTO/vendor/plu...
2006 Aug 08
1
gem install/update errors
...l, 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 http://proxy.server <http://proxy.server/> :port Result --> ERROR: While executing gem ... (Gem::RemoteSourceException) HTTP Response 407 =========== gem install rails -p http:login.id@password//proxy.server:po...