Forum OpenACS Q&A: AOLserver 4.5 upload file size limit

I have experienced that the file size limit for uploads to AOLserver seems to have changed. At least in our installations it does not work anymore for 100MB files (though the maxinput parameter is set to 500MB).

I have the suspicion this has to deal with the ns_limits parameters, but I am not sure.

Can anyone shed some light on this ?

Collapse
Posted by Iuri Sampaio on
i guess you're right. i browsed on the net a bit and found that Vinod already had the same issue, but on aol4.0

http://www.mail-archive.com/aolserver@listserv.aol.com/msg09883.html

by the way malte,
i moved to aol4.0 on my debian.
now i'm installing oacs on mandriva.
It's a version of linux fusion of Mandrake and Conectiva. Let's see if i can get aol4.5 working there.

Collapse
Posted by Tom Jackson on
Maybe the nssock module (maxinput):

ns_section "ns/module/$sock"
ns_param address      216.211.130.179
ns_param port          80
ns_param protocol      http
ns_param defaultserver $DefaultVirtualServer
ns_param maxpost      [expr 90 * 1024 * 1024] ; # 1000x1024
ns_param maxinput      [expr 90 * 1024 * 1024] ; # 1000x1024

# Optional params with defaults:
ns_param  bufsize              16000
ns_param  rcvbuf                0
ns_param  sndbuf                0
ns_param  socktimeout          30 ;# if < 1 == 30
ns_param  sendwait              30 ;# if < 1 == socktimeout
ns_param  recvwait              30 ;# if < 1 == socktimeout
ns_param  closewait            2  ;# if < 0 == 2
ns_param  keepwait              30 ;# if < 0 == 30
ns_param  backlog              5  ;# if < 1 == 5
ns_param  maxinput              [expr 90*1024*1024] ;# if < 1 = 1m
ns_param  readtimeoutlogging    true
ns_param  serverrejectlogging  true
ns_param  sockerrorlogging      true
ns_param  sockshuterrorlogging  true

ns_section "ns/modules"
ns_param  $sock        $home/bin/nssock.so

Collapse
Posted by Gustaf Neumann on
The upload configuration has changed between 4.0 and 4.5. In aolserver 4.5, the command ns_limits is used to change various settings.

To get the defaults, use the command (e.g. from ds/shell)

&nbsp;&nbsp;ns_limits get default

and you get

&nbsp;&nbsp; nrunning 1 nwaiting 0 ntimeout 0 ndropped 0 noverflow 0 maxwait 100 maxupload 10240000 timeout 60 maxrun 100

The file upload limit can be altered to e.g. twice the size (about 20MB) by

&nbsp;&nbsp; ns_limits set default -maxupload 20480000

This command can be written as well to the config-file

Collapse
Posted by Malte Sussdorff on
I totally forgot to mention that I changed this in teh config.tcl and wrote some code (already committed to HEAD) which sets the ns_limits accordingly.

if {[ns_info version] >= 4.5} {
ns_limits set default -maxupload [ns_config ns/server/wieners/module/nssock maxinput]
}
Collapse
Posted by Arun Bagul on
Hi!! Malte,

We too are suffering from same problem.. We have modified the maximum upload size ( variable is maxinput in conf file ) still it doesn't work)....

Thank you for your help in advanced...

* If any one has solutions... your help will be highly appreciated..

Regards,
Arun,
mailto:arunbagul@gmail.com