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

sourcebans++ error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
myljach
Member
Join Date: Jul 2016
Location: Croatia
Old 11-15-2019 , 12:15   sourcebans++ error
Reply With Quote #1

Hello!

Im new in source servers, and i host 3 L4D2 server. Recently i was create LAMP, and install sourcebans++, all looks fine, says sourcebans install properly, in web panel i try ban my alt acc, and says im banned, but i still mayy connect.
error in sourceban log is:

00:456: [sourcebans.smx] Database failure: Could not find driver "mysql". See FAQ: http://www.sourcebans.net/node/20L 05/26/2019 -

Little more info: i still use banneduser_ID.cfg, for other issue with custom maps i need in terminal add comand -nowatchdog

i dont know why sourcebans cant connect in mysql base, and installation says all is good?

thank you in advance,
m.
myljach is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 11-16-2019 , 06:16   Re: sourcebans++ error
Reply With Quote #2

That's either not sourcebans++ or a really old version of sourcebans++. Sourcebans++ plugin is not named sourcebans.smx for quite some time now.

Missing driver docs: https://sbpp.dev/docs/could_not_find_driver/
__________________
RumbleFrog is offline
myljach
Member
Join Date: Jul 2016
Location: Croatia
Old 11-16-2019 , 06:37   Re: sourcebans++ error
Reply With Quote #3

Thanks for reply,
in meantime i solve issue, after disable old sourceban plugin, sbpp_main was provide same error, and i made symlink in var folder and now work properly.
myljach is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 11-16-2019 , 10:27   Re: sourcebans++ error
Reply With Quote #4

Quote:
Originally Posted by myljach View Post
Thanks for reply,
in meantime i solve issue, after disable old sourceban plugin, sbpp_main was provide same error, and i made symlink in var folder and now work properly.
How'd you go about doing this? I'm having the same issue with the latest build of sm
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
myljach
Member
Join Date: Jul 2016
Location: Croatia
Old 11-16-2019 , 11:45   Re: sourcebans++ error
Reply With Quote #5

Quote:
Originally Posted by DruGzOG View Post
How'd you go about doing this? I'm having the same issue with the latest build of sm
I was first have problem with properly installing LAMP (Apache, mysql, php), mysql ws not running, later i find reason was - missing libraries.
After that i finish install sourcebans++, web page was fine and without errors, but when i test ban my account, and acc was in ban list, i was still able to connect in server. Issue was - no connection between sourcebans and mysql. Then i was have error from my 1st opening post, and issue for that message was old sourcebans files and configurations, because in old configuration i was copy paste old files in backup folders and start all over not from pay-to-host, i use machine 24/7 intel nuc (enough for source servers) and old files stay. i build up like all from scratch and mix files from old servers (modded versus l4d2 and coop).
After remove old plugin sourcebans.smx, in sourcebans++ take ower new files sbpp****.smx but i was have other error message.
I figure out that problem is between sourcebans, mysql, and sourcemod, where sourcebans like to see socket under /var/run/mysqld/mysqld.sock, and sourcemod under /tmp/mysql.sock, so to connect them is needed symlink ( https://stackoverflow.com/questions/...-file-in-linux )
After i lift up on one server to work, (ban in game work, add to sourcebans, admin panel work, add to sourcebans, RMB live player option kick, ban, send message still not work for now), i copy paste files to other 2 servers.
In one server all works like in 1st, and in third server still not. Ban is in sourcebans, in 2 server says im banned, in 3th same but i may connect. In setup server from web is all fine, Id of server is same as in sourcebans.cfg edited file. I was do same as in 2 servers and 3th not work.
In log file is no error message, but if i reload plugin in terminal with sm plugins reload 80(number of plugin) i got message - SM plugin fail to reload sbpp_main.smx -
i check same files in other servers under addons/sourcemod/plugins and all looks same, all sbpp plugin same size.
Problem where i will look for that may be different versions of sourcemods, 1 server use v9.***, other use developer version v10.****
since i have lot of plugins, and somewhere different version of sourcemod, metamod, L4ddowntown (i try developer only for mutant tanks plugin-120 different tank models), and still there may be issue with setup servers in sourcebans in groups, rcon pass etc
And in that mess is hard to know where to search. For example, i was have issue here : https://forums.alliedmods.net/showthread.php?t=316512
i solve problem my type when start server -nowatcdog to disable server restart if crash, because server restart in loop occasionally, more frequent if i load in server more custom maps (i host now like 140+). Problem is - server take more time to load, watchdog think is stuck, and restart server. when i find time i will try find where i can expand time of watchdog. My point is, nowhere i find discussion about that.
Now i relax my soul to some stranger over internet
I hope i find why my 3th server not accept plugin sbpp_main.smx
my sourceban: http://myljach.mooo.com/
gametracker: https://www.gametracker.com/search/?query=myljach

I hope u find something useful in my respond
myljach is offline
myljach
Member
Join Date: Jul 2016
Location: Croatia
Old 11-16-2019 , 18:44   Re: sourcebans++ error
Reply With Quote #6

Quote:
Originally Posted by DruGzOG View Post
How'd you go about doing this? I'm having the same issue with the latest build of sm
i just check, in 1 server where plugin not work , SM ver is 1.5.3 (needed is 1.7)
in 2 servers where sbpp works ver SM is 1.10.0.6411 (was developer when i download in that time period)
myljach is offline
myljach
Member
Join Date: Jul 2016
Location: Croatia
Old 12-06-2019 , 17:39   Re: sourcebans++ error
Reply With Quote #7

Little update:

after restart machine, SB++ was not work again, and i got same message error, cant connect using socket mysql.sock
restart was delete file from /tmp, and symlink was not work, after i obtain same 2 files from /var to /tmp (mysql.sock, mysqld.sock)
solution is to not use symlink ( ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock) use sudo su instead, maybe that info will help someone
myljach is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 12-06-2019 , 18:20   Re: sourcebans++ error
Reply With Quote #8

Quote:
Originally Posted by myljach View Post
Little update:

after restart machine, SB++ was not work again, and i got same message error, cant connect using socket mysql.sock
restart was delete file from /tmp, and symlink was not work, after i obtain same 2 files from /var to /tmp (mysql.sock, mysqld.sock)
solution is to not use symlink ( ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock) use sudo su instead, maybe that info will help someone
RumbleFish posted a sockets extension in his Source Query thread. It works fine for me and it works on the servers running sourcebans. Check that out
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 12-06-2019 , 21:08   Re: sourcebans++ error
Reply With Quote #9

Quote:
Originally Posted by DruGzOG View Post
RumbleFish posted a sockets extension in his Source Query thread. It works fine for me and it works on the servers running sourcebans. Check that out
That's a totally different thing.

In this scenario, if the socket file is not where the default location is, use 127.0.0.1 for local loopback.
__________________
RumbleFrog is offline
myljach
Member
Join Date: Jul 2016
Location: Croatia
Old 12-27-2019 , 17:12   Re: sourcebans++ error
Reply With Quote #10

Quote:
Originally Posted by RumbleFrog View Post
That's a totally different thing.

In this scenario, if the socket file is not where the default location is, use 127.0.0.1 for local loopback.
Hello,
and sorry for my late reply: i was try that and it works! More easy solution! thanks!
myljach 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 07:46.


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