Welcome! Log In Create A New Profile

Advanced

Re: error_log levels

Maxim Dounin
April 09, 2010 05:34AM
Hello!

On Thu, Apr 08, 2010 at 10:18:03PM -0400, flash wrote:

> I'm getting a lot of entries in my error_log from memcache
> throwing a 404 and sending the request to the back end.
>
> 2010/04/08 21:07:50 29914#0: *3207 pcre_exec() failed: -8 on "example.com" using "" while sending to client, client: 66.249.71.23, server: _, request: "GET example.com HTTP/1.1", upstream: "memcached://127.0.0.1:11211", host: "example.com"
>
> I'm assuming this is correct behavior since it cannot find the
> requested url in memory;

No, it isn't. It's unexpected error returned by pcre_exec()
function, and according to pcreapi manpage it means the following:

PCRE_ERROR_MATCHLIMIT (-8)

The backtracking limit, as specified by the match_limit field in a
pcre_extra structure (or defaulted) was reached. See the description
above.

You may want to investigate further why it happens. Default limit
according to pcre docs is 10 million, so either you have
completely wrong regex, or something wrong with your pcre library,
or it's nginx bug.

> however, I have not been able to find
> any error level descriptions in the docs - could you either fill
> me in on what level I need to include on my conf file or point
> me in the direction of where this info can be found?

Logging levels from harmless to most critical are:

debug, info, notice, warn, error, crit, alert, emerg

It is not recommended to ignore any messages at crit level and above.

First part of this list can be found here:

http://wiki.nginx.org/NginxCoreModule#error_log

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

error_log levels

flash April 08, 2010 10:18PM

Re: error_log levels

Maxim Dounin April 09, 2010 05:34AM

Re: error_log levels

flash April 09, 2010 11:28PM

Re: error_log levels

Maxim Dounin April 10, 2010 06:24AM

Re: error_log levels

flash April 10, 2010 10:21PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 303
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready