Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1B76B19A17 for ; Tue, 19 Apr 2016 18:52:55 +0000 (UTC) Received: (qmail 86441 invoked by uid 500); 19 Apr 2016 18:52:51 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 86403 invoked by uid 500); 19 Apr 2016 18:52:51 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 86393 invoked by uid 99); 19 Apr 2016 18:52:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Apr 2016 18:52:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 764B3180457 for ; Tue, 19 Apr 2016 18:52:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.801 X-Spam-Level: X-Spam-Status: No, score=-0.801 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=arcor.de Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 8ZAfD7mNe38q for ; Tue, 19 Apr 2016 18:52:47 +0000 (UTC) Received: from mail-in-15.arcor-online.net (mail-in-15.arcor-online.net [151.189.21.55]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 45B005F574 for ; Tue, 19 Apr 2016 18:52:47 +0000 (UTC) Received: from mail-in-12-z2.arcor-online.net (mail-in-12-z2.arcor-online.net [151.189.8.29]) by mx.arcor.de (Postfix) with ESMTP id 3qqDfJ65jJzB62t; Tue, 19 Apr 2016 20:52:40 +0200 (CEST) Received: from mail-in-17.arcor-online.net (mail-in-17.arcor-online.net [151.189.21.57]) by mail-in-12-z2.arcor-online.net (Postfix) with ESMTP id CC715CA1DB; Tue, 19 Apr 2016 20:52:40 +0200 (CEST) X-Greylist: Passed host: 5.61.157.201 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-17.arcor-online.net 3qqDfJ2PdSzYg5 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1461091960; bh=SOxk3q+1rby41YwLHzjfA89bs2wpnFLdS+QUlhYju/o=; h=Subject:To:References:From:Cc:Date:MIME-Version:In-Reply-To: Content-Type:Content-Transfer-Encoding; b=XU3HmQjl+na9VZnCxcIrPoQBh25eGd/FPqfnKSG+TCTC2nmUCQUcTC0vBJ2Ieeira 9/CbR/sr19OKl/YcGOoUbXx21efQLH6FPycbkN5dySbWnYbUI4ONkOe6xSz9iHhtrQ QxhvxUo7NTaJIeVmOa0/rAw9Nk6dTvTUPLNEml8I= X-Greylist: Passed host: 5.61.157.201 X-Greylist: Passed host: 5.61.157.201 Received: from cecilia.fritz.box (053d9dc9.dynamic.tele-ag.de [5.61.157.201]) (Authenticated sender: bjoernv@arcor.de) by mail-in-17.arcor-online.net (Postfix) with ESMTPSA id 3qqDfJ2PdSzYg5; Tue, 19 Apr 2016 20:52:39 +0200 (CEST) To: users@httpd.apache.org References: <571156DA.1080906@arcor.de> <57126865.6030909@kippdata.de> From: Bjoern Voigt Cc: Rainer Jung Date: Tue, 19 Apr 2016 20:50:38 +0200 MIME-Version: 1.0 In-Reply-To: <57126865.6030909@kippdata.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <20160419185240.CC715CA1DB@mail-in-12-z2.arcor-online.net> Subject: Re: [users@httpd] Apache proxy keeps cache directory empty Rainer Jung wrote: > First personally I don't like the use of IfModule. That is a nice > feature, if you want to be flexible in turning on or of functional > blocks. But if you have a more rigid configuration and you need a > feature, why enclose it in IfModule? If the module really isn't > loaded, you like a clear startup error, that tells you about CacheRoot > directive isn't known etc. and not instead just load without having > the cache enabled. So I suggest removing the IfModule directives > (assuming that the proxy and cache features are not just optional for > you). Thank you for you detailed tips. To be honest, I adopted the practice of IfModule directives from the Linux distributions. You are right, that IfModule is seldom useful for private configurations. I commented out the IfModule directives, but as I already wrote, this doesn't change anything. > Can you see the two level directory structure for the cache underneath > /var/cache/apache-proxy? Are ownerships and permissions OK? > > For further debugging you can: > > - Add > > %{cache-hit}e %{cache-revalidate}e %{cache-miss}e > %{cache-invalidate}e %{no-cache}e I created a custom LogFile /var/log/apache2/proxy.log LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-hit}e %{cache-revalidate}e %{cache-miss}e %{cache-invalidate}e %{no-cache}e" proxylog CustomLog /var/log/apache2/proxy.log proxylog The logged information is not very interesting. All the "cache*" entries are "-": Here is an example for www.apache.org and www.ubuntu.com from /var/log/apache2/proxy.log. I pointed my browser the second time within a minute to these addresses: 127.0.0.1 - - [19/Apr/2016:20:37:22 +0200] "GET http://www.apache.org/ HTTP/1.1" 200 12215 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:22 +0200] "GET http://www.apache.org/css/min.bootstrap.css HTTP/1.1" 200 12469 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:22 +0200] "GET http://www.apache.org/css/styles.css HTTP/1.1" 200 683 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:22 +0200] "GET http://www.apache.org/favicons/favicon-32x32.png HTTP/1.1" 200 2932 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:22 +0200] "GET http://www.apache.org/js/bootstrap.js HTTP/1.1" 200 11183 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:22 +0200] "GET http://www.apache.org/favicons/favicon.ico HTTP/1.1" 200 15086 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:22 +0200] "GET http://www.apache.org/js/jquery-2.1.1.min.js HTTP/1.1" 200 29505 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:22 +0200] "GET http://www.apache.org/favicons/favicon-194x194.png HTTP/1.1" 200 31800 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:23 +0200] "GET http://www.apache.org/favicons/favicon-96x96.png HTTP/1.1" 200 10679 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:24 +0200] "GET http://www.apache.org/favicons/favicon-16x16.png HTTP/1.1" 200 1922 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:24 +0200] "GET http://www.apache.org/favicons/android-chrome-192x192.png HTTP/1.1" 200 34004 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:25 +0200] "GET http://www.apache.org/img/karaf.jpg HTTP/1.1" 200 3538 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:25 +0200] "GET http://www.apache.org/img/ant.jpg HTTP/1.1" 200 6437 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:25 +0200] "GET http://www.apache.org/img/asf_logo.png HTTP/1.1" 200 21243 - - - - - [...] 127.0.0.1 - - [19/Apr/2016:20:37:40 +0200] "GET http://www.ubuntu.com/ HTTP/1.1" 200 9157 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:40 +0200] "GET http://www.ubuntu.com/static/css/core-print.css?v=d6c3005 HTTP/1.1" 200 291 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:40 +0200] "GET http://www.ubuntu.com/static/js/core.js?v=fa96109 HTTP/1.1" 200 2187 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:40 +0200] "GET http://www.ubuntu.com/static/js/scratch.js?v=57ed62f HTTP/1.1" 200 5392 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:40 +0200] "GET http://www.ubuntu.com/static/css/styles.css?v=bd0338e HTTP/1.1" 200 44455 - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:41 +0200] "CONNECT assets.ubuntu.com:443 HTTP/1.1" 200 - - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:40 +0200] "CONNECT assets.ubuntu.com:443 HTTP/1.1" 200 - - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:41 +0200] "CONNECT assets.ubuntu.com:443 HTTP/1.1" 200 - - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:41 +0200] "CONNECT assets.ubuntu.com:443 HTTP/1.1" 200 - - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:41 +0200] "CONNECT assets.ubuntu.com:443 HTTP/1.1" 200 - - - - - - 127.0.0.1 - - [19/Apr/2016:20:37:41 +0200] "CONNECT assets.ubuntu.com:443 HTTP/1.1" 200 - - - - - - > - Add "CacheDetailHeader on" to the config and look at the response > header "X-Cache-Detail" which tells you about the caching decision and > reasons. > > - Increase the log level of mod_cache and mod_cache_disk via > > LogLevel warn cache:trace8 cache_disk:trace8 > > Depending on your request load and cache activity this might result in > lots of error log output. Unfortunately after adding these directives (and restarting/reloading Apache of course), there is still nothing about mod_cache_disk activity in error log. What does this mean? > - Have a look for mod_cache and mod_cache_disk entries for the time > between your newest working version and the broken one in CHANGES: > > http://www.apache.org/dist/httpd/CHANGES_2.4 Ok, additionally I can try to do something like a Git bisect. But before I'd like to see, that mod_cache_disk is working at all. Since there are no entries from this module in error log, I am skeptical about this. Greetings, Björn --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org