Raised This Month: $12 Target: $400
 3% 

Bans not added to database


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BayX
New Member
Join Date: Apr 2016
Old 04-09-2016 , 08:04   Bans not added to database
Reply With Quote #1

Hi there,

I have a problem (or two...).
I did a fresh install with OS, CS GO, Sourcemod and Sourcebans today and everything works great except one thing. If I make a ban on the server, it doesn't add it to the database. So the users can connect to the server again and keep playing...

The admin permissions are working so Sourcebans is connected to the database..
I attach the config files and sourcebans.log

databases.cfg
Code:
"Databases"
{
	"driver_default"		"mysql"
	
	// When specifying "host", you may use an IP address, a hostname, or a socket file path
	
	"sourcebans"
	{
		"driver"			"mysql"
		"host"				"IP-ADDRESS"
		"database"			"DB"
		"user"				"USER"
		"pass"				"PASSWORD"
		//"timeout"			"0"
		//"port"			"0"
	}
	
	"storage-local"
	{
		"driver"			"sqlite"
		"database"			"sourcemod-local"
	}
}
sourcebans.cfg
Code:
/**
* sourcebans.cfg
*
* This file contains settings for the SourceBans Source Server Plugin
* @author SteamFriends Development Team
* @version 0.0.0.$Rev: 74 $
* @copyright SteamFriends (www.steamfriends.com)
* @package SourceBans
*/

"SourceBans"
{
	"Config"
	{
		// Website address to tell where the player to go for unban, etc
		"Website"			"http://www.website.com/"

		// Allow or disallow admins access to addban command
		"Addban"			"1"

		// Allow or disallow admins access to unban command
		"Unban"				"1"
        
        // The Tableprefix you set while installing the webpanel. (default: "sb")
		"DatabasePrefix"	"sb"

		// How many seconds to wait before retrying when a players ban fails to be checked. Min = 15.0 Max = 60.0
		"RetryTime"			"45.0"
		
		// How often should we process the failed ban queue in minutes
		"ProcessQueueTime"	"5"

		// Should the plugin automaticaly add the server to sourcebans 
		// (servers without -ip being set on startup need this set to 0)
		"AutoAddServer"		"0"

		// Enable backing up config files after getting admins from database (1 = enabled, 0 = disabled)
		"BackupConfigs"	"1"

		// Enable admin part of the plugin (1 = enabled, 0 = disabled)
		"EnableAdmins"	"1"
        
		// Require the admin to login once into website
		"RequireSiteLogin"	"0"

		// This is the ID of this server (Check in the admin panel -> servers to find the ID of this server)
		"ServerID"		"4"
	}

	/*
	 * Generic menu options for if a reason isn't supplied in a ban
	 * Without a supplied reason the ban will never be written to the database
	 */
	"BanReasons"
	{
		"Hacking"	"Hacking"
		"Exploit"	"General Exploit of Game/Map/Server"
		"TK"	"Team Killing"
		"TF"	"Team Flashing"
		"CommSpam"	"Spamming Mic/Chat"
		"BadSpray"	"Inappropriate Spray"
		"BadLang"	"Inappropriate Language"
		"BadName"	"Inappropriate Name"
		"IgnoreAdmin"	"Ignoring Admins"
        "Stacking"	"Team Stacking"
		"Own Reason"	"Own Reason"
	}
	
	/*
	 * Submenu options for when "Hacking" is selected
	 * If "Hacking" is removed from the menu above this will not be accessable
	 */
	"HackingReasons"
	{
		"Aimbot"	"Aimbot"
		"Antirecoil"	"Anti Recoil"
		"Wallhack"	"Wallhack"
		"Spinhack"	"Spinhack"
		"Speedhack"	"Speedhack"
		"Multi-Hack"	"Multi-Hack"
		"No Smoke"	"No Smoke"
		"No Flash"	"No Flash"
	}
}
sourcebans.log
Code:
L 04/09/2016 - 13:04:33: [sourcebans.smx] plugins/basebans.smx was unloaded and moved to plugins/disabled/basebans.smx
L 04/09/2016 - 13:47:48: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:48:08: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:48:08: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:48:33: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:48:53: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:48:54: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:49:18: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:49:39: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:49:39: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:50:03: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:50:24: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:50:24: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:50:48: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:51:09: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:51:09: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
L 04/09/2016 - 13:51:54: [sourcebans.smx] Verify Ban Query Failed: Got error 'this version of PCRE is compiled without UTF support at offset 0' from regexp
I don't know whats wrong, can't find a fix.. I've been reading on a lot of forums but can't find the solution..

// BayX
BayX is offline
Cooky
Veteran Member
Join Date: Jun 2010
Location: 127.0.0.1
Old 04-12-2016 , 09:54   Re: Bans not added to database
Reply With Quote #2

http://stackoverflow.com/questions/1...ut-utf-support
Cooky is offline
BayX
New Member
Join Date: Apr 2016
Old 04-13-2016 , 14:06   Re: Bans not added to database
Reply With Quote #3

Quote:
Originally Posted by Cooky View Post
Well no offens, but almost noone has asked about this, so there must be some other way to fix this. I don't even have a apache server on the game server... So why should I install Apache and rebuild it when I have my webserver?

I don't get it, sorry!
BayX is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode