New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nginx 1.0.5 / freebsd 8 - error 500 #3
Comments
I've just tested ngx_cache_purge-1.3 on FreeBSD-8.2 with nginx-1.0.5 and everything works fine for me. Did you install it from ports or from the source? Also, could you provide your configuration and see if there is anything in your error log? |
i have installed from the ports by simply enabling this module my error log level set to "error" and at this level it did not write anything to logs at all. I will try to increase log level to see if something is thrown during the error am I right in understanding that 500 error is not supposed to be returned, unless there is a problem with the module itself? |
i have changed error log level to debug and still nothing related to this request |
Yes, 500 shouldn't happen. Did you tamper with the on-disk cache or something similar? And please provide your configuration. |
on-disk cache of your module? i did not know it existed, so no :) my config is quite large and has a number of includes, so I am not posting what I believe is irrelevant (extra locations, servers, logs etc.). Let me know if you do need full config.
|
is there anything else I could do to debug this problem? |
Sorry, I've been quite busy with other stuff lately... I'll push more verbose version after the weekend. |
sorry to bug, just wondering if I should expect something or better to move on? |
I'm really sorry about the delay, I had crazy month. Could you try running git HEAD? |
@hasanove: did you have time to test the changes? |
sorry for delay on my side, I just did not want to use production server for testing purposes, so requested to build appropriate environment. This should be ready tomorrow and I will post my results.. |
ok, so here is what I have got 2011/09/22 00:17:41 [error] 87190#0: *147 http file cache purge: ngx_http_file_cache_open() failed, client: 109.239.25.221, server: cu02.turbo.az, request: "GET /purge/site/autos/view/190864 HTTP/1.1", host: "cu02.turbo.az" apparently, it tries to delete file that does not exist i was not able to reproduce "unlink" error again, but your debug message is very consistent |
Could you please provide full debug log (http://nginx.org/en/docs/debugging_log.html) for the purge request? |
Also, could you test if turning "aio" directive on/off makes any difference? |
yep, that was it :-) first, full debug for the error
and following is full log of successful purge (once aio has been disabled)
|
Thanks, I'll add support for AIO in the next few days. |
thanks very much, Piotr, I will disable aio for the time being for my service if you need help in testing this once completed, I will be happy to assist |
@hasanove: could you try running AIO with git HEAD? Thanks. |
thanks, looks very good, so far no errors :-) |
@hasanove: I've shuffled some things around, it shouldn't make any difference, but it would be great if you could pull git HEAD again. |
I just did another update and see no issues again. |
Great! Thanks for help with debugging and testing this. I've just released version 1.4 with AIO support, case closed. |
sorry if this is the wrong place, I did not find any other where I can submit this issue
i have just installed ngx_cache_purge and am noticing strange behaviour
if entry is not in the cache, I get 404 error, which I guess is OK
if entry is in the cache, I get 500 error and only after few refreshes I get "successfull purge"
i am happy to provide any additional info if this is not the expected result
The text was updated successfully, but these errors were encountered: