Page Index Toggle Pages: [1] 2 3 4 ReplyAdd Poll Send Topic
Very Hot Topic (More than 25 Replies) Timeout waiting for output from CGI script (Read 15859 times)
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Timeout waiting for output from CGI script
Feb 23rd, 2015 at 5:21pm
Mark & QuoteQuote  
Hello,
Some time ago I reported before about high CPU load on the server. At the time, I believe, the print function was to blame. Unfortunately, I have never looked at the Apache error log. Are some days, however, I found that the following entry in the log drives the CPU usage in height.

Quote:
[Mon Feb 23 16:28:46 2015] [warn] [client 66.249.79.97] Timeout waiting for output from CGI script /var/www/vhosts/anti-scam.de/cgi-bin/yabb2/YaBB.pl


Just now I know not, but has started all until YaBB 2.5 or YaBB 2.5.2
The whole then ends in an infinite loop (stack overflow). It only helps a restart of Apache.
The error is produced exclusively by search engines. Does anyone have a plan of what to do about it? I want my server operators not yet informed, because I get back the threat of termination by pointing out the software was to blame in this state.
It just is not fun to have around 10 times a day restart Apache and night monitoring the no and it is particularly bad. I can therefore also BoardMod page not operate, then it gets worse.
The Forum will thus painfully slow.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Timeout waiting for output from CGI script
Reply #1 - Feb 23rd, 2015 at 5:36pm
Mark & QuoteQuote  
This was happening in YaBB 2.5AE?

I think we'll need to refer this to JonB as I think YaBBForum may have a similar issue with bots. ( I don't know this for a fact.) The problem is, we don't know exactly what the bots are calling that is initiating the stack overflow. It could be calls to almost anything they're not allowed to access - viewprofiles, PMs, guest posting if that's turned off, non-existent Catpcha graphics ...

And since it's timing out, I doubt the info is being written to YaBB's error log.


  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Timeout waiting for output from CGI script
Reply #2 - Feb 23rd, 2015 at 5:44pm
Mark & QuoteQuote  
I do not know if it YaBB 2.5 AE for has already occurred. In 2.4 I think, because it was not. The error log from the forum is nothing useful, only in the error log from server, and also coincides exactly with the time.
Security settings are set very sharp in the Forum with me.

Edited:
PS: This error message is discussed in many forums, but I have not found a solution.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Timeout waiting for output from CGI script
Reply #3 - Feb 23rd, 2015 at 6:16pm
Mark & QuoteQuote  
A couple of suggestions - if you haven't already done it, have your host turn on hotlink protection on both your sites. That will block attempts to grab images - including the non-existent capcha images - from your site. It will should also remove some of the bandwidth strain.

If you haven't already installed 'advanced errorlog security' you might want to.
BUT for it to work well with Guardian, these changes need to be made to Admin/Guardian.pm:
Code (Perl)
Select All
 <search for>
                 <script type="text/javascript">
             var old_htaccess = '';
             function remove_htaccess() {
                 if (document.getElementById("use_htaccess").checked) {
                     old_htaccess = document.getElementById("access_denied").value;
                     document.getElementById("access_denied").value = '';
                     document.getElementById("access_denied").disabled = "disabled";
                 } else {
                     document.getElementById("access_denied").value = old_htaccess;
                     document.getElementById("access_denied").disabled = "";
                 }
             }
                 </script>
 </search for>

 <replace>
 ##Code removed##
 </replace>

 <search for>
                     <textarea cols="40" rows="8" name="access_denied" id="access_denied" style="width:98%"~
       . ( $use_htaccess ? q{} : ' disabled="disabled"' )
       . qq~>$acc_denied</textarea>
 </search for>

 <replace>
                     <textarea cols="40" rows="8" name="access_denied" id="access_denied" style="width:98%">$acc_denied</textarea>
 </replace>

 <search for>
     if ( $use_guardian && $use_htaccess ) {
         require Sources::Guardian;
 </search for>

 <replace>
     if ( $use_guardian && $use_htaccess ) {
 </replace> 



This will fix a conflict between Guardian and the other 'add-to-htaccess' functions.



  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Timeout waiting for output from CGI script
Reply #4 - Feb 23rd, 2015 at 6:18pm
Mark & QuoteQuote  
pyragony54 wrote on Feb 23rd, 2015 at 5:44pm:
PS: This error message is discussed in many forums, but I have not found a solution.


So this is not exclusively a YaBB issue?
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Timeout waiting for output from CGI script
Reply #5 - Feb 23rd, 2015 at 6:28pm
Mark & QuoteQuote  
I never claimed. I just know that this is not occurred at YaBB 2.4.
Also possible that they were not available at the Apache version 1.
I do not know when Apache 2 has been deployed. I had someone who cared for the server, and I have never cared about these things then.
Whether all started at YaBB 2.5 AE or 2.5.2, I just do not know.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Timeout waiting for output from CGI script
Reply #6 - Feb 23rd, 2015 at 6:33pm
Mark & QuoteQuote  
You've got access to my forum and admin rights. Why do not you ask after, you may find an incorrect setting.

anti-scam.de
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
Re: Timeout waiting for output from CGI script
Reply #7 - Feb 23rd, 2015 at 6:40pm
Mark & QuoteQuote  
You should look for HTTP status 500 in Apache's access log... It should tell what YaBB was doing when the CGI timeout happened.
  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Timeout waiting for output from CGI script
Reply #8 - Feb 23rd, 2015 at 6:43pm
Mark & QuoteQuote  
Code incorporated. Let's see what it brings.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Timeout waiting for output from CGI script
Reply #9 - Feb 23rd, 2015 at 6:48pm
Mark & QuoteQuote  
Monni wrote on Feb 23rd, 2015 at 6:40pm:
You should look for HTTP status 500 in Apache's access log... It should tell what YaBB was doing when the CGI timeout happened.


See by equal times.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Timeout waiting for output from CGI script
Reply #10 - Feb 23rd, 2015 at 6:56pm
Mark & QuoteQuote  
@ Monni

Quote:
66.249.79.97 - - [23/Feb/2015:16:08:45 +0100] "GET /cgi-bin/yabb2/YaBB.pl?board=News/20 HTTP/1.1" 504 496 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)


Matches the IP and time.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
Re: Timeout waiting for output from CGI script
Reply #11 - Feb 23rd, 2015 at 7:11pm
Mark & QuoteQuote  
pyragony54 wrote on Feb 23rd, 2015 at 6:56pm:
@ Monni

Quote:
66.249.79.97 - - [23/Feb/2015:16:08:45 +0100] "GET /cgi-bin/yabb2/YaBB.pl?board=News/20 HTTP/1.1" 504 496 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)


Matches the IP and time.


HTTP error 504 is usually caused by mod_security or similar module... Apache modules have own verbose log files that list the URL and description of what rule caused the hangup. Usually the page output is too big for the module to parse and it times out.
  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Timeout waiting for output from CGI script
Reply #12 - Feb 23rd, 2015 at 7:16pm
Mark & QuoteQuote  
Everything pretty and beautiful. What can I do about it? The module mod_security away from it all?
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
Re: Timeout waiting for output from CGI script
Reply #13 - Feb 23rd, 2015 at 7:21pm
Mark & QuoteQuote  
pyragony54 wrote on Feb 23rd, 2015 at 7:16pm:
Everything pretty and beautiful. What can I do about it? The module mod_security away from it all?

You need ssh access to the server to see the mod_security log... It should be in the same physical directory as the error log. You also need root access to edit the mod_security configurations. It is possible to disable single mod_security rule on directory-level.
  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Timeout waiting for output from CGI script
Reply #14 - Feb 23rd, 2015 at 7:25pm
Mark & QuoteQuote  
Okay, I'll look tomorrow more accurate. I'm already too tired.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 3 4
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Timeout waiting for output from CGI script

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry