Server shutdown after start SFS2X 2.12

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

Moderators: Lapo, Bax

vinod
Posts: 20
Joined: 16 Nov 2016, 06:19

Server shutdown after start SFS2X 2.12

Postby vinod » 16 Nov 2016, 06:27

I have earlier installed 2.9.0 and it was working perfectly. I was able to access admin using port 8090.
Now when I installed new version SFS2X 2.12 and changes default port of jetty to 8090. I am getting following error in log:

Code: Select all

15 Nov 2016 | 23:20:22,257 | INFO  | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer |     | SmartFoxServer 2X (2.12.0) READY!
15 Nov 2016 | 23:20:23,054 | INFO  | main | bluebox.v3.SessionFilter |     | BlueBox-2X Service (3.1.0) READY.
15 Nov 2016 | 23:20:23,493 | INFO  | Thread-1 | entities.managers.SFSZoneManager |     | BuddyList saveAll...
15 Nov 2016 | 23:20:23,495 | WARN  | SFS2X ShutdownHook | v2.core.SFSShutdownHook |     | SFS2X is shutting down. The process may take a few seconds...
15 Nov 2016 | 23:20:23,497 | INFO  | Thread-2 | entities.managers.SFSBannedUserManager |     | BanUser data saved.

and when I am trying to access admin tool:

Code: Select all

This site can’t be reached

127.0.0.1 refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
vinod
Posts: 20
Joined: 16 Nov 2016, 06:19

Re: Server shutdown after start SFS2X 2.12

Postby vinod » 16 Nov 2016, 08:40

One more thing to add: OS is windows server 2008 R2
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server shutdown after start SFS2X 2.12

Postby Lapo » 16 Nov 2016, 08:52

Hi,
there is no error in the logs, so I am not sure what might be going on.

Try starting the server up via the sfs2x.bat script and see if anything else shows up. You will have to open a prompt window first and then run the command, if you double click it from Explorer the window may disappear as soon as the application shuts down.

Let us know
Lapo
--
gotoAndPlay()
...addicted to flash games
vinod
Posts: 20
Joined: 16 Nov 2016, 06:19

Re: Server shutdown after start SFS2X 2.12

Postby vinod » 16 Nov 2016, 09:19

Code: Select all

02:12:18,319 INFO  [main] v2.SmartFoxServer     - Boot sequence starts...
02:12:18,725 INFO  [main] core.SFSEventManager     - AnonymousService-1 initiali
zed
02:12:18,740 INFO  [main] impl.DefaultFileReplicator     - Using "C:\Users\sa
lab\AppData\Local\Temp\2\vfs_cache" as temporary files store.
02:12:18,803 INFO  [main] v2.SmartFoxServer     - License loaded:

==========================================
LICENSE DETAILS
------------------------------------------
Type            : Community Edition
Max users       : 100
==========================================

02:12:18,803 INFO  [main] managers.SFSBannedUserStorage     - BanUserStorage ini
tialized
02:12:18,803 INFO  [main] managers.SFSBannedUserManager     - BanUser data loade
d: 0 records.
02:12:18,818 INFO  [main] v2.SmartFoxServer     - Protocol Type is: BINARY
02:12:18,818 INFO  [main] config.DefaultConfigLoader     - Loading: zones\BasicE
xamples.zone.xml
02:12:18,834 INFO  [main] managers.SFSZoneManager     -

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 >> Zone: BasicExamples
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

02:12:18,865 INFO  [main] managers.SFSRoomManager     - Room created: { Zone: Ba
sicExamples }, [ Room: The Lobby, Id: 0, Group: default, isGame: false ], type =
 SFSRoom
02:12:18,865 INFO  [main] managers.SFSRoomManager     - Room created: { Zone: --
=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 1, Group: default, isGame: fal
se ], type = SFSRoom
02:12:18,912 INFO  [main] core.AdminToolService     - AdminTool Service started
02:12:19,021 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - Listening Sockets:
{ 0.0.0.0:3339, (Tcp) } { 127.0.0.1:3339, (Udp) }
02:12:19,037 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     -
 _____ _____ _____    ___ __ __
|   __|   __|   __|  |_  |  |  |
|__   |   __|__   |  |  _|-   -|
|_____|__|  |_____|  |___|__|__|
 _____ _____ _____ ____  __ __
| __  |   __|  _  |    \|  |  |
|    -|   __|     |  |  |_   _|
|__|__|_____|__|__|____/  |_|
[ 2.12.0 ]

02:12:19,037 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - SmartFoxServer 2X (
2.12.0) READY!
02:12:20,038 INFO  [main] v3.SessionFilter     - BlueBox-2X Service (3.1.0) READ
Y.
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:214)
        at org.eclipse.jetty.start.Main.start(Main.java:457)
        at org.eclipse.jetty.start.Main.main(Main.java:75)
        at com.smartfoxserver.v2.http.JettyServer.start(JettyServer.java:35)
        at com.smartfoxserver.v2.SmartFoxServer.start(SmartFoxServer.java:321)
        at com.smartfoxserver.v2.Main.main(Main.java:27)
Caused by: java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:31
7)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNet
workConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java
:235)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:390)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:15
10)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:143
5)
        ... 10 more

Usage: java -jar start.jar [options] [properties] [configs]
       java -jar start.jar --help  # for more information
02:12:20,512 INFO  [Thread-0] managers.SFSZoneManager     - BuddyList saveAll...

02:12:20,513 WARN  [SFS2X ShutdownHook] core.SFSShutdownHook     - SFS2X is shut
ting down. The process may take a few seconds...
02:12:20,516 INFO  [Thread-1] managers.SFSBannedUserManager     - BanUser data s
aved.
vinod
Posts: 20
Joined: 16 Nov 2016, 06:19

Re: Server shutdown after start SFS2X 2.12

Postby vinod » 16 Nov 2016, 09:20

I tried different ports but still not able to run :(
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server shutdown after start SFS2X 2.12

Postby Lapo » 16 Nov 2016, 09:31

These errors can happen if an SFS2X instance is already running. Make sure there's no other server running while starting up the new 2.12 instance.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
vinod
Posts: 20
Joined: 16 Nov 2016, 06:19

Re: Server shutdown after start SFS2X 2.12

Postby vinod » 16 Nov 2016, 09:57

unfortunately there is not any other instance is running. I uninstalled all the version and installed it again(unchecked install as service) but still the same issue..
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server shutdown after start SFS2X 2.12

Postby Lapo » 16 Nov 2016, 10:56

There is no explanation other than the port you're using is already in use by another service.
Maybe you have another service running on the same port? Not necessarily another SFS2X.

If you're on Windows open a command prompt and type:

Code: Select all

netstat -abnp TCP

This will show you all listening services and their relative TCP ports

Also, to be clear, if you're editing the Jetty port manually (instead of using the AdminTool) you will have to change it under SFS2X/lib/jetty/start.d/http.ini

hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games
vinod
Posts: 20
Joined: 16 Nov 2016, 06:19

Re: Server shutdown after start SFS2X 2.12

Postby vinod » 16 Nov 2016, 12:07

in list there is 8080 or 8090 is not listed .. what does that means? I am sorry for asking silly question but dont have much knowledge about networking thing
vinod
Posts: 20
Joined: 16 Nov 2016, 06:19

Re: Server shutdown after start SFS2X 2.12

Postby vinod » 16 Nov 2016, 12:44

One more thing I found that re-installing 2.9.0 is working fine.. but I need 2.12. :(
is 2.12 is designed for higher OS only ? it is working on win10 but my dedicated server have windows 2008 server R2 :(
when I type telnet 127.0.0.1 8080 then it is saying Could not open connection to this port.

but when I am installing 2.9 everything working fine....
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server shutdown after start SFS2X 2.12

Postby Lapo » 16 Nov 2016, 15:00

There is no problem running SmartFoxServer 2X 2.12 on Windows 2008, we tested it. It works just fine.

My suspect is that you installed the server as background service. There's an option for this in the installer wizard, but maybe you didn't notice. If that is the case the server is already running in the background and when you attempt to run it manually it will fail because one instance is already running.

To check if this is the case simply point the browser to http://127.0.0.1: where <port> is whatever port you have configured.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
vinod
Posts: 20
Joined: 16 Nov 2016, 06:19

Re: Server shutdown after start SFS2X 2.12

Postby vinod » 17 Nov 2016, 07:34

when I am trying this it is saying "Site can't be reached , 127.0.0.1 refused to connect" I have re-installed and keeping in mind that "install as service " should be uncheked.but again the same.
vinod
Posts: 20
Joined: 16 Nov 2016, 06:19

Re: Server shutdown after start SFS2X 2.12

Postby vinod » 17 Nov 2016, 08:11

Also i tried to install it as service then I found that sfs2x-service stops automatically after starting.. it is never running
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server shutdown after start SFS2X 2.12

Postby Lapo » 17 Nov 2016, 09:03

I suspect there's something wrong with your system. As I said we have tested a fresh installation on Windows 2008 R2 SP1 and it works as expected.

With SmartFoxServer 2X not running please run the command I told you in my previous post in a prompt window and report back the results

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
vinod
Posts: 20
Joined: 16 Nov 2016, 06:19

Re: Server shutdown after start SFS2X 2.12

Postby vinod » 17 Nov 2016, 09:14

Code: Select all

02:15:08,265 INFO  [main] v2.SmartFoxServer     - Boot sequence starts...
02:15:08,672 INFO  [main] core.SFSEventManager     - AnonymousService-1 initiali
zed
02:15:08,691 INFO  [main] impl.DefaultFileReplicator     - Using "C:\Users\sf
lab\AppData\Local\Temp\2\vfs_cache" as temporary files store.
02:15:08,755 INFO  [main] v2.SmartFoxServer     - License loaded:

==========================================
LICENSE DETAILS
------------------------------------------
Type            : Community Edition
Max users       : 100
==========================================

02:15:08,765 INFO  [main] managers.SFSBannedUserStorage     - BanUserStorage ini
tialized
02:15:08,783 INFO  [main] managers.SFSBannedUserManager     - BanUser data loade
d: 0 records.
02:15:08,797 INFO  [main] v2.SmartFoxServer     - Protocol Type is: BINARY
02:15:08,801 INFO  [main] config.DefaultConfigLoader     - Loading: zones\BasicE
xamples.zone.xml
02:15:08,833 INFO  [main] managers.SFSZoneManager     -

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 >> Zone: BasicExamples
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

02:15:08,892 INFO  [main] managers.SFSRoomManager     - Room created: { Zone: Ba
sicExamples }, [ Room: The Lobby, Id: 0, Group: default, isGame: false ], type =
 SFSRoom
02:15:08,904 INFO  [main] managers.SFSRoomManager     - Room created: { Zone: --
=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 1, Group: default, isGame: fal
se ], type = SFSRoom
02:15:08,943 INFO  [main] core.AdminToolService     - AdminTool Service started
02:15:09,049 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - Listening Sockets:
{ 0.0.0.0:9933, (Tcp) } { 127.0.0.1:9933, (Udp) }
02:15:09,050 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     -
 _____ _____ _____    ___ __ __
|   __|   __|   __|  |_  |  |  |
|__   |   __|__   |  |  _|-   -|
|_____|__|  |_____|  |___|__|__|
 _____ _____ _____ ____  __ __
| __  |   __|  _  |    \|  |  |
|    -|   __|     |  |  |_   _|
|__|__|_____|__|__|____/  |_|
[ 2.12.0 ]

02:15:09,051 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - SmartFoxServer 2X (
2.12.0) READY!
02:15:09,926 INFO  [main] v3.SessionFilter     - BlueBox-2X Service (3.1.0) READ
Y.
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jetty.start.Main.invokeMain(Main.java:214)
        at org.eclipse.jetty.start.Main.start(Main.java:457)
        at org.eclipse.jetty.start.Main.main(Main.java:75)
        at com.smartfoxserver.v2.http.JettyServer.start(JettyServer.java:35)
        at com.smartfoxserver.v2.SmartFoxServer.start(SmartFoxServer.java:321)
        at com.smartfoxserver.v2.Main.main(Main.java:27)
Caused by: java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:31
7)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNet
workConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java
:235)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:390)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:15
10)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:143
5)
        ... 10 more

Usage: java -jar start.jar [options] [properties] [configs]
       java -jar start.jar --help  # for more information
02:15:10,423 INFO  [Thread-0] managers.SFSZoneManager     - BuddyList saveAll...

02:15:10,425 WARN  [SFS2X ShutdownHook] core.SFSShutdownHook     - SFS2X is shut
ting down. The process may take a few seconds...
02:15:10,427 INFO  [Thread-1] managers.SFSBannedUserManager     - BanUser data s
aved.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 54 guests