Displaying 20 results from an estimated 13000 matches similar to: "TCPSocket.new Errno::EBADF: Bad file descriptor error"
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:
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
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
2013 Jan 10
0
TCPSocket in controller action
Hi,
in order to stream a file I am making use of TCPSocket. Unfortunately I
dont receive contents when in use the tcpsocket in a rails controller
action while it is working on console.
   url = "http://www.google.de"
   version   = request.env[''HTTP_VERSION'']
   verb      = request.env[''REQUEST_METHOD'']
   # url       =
2010 May 31
0
TCPSocket.new(host,port).readline hangs on windows :(
Hi Guys
I am starting a new thread as it seems my gripe isnt to do with
Juggernaut but with TCPSocket - which is used by Juggernaut.
Turns out that the thing that actually hangs up in Juggernaut after x
(130/1500/16000) iterations of
(1..1000).each {|i| Juggernaut.show_clients}
Is actually the line
res << @socket.readline(CR) if response
in juggernaut.rb.
Seems @socket.readline
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 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
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''
 
2015 May 24
2
specify port on check_memcached.pl
Hey guys,
I'm trying use check_memcached.pl to monitor a couple of memcached services
running on two ports.
I have my command definition setup like this:
# 'check_memcached' command definition
define command {
command_name check_memcached
command_line $USER1$/check_memcached.pl -H $HOSTADDRESS$ -p $ARG1$
}
And I have my service definitions setup like this:
# Define a
2015 Mar 18
1
multiple memcached buckets in CentOS 7
Hi Alberto,
With systemd it will be as easy as creating additional unit files ( one for
> each memcached instance) with its corresponding config file.  That should
> allow to stop / start / restart  each memcache instance individually while
> also being systemd compliant.
Thanks for the info and for the examples. It really does make sense the way
you explain it. Thanks for letting me
2007 Jan 30
0
No reaction from memcached
I''ve been following the instructions here http://nubyonrails.com/
articles/read/716 on how to get started with memcached.
Starting up ./script/console production I get at couple of deprecation 
warnings:
<snip>
./script/console production
Loading production environment.
DEPRECATION WARNING: model is deprecated and will be removed from 
Rails 2.0  See
2015 Mar 18
0
multiple memcached buckets in CentOS 7
>
>
> Now, under CentOS 7, I see we have two files controlling memcached under
> the new sysctl system. At least, using sysctl is new to me!
>
> I see we have this file:
>
> [root at web1:~] #cat  /usr/lib/systemd/system/memcached.service
> [Unit]
> Description=Memcached
> Before=httpd.service
> After=network.target
>
> [Service]
> Type=simple
>
2006 Jan 30
0
cached_model-1.0.1 ActiveRecords + memcache
The new version of cached_model features bug fixes and tests!
Bugs fixed:
Updating a model no longer stores associations into the cache.  This  
could cause strange, hard-to-debug bugs when an invalid set of  
assocations was retrieved along with a cached model.
Reloading a model refreshes the cache.
When CachedModel::find can''t understand query params and a single  
result is
2006 Aug 19
3
memcache-client working for anyone?
I''m at the bloody forehead stage, so I figure it''s time to ask. After 
installing the robot coop''s memcache-client which everyone apparently 
recommends, it refuses to work because the rails cache.rb is invoking 
the read() method on the cache, which it _does not have_. Their library 
has get() and put() but no read() and write() as rails expects. What 
gives? Is
2008 Aug 27
2
Bad file descriptor with maildir and bzip2 files
Hi,
I'm using the zlib plugin with dovecot 1.1.2 (on Centos 4.5, x86, ext3) and 
some bzip2 (version 1.0.2) compressed mail files are causing the following 
error to show in the logs when I click on the folder in outlook express.
Aug 27 11:39:15 server-2 dovecot: IMAP(marchive): fstat(maildir) failed: Bad 
file descriptor
Aug 27 11:39:17 Info: IMAP(marchive): Loading modules from directory:
2006 Feb 12
3
memcache-client/cached_model help
Hi -
Just downloaded and installed the memcache-client and cached_model
gems and am trying to test it out on a development setup.   I added
this to my environment/development.rb
CACHE = MemCache.new :c_threshold => 10_000,
                     :compression => true,
                     :debug => true,
                     :namespace => ''eztrip'',
                    
2006 Nov 16
1
Strange indexing issues with CachedModel, STI, and AAF
I started using robotcoop''s CachedModel class in my project but have encountered problems when using it with the acts_as_ferret plugin. It seems it doesn''t index everything in my STI model, also if I do a search from my base STI class I get a result count but no results. If I run the same search from one of the children STI models I get the appropriate results (if the information
2007 Dec 17
1
Some more updates, enhancements and fixes
Hi Folks,
Well, Yesterday I pushed some more updates that I was cooking since
last couple of days. Here is a brief list:
1. Results from worker stays even after a worker dies.
2. You can ask backgroundrb to store status objects in memcache
cluster now. by default its stored in master process memory, but I
have introduced an option to allow it to be stored in a memcache
cluster:
   
2006 Jan 21
3
Fragment caching with Memcached slow?
Hi,
I am trying to do fragment caching using :mem_cache_store.  However, when I
compare it to fragment caching using :file_store, it seems to be a lot
slower.
Here are the results:
uncache
Completed in 2.20246 (0 reqs/sec) | Rendering: 2.19891 (99%) | DB:
0.00017(0%) | 200 OK [
http://127.0.0.1/]
using file_store
Completed in 0.00952 (105 reqs/sec) | Rendering: 0.00702 (73%) | DB:
0.00000(0%)