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

SourceBans L4D2 problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eric0279
AlliedModders Donor
Join Date: May 2007
Old 09-26-2012 , 23:38   SourceBans L4D2 problem
Reply With Quote #1

Hello,

I have already installed the previous version of SourceBans these and I've never had a problem there but I confess that I mess ....

The Web server and games are on the same machine.

The following directories are chmod 777:

demos
themes_c,
images/games,
images/maps

Chmod 666 or 777 :
config.php

I created the database >> sourcebans.

My 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"            "default" // or  "driver"            "mysql"
        "host"                "localhost"
        "database"            "sourcebans"
        "user"                "my_user_full_access"
        "pass"                "my_pass"
        //"timeout"            "0"
        "port"            "3306"
    }
    "default"
    {
        "driver"            "default"
        "host"                "localhost"
        "database"            "sourcemod"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        //"port"            "0"
    }
    
    "storage-local"
    {
        "driver"            "sqlite"
        "database"            "sourcemod-local"
    }

    "clientprefs"
    {
        "driver"            "sqlite"
        "host"                "localhost"
        "database"            "clientprefs-sqlite"
        "user"                "root"
        "pass"                ""
        //"timeout"            "0"
        //"port"            "0"
    }
}
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://192.168.1.32/ban/"

        // 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"        "-1"
    }

    /*
     * 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"    "Hack"
        "Exploit"    "Exploit map/serveur"
        "TK"    "TK"
        "TF"    "Flash Team"
        "CommSpam"    "Spam Mic/Chat"
        "BadSpray"    "Spray interdit"
        "BadLang"    "Language interdit"
        "BadName"    "Pseudo interdit"
        "IgnoreAdmin"    "Ignore conseils admin"
        "Stacking"    "empilement joueurs"
        "Own Reason"    "Autre raison"
    }
    
    /*
     * 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 Recul"
        "Wallhack"    "Wallhack"
        "Spinhack"    "Spinhack"
        "Speedhack"    "Speedhack"
        "Multi-Hack"    "Multi-Hack"
        "No Smoke"    "travers fumi"
        "No Flash"    "Anti-flash"
    }
}
I added the server groups for Web Admin Staff and Admins permissions for Server Admin permissions (Root Access and immunity 100)


config.php

PHP Code:
<?php
/**
 * config.php
 * 
 * This file contains all of the configuration for the db
 * that will 
 * @author SteamFriends Development Team
 * @version 1.0.0
 * @copyright SteamFriends (www.SteamFriends.com)
 * @package SourceBans
 */
if(!defined('IN_SB')){echo 'You should not be here. Only follow links!';die();}

define('DB_HOST''localhost');               // The host/ip to your SQL server
define('DB_USER''my_user_full_access');                    // The username to connect with
define('DB_PASS''my_pass');                        // The password
define('DB_NAME''sourcebans');                          // Database name    
define('DB_PREFIX''sb');                    // The table prefix for SourceBans
define('DB_PORT','3306');                            // The SQL port (Default: 3306)

//define('DEVELOPER_MODE', true);            // Use if you want to show debugmessages
//define('SB_MEM', '128M');                 // Override php memory limit, if isn't enough (Banlist is just a blank page)
?>
All data are in the database and when I add a group, I have no error ...

I have no error in the logs folder of SourceMod.

SourceMod: 1.4.6 :

sm plugins list

plugin_print :

Apache2 (via apt-get):
php 5.3.3.7 :
Debian Squeeze X64

Line command to launch server :
Code:
./srcds_run -game left4dead2 +maxplayers 8 +ip 192.168.1.32
admin_groups.cfg and admins.cfg is empty....


If I modify a group, the command is executed sm_rehash on the server:
Quote:
2:09:25 L 09/08/2012 - 22:09:27: rcon from "192.168.1.32:40120": command "sm_rehash"
"ServerID" "-1" or "ServerID" "1" >> 1 = ID in webpanel

The game server has been restarted.

Disable FireWall for test.

For CSSource, no problem SourceBans correctly generates the files against with L4D2, no .... I do not think the problem comes from me after multiple tests on different dedicated servers.

Tested with 1.4.9 and 1.4.10.

Thanks for help.

Last edited by eric0279; 09-26-2012 at 23:42.
eric0279 is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 09-27-2012 , 04:40   Re: SourceBans L4D2 problem
Reply With Quote #2

There is nothing mod specifc in sourcebans' plugin. Do you have server admin groups added? They should show up in the admin_groups.cfg regardless of the ServerID set in the sourcebans.cfg. Are you sure the gameserver user is allowed to write the the sourcemod logs folder?

You could try running a debug build of sourcebans by uncommenting the DEBUG define at the top of the plugin and compile.
__________________

Last edited by Peace-Maker; 09-27-2012 at 04:41.
Peace-Maker is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 09-27-2012 , 06:59   Re: SourceBans L4D2 problem
Reply With Quote #3

Quote:
Do you have server admin groups added? They should show up in the admin_groups.cfg regardless of the ServerID set in the sourcebans.cfg. Are you sure the gameserver user is allowed to write the the sourcemod logs folder?
Yes > server admin groups added ( admin_groups.cfg is empty after restart dedicated)

ServerID -1 or 1 >> doesn't change.


Yes, GameServer allow write (chmod 755)



Quote:
You could try running a debug build of sourcebans by uncommenting the DEBUG define at the top of the plugin and compile.

I test and I will post the result.

Result :

Quote:
L 09/27/2012 - 12:21:49: [sourcebans.smx] OnAllPluginsLoaded()
L 09/27/2012 - 12:21:49: [sourcebans.smx] OnAdminMenuReady()
L 09/27/2012 - 12:21:49: [sourcebans.smx] Result of AddToTopMenu: 26
L 09/27/2012 - 12:21:49: [sourcebans.smx] Added Ban option to admin menu
L 09/27/2012 - 12:233: [sourcebans.smx] OnAllPluginsLoaded()
L 09/27/2012 - 12:233: [sourcebans.smx] OnAdminMenuReady()
L 09/27/2012 - 12:233: [sourcebans.smx] Result of AddToTopMenu: 26
L 09/27/2012 - 12:233: [sourcebans.smx] Added Ban option to admin menu
admin_groups.cfg and admins.cfg were not changed even after a reboot of the server
eric0279 is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 09-27-2012 , 07:52   Re: SourceBans L4D2 problem
Reply With Quote #4

Are you sure "EnableAdmins" and "BackupConfigs" is set to 1 in your sourcebans.cfg?
Does running "sm_rehash" with that debug build print anything interesting?
__________________
Peace-Maker is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 09-27-2012 , 12:09   Re: SourceBans L4D2 problem
Reply With Quote #5

Code:
// 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"
m_rehash :
Quote:
] rcon sm_rehash
autokick is disabled for OwNeD ™ ®
L 09/27/2012 - 18:05:23: [sourcebans.smx] Fetching Group List
L 09/27/2012 - 18:05:23: [sourcebans.smx] Fetching Admin List
L 09/27/2012 - 18:05:23: [sourcebans.smx] SELECT authid, srv_password, (SELECT name FROM sb_srvgroups WHERE name = srv_group AND flags != '') AS srv_group, srv_flags, user, immunity FROM sb_admins_servers_groups AS asg LEFT JOIN sb_admins AS a ON a.aid = asg.admin_id WHERE server_id = 1 OR srv_group_id = ANY (SELECT group_id FROM sb_servers_groups WHERE server_id = 1) GROUP BY aid, authid, srv_password, srv_group, srv_flags, user
in .log file :
Quote:
L 09/27/2012 - 18:02:13: [sourcebans.smx] OnAllPluginsLoaded()
L 09/27/2012 - 18:02:13: [sourcebans.smx] OnAdminMenuReady()
L 09/27/2012 - 18:02:13: [sourcebans.smx] Result of AddToTopMenu: 26
L 09/27/2012 - 18:02:13: [sourcebans.smx] Added Ban option to admin menu
L 09/27/2012 - 18:03:14: [sourcebans.smx] Fetching Group List
L 09/27/2012 - 18:03:14: [sourcebans.smx] Fetching Admin List
L 09/27/2012 - 18:03:14: [sourcebans.smx] SELECT authid, srv_password, (SELECT name FROM sb_srvgroups WHERE name = srv_group AND flags != '') AS srv_group, srv_flags, user, immunity FROM sb_admins_servers_groups AS asg LEFT JOIN sb_admins AS a ON a.aid = asg.admin_id WHERE server_id = 1 OR srv_group_id = ANY (SELECT group_id FROM sb_servers_groups WHERE server_id = 1) GROUP BY aid, authid, srv_password, srv_group, srv_flags, user
L 09/27/2012 - 18:03:14: [sourcebans.smx] Group Admin has 99 immunity
L 09/27/2012 - 18:03:14: [sourcebans.smx] Finished loading 1 groups.
L 09/27/2012 - 18:03:14: [sourcebans.smx] Given blablabla (STEAM_0:1:12157180) admin
L 09/27/2012 - 18:03:14: [sourcebans.smx] Admin blablabla (STEAM_0:1:12157180) has 100 immunity
L 09/27/2012 - 18:03:14: [sourcebans.smx] Finished loading 1 admins.
L 09/27/2012 - 18:03:14: [sourcebans.smx] Checking ban for: STEAM_1:1:12157180
L 09/27/2012 - 18:03:14: [sourcebans.smx] STEAM_1:1:12157180 is NOT banned.
L 09/27/2012 - 18:05:23: [sourcebans.smx] Fetching Group List
L 09/27/2012 - 18:05:23: [sourcebans.smx] Fetching Admin List
L 09/27/2012 - 18:05:23: [sourcebans.smx] SELECT authid, srv_password, (SELECT name FROM sb_srvgroups WHERE name = srv_group AND flags != '') AS srv_group, srv_flags, user, immunity FROM sb_admins_servers_groups AS asg LEFT JOIN sb_admins AS a ON a.aid = asg.admin_id WHERE server_id = 1 OR srv_group_id = ANY (SELECT group_id FROM sb_servers_groups WHERE server_id = 1) GROUP BY aid, authid, srv_password, srv_group, srv_flags, user
L 09/27/2012 - 18:05:23: [sourcebans.smx] Group Admin has 99 immunity
L 09/27/2012 - 18:05:23: [sourcebans.smx] Finished loading 1 groups.
L 09/27/2012 - 18:05:23: [sourcebans.smx] Given blablabla (STEAM_0:1:12157180) admin
L 09/27/2012 - 18:05:23: [sourcebans.smx] Admin blablabla (STEAM_0:1:12157180) has 100 immunity
L 09/27/2012 - 18:05:23: [sourcebans.smx] Finished loading 1 admins.
now it works loooooool


Thanks, try once more at my local GSP seen that it works now ....

I've done nothing more than the last time, I do not get it: (


edit :
Finally, it works but I was forced to run from the console sm_rehash other server configuration files have not been modified due to the addition of groups etc ...


From my GSP :

rcon sm_rehash :
Quote:
] rcon sm_rehash
autokick is disabled for OwNeD ™ ®
L 09/27/2012 - 18:49:48: [sourcebans.smx] Fetching Group List
L 09/27/2012 - 18:49:48: [sourcebans.smx] Fetching Admin List
L 09/27/2012 - 18:49:48: [sourcebans.smx] SELECT authid, srv_password, (SELECT name FROM sb_srvgroups WHERE name = srv_group AND flags != '') AS srv_group, srv_flags, user, immunity FROM sb_admins_servers_groups AS asg LEFT JOIN sb_admins AS a ON a.aid = asg.admin_id WHERE server_id = 1 OR srv_group_id = ANY (SELECT group_id FROM sb_servers_groups WHERE server_id = 1) GROUP BY aid, authid, srv_password, srv_group, srv_flags, user
L 09/27/2012 - 18:49:48: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 09/27/2012 - 18:49:48: [admin-flatfile.smx] (line 7) Unknown group "Admin"

admins.cfg :
Code:
"Admins"
{
    "blablabla"
    {
        "auth"        "steam"
        "identity"        "STEAM_0:1:12157180"
        "group"        "Admin"
        "immunity"        "100"
    }
}
Files are generated only if I run sm_rehash from the game server

Last edited by eric0279; 09-27-2012 at 12:52.
eric0279 is offline
Papy___
AlliedModders Donor
Join Date: May 2012
Location: Paris
Old 09-27-2012 , 13:00   Re: SourceBans L4D2 problem
Reply With Quote #6

hello,
I confirm the installation everything is good but the files do not change the ftp server and it has to go through sm_rehash for the files to be changed.
Papy___ is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 09-27-2012 , 23:10   Re: SourceBans L4D2 problem
Reply With Quote #7

Spam error :
Quote:
L 09/27/2012 - 18:49:48: SourceMod error session started
L 09/27/2012 - 18:49:48: Info (map "c8m1_apartment") (file "errors_20120927.log")
L 09/27/2012 - 18:49:48: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 09/27/2012 - 18:49:48: [admin-flatfile.smx] (line 7) Unknown group "Admin"
L 09/27/2012 - 229:09: Error log file session closed.
L 09/27/2012 - 229:09: SourceMod error session started
L 09/27/2012 - 229:09: Info (map "c8m1_apartment") (file "errors_20120927.log")
L 09/27/2012 - 229:09: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 09/27/2012 - 229:09: [admin-flatfile.smx] (line 7) Unknown group "Admin"
L 09/27/2012 - 229:53: SourceMod error session started
L 09/27/2012 - 229:53: Info (map "c8m1_apartment") (file "errors_20120927.log")
L 09/27/2012 - 229:53: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 09/27/2012 - 229:53: [admin-flatfile.smx] (line 7) Unknown group "Admin"
L 09/27/2012 - 229:55: Error log file session closed.
L 09/27/2012 - 229:55: SourceMod error session started
L 09/27/2012 - 229:55: Info (map "c8m1_apartment") (file "errors_20120927.log")
L 09/27/2012 - 229:55: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 09/27/2012 - 229:55: [admin-flatfile.smx] (line 7) Unknown group "Admin"
L 09/27/2012 - 22:42:55: Error log file session closed.
L 09/27/2012 - 22:42:55: SourceMod error session started
L 09/27/2012 - 22:42:55: Info (map "c8m1_apartment") (file "errors_20120927.log")
L 09/27/2012 - 22:42:55: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 09/27/2012 - 22:42:55: [admin-flatfile.smx] (line 7) Unknown group "Admin"
L 09/27/2012 - 22:51:57: SourceMod error session started
L 09/27/2012 - 22:51:57: Info (map "c8m1_apartment") (file "errors_20120927.log")
L 09/27/2012 - 22:51:57: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 09/27/2012 - 22:51:57: [admin-flatfile.smx] (line 7) Unknown group "Admin"
L 09/27/2012 - 22:52:15: SourceMod error session started
L 09/27/2012 - 22:52:15: Info (map "c8m1_apartment") (file "errors_20120927.log")
L 09/27/2012 - 22:52:15: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 09/27/2012 - 22:52:15: [admin-flatfile.smx] (line 7) Unknown group "Admin"
L 09/27/2012 - 22:526: Error log file session closed.
L 09/27/2012 - 22:52: SourceMod error session started
L 09/27/2012 - 22:52: Info (map "c8m1_apartment") (file "errors_20120927.log")
L 09/27/2012 - 22:52: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 09/27/2012 - 22:52: [admin-flatfile.smx] (line 7) Unknown group "Admin"
L 09/27/2012 - 23:02: Error log file session closed.
L 09/27/2012 - 23:02: SourceMod error session started
L 09/27/2012 - 23:02: Info (map "c8m2_subway") (file "errors_20120927.log")
L 09/27/2012 - 23:02: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 09/27/2012 - 23:02: [admin-flatfile.smx] (line 7) Unknown group "Admin"
sm_admin works.

I have not tested the ban a player for the moment, there are enough problems for now
eric0279 is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 09-28-2012 , 08:00   Re: SourceBans L4D2 problem
Reply With Quote #8

Is there a group called "Admin" listed in your admin_groups.cfg? If it's stored as "admin" (lowercase), you'll need to rename it, since valve's keyvalue system caches strings ignoring the case, so there's been "admin" cached before.

Is it a general problem with left4dead?
__________________
Peace-Maker is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 09-28-2012 , 13:00   Re: SourceBans L4D2 problem
Reply With Quote #9

In admin_groups.cfg, yes there is admin but when creating, I wrote Admin and not admin.

I only have Left 4 Dead 2 for testing ....

I tested locally with CCS and the generation of files has never been a problem...
eric0279 is offline
Papy___
AlliedModders Donor
Join Date: May 2012
Location: Paris
Old 11-20-2012 , 05:09   Re: SourceBans L4D2 problem
Reply With Quote #10

I tested again and still the same problem in l4d2 files are not changed while the css on my server works.
Papy___ 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 04:52.


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