08-02-07 06:17 PM
fchristl@gmail.com writes:
> I am momentarily trying to program a CGI upload script in ruby. It
> simply reads out the STDIN, gets a given user ID and saves the
> uploaded file according to the original filename and the given user
> ID.
> The script is working fine for files under about 50 KB - but as soon
> as a file is bigger, the uploading process simply does not finish -
> the page loads inifinitely and does not stop.
> I've tried multiple operating system - browser - combinations and the
> problem is the same everywhere.
> Since the script is working fine with small files, I guess that the
> problem is on the server side.
> I also tried to do the same thing with other scripting languages (with
> PERL and Python) and it is the same problem with every scripting
> language.
> I am using Apache2-2.2.3-4 with Ruby 1.8.5 on Debian unstable (though
> that shouldn't help...). I
>
> Does anyone have any kind of clue what is going wrong on my server?
I agree that your problem is on the server, especially if the
same thing occurs with all scripting languages and browsers and it
starts the moment you go over a certain size, like 50 KB.
You may find something in the apache config files, check
for any memory/usage limits that might be set. Also, on debian
check for how the system applies resource limits to individual
users. One simple test that might help is if you normally run
your serve as 'nobody' or another test user id, try to run it
as 'root' briefly and try the upload -- that would at least
eliminate a user resource limit. Also, uploads first normally
go to some type of 'tmp' directory first, make sure their are
no disk/quota limitation there.
Hope this helps.
--
John
________________________________________
___________________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/
[ Post a follow-up to this message ]
|