Hello!
On Mon, May 19, 2014 at 3:15 AM, anshul wrote:
> I faced the same issue today where in although the rest of the lua code was
> executing properly but the content type was not set.
>
> Then I 'reload'ed the nginx, and it worked fine
> However, when then I 'restart'ed the nginx, it again started giving this
> problem.
>
> This would continue to happen until I killed all the nginx processes and
> started it back.
>
Several suggestions:
1. Check your nginx's error log file for any errors or warnings. Also
ensure you use a relatively low "error_log" level like "warn" or even
"info". They can be very helpful when there were some common mistakes
in your Lua code.
2. Please try to create an isolated example that can reproduce this
relatively easily in our boxes.
3. Please enable the nginx debugging logs so that we can see more
details for the guilty requests' handling. See
http://nginx.org/en/docs/debugging_log.html
4. Please always provide the versions of the related software (like
openresty) you're using. If you're not using the latest release of
openresty (1.5.12.1 as of this writing), try upgrading to it.
5. Dynamic tracing tools like systemtap and ktap should be helpful to
trace down your guilty requests in your running nginx processes.
And finally, please subscribe to this list before posting otherwise
your posts require my manual moderation. Thank you for your
cooperation!
Best regards,
-agentzh