You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Julien <ju...@ddcr.biz> on 2004/08/18 21:56:25 UTC

[users@httpd] 404 error due(?) to a "delay too large"

hi everyone,

this problem does not seem (few google and targeted generic mailing 
lists searches) to have already been discussed to my knowledge and i 
hope that is just a problem of configuration.

Here is what happens:
one folder that Apache is serving contains files uploaded from 
authenticated users via ftp (a kind of public repository where anyone 
can download those files). this directory is used under a "host" virtual 
host (see config file). It appears that when files are freshly uploaded 
-or perhaps in progress- users could not access this directory (apache 
generated html page showing the folder contents) anymore through their 
http client; they always get a 404 redirection.

Inside the logs i can read this enigmatic warning:
[Wed Aug 18 13:07:13 2004] [warn] [client 192.168.1.9] host.test.com 
delay=8821 too large
each time someone tries to access the page.

This "delay" value doesn't really modulate (eg 8821, 8811, 8801, 8791, 
8781, 8771) but I don't know what this warning refers to.

PS: a simple "apache graceful" can fix the problem until some new files 
are uploaded.

thanks everyone.

I did attached some info (I hope this won't be too long; server 
domain.tld is fake):
-Apache 1.3.31 (compiled with no special directive) under NetBSD 1.5 
(heavily customized)
-mods in use for this virtual host: ap-gzip-1.3.26.1a + ap-throttle-3.1.2nb1
-folders permissions:
[root@test.com dummy]# ll /var/www/test/host/
total 8
drwxr-xr-x 2 www www 512 Aug 17 15:37 ./
drwx------ 4 www www 512 Aug 5 12:10 ../
lrwx------ 1 root www 24 Aug 17 15:37 test1@ -> /home/test1/home
[root@test.com dummy]# ll /home/test1/home
total 109220
drwxr-x--- 2 ftpuser www 512 Aug 18 11:31 ./
drwxr-xr-x 4 root wheel 512 Aug 17 15:37 ../
-rw-r----- 1 ftpuser www 5242809 Aug 17 15:51 test100304.z01
-rw-r----- 1 ftpuser www 5242793 Aug 17 16:11 test100304.z02
-rw-r----- 1 ftpuser www 4124967 Aug 17 16:22 test100304.z03
-rw-r----- 1 ftpuser www 5242815 Aug 17 16:31 test100304.zip
-rw-r----- 1 ftpuser www 5242880 Aug 18 10:49 composants_delphi100304.z01
-rw-r----- 1 ftpuser www 5242880 Aug 18 10:49 composants_delphi100304.z02
-rw-r----- 1 ftpuser www 5242880 Aug 18 11:06 composants_delphi100304.z03
-rw-r----- 1 ftpuser www 5242880 Aug 18 10:58 composants_delphi100304.z04
-rw-r----- 1 ftpuser www 5242880 Aug 18 11:15 composants_delphi100304.z05
-rw-r----- 1 ftpuser www 4507675 Aug 18 11:22 composants_delphi100304.z06
-rw-r----- 1 ftpuser www 5242880 Aug 18 11:31 composants_delphi100304.zip
-httpd configuration file content:
ServerType standalone
ServerRoot "/usr/pkg"
PidFile /var/run/httpd.pid
ScoreBoardFile /var/run/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0

<IfDefine SSL>
LoadModule ssl_module lib/httpd/mod_ssl.so
AddModule mod_ssl.c
</IfDefine>
LoadModule throttle_module lib/httpd/mod_throttle.so
LoadModule php4_module lib/httpd/mod_php4.so
LoadModule gzip_module lib/httpd/mod_gzip.so

mod_gzip_can_negotiate Yes
mod_gzip_static_suffix .gz
mod_gzip_update_static Yes
mod_gzip_temp_dir /tmp
mod_gzip_minimum_file_size 500
mod_gzip_maximum_file_size 500000
mod_gzip_maximum_inmem_size 60000
mod_gzip_min_http 1000
mod_gzip_handle_methods GET POST
mod_gzip_item_exclude reqheader "User-agent: Mozilla/4.0[678]"
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.htm$
mod_gzip_item_exclude file \.js$
mod_gzip_item_exclude file \.css$
mod_gzip_item_exclude file \.php$
mod_gzip_item_include mime ^text/html$
mod_gzip_item_include mime ^text/plain$
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_exclude mime ^application/x-httpd-php
mod_gzip_item_exclude mime ^image/
mod_gzip_item_exclude mime ^video/
mod_gzip_dechunk Yes
mod_gzip_send_vary Yes
#LogFormat "%h %l %u %t \"%V %r\" %>s %b mod_gzip: %{mod_gzip_result}n 
In:%{mod_gzip_input_size}n -> Out:%{mod_gzip_output_size}n = 
%{mod_gzip_compression_ratio}n pct." common_with_mod_gzip_info2
mod_gzip_add_header_count Yes
mod_gzip_on Yes

Port 80
<IfDefine SSL>
Listen 80
Listen 443
</IfDefine>

User www
Group www
ServerAdmin webmaster@test._STOPSPAM_com
ServerName host1.test.com
ServerSignature off
#ServerTokens Min
ServerTokens Prod
DocumentRoot "/var/www/host1"

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.htm index.html index.php
</IfModule>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
UseCanonicalName On

<IfModule mod_mime.c>
TypesConfig /usr/pkg/etc/httpd/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /usr/pkg/etc/httpd/magic
</IfModule>
HostnameLookups Off

LogLevel warn
ErrorLog /var/log/httpdlog
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}\"" 
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
#LogFormat "%{Referer} -> %U" referer
#LogFormat "%{User-agent}" agent
CustomLog /var/log/httpdlog common

<IfModule mod_alias.c>
Alias /error.php "/var/www/host1/error.php"
ErrorDocument 505 /error.php
ErrorDocument 504 /error.php
ErrorDocument 503 /error.php
ErrorDocument 502 /error.php
ErrorDocument 502 /error.php
ErrorDocument 500 /error.php
ErrorDocument 417 /error.php
ErrorDocument 416 /error.php
ErrorDocument 415 /error.php
ErrorDocument 414 /error.php
ErrorDocument 413 /error.php
ErrorDocument 412 /error.php
ErrorDocument 411 /error.php
ErrorDocument 410 /error.php
ErrorDocument 409 /error.php
ErrorDocument 408 /error.php
ErrorDocument 408 /error.php
ErrorDocument 407 /error.php
ErrorDocument 405 /error.php
ErrorDocument 404 /error.php
ErrorDocument 403 /error.php
ErrorDocument 402 /error.php
ErrorDocument 401 /error.php
ErrorDocument 400 /error.php
Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_mime.c>
AddLanguage en .en
AddLanguage fr .fr
AddCharset UTF-8 .utf8
<IfModule mod_negotiation.c>
LanguagePriority en fr
</IfModule>
AddType application/x-tar .tgz
AddType application/x-httpd-php .php
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddEncoding gzip .gz
AddType image/x-icon .ico
</IfModule>
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
#SuppressLastModified SuppressColumnSorting SuppressDescription
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip .rar .ace .arj .lha 
.lzh .zoo .bz2
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu .uue
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl .bat
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>

NameVirtualHost *:80
NameVirtualHost *:443

<VirtualHost *:80>
DocumentRoot "/var/www/host1/root"
ServerName test.com
ServerAlias www.test.com
<Directory "/var/www/host1/root">
AllowOverride None
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
RewriteEngine on
RewriteRule ^/mail(.*) https://mail.test.com$1 [R,L]
RewriteRule ^/host(.*) http://host.test.com$1 [R,L]
RewriteRule ^/ftp(.*) http://ftp.test.com$1 [R,L]
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "/var/www/host1/root"
ServerName mail.test.com
RewriteEngine on
RewriteRule ^/(.*) https://mail.test.com/$1 [R,L]
<Directory "/var/www/host1/root">
AllowOverride None
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "/var/www/host1/host"
ServerName host.test.com
<IfModule mod_throttle.c>
ThrottlePolicy Speed 60K 1s
</IfModule>
<Directory "/var/www/host1/host">
AllowOverride None
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "/var/www/host1/ftp"
ServerName ftp.test.com
<IfModule mod_throttle.c>
ThrottlePolicy Speed 50K 1s
</IfModule>
<Directory "/var/www/host1/ftp">
AllowOverride None
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>
<IfModule mod_ssl.c>
SSLPassPhraseDialog builtin
SSLSessionCache dbm:/var/run/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/var/run/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog /var/log/httpdlog
SSLLogLevel error
</IfModule>
<IfDefine SSL>
<VirtualHost *:443>
DocumentRoot "/var/www/host1/mail"
ServerName mail.test.com
mod_gzip_on No
LogFormat "%h %l %u %t %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %>s %b" 
common_with_ssl
CustomLog /var/log/httpdlog common_with_ssl
RewriteEngine on
RewriteCond %{HTTP_HOST} !^mail\.host1\.biz$ [NC]
RewriteRule ^/(.*) http://%{HTTP_HOST}/$1 [C]
SSLEngine on
SSLCipherSuite 
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/openssl/certs/server.pem
SSLCertificateKeyFile /etc/openssl/certs/server.pem
SSLCACertificateFile /etc/openssl/certs/server.pem
<Files ~ "\.(cgi|shtml|phtml|php?)$">
SSLOptions +StdEnvVars
</Files>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0

<Directory "/var/www/host1/mail">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
SSLRequireSSL
</Directory>
#php_flag asp_tags on
#php_value include_path ".:/var/www/host1/mail"
#Alias /mail /var/www/host1/mail/src
</VirtualHost>

</IfDefine>


-- 
sincèrement,
best regards,

Julien

[clef PGP sur demande]


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] 404 error due(?) to a "delay too large"

Posted by Joshua Slive <js...@gmail.com>.
On Wed, 18 Aug 2004 21:56:25 +0200, Julien <ju...@ddcr.biz> wrote:

> Here is what happens:
> one folder that Apache is serving contains files uploaded from
> authenticated users via ftp (a kind of public repository where anyone
> can download those files). this directory is used under a "host" virtual
> host (see config file). It appears that when files are freshly uploaded
> -or perhaps in progress- users could not access this directory (apache
> generated html page showing the folder contents) anymore through their
> http client; they always get a 404 redirection.
> 
> Inside the logs i can read this enigmatic warning:
> [Wed Aug 18 13:07:13 2004] [warn] [client 192.168.1.9] host.test.com
> delay=8821 too large
> each time someone tries to access the page.

> -Apache 1.3.31 (compiled with no special directive) under NetBSD 1.5
> (heavily customized)
> -mods in use for this virtual host: ap-gzip-1.3.26.1a + ap-throttle-3.1.2nb1

Since that is not an error message that looks at all familiar to me, I
would start by removing mod_gzip and mod_throttle and see if the
problem goes away.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org