# FastCGI stderr being truncated

**URL:** <https://www.ruby-forum.com/t/fastcgi-stderr-being-truncated/226942>\
**Category:** NGINX\
**Created:** [February 26, 2013, 3:39pm UTC](https://www.ruby-forum.com/t/fastcgi-stderr-being-truncated/226942 "2013-02-26T15:39:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aschlosberg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e99b99/32.png) [@aschlosberg](https://www.ruby-forum.com/u/aschlosberg)\
**Post date:** [February 26, 2013, 3:39pm UTC](https://www.ruby-forum.com/t/fastcgi-stderr-being-truncated/226942/1 "2013-02-26T15:39:18Z")

</div>

Whilst investigating a series of 502 errors I have noticed that related  
error messages from FastCGI stderr are being truncated and at other  
times  
the error logging seems to fail part way.

Example:  
2013/02/25 09:33:14 [error] 2032#0: \*29484 FastCGI sent in stderr:  
"o/au/com/_ **domain-censored** _/\_public/wp-includes/capabilities.php on  
line  
1026

I came across a really old bug that I thought may have been related -  
[http://mailman.nginx.org/pipermail/nginx-ru/2010-March/032836.html](http://mailman.nginx.org/pipermail/nginx-ru/2010-March/032836.html) - but  
as  
I’m running 1.2.7 this patch has been implemented.

I run upwards of 60 domains on the same server and this is the only one  
that  
is having these issues. Can anyone please help me shed some light on the  
issue?

Posted at Nginx Forum:

> **[FastCGI stderr being truncated](https://forum.nginx.org/read.php?2,236627,236627#msg-236627)**
>
> Whilst investigating a series of 502 errors I have noticed that related error messages from FastCGI stderr are being truncated and at other times the error logging seems to fail part way. Example: 2013/02/25 09:33:14 \[error\] 2032#0: \*29484 FastCGI...

---

<div class="post-metadata">

**Author:** ![aschlosberg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e99b99/32.png) [@aschlosberg](https://www.ruby-forum.com/u/aschlosberg)\
**Post date:** [February 27, 2013, 11:41am UTC](https://www.ruby-forum.com/t/fastcgi-stderr-being-truncated/226942/2 "2013-02-27T11:41:11Z")

</div>

Hello!

On Tue, Feb 26, 2013 at 09:38:52AM -0500, aschlosberg wrote:

> [nginx 0.8.34 segmentation fault](http://mailman.nginx.org/pipermail/nginx-ru/2010-March/032836.html) - but as  
> I’m running 1.2.7 this patch has been implemented.
> 
> I run upwards of 60 domains on the same server and this is the only one that  
> is having these issues. Can anyone please help me shed some light on the  
> issue?

Try looking at the following lines. The above error from fastcgi  
looks like a multiline one.

–  
Maxim D.

> **[F5 NGINX: Built for cloud-native apps. Ready for AI traffic.](https://www.f5.com/products/nginx)**
>
> Deliver modern applications with NGINX. Explore high-performance load balancing, API gateways, and web server solutions trusted by top global enterprises.
