TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,223
  • Total Topics: 21,352
  • Online today: 633
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 239
  • Total: 240
  • @rjen

Internal Server Error 500 every 5 minutes

Started by youngjoonshi, July 07, 2006, 08:49:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RoarinRow

You're not kidding, that's a lot of mods.  Do you remember when your board was last stable and what mods you installed after that?  I don't know half of those mods and what they do.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

youngjoonshi

Yes, but as I said, it maybe a server related issue. It worked fine just a week ago - and I did not install any mod for 2 months now.

RoarinRow

Quote from: YJ on July 07, 2006, 11:42:19 PM
Yes, but as I said, it maybe a server related issue. It worked fine just a week ago - and I did not install any mod for 2 months now.

You have a scripts error log on your server?  Might want to look there too.

SMF 2.0 RC3
TP 1.0 beta 5-1
Wordpress 3.0

youngjoonshi

#13
Sure:

Minor Errors:

Quote[Fri Jul 7 16:47:22 2006] [error] [client 82.43.155.241] File does not exist: /home/gadgetko/public_html/avatars/gallery/Countries/EU.gif [Fri Jul 7 16:47:22 2006] [error] [client 82.43.155.241] File does not exist: /home/gadgetko/public_html/avatars/gallery/NGE/Shinji.gif [Fri Jul 7 16:47:43 2006] [error] [client 82.43.155.241]

Fatal PHP Errors:

QuotePHP Fatal error: Call to undefined function: ssi_recenttopics() in /home/gadgetko/public_html/Sources/Load.php(1685) : eval()'d code on line 58 [07-Jul-2006 12:30:31]

Other Errors
Quote[2006-07-07 16:51:46]: info: (target/actual) uid: (gadgetko/gadgetko) gid: (gadgetko/gadgetko) cmd: index.php

bloc

Quote from: YJ on July 07, 2006, 11:24:05 PM
Finally got a new reply from my host:

QuoteHello,

I've removed the .htaccess file in your home directory, but the problem is not caused by this file. You are receiving the error because of this:

/index.php?action=keepalive

If you look at your ~/tmp/cpu_exceeded_logs file, you will notice in the file dated today's date this file repeated numerous times, seconds apart. After 20 processes are running at any given time, a 21st process will trigger a 500 error. If the 20 processes total over 40% of the CPU Quota at any given time, you'll get a CPU Exceeded message instead. Please consider removing any modules/plugins you've added to the software on your site as the problem you're experiencing is not caused by the server.

This response might be the clue...maybe it is the "keep-alive" bug that was in early SMF 1.1RC2?

It wasn't always enough to replace script.js back then..I found myself needing to rename the file and the theme asking for it, simply because there were people using cached versions of the javascript file. 

youngjoonshi

Hmm...how would you fix it bloc?

I think this has something to do with the "Persistent Connection" option at SMF, which I of course turned off..

Techdomain

I believe that there was a firefox keepalive bug also???

bloc

Quote from: YJ on July 07, 2006, 11:55:10 PM
Hmm...how would you fix it bloc?

I think this has something to do with the "Persistent Connection" option at SMF, which I of course turned off..
Could be that too. But did you have a chance to see if the load was still high when persisent was off?

About the keep-alive fix...I simply opened every theme installed and found the single reference to script.js in the index.tempalte.php file of each, changed that to newscript.js and renamed the actual script.js. Then I set a new cookie for the forum, cleaned the online logs and waited. If there was any keep-alive processes alive I banned the IP from c-panel temprarily.

After 1-2 days the load went down.

Quote from: Techdomain on July 08, 2006, 12:06:20 AM
I believe that there was a firefox keepalive bug also???

Yes, thats is what this keep-alive bug was about. Firefox would send keep-alive requests by the thousand because of a bug in Firefox. SMF then had to circumvent this by chnaging the javascript code some.

youngjoonshi

I use the extension FasterFox and set the option to maximum - which seemingly drains server power?


This website is proudly hosted on Crocweb Cloud Website Hosting.