I'm trying to solve this problem for several hours. No luck / no idea :/
I had to reinstall my VPS server so I'm installing SFS on a fresh CentOS 6.
The logs show that SFS is shutting down just after launch (logs below).
I've followed suggestions from post: https://www.smartfoxserver.com/forums/viewtopic.php?t=20138
like checking the ports and installing a fresh copy...
netstat is not showing any of the ports I used (so 9933 and 8080 should be fine, and those worked before in SFS 2.12..),
also I tried installing SFS 2.13 with and without latest patch, same result either way.
I'd be glad to try if SFS 2.12... still works but I don't have the installation files, cant find them online.
LOGS:
Code: Select all
16:48:14,402 INFO [main] v2.SmartFoxServer - Boot sequence starts...
16:48:15,229 INFO [main] core.SFSEventManager - AnonymousService-1 initialized
16:48:15,262 INFO [main] impl.DefaultFileReplicator - Using "/tmp/vfs_cache" as temporary files store.
16:48:15,353 INFO [main] v2.SmartFoxServer - License loaded:
==========================================
LICENSE DETAILS
------------------------------------------
Type : Community Edition
Max users : 100
==========================================
16:48:15,354 INFO [main] managers.SFSBannedUserStorage - BanUserStorage initialized
16:48:15,373 INFO [main] managers.SFSBannedUserManager - BanUser data loaded: 0 records.
16:48:15,380 INFO [main] v2.SmartFoxServer - Protocol Type is: BINARY
16:48:15,384 INFO [main] config.DefaultConfigLoader - Loading: zones/BasicExamples.zone.xml
16:48:15,427 INFO [main] managers.SFSZoneManager -
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
>> Zone: BasicExamples
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
16:48:15,465 INFO [main] managers.SFSRoomManager - Room created: { Zone: BasicExamples }, [ Room: The Lobby, Id: 0, Group: default, isGame: false ], type = SFSRoom
16:48:15,475 INFO [main] managers.SFSRoomManager - Room created: { Zone: --=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 1, Group: default, isGame: false ], type = SFSRoom
16:48:15,527 INFO [main] core.AdminToolService - AdminTool Service started
16:48:15,597 INFO [SFSWorker:Sys:1] v2.SmartFoxServer - Listening Sockets: { ***IP***:9933, (Tcp) } { ***IP***:9933, (Udp) }
16:48:15,599 INFO [SFSWorker:Sys:1] v2.SmartFoxServer -
_____ _____ _____ ___ __ __
| __| __| __| |_ | | |
|__ | __|__ | | _|- -|
|_____|__| |_____| |___|__|__|
_____ _____ _____ ____ __ __
| __ | __| _ | \| | |
| -| __| | | |_ _|
|__|__|_____|__|__|____/ |_|
[ 2.13.0 ]
16:48:15,599 INFO [SFSWorker:Sys:1] v2.SmartFoxServer - SmartFoxServer 2X (2.13.0) READY!
16:48:17,066 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
16:48:17,914 INFO [Thread-0] managers.SFSZoneManager - BuddyList saveAll...
16:48:17,918 WARN [SFS2X ShutdownHook] core.SFSShutdownHook - SFS2X is shutting down. The process may take a few seconds...
16:48:17,925 INFO [Thread-1] managers.SFSBannedUserManager - BanUser data saved.
]0;root@***IP***:/home/SFS/SmartFoxServer_2X/SFS2X[root@vps136923 SFS2X]#