Displaying 7 results from an estimated 7 matches for "missingfil".
Did you mean:
missingfile
2007 Dec 17
2
Error in send_file
I''m trying to add a link to download a zip file. I created a
controller method that makes the call to send_file:
def getzip
send_file ''file.zip''
end
When I navigate to this link I get a MissingFile exception. The file
definitely exists (and U triple-checked paths and spelling) and the
permissions are 644. I tried moving it to the /public folder and
updating the getzip method to grab it from here, but I still get the
same exception. Is there any configuration with rails or apache I can
che...
2007 May 31
1
Diva and Asterisk
...he Diva card I get the following message:
Update CFGLib information ... failed
-------------------------------------------------------------------------------DIVA CONFIGURATION: CFGLib DRIVER LOAD FAILED PLEASECHECK SYSTEM INSTALLATION (kernel version, missingfiles) -------------------------------------------------------------------------------DIVAS4LINUX SHUTDOWN OK.Is this because I'm using the melware divas4linux with Asterisk or is theresome other problem?Any advice is appreciated.RegardsCameron
2011 Apr 15
4
[Bug 8090] New: full_fname out of memory error on missing file SunOS 5.8
...hen attempting to copy a non-existent file to another file on Solaris 5.8, a
out-of-memory error is shown rather than a file-not-found error.
I've attached 'truss' output showing the sequence.
$ uname -a
SunOS xxx 5.8 Generic_117350-45 sun4u sparc SUNW,Sun-Fire-V440
$ cd /tmp
$ rsync missingfile /tmp
ERROR: out of memory in full_fname [sender]
rsync error: error allocating core memory buffers (code 22) at util.c(117)
[sender=3.0.7]
The relevant portion of the truss output:
29718: lstat64("missingfile", 0xFFBEE3E8) Err#2 ENOENT
29718: write(2, 0xFFBEBDD0, 43)...
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 the full path, but it still can''t seem to find the
file. Here is the c...
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)
options[:filename] ||= File.basename(path)
send_file_headers! options
@performed_render = false
if options[:stream]
ren...
2005 Dec 20
0
2005 a send_file odyssey (or Rails and Apache don''t always play well)...
...Which makes me think Rails or Ruby are trying to do low level
system writes to a buffered IO stream. My next step is to
copy the method referred to in the log message and change it
to ensure it doesn''t use low level writes:
def my_send_file(path, options = {})
raise MissingFile, "Cannot read file #{path}"
unless File.file?(path) and File.readable?(path)
options[:length] ||= File.size(path)
options[:filename] ||= File.basename(path)
send_file_headers! options
@performed_render = false
if options[:...
2007 Feb 23
1
How to make Rails send a file that is being written
...t;, :stream => true
This doesn''t work, the sent file is often between 0 and 4 bytes.. not
cool.
I''m guessing I could put it all together, I dont know how.
Here''s the send_file function that could be overwritten:
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)
options[:filename] ||= File.basename(path)
send_file_headers! options
@performed_render = false
if options[:stream]
render :text => Proc.new...