similar to: Does send_file act differently with Mongrel than with Webrick?

Displaying 20 results from an estimated 4000 matches similar to: "Does send_file act differently with Mongrel than with Webrick?"

2006 Dec 14
1
Does send_file act differently with Mongrel than withWebrick?
I tried the mime thing but it did not help. I didn''t think it was that because I can get the mp3 served OK hitting the URL in a browser. I just noticed that I am getting an error in Mongrel when WinAmp make the request for the mp3 file: BAD CLIENT (127.0.0.1): Invalid HTTP format, parsing fails. I don''t think Mongrel has a problem with the URL itself because if a browser
2006 Sep 26
4
Mongrel Processes Dying
We are seeing mongrel processes dying in our mongrel cluster. What is the best way to troubleshoot this? We have ruby 1.8.4, Rails 1.1.0 (upgrading soon), MySql 4.1 running on Red Hat Enterprise Linux ES release 4, Apache 2.2, mongrel-0.3.13.3, mongrel_cluster-0.2.0 I saw the following messages in the mongrel.log but not sure if theay are related to the processes dying. It would be nice if
2007 Feb 15
1
Anyway to Force a start even if the .pid file exists?
I''m using monit to restart mongrel processes if they go away. With mongrel 0.3 I could issue a start command and the process would start up even if the .pid file existed (though a warning would appear). Now, with mongrel 1.0.1 the warning says I must clear the .pid file and the process is not started. Is there anyway to force it to start without having to clear the .pid? Regards
2007 Feb 15
2
Multiple Processes Spawned from mongrel_rails start ?
Hello, I have mongrel 1.0.1, rails 1.2.2 ruby 1.8.5 running on Centos 4.4. When I execute the mongrel_rails start -d I see that 3 processes are spawned. See below: [root at ccc aaa]# mongrel_rails start -d [root at ccc aaa]# ps -def |grep mong root 2743 1 9 07:14 ? 00:00:01 /usr/bin/ruby /usr/bin/mongrel_rails start -d root 2744 2743 0 07:14 ? 00:00:00
2006 Sep 26
3
Clustering - Avoiding "dead" processes?
I have Mongrel Cluster setup with Apache a mod_proxy_balancer. I''ve seen (from time to time) mongrel instances become non-responsive. Is there anyway to configure the balancer so that it "knows" which processes are no longer good and stops trying to use them? _______________________________________________________ The FREE service that prevents junk email
2006 Aug 08
3
How Create New Parameter set at Start Time?
I would like to be able to set a paramter during start up like: ruby script\server -nodename testNode_1 ... and would like to have access to this setting from models and/or controllers. Can someone point me in the right direction to get this working? Regards -- Posted via http://www.ruby-forum.com/.
2005 Dec 02
0
send_file method on windows and webrick
I am developing in a windows xp environment running WEBrick and MySQL, RoR 0.13.1. I am trying to retrieve the file that I uploaded via Rails using the send_file() method. Instead of returning the file, the file''s contents are being printed out to the WEBrick console, the browser hangs for a while, and then an empty file is returned from the download dialog box (Firefox 1.0.7/IE
2004 Jan 12
1
Samba 2.2.8a: Deleting all files
I have a directory on Unix exposed as a Samba share. All the filenames are greater than 8.3 format. When I go to this directory from a DOS prompt and do 'del *.*', I get a bunch of errors 'Unable to find file ...'.. But, if the directory contained 500 files, after the 'del *.*' it contains 400 files. I repeat the del *.*, get a few more errors Unable to find file ...
2006 Mar 16
3
Drag Drop problem with Div using overflow:auto
There seems to be a problem with dragging an object outside a div if using overflow:auto on the div style. My problem is the same as the one described in the following thread but the responder''s "fix" did not work for me. Is there a fix for this problem? http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2006-February/002599.html Regards
2006 Jul 07
3
Send a 30 Second Clip of an mp3
On my site I''m allowing users to upload songs in mp3 format. Members can download the full song, but on public pages I would like to use a flash player to play a 30 second clip of the song and/or allow downloading of a 30 second mp3 snippet. The songs are stored above the web root directory, and I use the send_file method for the full file downloads for members. My question is,
2006 Dec 21
6
Rails'' send_file, Mongrel, and *gasp* memory
I''ve had a right fun few days at work trying to figure out why our Rails app (which isn''t under very heavy load) kept eating memory and bringing our server to our knees. Eventually I traced it to send_file (which was in a way a relief as it wasn''t down to my coding ;) -- every time a user started downloading, the memory consumed by the app would jump, and
2006 Jul 16
1
Mongrel starting problem on new Debian box
Hello world, I''m having some problems setting up a new Debian deployment box...just installed the rails stack, mongrel, etc... When I go to start mongrel I''m getting a weird error I can''t figure out. Some help please? -> mongrel_rails start ** Starting Mongrel listening at 0.0.0.0:3000
2006 May 14
3
send_file and locking files after download?
Hello, I''m working on a download service which grants users a one-time-download access to files. The idea is to write an entry to a database table after a successful download that "locks" the download link for the user. After doing some quick tests with send_file I noticed that send_file does not block until the user has downloaded the full file, but proceeds with the
2005 Dec 13
3
send_file doesn't work with Apache?...
Hi, I''ve been using send_file in my Rails application with WEBrick happily to send files of various sizes and kinds. The same code fails to send anything but a 500 error when run under Apache, and a log file message "warning: syswrite for buffered IO". Looking back through the mailing list archives I see that there have been send_file bugs in the past. Can some knowledgeable
2007 Feb 22
0
error with send_file.. please help me...
Ben wrote: > API is your friend. > http://api.rubyonrails.org/classes/ActionController/Streaming.html#M000091 > send_file I put this code block in files_controller.rb def send_file(path, options = {}) #:doc: raise MissingFile, "Cannot read file #{path}" unless File.file?(path) and File.readable?(path) options[:length] ||= File.size(path)
2007 Aug 27
1
Send_file() method for downloading any file
HI, I need to know how to download any file using send_file() method.The code I have shown below is for a specific file........how ever I need it for any file. THE CODE ........ def download_files send_file(''D:/hr/Handbook.doc'', :filename => params[:filename] , :type => ''application/octet-stream'',
2012 May 31
2
send_data/send_file does not open a save as dialog box
Hello, We are using JRuby 1.5.1/ruby 1.8.7/Rails 2.3.8 with a GWT front end. I''m having an issue when attempting to send a server side .csv file to the user using rails send_file. my code is: send_file(path_to_file, type=>''text/csv'') While this is returning fine with an http status of 200, the client side save as dialog is never opening for the user to receive
2006 Aug 08
2
send_file problem
I''m attempting to use send_file to send an image file from public/images. The file is world readable. I keep getting the following error: A ActionController::MissingFile occurred in account#current_logo: Cannot read file public/images/logo.png /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/streaming.rb:55:in `send_file'' I''ve tried supplying
2007 Aug 24
1
How to download any file using send_file() method
HI, I am directory listing and in that listing I have certain files and sub directories, now when I click on the files it should download that particular file but I am not able to accomplish it, and I have got to use send_file() method. In the send file Code shown below I have made use of the address of one of the files directly so when I click the link of any file it downloads it. THE CODE
2006 Jul 22
0
form_remote_tag and send_file
All, I have an existing form that calls an action which in turn creates a PDF and sends it to the browser using send_file. I want to change this form to use form_remote_tag so that I can set a progress bar and once the PDF is finished, the progress bar hides and the PDF opens. The send_file data is being sent to the browser, but not displayed anywhere. When I use a regular form post, it