Author Topic: Trouble logging into my own server.  (Read 527 times)

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Trouble logging into my own server.
« on: June 20, 2011, 09:00:56 am »


               I keep getting booted when I try to log into my own server that is using a hosting service. When I run the server locally I can log in fine, however, when I try to log into the module on the dedicated server I keep getting booted.

My nwn folder is substantially modified over the years compared to the server's version, but I have no clue what the problem is with the way I set up the files on the server that is causing it to boot me when I attempt to log in. Does anyone have any ideas?

Some key details that may be relevant are that, the server has nwnx installed (with a number of the plugins), and is using a MySQL database. The server settings in the nwnplayer.ini are the same (although my pc's version contains alot of other stuff related to my profile and whatnot), and the nwnx.ini are also the same. Not sure what other details are relevant...
               
               

               


                     Modifié par Lazarus Magni, 20 juin 2011 - 08:05 .
                     
                  


            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
Trouble logging into my own server.
« Reply #1 on: June 20, 2011, 12:58:27 pm »


               when you say boot, can you elaborate.


is it a
"You have been booted"  message,
or
Crash
or
Time out

etc

If it is a "You have been booted" message, this means there is something going on in the onClientEnter script.
eg - perhaps it is validating your CDKey against a list of bad cdkeys, do you have SIMTools installed? It has a ban feature that does a boot on login.

Try running the following mySQL Query

select * from pwdata where name like '%BAN%' and player = 'YOURACCOUNTNAMEHERE'

This should reveal if there is a ban listed for your character/player account.

Worst case scenario, I would recommend you backup your database table, then run
'truncate pwdata'    to clean out your pwdata table.
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Trouble logging into my own server.
« Reply #2 on: June 20, 2011, 11:34:37 pm »


               I do indeed get the "you have been booted" message, and I believe you are corect it seems to be something related to the onClientEnter script. I do not have the SIMTools installed (although I would like to down the road, but trying to work through too many other issues first), and the server admin said he didn't think the MySQL query or truncating would help since it is a brand new database (nothing is in it thus far).

The server log show this:
Connection Attempt made by Lazarus Magni (XYZ)
[Mon Jun 20 01:03:02] Lazarus Magni (XYZ) Joined as Player 1
[Mon Jun 20 01:03:11] [DupeChk] Player Tao Vu ( Account: Lazarus Magni ) Logging in with key: XYZ  OldKey: .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
[Mon Jun 20 01:03:11] [DupeChk] Booting player Tao Vu
[Mon Jun 20 01:03:12] Lazarus Magni Left as a Player (0 players left)
[Mon Jun 20 01:03:12] [DupeChk] Logging out Player Tao Vu ( Account:  ) Key:
[Mon Jun 20 01:03:22] # 1 : Tao Vu[145]   Lazarus Magni - XYZ - XYZ
[Mon Jun 20 01:03:26] [Location] Saving location for Player []
[Mon Jun 20 01:05:15] [Location] Clearing LastCDKey for Player

(XYZ added for the purpose of this post)

The server admin thinks it is related to the DupeChk script. I may try deleting it, or commenting it out of the oncliententer script (or both), however I think that script is a safegaurd against players duplicating items, and so I would really rather not remove it unless I absolutely have to.

It is odd to because when I host the server locally, connecting to his database everything works fine. It is just when I connect to the mod on the dedicated server that I am getting booted. Anyone have any ideas?
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Trouble logging into my own server.
« Reply #3 on: June 21, 2011, 12:00:48 am »


               That looks like a script that scans for duped items. Most likely you have one, and it's booting you as a result. Are you a multiserver setup? With only one instance, there aren't that many ways to dupe, absent sloppy coding.

Funky
               
               

               
            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Trouble logging into my own server.
« Reply #4 on: June 21, 2011, 01:45:31 am »


               It was booting me even when creating a new character, and even after starting with an empty servervault. I commented out the lines firing the script in the onclientlogin event. And I can log in now (not sure if it is because of what I did, or something the server admin tried, but figuring out what solved the booting is the low on the priority list right now.

Originally it was one mod, then it got split into multiple ones (and servers). I have merged all the mods back together however, so it sounds like if it is just one mod, the dupeChk might not even be needed?

If that's the case I might remove it, just to clean things up a bit if/when I need more space for resources and have the time.

The problem I am experiencing now though is the mod doesn't seem to be connecting to the database. I can log in now, but for example when I put an item in the item vault, it doesn't save it. Any ideas?
               
               

               


                     Modifié par Lazarus Magni, 21 juin 2011 - 12:49 .
                     
                  


            

Legacy_Lazarus Magni

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Trouble logging into my own server.
« Reply #5 on: June 21, 2011, 09:47:14 pm »


               Just an update, the database problem I was experiencing was related to the server. My host got a new server, and now all is working fine (in regards to these issues), including the dupChk, although I may end up removing that anyways if it is not needed for a single server module as Funky suggested.