SmartfoxServer 2.12.2 can not 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

sfsbts
Posts: 5
Joined: 24 Jan 2017, 08:19

SmartfoxServer 2.12.2 can not start

Postby sfsbts » 24 Jan 2017, 08:50

I've got this error. Please help. I do nothing, just download and start.


Code: Select all

24 Jan 2017 | 15:33:28,256 | INFO  | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer |     | SmartFoxServer 2X (2.12.2) READY!
24 Jan 2017 | 15:33:29,716 | INFO  | main | bluebox.v3.SessionFilter |     | BlueBox-2X Service (3.1.0) READY.
24 Jan 2017 | 15:33:30,525 | WARN  | SFS2X ShutdownHook | v2.core.SFSShutdownHook |     | SFS2X is shutting down. The process may take a few seconds...
24 Jan 2017 | 15:33:30,530 | INFO  | Thread-2 | entities.managers.SFSZoneManager |     | BuddyList saveAll...
24 Jan 2017 | 15:33:30,537 | INFO  | Thread-3 | entities.managers.SFSBannedUserManager |     | BanUser data saved.
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartfoxServer 2.12.2 can not start

Postby Lapo » 24 Jan 2017, 11:46

What OS are you running please?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
sfsbts
Posts: 5
Joined: 24 Jan 2017, 08:19

Re: SmartfoxServer 2.12.2 can not start

Postby sfsbts » 08 Feb 2017, 08:43

Code: Select all

Processor(s): 4
   VM Max. memory: 1836MB
   os.name: Linux
   os.arch: amd64
   os.version: 2.6.32-573.26.1.el6.x86_64
   java.version: 1.8.0_102
   java.vendor: Oracle Corporation
   java.vendor.url: http://java.oracle.com/
   java.vm.specification.version: 1.8
   java.vm.version: 25.102-b14
   java.vm.vendor: Oracle Corporation
   java.vm.name: Java HotSpot(TM) 64-Bit Server VM
   java.io.tmpdir: /tmp
   Default charset: UTF-8

This error occur when i start the 2nd smartfox 2.12.2 instance.
but if i use version 2.11.1, it start success.
p/s: i change all port for each instance (tcp, udp, jetty)
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartfoxServer 2.12.2 can not start

Postby Lapo » 08 Feb 2017, 08:55

If there's another instance running you might have conflicting ports.
Try starting up the server in the terminal using this:
./sfsf2x.sh

Then copy/paste the complete log output of your term here.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
sfsbts
Posts: 5
Joined: 24 Jan 2017, 08:19

Re: SmartfoxServer 2.12.2 can not start

Postby sfsbts » 08 Feb 2017, 09:29

Code: Select all

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:27)
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

exactly it's conficting port. can you show me which port?

Thanks
sfsbts
Posts: 5
Joined: 24 Jan 2017, 08:19

Re: SmartfoxServer 2.12.2 can not start

Postby sfsbts » 08 Feb 2017, 09:40

Thank Lapo. I found that it conflict in jetty ssl port 8443.
Can you explain me why in version 2.11.1 i neednot change jetty ssl port but version 2.12.2

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

Re: SmartfoxServer 2.12.2 can not start

Postby Lapo » 08 Feb 2017, 10:02

Ports must be unique. You can't run two services on the same port number. This is true for any application, so the version of SmartFoxServer is irrelevant.

Maybe your SFS2X 2.11 was not running the HTTPS service and therefore didn't clash with an existing service with the same port number. You can similarly configure SFS2X 2.12 to run only HTTP and not HTTPS to avoid the problem, if you don't need HTTPS.

If you need to switch off HTTPS before SFS2X starts you manually edit this file:
SFS2X/lib/jetty/start.d/ssl.ini

Inside you have this line:

Code: Select all

jetty.ssl.port=8443

Comment it out with a hashtag like so:

Code: Select all

#jetty.ssl.port=8443

Save and you're done.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
sfsbts
Posts: 5
Joined: 24 Jan 2017, 08:19

Re: SmartfoxServer 2.12.2 can not start

Postby sfsbts » 08 Feb 2017, 11:31

Thank you so much :D

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 66 guests