Apache Error Log Cache Miss
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers httpd log format or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x
Apache Logrotate
Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it how to check server logs only takes a minute: Sign up cache: [GET /] miss up vote 9 down vote favorite 3 I have deployed my RoR app on VPS with Apache2 + Passenger. After configuring the app, when I hit the submit the
Apache Log Files
request from the browser, I get "cache: [GET /] miss" in my apache2/error.log Please help me understand why am I getting this error. I have been struggling with this error for a day or 2 now. Thanks, John ruby-on-rails-3 ruby-on-rails-3.1 apache2 passenger share|improve this question edited Aug 17 '13 at 18:06 Community♦ 1 asked Feb 6 '12 at 12:06 Raj Lalwani 146112 I'm having the same issue, this logger is retarded, it gives no information about the error. apache access log format A simple 'file X not found' would be enough –HappyDeveloper Feb 20 '12 at 12:34 add a comment| 3 Answers 3 active oldest votes up vote 7 down vote Or you can tell rack/cache to shut up in your production.rb: config.action_dispatch.rack_cache[:verbose] = false share|improve this answer answered Mar 22 '12 at 17:40 sailor 3,86821729 Very helpful for a short term solution! Thanks! –Patelify Apr 19 '12 at 10:52 2 Rails 3.2.3 fixes this issue –sailor Apr 19 '12 at 15:02 add a comment| up vote 4 down vote This is an issue with Rack::Cache: cache: [GET /] miss on default Rails application in production mode Rails 3.2.2 Basically Rack::Cache has its logging set to verbose by default, and its log goes into STDERR, and under Apache STDERR goes into the error log. As far as I understand, this is completely harmless, not it does fill the error log. Here is the patch for this issue, it has been already merged, so you can either apply it yourself or wait for the next gem update. share|improve this answer answered Mar 8 '12 at 17:51 haimg 3,3452441 add a comment| up vote 3 down vote I was having the same problem. If you are using the asset pipeline (config.assets.enabled = true in your application.rb) then you should either turn on your on-demand compilation or have all the assets precompiled. Remember that Rails's helper tags like javascript_include_tag, s
Start here for a quick overview of the site Help Center Detailed answers to any
Apache Error Log Format
questions you might have Meta Discuss the workings and policies of
Apache Loglevel
this site About Us Learn more about Stack Overflow the company Business Learn more about hiring apache log level developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system http://stackoverflow.com/questions/9159844/cache-get-miss and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Setting Up Apache as a Forward Proxy with Caching up vote 2 down vote favorite I am trying to http://serverfault.com/questions/448281/setting-up-apache-as-a-forward-proxy-with-caching set up Apache as a forward proxy with caching, but it does not seem to be working correctly. Getting Apache working as a forward proxy was no problem, but no matter what I do it is not caching anything, to disk or memory. I already checked to make sure nothing is conflicting in the mods_enabled directory with mod_cache (ended up commenting it all out) and also I tried moving all of the caching related fields to the configuration file for mod_cache. In addition I set up logging for caching requests, but nothing is being written to those logs. Below is my Apache config, any help would be greatly appreciated!!
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about http://serverfault.com/questions/503317/how-to-log-a-request-to-apache-access-log-if-its-cached-by-varnish hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question https://groups.google.com/d/topic/phusion-passenger/B_qmWhO3Olw _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top How to log a request to apache access log if it's cached by Varnish up vote 1 apache log down vote favorite I have a service based on parsing apache access logs, so I need to log there even when Vanish is turned on. No I just simply tell Varnish to do not cache specific urls: if (req.url ~ "(foo|bar)") return(pass); } But it's heavy on resources and it should be cached. Is there any posibility to log a request on apache access log when Varnish returns a cached copy to client? apache-2.2 varnish logging share|improve this question apache error log asked Apr 28 '13 at 12:28 Justinas Lelys 185 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote why not just use varnishes logger up front and add to the log on varnish if it was a hit or a miss https://www.varnish-cache.org/docs/trunk/reference/varnishncsa.html Look at the following %{X}x Extended variables. Supported variables are: Varnish:time_firstbyte Time to the first byte from the backend arrived Varnish:hitmiss Whether the request was a cache hit or miss. Pipe and pass are considered misses. Varnish:handling How the request was handled, whether it was a cache hit, miss, pass, pipe or error. VCL_Log:key Output value set by std.log("key:value") in VCL. By default it'll send everything to stdout.. but you can redirect it share|improve this answer answered Apr 28 '13 at 14:46 Mike 15.3k32653 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged apache-2.2 varnish logging or ask your own question. asked 3 years ago viewed 414 times active 3 years ago Linked 0 Log access to cached content by 3rd party Related 2Logging behind a reverse proxy?3Varnish/Nginx/Apache0Varnish caching apache u
from GoogleSign inHidden fieldsSearch for groups or messages