# Bug: HttpProxyModule doesn't report errors using proxy\_temp

**URL:** <https://www.ruby-forum.com/t/bug-httpproxymodule-doesnt-report-errors-using-proxy-temp/197609>\
**Category:** NGINX\
**Created:** [October 17, 2010, 8:12am UTC](https://www.ruby-forum.com/t/bug-httpproxymodule-doesnt-report-errors-using-proxy-temp/197609 "2010-10-17T08:12:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [October 17, 2010, 8:12am UTC](https://www.ruby-forum.com/t/bug-httpproxymodule-doesnt-report-errors-using-proxy-temp/197609/1 "2010-10-17T08:12:49Z")

</div>

If HttpProxyModule can’t write to the directories inside proxy\_temp  
(eg they are owned by root not server uid) then requests for URLs of  
large size fail after 102400 bytes, they hang in the client, then  
timeout and no errors are printed.  
In fact access\_log shows code 200 for each request which was quite  
puzzling to debug.  
maybe nginx -t should alert if one of the \_temp directories has  
unwritable files or directories in it?  
thanks.

---

<div class="post-metadata">

**Author:** ![jbjbjb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@jbjbjb](https://www.ruby-forum.com/u/jbjbjb)\
**Post date:** [October 17, 2010, 11:11am UTC](https://www.ruby-forum.com/t/bug-httpproxymodule-doesnt-report-errors-using-proxy-temp/197609/2 "2010-10-17T11:11:28Z")

</div>

Hello!

On Sat, Oct 16, 2010 at 10:15:36AM +1100, jb wrote:

> If HttpProxyModule can’t write to the directories inside proxy\_temp  
> (eg they are owned by root not server uid) then requests for URLs of  
> large size fail after 102400 bytes, they hang in the client, then  
> timeout and no errors are printed.

On error writing to proxy temp nginx logs “[crit] … open() …  
failed …” message to error log and closes connection.

> In fact access\_log shows code 200 for each request which was quite  
> puzzling to debug.

Status code is one sent to client. It’s good idea to look into  
error log when you are trying to debug errors.

Actually, it’s good idea to look into error log even if you are  
not trying to debug errors.

> maybe nginx -t should alert if one of the \_temp directories has  
> unwritable files or directories in it?

Temp directories may contain lots of subdirectories and  
scanning them all isn’t considered wise.

Maxim D.
