Author Topic: UBan -- Global ban system. Ban users from all servers connected to a single DB!  (Read 99422 times)

0 Members and 3 Guests are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
That error is actually being returned from your MySQL server. not UBan itself. UBan just forwards it on to you when it gets the error from your SQL server.
I don't know enough MySQL to offer where to look, what settings to check, etc, but if you just started having the problem, I'd look into what all you have running from your MySQL server, and verify no other problems exist. Or if your setting for maximum connections is low, raise it a few.
If it's already pretty high.... I'd investigate it possibly being exploited/DDOS'ed
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline piggy

  • Newbie
  • *
  • Posts: 21
  • Karma: -1
Hi,

When I try to ban someone I get this message

Code: [Select]
Dropped Piggy|PH|www.e-FRAG.co.uk| from server (Kicked by Console :  Banned on global ban list)
05:12:47 L 09/17/2009 - 05:12:44: Lua Error: Timer Error: autorun/server/uban.lua:198: MySQL server has gone away

I think either the sql server is timing out or something but I'm not to sure.

Any help is appreciated.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Here's a version that should work with ulx svn. Can someone using ulx svn test it and report back? I don't have a setup to test uban with anymore. Major thanks to our own Trab for reporting that this needed fixing. :)

Linky: http://dl.dropbox.com/u/112648/uban.zip
Experiencing God's grace one day at a time.

Offline someone920

  • Newbie
  • *
  • Posts: 47
  • Karma: 3
Sorry for bumping an old post, but i'll test it soon with ulx svn.

Offline Burlak01

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Hey, i installed the SVN version of UBan and i keep getting this error;

Code: [Select]
UBan failure. Error is: addons\uban\lua\autorun\server\uban.lua:137: MySQL server has gone away
Disconnect: Kicked by Console :  Banned on global ban list.

Is there any way to fix this?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Try changing "local persistent = true -- Use a persistent MySQL connection?" in autorun/server/uban.lua to read false instead of true.
Experiencing God's grace one day at a time.

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
I don't understand why this is dead but...

20:42:16 L 06/13/2010 - 20:42:05: Lua Error: addons\uban\lua\ulib\modules\uban_ulx.lua:8: attempt to index global 'UBan' (a nil value)
20:42:16 L 06/13/2010 - 20:42:05: rcon from "#########:50637": command "ulx gban eye 0"
20:42:16 L 06/13/2010 - 20:42:05: Lua Error: addons\uban\lua\ulib\modules\uban_ulx.lua:8: attempt to index global 'UBan' (a nil value)
20:42:16 addons\uban\lua\ulib\modules\uban_ulx.lua:8: attempt to index global 'UBan' (a nil value)

I get that for ingame !gban as well. It doesn't seem to work at all, anyhelp please?

EDIT: Downloaded v1.1 and now the command ulx gban doesnt even work.
« Last Edit: June 13, 2010, 03:53:53 AM by Buggzie »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Try this one, same link as above... http://dl.dropbox.com/u/112648/uban.zip
Experiencing God's grace one day at a time.

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
Try this one, same link as above... http://dl.dropbox.com/u/112648/uban.zip

thats the first one i tried.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
thats the first one i tried.

Forgot to mention that it's updated.
Experiencing God's grace one day at a time.

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
Quote
16:11:53 L 06/14/2010 - 16:11:41: Lua Error: addons\uban\lua\ulx\modules\sh\uban.lua:4: attempt to index global 'UBan' (a nil value)
16:11:53 L 06/14/2010 - 16:11:41: rcon from "########:50101": command "ulx gban eye 0"
16:11:53 L 06/14/2010 - 16:11:41: Lua Error: addons\uban\lua\ulx\modules\sh\uban.lua:4: attempt to index global 'UBan' (a nil value)
16:11:53 addons\uban\lua\ulx\modules\sh\uban.lua:4: attempt to index global 'UBan' (a nil value)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
It appears you're only installing one of the files. Make sure you install both of the files, or it's not going to work.
Experiencing God's grace one day at a time.

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
I have to put the first zip file intoo? gosh..

Command doesnt exist, I got 1 file in autorun and one in ulx/modules/sh/
« Last Edit: June 14, 2010, 08:12:19 AM by Buggzie »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
I have to put the first zip file intoo? gosh..

Command doesnt exist, I got 1 file in autorun and one in ulx/modules/sh/

Are there errors on startup? Do you have the SQL module installed?
Experiencing God's grace one day at a time.

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
Are there errors on startup? Do you have the SQL module installed?

yes i have sql installed as well as mysql

Quote
///////////////////////////////
// Loading...                //
//  sh_defines.lua           //
//  lib.lua                  //
//  base.lua                 //
//  sh_base.lua              //
//  log.lua                  //
//  MODULE: slots.lua        //
//  MODULE: votemap.lua      //
//  MODULE: uban.lua         //
Couldn't include file 'modules\sh\uban.lua' (File not found)
//  MODULE: chat.lua         //
//  MODULE: fun.lua          //
//  MODULE: menus.lua        //
//  MODULE: rcon.lua         //
//  MODULE: teleport.lua     //
//  MODULE: user.lua         //
//  MODULE: userhelp.lua     //
//  MODULE: util.lua         //
//  MODULE: vote.lua         //
//  end.lua                  //
// Load Complete!            //
///////////////////////////////

now its doing:

Quote
14:09:56 L 06/15/2010 - 14:09:42: Lua Error: addons\uban\lua\ulx\modules\sh\uban.lua:26: attempt to index global 'UBan' (a nil value)
14:09:56 addons\uban\lua\ulx\modules\sh\uban.lua:26: attempt to index global 'UBan' (a nil value)

i'm going to quit this because it seems to up every time i do it.
« Last Edit: June 14, 2010, 09:12:50 PM by Buggzie »