Warning message inside the logs

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

lekboon
Posts: 23
Joined: 14 Jan 2008, 05:09

Warning message inside the logs

Postby lekboon » 02 Sep 2009, 10:37

Hi,

Recently i had received some of the warning message inside ours SFS logs. There are:


2009/09/02 06:07:51.768 - [ WARNING ] [id: 21] (SystemHandler.handleLoginRequest): Connection was closed during login phase.
2009/09/02 06:07:53.575 - [ WARNING ] [id: 13] (SmartFoxServer.checkNewConnections): CheckNewConnection Problem: closed channel.

2009/09/02 05:52:53.026 - [ WARNING ] [id: 33] (User.exitAllRooms): Problems during user removal: 587415452


Any possible reason causes the warning message occurs?

i am using the SFS_PRO_1.6.6 (had patched to 1.6.7)

Thanks
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 02 Sep 2009, 17:18

Yes, these should be rare cases where the server is unable to accomplish proper disconnection. Unfortunately these things happen, they very low level (TCP), and they depend on many variables. What we do is we attempt to deal with those as gracefully and defensively as possible and log the event.

2009/09/02 05:52:53.026 - [ WARNING ] [id: 33] (User.exitAllRooms): Problems during user removal: 587415452

In this specific case the User might get an "User name already taken" error if he attempts to log in the Zone again.

Since SFS 1.6.3 we have included a "force login" option in the login methods that allows the user to re-enter after a prior "bad" disconnection.
This will help in the above mentioned cases.
Lapo
--
gotoAndPlay()
...addicted to flash games
lekboon
Posts: 23
Joined: 14 Jan 2008, 05:09

Postby lekboon » 03 Sep 2009, 08:20

Lapo wrote:Yes, these should be rare cases where the server is unable to accomplish proper disconnection. Unfortunately these things happen, they very low level (TCP), and they depend on many variables. What we do is we attempt to deal with those as gracefully and defensively as possible and log the event.

2009/09/02 05:52:53.026 - [ WARNING ] [id: 33] (User.exitAllRooms): Problems during user removal: 587415452

In this specific case the User might get an "User name already taken" error if he attempts to log in the Zone again.

Since SFS 1.6.3 we have included a "force login" option in the login methods that allows the user to re-enter after a prior "bad" disconnection.
This will help in the above mentioned cases.


Hi Lapo, thanks for the comments.

So when those error was occurs(Problems during user removal), will the user object still keep on the server side or it will only kick out the existing User object when the same users join back the games again?
(ya we are using the force login when login into the games)

Will the server skip trigger the handleInternalEvent like "userLost" or "userExit" when those warning is occurs?
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 06 Sep 2009, 09:06

So when those error was occurs(Problems during user removal), will the user object still keep on the server side or it will only kick out the existing User object when the same users join back the games again?

It's more complicated than that. Anyways you shouldn't see the old User object from your code or client side.

Will the server skip trigger the handleInternalEvent like "userLost" or "userExit" when those warning is occurs?

I would say yes.
Lapo

--

gotoAndPlay()

...addicted to flash games
matrix211v1
Posts: 61
Joined: 16 Jan 2009, 14:48

Force Login

Postby matrix211v1 » 25 Sep 2009, 19:55

Lapo wrote:Since SFS 1.6.3 we have included a "force login" option in the login methods that allows the user to re-enter after a prior "bad" disconnection.
This will help in the above mentioned cases.


I am trying to find the documentation for the "force login" for I get that User.exitAllRooms message all the time.

Can you please direct me to it? Thanks!
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 26 Sep 2009, 08:34

The option is discussed in the login() method (or canLogin() for Java)
Lapo

--

gotoAndPlay()

...addicted to flash games
vtween
Posts: 36
Joined: 26 Jul 2007, 17:31

Postby vtween » 15 Oct 2009, 13:30

Hi Lapo,

I also see this Warning message in my logs.

Code: Select all

[ WARNING ] > Problems during user removal: TEST00049

During my load tests I immitate around 7500 users over the server.
The login rate is about 15 users per second.
The logout rate is about the same 15 logouts per second.

These numbers are extrapulated from our real game server (production) data, of ~ 3000 connected users at peak time.

I use the userExit/userLost events in order to update some user data in the database.

The rate of error is about 35 per minute = 1:25 error rate.
This rate may become problematic of me in the near future.

Can you please elaborate the reasons for this error?
Is there a way handle / detect this problem?

Thanks,
VTween
alia
Posts: 11
Joined: 26 Mar 2009, 15:27

Postby alia » 29 Oct 2009, 19:46

Hiyas,

Our dev team has also encountered the following warning in our wrapper log (it happens on every log out):

Code: Select all

2009/10/29 11:42:13.179 - [ WARNING ] [id: 11] (User.exitAllRooms): Problems during user removal: dev


We did some investigation and narrowed down the problem to a database update call we make when the user logs out. Upon further research, we found that any blocking call can potentially cause the same warning:

Code: Select all

if (ieo.getEventName().equals(InternalEventObject.EVENT_LOGOUT))
{
    try
    {
          synchronized (this) {    wait(1000);    }  // BLOCK
    }
    catch (InterruptedException e)
    {
          SmartFoxServer.log.info("Interupted");
    }
}

Any idea why this might occur? Is this warning safe to ignore or is there a known work around?

Cheers,

A.
evilyummycandy
Posts: 12
Joined: 05 Mar 2010, 20:58

Postby evilyummycandy » 07 Mar 2011, 19:31

Sorry to revive an old thread but I am also getting a significant amount of entries in the wrapper log files which say:

[ WARNING ] > Problems during user removal: [ Name ]

Was or is there a solution to this? from what I can tell there is no errors what so ever and everything seems to be running fine but there is a lot of these entries in the log file.
User avatar
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 07 Mar 2011, 23:19

@ evilyummycandy What is your SFS version?

Do you know where about this problem occur? During logout? During disconnection?
Smartfox's forum is my daily newspaper.
evilyummycandy
Posts: 12
Joined: 05 Mar 2010, 20:58

Postby evilyummycandy » 08 Mar 2011, 02:01

I am running 1.6.9

As for when it happens I believe it is at disconnect but I don't have much more info because I am not sure how to diagnose this.
User avatar
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Postby BigFIsh » 08 Mar 2011, 09:33

Try setting up trace messages in the userLost and logOut internal events, along with additional information about the user such as the rooms that he was previously in etc. This should help narrow down the problem.
Smartfox's forum is my daily newspaper.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 41 guests