window server 2016 + plesk can't work

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

Moderators: Lapo, Bax

kogidog
Posts: 6
Joined: 12 Dec 2018, 04:34

window server 2016 + plesk can't work

Postby kogidog » 12 Dec 2018, 07:27

Hi,
I bought GoDaddy's windows VPS to start sfs,but it doesn’t work normally.

Code: Select all

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

11 Dec 2018 | 21:20:59,135 | INFO  | main | entities.managers.SFSBannedUserStorage |     | BanUserStorage initialized
11 Dec 2018 | 21:20:59,166 | INFO  | main | entities.managers.SFSBannedUserManager |     | BanUser data loaded: 0 records.
11 Dec 2018 | 21:20:59,213 | INFO  | main | smartfoxserver.v2.SmartFoxServer |     | Protocol Type is: BINARY
11 Dec 2018 | 21:20:59,213 | INFO  | main | v2.config.DefaultConfigLoader |     | Loading: zones\BasicExamples.zone.xml
11 Dec 2018 | 21:20:59,322 | INFO  | main | entities.managers.SFSZoneManager |     |

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

11 Dec 2018 | 21:20:59,385 | INFO  | main | entities.managers.SFSRoomManager |     | Room created: { Zone: BasicExamples }, [ Room: The Lobby, Id: 0, Group: default, isGame: false ], type = SFSRoom
11 Dec 2018 | 21:20:59,400 | INFO  | main | entities.managers.SFSRoomManager |     | Room created: { Zone: --=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 1, Group: default, isGame: false ], type = SFSRoom
11 Dec 2018 | 21:20:59,510 | INFO  | main | v2.core.AdminToolService |     | AdminTool Service started
11 Dec 2018 | 21:20:59,791 | INFO  | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer |     | Listening Sockets: { 0.0.0.0:9933, (Tcp) } { 127.0.0.1:9933, (Udp) }
11 Dec 2018 | 21:20:59,791 | INFO  | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer |     | 
 _____ _____ _____    ___ __ __
|   __|   __|   __|  |_  |  |  |
|__   |   __|__   |  |  _|-   -|
|_____|__|  |_____|  |___|__|__|                                         
 _____ _____ _____ ____  __ __
| __  |   __|  _  |    \|  |  |
|    -|   __|     |  |  |_   _|
|__|__|_____|__|__|____/  |_| 
[ 2.13.4 ]

11 Dec 2018 | 21:20:59,791 | INFO  | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer |     | SmartFoxServer 2X (2.13.4) READY!
11 Dec 2018 | 21:21:04,187 | INFO  | main | bluebox.v3.SessionFilter |     | BlueBox-2X Service (3.3.0) READY.
11 Dec 2018 | 21:21:08,922 | INFO  | Thread-0 | entities.managers.SFSZoneManager |     | BuddyList saveAll...
11 Dec 2018 | 21:21:08,926 | WARN  | SFS2X ShutdownHook | v2.core.SFSShutdownHook |     | SFS2X is shutting down. The process may take a few seconds...
11 Dec 2018 | 21:21:09,023 | INFO  | Thread-1 | entities.managers.SFSBannedUserManager |     | BanUser data saved.


As the server has Plesk so i try to change 8443 port of SFS2X/lib/jetty/start.d/http.ini (similar situation like this viewtopic.php?t=19638)
I have tried the above solution but still doesn't work too.Please help me. :(

Code: Select all

#
# Initialize module https
#
--module=https
## HTTPS Configuration
# HTTP port to listen on
jetty.https.port=8484

# HTTPS idle timeout in milliseconds
jetty.https.timeout=30000
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: window server 2016 + plesk can't work

Postby Lapo » 12 Dec 2018, 09:09

Hi,
what is exactly the problem? Did you check the logs for specific errors?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
kogidog
Posts: 6
Joined: 12 Dec 2018, 04:34

Re: window server 2016 + plesk can't work

Postby kogidog » 12 Dec 2018, 09:30

I have a similar situation as this one (viewtopic.php?t=18862 ) , and noticed that there is a crash of ports issues. For mine, I noticed Plesk has used ports 8443, so I have changed the port of https.ini , but problem still exists
kogidog
Posts: 6
Joined: 12 Dec 2018, 04:34

Re: window server 2016 + plesk can't work

Postby kogidog » 12 Dec 2018, 10:04

Sorry that I am not familiar with server setting, not sure if these cause the problem or not...
Once the Sfs2x-service started, after a few second it stop again

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

Re: window server 2016 + plesk can't work

Postby Lapo » 12 Dec 2018, 12:18

No problem.
Try a different approach:

1- make sure SFS2X is not running
2- open a windows command prompt (Windows Key + R, type "cmd", Enter)
3- move to your SFS2X installation folder
4- run sfs2x.bat

This way you will see the server logs on screen and you can tell us what errors do you see.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
kogidog
Posts: 6
Joined: 12 Dec 2018, 04:34

Re: window server 2016 + plesk can't work

Postby kogidog » 12 Dec 2018, 14:02

Thank you so much! I saw the log

Code: Select all

06:18:10,632 INFO  [SFSWorker:Sys:1] v2.SmartFoxServer     - SmartFoxServer 2X (2.13.4) READY!
06:18:14,903 INFO  [main] v3.SessionFilter     - BlueBox-2X Service (3.3.0) READY.
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:326)
        at com.smartfoxserver.v2.Main.main(Main.java:14)
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: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
06:18:20,466 INFO  [Thread-0] managers.SFSZoneManager     - BuddyList saveAll...
06:18:20,469 WARN  [SFS2X ShutdownHook] core.SFSShutdownHook     - SFS2X is shutting down. The process may take a few seconds...
06:18:20,488 INFO  [Thread-1] managers.SFSBannedUserManager     - BanUser data saved.


It seems that this is the problem caused by java already in use.
but my SFS2X isn't running.
Image
Image

Port 8443 has changed already

Code: Select all

#
# Initialize module https
#
--module=https
## HTTPS Configuration
# HTTP port to listen on
jetty.https.port=8484

# HTTPS idle timeout in milliseconds
jetty.https.timeout=30000

Code: Select all

#
# Initialize module http
#
--module=http
## HTTP Connector Configuration
jetty.http.port=8080
jetty.http.idleTimeout=30000
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: window server 2016 + plesk can't work

Postby Lapo » 12 Dec 2018, 16:33

It seems like your server is already running a web server (IIS probably) which is already using the ports that SFS2X is trying to bind as well.

The first thing I would suggest is to check via the plesk panel (or through a support request to your hosting company) which ports the webserver is using. If you have other services running, check those as well.

Once you know what ports are already in use you can configure the SFS2X to run on different ports and avoid conflict.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games
kogidog
Posts: 6
Joined: 12 Dec 2018, 04:34

Re: window server 2016 + plesk can't work

Postby kogidog » 13 Dec 2018, 12:58

Thank you for keep giving me suggestions for my case, I really appreciate it !
yes, this server has IIS, I have checked all the open ports (up to this stage), and changed to a different port. But I don't understand why the error "address already in use: bind" still exist even I have changed to a different port. Is it because of the setting of http.ini or anything wrong in http.ini ?

Thank you so much!

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

Re: window server 2016 + plesk can't work

Postby Lapo » 14 Dec 2018, 09:09

Hi,
what are the ports used in your server?
And what are the ports in the http.ini and https.ini that you're currently using?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
kogidog
Posts: 6
Joined: 12 Dec 2018, 04:34

Re: window server 2016 + plesk can't work

Postby kogidog » 16 Dec 2018, 10:57

Hi Lapo,
I tried to stop pleskcontrolpanel on the server, and the good news is SFS2X can work properly.
Image
But before I stopped the controlpanel, I have changed the ports of http.ini and https.ini as following (neither 8880 nor 8443)

http.ini

Code: Select all

#
# Initialize module http
#
--module=http
## HTTP Connector Configuration
jetty.http.port=1234
jetty.http.idleTimeout=30000


https.ini

Code: Select all

#
# Initialize module https
#
--module=https
## HTTPS Configuration
# HTTP port to listen on
jetty.https.port=8484

# HTTPS idle timeout in milliseconds
jetty.https.timeout=30000


I have no idea what actually happened, maybe because of the crash of the plesk and sfs2x settings, but at this stage, it seems like I get rid of the sfs2x problem. Thank you so much with your help!! God bless you !!
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: window server 2016 + plesk can't work

Postby Lapo » 17 Dec 2018, 09:29

Seems pretty weird. Maybe the plesk control panel runs on a specific port that collides with what SFS2X is trying to use.
In any case good to know you've solved it.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 61 guests