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

0 Members and 2 Guests are viewing this topic.

Megiddo_at_work

  • Guest
Go to your server console to see the error. The server console is the one that you see before any players join your server and where you can enter commands when no one is connected.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
If you dont have access to it, try running UBan on a listen server and try a test ban. Your game console is your server console on a listen server(assuming you are the host)

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Here you go
UBan failure. Error is: autorun/server/uban.lua:64: attempt to index global 'mysql' (a nil value)
Can't ban users with ID "UNKNOWN"

Megiddo_at_work

  • Guest
You don't have the MySQL module installed.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
That's very strange, I did exactly what it said the readme file

Looks like i forgot a file

It worked in the listen server, I'll have to check my files

Everything is the same as my listen server yet it fails, Everything is in the correct place
« Last Edit: May 13, 2008, 12:07:00 PM by Sc00by22 »

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Finally got access to the server console, Here's the error

Error is: autorun/server/uban.lua:129: Invalid connection!

Line 129 : local curuser = DoQuery( "SELECT CURRENT_USER()" )
« Last Edit: May 27, 2008, 01:20:30 PM by Sc00by22 »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Its not connecting to your database correctly.


1. make sure your database is set up to receive connections from your server's IP/
2. make sure your database host allows outside connections (my first host which was my web host only allowed local connections)
3. make sure your user has access to the database
4. make sure you have the information (database, user, password) inserted correctly into the lua file.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
1. make sure your database is set up to receive connections from your server's IP/ Yes it is
2. make sure your database host allows outside connections (my first host which was my web host only allowed local connections) It does
3. make sure your user has access to the database It does
4. make sure you have the information (database, user, password) inserted correctly into the lua file. It does

:/

EDIT : I'm getting this now

Timer Error: autorun/server/uban.lua:176: MySQL server has gone away
« Last Edit: May 27, 2008, 02:25:58 PM by Sc00by22 »

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Your SQL server is dropping the connection. (likely something with timeout)
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Try setting it to not use a persistent connection
Experiencing God's grace one day at a time.

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Now I'm getting this again

Error is: autorun/server/uban.lua:129: Invalid connection!

The funny thing is, I'm using the same configuration that I used on a listen server which worked fine

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Ok. Here is a dilemma, I have setup Uban correctly, My mysql database is setup to receive the information, I have allowed my server hostname, My server has the port 3306 open for outbound access, But when i go to ban somebody, It fails without an error, What could be the cause of this?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Anything in console? Does the record appear in SQL?
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Scooby, check for errors at server startup and/or map change.
Though no error may be occuring at ban, it might be due to UBan not starting.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Megiddo knows what the problem is and is currently finding a fix