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 15870 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
Re: Timeout waiting for output from CGI script
Reply #15 - Feb 24th, 2015 at 7:04am
Mark & QuoteQuote  
@ Dandello

Unfortunately, the problem is not resolved by the change in response # 3. I think we can not even that has to make the server operator. Now I got something in his hand and he can not make excuses himself.

http://www.checkupdown.com/status/E504_de.html
  

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 #16 - Feb 24th, 2015 at 9:42am
Mark & QuoteQuote  
Hello, I have found it. The error message is always the same.


Quote:
/cgi-bin/yabb2/YaBB.pl?board=News


I give this command in the address bar (of course, previously the domain prefix), the CPU runs dead. It was not until a restart of Apache you can stop that.

However, there is yet another part of what a [warn] triggers, but I could still find no CPU overload.

Quote:
Timeout waiting for output from CGI script /var/www/vhosts/anti-scam.de/cgi-bin/yabb2/YaBB.pl, referer: http://anti-scam.de/cgi-bin/yabb2/YaBB. pl? action = search


Quote:
Timeout waiting for output from CGI script /var/www/vhosts/anti-scam.de/cgi-bin/yabb2/AdminIndex.pl, referer: http://anti-scam.de/cgi-bin/yabb2/AdminIndex.pl?action=runbackup;loop1=4;loop2=1...


Once we make the first move. How do you solve level software. A robots.txt solves the problem probably not permanent. There are search engines that do not comply.
  

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 #17 - Feb 24th, 2015 at 2:45pm
Mark & QuoteQuote  
I think I've found it. The forum "News" can not seem to open Windows. This is followed by Google and other search engines runs that use a Windows system, dead. I can watch the CPU usage increases. With Linux I could open the forum without any problems.
  

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 #18 - Feb 24th, 2015 at 3:52pm
Mark & QuoteQuote  
The timeout warning on backup is one we know about - backing up large forums in a single chunk is problematical and has been for a very long time. (What happens isn't always the backup loop itself but bots and members trying to get in while the forum is in backup mode. That can boost CPU usage through the roof as each 'ping' creates a running instance of YaBB.pl.) JonB and I have discussed this at length. 

The failure on 'board=News' - you may need to actually look at (in Notepad++) the News.txt file in ./Boards and the messages that belong in that board. I'm guessing there's something in there - some characters (possibly hidden), or hidden code, or something else that is creating problems. Since the problem appears to be specific to this one board, the problem must BE in this one board. (In fact, since you report that this problem has been happening for a long time, it may be in an very old message.)

Edited:
And the timout warning on search? - Another long known problem with large forums - YaBB just doesn't have a very efficient search engine.
  

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 #19 - Feb 24th, 2015 at 4:46pm
Mark & QuoteQuote  
Talking to JonB - Google actually uses a custom OS so it's unlikely it would be triggering a Win specific problem. HOWEVER, a check of your access logs might shed light on which bot(s) is triggering this.
  

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 #20 - Feb 24th, 2015 at 5:15pm
Mark & QuoteQuote  
Thanks to Dandello and special thanks to Monni. Without pointing with the acces.log I had not found the error. Such an not a very nice person (Sorry, but there it is) has a thread with full 50000 Cyrillic characters plastered in a response that actually occupied 250,000 mark. This not re-open the "News" section under Windows. With Linux it was funny enough. Well, the thing has an end after a long time (hopefully).

Google just ran to this category dead and I was ordered.
  

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 #21 - Feb 24th, 2015 at 5:32pm
Mark & QuoteQuote  
Glad you found it.  Smiley (You've blocked that bad person/bot, right?)
  

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 #22 - Feb 24th, 2015 at 6:26pm
Mark & QuoteQuote  
But one has to imagine this. almost two years, the contribution of age and none of the Windows user has said anything. To me it is not noticed because I rarely use Windows on the Internet. The next time I'll make it but times. Perhaps even appear a few mistakes.
  

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 #23 - Feb 24th, 2015 at 7:22pm
Mark & QuoteQuote  
I'll go ahead and post something about this symptom/fix over on YaBBForum. Yours is probably not the only forum that's been attacked this way.
  

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 #24 - Feb 25th, 2015 at 4:25am
Mark & QuoteQuote  
Another tip:
The search function should be disabled for guests. Spam bots use the and that can drive the CPU usage even in the height.
  

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


YaBB 2.6.0/1/11 Mods

Posts: 174
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Mood: Freaky
Zodiac sign: Aquarius
Re: Timeout waiting for output from CGI script
Reply #25 - Feb 25th, 2015 at 4:33am
Mark & QuoteQuote  
Good Team Work  Smiley
  

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 #26 - Feb 25th, 2015 at 5:49am
Mark & QuoteQuote  
@ XTC

YaBB tut was für seine Kunden. Es gibt bestimmt noch mehrere Funktionen, welche die CPU-Auslastung des Servers hochtreiben. Jeder sollte also mal seine logs ansehen und die Auslastung kontrollieren.

Mein Beispiel sah so aus:

Code
Select All
53|zdravstvuyte<br /><br />здравствуйте||1424842491|admin| 



siehe Bild vom Server.

Hallo heißt auf russisch zdravstvuyte

Hallo belegt also 5 bit
zdravstvuyte benötigt 12 bit

Das ist noch nichts weltbewegendes.

Wird das allerdings in kyrillischer Schrift geschrieben, sind wir beim Thema.

здравствуйте  benötigt 96 bit und jetzt sind wir beim Thema.

50.000 Zeichen, die ich freigegeben habe, belegen dann tatsächlich auf dem Server 400.000 bit. Das in einer einzigen Antwort und der Server sagt "Tschüss Baby", zumal ja noch einiges an Antworten dann drunter kommt.


  

Bild2_016.jpg ( 33 KB | 146 Downloads )

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


YaBB 2.6.0/1/11 Mods

Posts: 174
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Mood: Freaky
Zodiac sign: Aquarius
Re: Timeout waiting for output from CGI script
Reply #27 - Feb 25th, 2015 at 11:58am
Mark & QuoteQuote  
Hallo

Ich check auch mal so einige Dinge .... die Serverlast war ja beim YaBBServer auch immer ein Thema!

Race Condition: Ein Fehler wie bei Hase und Igel - so nach dem Motto Script startet was und schon schreit einer ich bin schon da. Das schaukelt sich solange auf bis es kracht.

@ll

I testing some points for control if a running Server Processnumber is closed ....

@Dandello

Where is the last point when YaBB.cgi is active?
... in Subs.pm sub print_HTML_output_and_finish { ?

lg XTC
  

Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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 #28 - Feb 25th, 2015 at 3:08pm
Mark & QuoteQuote  
XTC wrote on Feb 25th, 2015 at 11:58am:
Where is the last point when YaBB.cgi is active?
... in Subs.pm sub print_HTML_output_and_finish { ?


Pretty sure the answer is yes. But Subs.pm  sub exit { follows it to exit. (But in a race condition it's not going to get to exit. So if there's going to be a way to catch a race condition, it will probably be in sub print_HTML_output_and_finish { )

If JonB wasn't so swamped right now I'd ask him to join in this discussion.

In theory the Cyrillic input going over the character limit is okay since the actual number of readable characters is a lot less than the number of characters that make up the html entity equivalent. However, it also means that the characters are unreadable in raw text form. It's also possible that one or more of the Cyrillic characters got mis-converted to html entities (or deliberately mis-converted) and those characters were bad stuff - like control characters.

I know that YaBBForum had one like that from years ago (and yes, I'm pretty sure it was in Cyrillic) that had to be removed. There was hidden scripting in it.

I'm almost tempted to suggest to people with older forums to run Xenu on it (Turn off Guardian first) and see what it finds and if it triggers anything. (Xenu is very aggressive in following links and WILL trigger bad stuff if it exists - that's how I found the bad post in YaBBForum.)


  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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 #29 - Feb 25th, 2015 at 3:47pm
Mark & QuoteQuote  
Okay - did some looking up of stuff.

Apparently Apache 2.2x had a couple vulnerabilities to race conditions: one has to do with symlinks and the other has to do with mod_proxy_http (I'm sure there are others but those were the ones that came up first in my search.)

There's also an Apache RewriteMap directive that can cause problems with Perl if it isn't configured properly.

What we don't know is exactly what in the offending post was setting up the race condition.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
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