Sourcebans web errors

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
User avatar
ren3gade
This is my homepage
This is my homepage
Posts: 87
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Jun 05, 2012 5:43 pm
Location: USA

Sourcebans web errors

Post by ren3gade »

I am getting some errors on my sourcebans page: http://www.joinsng.com/bans

Anyone know how I could fix this?

Thank you.
User avatar
soja
This is my homepage
This is my homepage
Posts: 2389
Joined: Fri May 18, 2012 3:20 pm

Re: Sourcebans web errors

Post by soja »

you need to run
FLUSH HOSTS;
as a query(not sure if you can do it, might need to be mysql root). You could also try running "mysqladmin flush-hosts" from SSH.

For a permanent fix:
raise max_connect_errors to something stupidly high in the my.ini file(must be changed by NFO if the SQL server is on their web hosting, we use 10000.

The sourcebans for gmod is coded poorly, and makes a TON of these errors. We cron a php script to run the flush hosts every hour.

you can temporarily set max_connect_errors through a query like this:
SET GLOBAL max_connect_errors=10000;
Not a NFO employee
User avatar
Edge100x
Founder
Founder
Posts: 13120
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Sourcebans web errors

Post by Edge100x »

You need to change the Sourcebans installation on your webhosting to connect to the MySQL server at "localhost" and not "hosted18.nfoservers.com".
Post Reply