Admin tool keeps disconnecting

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

jclbrs
Posts: 3
Joined: 10 Sep 2012, 00:44

Admin tool keeps disconnecting

Postby jclbrs » 14 Apr 2014, 02:02

Previously, we had SmartFoxServer 2.4 installed on a server, and I was able to keep the admin tool open indefinitely. Now we switched to a new server with SmartFoxServer 2.7 installed. The admin tool consistently stops working after about 20 to 30 minutes. I need to log in again each time. The log on the bottom of the login screen says "A disconnection occurred due to unknown reason; please reconnect".

What could be happening? What should I investigate to track down the problem?
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Admin tool keeps disconnecting

Postby Bax » 14 Apr 2014, 07:45

Check the server side log. Please share the log lines referring to the administrator disconnection. And maybe also those referring to his connection first.
Paolo Bax
The SmartFoxServer Team
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Admin tool keeps disconnecting

Postby Lapo » 14 Apr 2014, 13:13

If you are connected over the internet it can happen, due to network instability.
Some of the Admin modules such as the Dashboard and the Zone Monitor are always getting updates, so they will keep the connection alive and it's unlikely that a disconnection will happen. Other modules don't use auto-updates and it's more likely to be disconnected after say 30 minutes or more.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Carl Lydon
Posts: 298
Joined: 12 Nov 2007, 16:15
Location: NYC
Contact:

Re: Admin tool keeps disconnecting

Postby Carl Lydon » 04 Oct 2016, 15:09

My admin tool disconnects every 2 or 3 minutes which is very aggravating when I'm trying to troubleshoot something.

I'm guessing from the logs it might be a bluebox problem? I can't easily copy/paste the full info from the logs because your "export button" locks up my browser every single time I use it.


Code: Select all

Session removed: { Id: 1, Type: BLUEBOX, Logged: Yes, IP: xx.xx.xxx.xxx }

User disconnected: { Zone: --=={{{ AdminZone }}}==-- }, ( User Name: isodevs, Id: 0, Priv: 0, Sess:  xx.xx.xxx.xxx ) , SessionLen: 114640, Type: Flash PlugIn:MAC 20,0,0,286

Invalid request, session expired. Message: { ssid: 9ae73ad79f6332e1bf86b198fc0cdb2a, cmd: poll, data: NoData�}
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Admin tool keeps disconnecting

Postby Lapo » 04 Oct 2016, 21:07

Can't you connect via socket? It is likely the cause of the problem.
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Carl Lydon
Posts: 298
Joined: 12 Nov 2007, 16:15
Location: NYC
Contact:

Re: Admin tool keeps disconnecting

Postby Carl Lydon » 04 Oct 2016, 23:25

Apparently not?
The sever guys told me they opened 9933, and that is what I'm trying to connect through on the admin tool.


This is what the logs show when I login to the admin tool:

Code: Select all

Session created: { Id: 12, Type: DEFAULT, Logged: No, IP: xx.xx.xxx.xxx:57412 } on Server port: 9933 <---> 57412
Session removed: { Id: 12, Type: DEFAULT, Logged: No, IP: xx.xx.xxx.xxx:57412 }
Session created: { Id: 13, Type: BLUEBOX, Logged: No, IP: null } on Server port: 0 <---> 0


Does the <---> mean that it's switching from one port to another?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Admin tool keeps disconnecting

Postby Lapo » 05 Oct 2016, 07:38

You should definitely be able to use regular TCP sockets for your AdminTool connection.

Does the <---> mean that it's switching from one port to another?

No it shows the server port on the left side and client port on right side. But your connection is happening via BlueBox not socket.

Are you behind a firewall or proxy maybe?
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Carl Lydon
Posts: 298
Joined: 12 Nov 2007, 16:15
Location: NYC
Contact:

Re: Admin tool keeps disconnecting

Postby Carl Lydon » 05 Oct 2016, 14:24

I don't think so. I don't think I've had this problem with other projects. How do I know if smart fox really has access to that port? Is there some info in the fact that a session is created on 9933 but then that session is terminated and a bluebox session is started, or is that how bluebox always works?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Admin tool keeps disconnecting

Postby Lapo » 05 Oct 2016, 15:42

See if you can telnet the server:
http://docs2x.smartfoxserver.com/Gettin ... g#section1

Let me know.
Lapo

--

gotoAndPlay()

...addicted to flash games
Traina
Posts: 1
Joined: 21 Feb 2017, 09:21

Re: Admin tool keeps disconnecting

Postby Traina » 21 Feb 2017, 09:24

Read the thread and realized that the reason for this trouble may be the fact that I go to the server via VPN or proxy connection? That is, it would be better to turn it off, I correctly understand?
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Admin tool keeps disconnecting

Postby Lapo » 21 Feb 2017, 11:28

Yes, that could be a problem.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: XyrisKenn and 60 guests