Raised This Month: $32 Target: $400
 8% 

[CS:S/CS:GO] CT Bans


Post New Thread Reply   
 
Thread Tools Display Modes
whtevrwt
AlliedModders Donor
Join Date: Apr 2015
Old 08-29-2017 , 22:27   Re: [CS:S/CS:GO] CT Bans
Reply With Quote #331

This is a god-like update. Thanks a lot for this. It's good to see a dev actually care about their work.
__________________
whtevrwt is offline
mrkos9i4ok
Member
Join Date: Jul 2016
Location: Russia,Moscow
Old 08-30-2017 , 17:04   Re: [CS:S/CS:GO] CT Bans
Reply With Quote #332

This print always when server restarted
L 08/31/2017 - 00:01:22: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 08/31/2017 - 00:01:22: [SM] Blaming: sm_ctban.smx
L 08/31/2017 - 00:01:22: [SM] Call stack trace:
L 08/31/2017 - 00:01:22: [SM] [0] SQL_TQuery
L 08/31/2017 - 00:01:22: [SM] [1] Line 804, sm_ctban.sp::OnClientAuthorized
i use last version plugin

Last edited by mrkos9i4ok; 08-30-2017 at 17:04.
mrkos9i4ok is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 08-31-2017 , 00:18   Re: [CS:S/CS:GO] CT Bans
Reply With Quote #333

Quote:
Originally Posted by mrkos9i4ok View Post
This print always when server restarted
L 08/31/2017 - 00:01:22: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 08/31/2017 - 00:01:22: [SM] Blaming: sm_ctban.smx
L 08/31/2017 - 00:01:22: [SM] Call stack trace:
L 08/31/2017 - 00:01:22: [SM] [0] SQL_TQuery
L 08/31/2017 - 00:01:22: [SM] [1] Line 804, sm_ctban.sp::OnClientAuthorized
i use last version plugin
This may be one where my testing is different. In testing, the database and the game server were on the same box. How far away is your ctban database from your game server? Post more logs. I want to see the time between when you are starting the server and the first client is connecting and how often there are these errors for each restart.

Here is 2.0.1beta1 which adds a timer to re-check this info if the database is not connected yet. May need to adjust the timer rescan rates.
https://hastebin.com/tasufenefa.cpp
__________________

Last edited by databomb; 08-31-2017 at 00:40.
databomb is offline
mrkos9i4ok
Member
Join Date: Jul 2016
Location: Russia,Moscow
Old 09-01-2017 , 17:45   Re: [CS:S/CS:GO] CT Bans
Reply With Quote #334

Quote:
Originally Posted by databomb View Post
This may be one where my testing is different. In testing, the database and the game server were on the same box. How far away is your ctban database from your game server? Post more logs. I want to see the time between when you are starting the server and the first client is connecting and how often there are these errors for each restart.

Here is 2.0.1beta1 which adds a timer to re-check this info if the database is not connected yet. May need to adjust the timer rescan rates.
https://hastebin.com/tasufenefa.cpp
My error did not appear any more.
mrkos9i4ok is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 09-01-2017 , 21:00   Re: [CS:S/CS:GO] CT Bans
Reply With Quote #335

Version 2.0.1

Fixes an issue with errors in OnClientAuthorized operating on a disconnected database.
Fixes an issue with errors in the ForceCT and UnforceCT commands.
__________________
databomb is offline
5IVE
New Member
Join Date: Sep 2017
Old 09-02-2017 , 06:26   Re: [CS:S/CS:GO] CT Bans
Reply With Quote #336

Quote:
Originally Posted by databomb View Post
Version 2.0.1

Fixes an issue with errors in OnClientAuthorized operating on a disconnected database.
Fixes an issue with errors in the ForceCT and UnforceCT commands.
Plugin only MySQL???
L 09/02/2017 - 07:25:10: [sm_ctban.smx] Default database database connection failure: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 09/02/2017 - 07:25:10: [SM] Exception reported: Error while connecting to default database. Exiting.
L 09/02/2017 - 07:25:10: [SM] Blaming: sm_ctban.smx
L 09/02/2017 - 07:25:10: [SM] Call stack trace:
L 09/02/2017 - 07:25:10: [SM] [0] SetFailState
L 09/02/2017 - 07:25:10: [SM] [1] Line 1528, /home/forums/content/files/5/4/6/4/8/165271.attach:B_Callback_Connect

"ctban"
{
"driver" "default"
"database" "ctban"
"host" "localhost"
"user" "root"
"pass" ""
}
5IVE is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 09-02-2017 , 10:11   Re: [CS:S/CS:GO] CT Bans
Reply With Quote #337

Quote:
Originally Posted by 5IVE View Post
Plugin only MySQL???
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Does your '/tmp/mysql.sock' exist? There is a common issue that the symbolic link must be created on the server. From the root user you would execute a command like:

Code:
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
Then restart your MySQL server and try to access it via the command line before you launch the plugin.

You can try SQLite if that does not work, but SQLite is not recommended for anything except clientprefs. The syntax of all queries has not been tested on SQLite.
__________________

Last edited by databomb; 09-02-2017 at 10:12.
databomb is offline
hartii14
Member
Join Date: Aug 2017
Old 09-02-2017 , 14:17   Re: [CS:S/CS:GO] CT Bans
Reply With Quote #338

Errors:
sm_ctban.smx (CT Ban): Error while connecting to default database. Exiting.




i need help..
hartii14 is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 09-02-2017 , 15:05   Re: [CS:S/CS:GO] CT Bans
Reply With Quote #339

Quote:
Originally Posted by hartii14 View Post
Errors:
sm_ctban.smx (CT Ban): Error while connecting to default database. Exiting.




i need help..
The plugin requires a database connection be specified in your addons/sourcemod/configs/databases.cfg. Some people just use the same database as their SourceBans uses while others have a separate local MySQL/MariaDB database running for CT Bans. Either option is fine but you need a database. You could try SQLite like clientprefs uses but it is not tested and not recommended.
__________________
databomb is offline
hartii14
Member
Join Date: Aug 2017
Old 09-03-2017 , 09:43   Re: [CS:S/CS:GO] CT Bans
Reply With Quote #340

Quote:
Originally Posted by databomb View Post
The plugin requires a database connection be specified in your addons/sourcemod/configs/databases.cfg. Some people just use the same database as their SourceBans uses while others have a separate local MySQL/MariaDB database running for CT Bans. Either option is fine but you need a database. You could try SQLite like clientprefs uses but it is not tested and not recommended.
i did as you said now ctban loads but when i want ctban someone nothing happens..
hartii14 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 20:26.


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