Koozali.org: home of the SME Server

connection reset/time out error

paradox

connection reset/time out error
« on: April 14, 2006, 04:34:14 AM »
I've been running SME 6.01 for a few months now - but I cannot seem to get rid of one particularly nagging problem. When any of the users in the network attempt to upload a file to the internet that is larger than 1 MB in file size, they receive an error message saying that the connection was reset or timed out. From what I can gather, this has something to do with my squid and/or cache settings - but I can't seem to find a solution.

Any suggestions?

Offline louhaven

  • **
  • 22
  • +0/-0
a solution, perhaps?
« Reply #1 on: May 06, 2006, 03:45:34 AM »
try here:

http://forums.contribs.org/index.php?topic=27249.0

This fix didnt fix my specific issue, I must look further.
----
Regards,

Louis

paradox

connection reset/time out error
« Reply #2 on: May 07, 2006, 08:29:34 AM »
It doesn't seem to have fixed my issue, but I'm hoping if I play around with the values a little that that will change. Thanks for the heads up.

Offline louhaven

  • **
  • 22
  • +0/-0
connection reset/time out error
« Reply #3 on: May 14, 2006, 06:20:00 AM »
Quote from: "paradox"
It doesn't seem to have fixed my issue, but I'm hoping if I play around with the values a little that that will change. Thanks for the heads up.


Actually, I found the fix for my problem here:

http://no.longer.valid/phpwiki/index.php/TroubleshootingFAQ#upload_size

here is the specific text, in case the link doesnt work.

"
Cannot upload files larger than x MB via webmail, php, http, squid or in general

Anything using php should have it's limit set high to 50Mbyte with these 4 lines of code.

    /sbin/e-smith/config setprop php PostMaxSize 50000000
    /sbin/e-smith/config setprop php UploadMaxFilesize 50000000
    /etc/e-smith/events/actions/conf-php
    /etc/rc.d/init.d/httpd-e-smith graceful

No harm will be done ... just adjust 50000000 if you want less or more. If the machine slows down, maybe even starts thrashing you may want to give also time&space:

    /sbin/e-smith/config setprop php MaxExecutionTime 1800
    /sbin/e-smith/config setprop php MemoryLimit 100M
    /etc/e-smith/events/actions/conf-php
    /etc/rc.d/init.d/httpd-e-smith graceful

Raising the http upload size in squid

    mkdir -p /etc/e-smith/templates-custom/etc/squid/squid.conf

Place template fragment into temlplate directory:

    echo "request_body_max_size 20 MB" > /etc/e-smith/templates-custom/etc/squid/squid.conf/85request_body_max_size

Expand (activate) Template:

    /sbin/e-smith/expand-template /etc/squid/squid.conf

Restart squid to enable new settings:

    /etc/init.d/squid restart

2nd way

    /sbin/e-smith/expand-template /etc/squid.conf
    touch /etc/e-smith/templates-custom/etc/squid/squid.conf/76UploadLimit

Edit the file 76UploadLimit and fill in:

    {
    # this sets the HTTP Upload Limit; 0 is unlimted
    }
    request_body_max_size 50 MB

After request_max_body_size must be new/additional line!

Restart squid:

    service squid restart

smeghead, Red Beard, Darrel May
"

Nailed it, and only after 5 year of on/off work on it.

 :-D
----
Regards,

Louis