Advertisement:
GCWebhosting

Author Topic: 100% Cpu Usage and errorlogs  (Read 704 times)

Offline obioba

  • Newbie
  • *
  • Posts: 8
100% Cpu Usage and errorlogs
« on: May 05, 2019, 11:27:20 AM »
Hi SMF Community!

We are using a lot of years ago SMF 2.0 RC2 SMF and everything were fine always.
But 1 week ago our server hostings get a ddos attack. After that the site cpu usage goes to 100% always--> can't enter the site, just to cpanel.
Try eveything, moved to cloud.  Now we have more space to files but still 100% cpu usage.
Edited the htaccess file, killed all bots, support said too much thing in the htaccess file. Pff
And the error logs:
PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /home/kilences/public_html/Sources/Subs-Db-mysql.php on line 681
At he php ini the maximum is 999 so not understand this really why do that.

PHP Fatal error:  Function name must be a string in /home/kilences/public_html/Sources/QueryString.php on line 369
Okay i take load.php 195 line a preg_replace_callback. But i feel if i do something the next error will hit me.

PHP Parse error:  syntax error, unexpected '$pattern' (T_VARIABLE) in /home/kilences/public_html/Sources/Load.php(197)
This will be the line:
Code: [Select]
return ' . strtr($ent_check[0], array('&' => '&'))  . 'htmlspecialchars($string, $quote_style, ' . ($utf8 ? '\'UTF-8\'' : '$charset') . ')' . $ent_check[1] . ';'),
But what is the cause of the 100% cpu usage?

Thanks your helps.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,389
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: 100% Cpu Usage and errorlogs
« Reply #1 on: May 05, 2019, 02:17:30 PM »
What PHP version are you on and you need to upgrade to SMF 2.0.15
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline obioba

  • Newbie
  • *
  • Posts: 8
Re: 100% Cpu Usage and errorlogs
« Reply #2 on: May 05, 2019, 02:52:31 PM »
Hi!

PHP 5.6.
But how to upgrade if i don't know the cpu usage will down?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,389
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: 100% Cpu Usage and errorlogs
« Reply #3 on: May 05, 2019, 03:02:33 PM »
backup files and database.
Then grab large upgrade package for SMF 2.0.15 then try to upgrade from that.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline obioba

  • Newbie
  • *
  • Posts: 8
Re: 100% Cpu Usage and errorlogs
« Reply #4 on: May 05, 2019, 04:05:59 PM »
However the 100% cpu usage gone.
Site chat is back. :D
New problem is this:
Table 'kilences_plan9.smf_topics' doesn't exist
Maybe i deleted? If i deleted how many data gone?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,389
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: 100% Cpu Usage and errorlogs
« Reply #5 on: May 05, 2019, 04:36:39 PM »
Make sure your database inforamtion is right in the settings.php file
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline obioba

  • Newbie
  • *
  • Posts: 8
Re: 100% Cpu Usage and errorlogs
« Reply #6 on: May 05, 2019, 04:43:18 PM »
Seems to me correct.
I try to backup the deleted tables if that possible, once the support reply.
And after thinking about upgrade, backup saved.

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,655
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: 100% Cpu Usage and errorlogs
« Reply #7 on: May 05, 2019, 09:43:18 PM »
Your CPU went down after upgrading to a newer version of PHP?

Offline obioba

  • Newbie
  • *
  • Posts: 8
Re: 100% Cpu Usage and errorlogs
« Reply #8 on: May 06, 2019, 01:31:58 PM »
I don't know what really happened. The support said after i killed a lot of bots in the access.php, the index.php and access.php cause the high cpu usage. So many command and etc.
But i didn't change and magic to down the cpu usage.
Bigger problem to have to make a table, smf_topics' doesn't exist.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,389
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: 100% Cpu Usage and errorlogs
« Reply #9 on: May 06, 2019, 02:36:24 PM »
access.php is not part of SMF.
smf_topics check your old backups.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline obioba

  • Newbie
  • *
  • Posts: 8
Re: 100% Cpu Usage and errorlogs
« Reply #10 on: May 06, 2019, 03:15:29 PM »
Not fully backups, my miss.
Maybe, if i copy one _topics table. "_log_topics"?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,389
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: 100% Cpu Usage and errorlogs
« Reply #11 on: May 06, 2019, 03:22:27 PM »
no.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline obioba

  • Newbie
  • *
  • Posts: 8
Re: 100% Cpu Usage and errorlogs
« Reply #12 on: May 06, 2019, 03:36:41 PM »
Okay.
And what happening if we are upgrading?
Can we save the topics what made at past few years and can we see all of them in the upgraded forum?

Offline Herman's Mixen

  • SMF Hero
  • ******
  • Posts: 7,235
    • HermanMixen on Facebook
    • @Hermans_Mixen on Twitter
    • Herman's Mixen
Re: 100% Cpu Usage and errorlogs
« Reply #13 on: May 06, 2019, 03:59:00 PM »
Your topics and all SMF related stuff is still in your database

So YES its all there after the Upgrade ;)
Met vriendelijke groet, The Burglar!

 House Mixes | Mixcloud | Any Intelligent fool can make things bigger, more complex, and more violent.
It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Albert Einstein

Former Godfather of our dutch community ;)

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,969
Re: 100% Cpu Usage and errorlogs
« Reply #14 on: May 06, 2019, 04:00:45 PM »
Your topics and all SMF related stuff is still in your database

So YES its all there after the Upgrade ;)

that does not fix the issue that the topics table may have gone missing or is not found. that has to be resolved separately.

Offline obioba

  • Newbie
  • *
  • Posts: 8
Re: 100% Cpu Usage and errorlogs
« Reply #15 on: May 06, 2019, 04:28:35 PM »
So have to create an smf_table which is look like the previous one?