Server won't start

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

Moderators: Lapo, Bax

LameOne
Posts: 7
Joined: 25 Sep 2017, 22:36

Server won't start

Postby LameOne » 25 Sep 2017, 22:38

I restarted my SFS2X server today after 2-3 months of inactivity and now I get this

Code: Select all

25 Sep 2017 | 22:34:34,298 | INFO  | main | smartfoxserver.v2.SmartFoxServer |     | Boot sequence starts...
25 Sep 2017 | 22:34:35,033 | INFO  | main | v2.core.SFSEventManager |     | AnonymousService-1 initialized
25 Sep 2017 | 22:34:35,063 | INFO  | main | vfs.impl.DefaultFileReplicator |     | Using "/tmp/vfs_cache" as temporary files store.
25 Sep 2017 | 22:34:35,141 | INFO  | main | smartfoxserver.v2.SmartFoxServer |     | License loaded:

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

25 Sep 2017 | 22:34:35,147 | INFO  | main | entities.managers.SFSBannedUserStorage |     | BanUserStorage initialized
25 Sep 2017 | 22:34:35,168 | INFO  | main | entities.managers.SFSBannedUserManager |     | BanUser data loaded: 0 records.
25 Sep 2017 | 22:34:35,173 | INFO  | main | smartfoxserver.v2.SmartFoxServer |     | Protocol Type is: BINARY
25 Sep 2017 | 22:34:35,176 | INFO  | main | v2.config.DefaultConfigLoader |     | Loading: zones/PlatformDash.zone.xml
25 Sep 2017 | 22:34:35,236 | INFO  | main | entities.managers.SFSZoneManager |     |

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 >> Zone: PlatformDash
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

25 Sep 2017 | 22:34:35,276 | INFO  | main | entities.managers.SFSRoomManager |     | Room created: { Zone: PlatformDash }, [ Room: The Lobby, Id: 0, Group: default, isGame: true ], type = SFSRoom
25 Sep 2017 | 22:34:35,771 | INFO  | main | entities.managers.SFSRoomManager |     | Room created: { Zone: --=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 1, Group: default, isGame: false ], type = SFSRoom
25 Sep 2017 | 22:34:35,865 | INFO  | main | v2.core.AdminToolService |     | AdminTool Service started
25 Sep 2017 | 22:34:35,941 | INFO  | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer |     | Listening Sockets: { 0.0.0.0:9933, (Tcp) } { 127.0.0.1:9933, (Udp) } { 127.0.0.1:8888, (Tcp) } { 127.0.0.1:8080, (Tcp) }
25 Sep 2017 | 22:34:35,947 | INFO  | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer |     | 
 _____ _____ _____    ___ __ __
|   __|   __|   __|  |_  |  |  |
|__   |   __|__   |  |  _|-   -|
|_____|__|  |_____|  |___|__|__|                                         
 _____ _____ _____ ____  __ __
| __  |   __|  _  |    \|  |  |
|    -|   __|     |  |  |_   _|
|__|__|_____|__|__|____/  |_| 
[ 2.13.0 ]

25 Sep 2017 | 22:34:35,948 | INFO  | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer |     | SmartFoxServer 2X (2.13.0) READY!
25 Sep 2017 | 22:34:37,476 | INFO  | main | bluebox.v3.SessionFilter |     | BlueBox-2X Service (3.1.0) READY.
25 Sep 2017 | 22:34:39,178 | WARN  | SFS2X ShutdownHook | v2.core.SFSShutdownHook |     | SFS2X is shutting down. The process may take a few seconds...
25 Sep 2017 | 22:34:39,181 | INFO  | Thread-2 | entities.managers.SFSZoneManager |     | BuddyList saveAll...
25 Sep 2017 | 22:34:39,191 | INFO  | Thread-3 | entities.managers.SFSBannedUserManager |     | BanUser data saved.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server won't start

Postby Lapo » 26 Sep 2017, 07:46

Try starting it up in the console via either:

Code: Select all

./sfs2x.sh

or

Code: Select all

sfs2x.bat


Do you get any extra errors?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
LameOne
Posts: 7
Joined: 25 Sep 2017, 22:36

Re: Server won't start

Postby LameOne » 26 Sep 2017, 12:04

Kinda odd. I am only using 9933, 8888 and 8080 for SFS. I checked wwith netstat and none of those are taken.

Code: Select all

12:12:10,841 INFO  [main] v2.SmartFoxServer     - Boot sequence starts...
12:12:11,595 INFO  [main] core.SFSEventManager     - AnonymousService-1 initialized
12:12:11,641 INFO  [main] impl.DefaultFileReplicator     - Using "/tmp/vfs_cache" as temporary files store.
12:12:11,759 INFO  [main] v2.SmartFoxServer     - License loaded:

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

12:12:11,760 INFO  [main] managers.SFSBannedUserStorage     - BanUserStorage initialized
12:12:11,780 INFO  [main] managers.SFSBannedUserManager     - BanUser data loaded: 0 records.
12:12:11,793 INFO  [main] v2.SmartFoxServer     - Protocol Type is: BINARY
12:12:11,795 INFO  [main] config.DefaultConfigLoader     - Loading: zones/PlatformDash.zone.xml
12:12:11,867 INFO  [main] managers.SFSZoneManager     -

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 >> Zone: PlatformDash
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

12:12:11,897 INFO  [main] managers.SFSRoomManager     - Room created: { Zone: PlatformDash }, [ Room: The Lobby, Id: 0, Group: default, isGame: true ], type = SFSRoom
log4j:WARN No appenders could be found for logger (org.mongodb.driver.cluster).
log4j:WARN Please initialize the log4j system properly.
12:12:12,405 INFO  [main] managers.SFSRoomManager     - Room created: { Zone: --=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 1, Group: default, isGame: false ], type = SFSRoom
12:12:12,469 INFO  [main] core.AdminToolService     - AdminTool Service started
12:12:12,559 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - Listening Sockets: { 0.0.0.0:9933, (Tcp) } { 127.0.0.1:9933, (Udp) } { 127.0.0.1:8888, (Tcp) } { 127.0.0.1:8080, (Tcp) }
12:12:12,564 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     -
 _____ _____ _____    ___ __ __
|   __|   __|   __|  |_  |  |  |
|__   |   __|__   |  |  _|-   -|
|_____|__|  |_____|  |___|__|__|
 _____ _____ _____ ____  __ __
| __  |   __|  _  |    \|  |  |
|    -|   __|     |  |  |_   _|
|__|__|_____|__|__|____/  |_|
[ 2.13.0 ]

12:12:12,564 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - SmartFoxServer 2X (2.13.0) READY!
12:12:14,129 INFO  [main] v3.SessionFilter     - BlueBox-2X Service (3.1.0) READY.
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        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:14)
Caused by: java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Net.java:433)
        at sun.nio.ch.Net.bind(Net.java:425)
        at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
        at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
        at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:317)
        at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
        at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:235)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.server.Server.doStart(Server.java:390)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
        at org.eclipse.jetty.xml.XmlConfiguration$1.run(XmlConfiguration.java:1510)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1435)
        ... 10 more

Usage: java -jar start.jar [options] [properties] [configs]
       java -jar start.jar --help  # for more information
12:12:15,739 INFO  [Thread-1] managers.SFSBannedUserManager     - BanUser data saved.
12:12:15,740 INFO  [Thread-0] managers.SFSZoneManager     - BuddyList saveAll...
12:12:15,742 WARN  [SFS2X ShutdownHook] core.SFSShutdownHook     - SFS2X is shutting down. The process may take a few seconds...
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server won't start

Postby Lapo » 26 Sep 2017, 13:11

This is SFS2X 2.13 so by default port 8443 is also used, for HTTPS.
Make sure you don't have another service taking 8443, which I fear is the problem here.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
LameOne
Posts: 7
Joined: 25 Sep 2017, 22:36

Re: Server won't start

Postby LameOne » 26 Sep 2017, 22:02

8443 is not taken either.
I think I also have https disabled.

Edit: All I did was restart the server with the control panel after 3 months of not using it and now this happened.
Since the issue started I have tried rebooting the vps.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server won't start

Postby Lapo » 27 Sep 2017, 07:10

Weird. Are you running Windows or Linux?

If the problem persists we can take a look from remote if you can send us an access to the machine (e.g SSH credentials or Remote Desktop)
You can send me a private message with the details.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games
LameOne
Posts: 7
Joined: 25 Sep 2017, 22:36

Re: Server won't start

Postby LameOne » 03 Oct 2017, 03:08

Still not able to get it working.
Using ubuntu on amazon aws.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server won't start

Postby Lapo » 03 Oct 2017, 08:00

If you want we can take a look. if you can send us an SSH access.
Send me a private message.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
LameOne
Posts: 7
Joined: 25 Sep 2017, 22:36

Re: Server won't start

Postby LameOne » 07 Oct 2017, 20:35

I wiped the server and did a fresh install.
Hopefully this does not happen again.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server won't start

Postby Lapo » 09 Oct 2017, 10:06

And now it works?
Lapo

--

gotoAndPlay()

...addicted to flash games
LameOne
Posts: 7
Joined: 25 Sep 2017, 22:36

Re: Server won't start

Postby LameOne » 10 Oct 2017, 20:54

It works with a fresh install.
I moved over my old config file and it stopped working again.
I am using the default config and it works fine.

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 52 guests