Server start up problem

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

Moderators: Lapo, Bax

nik0990
Posts: 76
Joined: 23 Dec 2016, 10:48
Location: India

Server start up problem

Postby nik0990 » 18 Jul 2017, 10:07

Hi,

I am getting error with starting server.


ubuntu@ip-172-31-7-246:~/SmartFoxServer_2X/SFS2X$ ./sfs2x.sh
log4j:ERROR Could not find value for key log4j.appender.DEBUG
log4j:ERROR Could not instantiate appender named "DEBUG".
log4j:ERROR Could not find value for key log4j.appender.DEBUG
log4j:ERROR Could not instantiate appender named "DEBUG".
log4j:ERROR Could not find value for key log4j.appender.DEBUG
log4j:ERROR Could not instantiate appender named "DEBUG".
10:07:23,798 INFO [main] v2.SmartFoxServer - Boot sequence starts...
10:07:24,140 ERROR [main] v2.SmartFoxServer - com.thoughtworks.xstream.converters.ConversionException:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: com.thoughtworks.xstream.converters.ConversionException
Message: webSocket : webSocket : webSocket : webSocket
---- Debugging information ----
message : webSocket : webSocket
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : webSocket : webSocket
class : com.smartfoxserver.v2.config.ServerSettings
required-type : com.smartfoxserver.v2.config.ServerSettings
path : /serverSettings/webSocket
line number : 57
-------------------------------
Description: Unexpected error during Server boot. The server cannot start.
Solution: Please email us the content of this error message, including the stack trace to support[at]smartfoxserver.com
+--- --- ---+
Stack Trace:
+--- --- ---+
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
com.smartfoxserver.v2.config.DefaultConfigLoader.loadServerSettings(DefaultConfigLoader.java:49)
com.smartfoxserver.v2.config.SFSConfigurator.loadConfiguration(SFSConfigurator.java:37)
com.smartfoxserver.v2.SmartFoxServer.start(SmartFoxServer.java:261)
com.smartfoxserver.v2.Main.main(Main.java:14)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::



At 57 line


<webSocket>
<isActive>true</isActive>
<bindAddress>ec2-13-126-65-70.ap-south-1.compute.amazonaws.com</bindAddress>
<tcpPort>8888</tcpPort>
<sslPort>8843</sslPort>
<validDomains/>
<isSSL>false</isSSL>
<keyStoreFile>config/keystore.jks</keyStoreFile>
<keyStorePassword>password</keyStorePassword>
</webSocket>
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server start up problem

Postby Lapo » 18 Jul 2017, 10:20

Hi,
a word of advice: don't edit config files manually. It's the one major source of these errors. :)

In any case this:

Code: Select all

<bindAddress>ec2-13-126-65-70.ap-south-1.compute.amazonaws.com</bindAddress>

is wrong. You can't bind a url, only a physical address.

Use this instead:

Code: Select all

<bindAddress>0.0.0.0</bindAddress>

which means "bind anything available", and which is also the default in SFS2X.

By the way, what version are you using?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
nik0990
Posts: 76
Joined: 23 Dec 2016, 10:48
Location: India

Re: Server start up problem

Postby nik0990 » 18 Jul 2017, 10:32

Ok, I will remember.

My SFS 2x version is SFS2X_unix_2_13_0.tar
nik0990
Posts: 76
Joined: 23 Dec 2016, 10:48
Location: India

Re: Server start up problem

Postby nik0990 » 18 Jul 2017, 10:42

It is showing issue while connecting to Amazon AWS.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server start up problem

Postby Lapo » 18 Jul 2017, 11:10

nik0990 wrote:It is showing issue while connecting to Amazon AWS.

Sorry what issue. Can you provide the details?
Lapo

--

gotoAndPlay()

...addicted to flash games
nik0990
Posts: 76
Joined: 23 Dec 2016, 10:48
Location: India

Re: Server start up problem

Postby nik0990 » 19 Jul 2017, 06:52

After adding <websocket> tag in server.xml showing same exception./

<webSocket>
<isActive>true</isActive>
<bindAddress>0.0.0.0</bindAddress>
<tcpPort>8888</tcpPort>
<sslPort>8843</sslPort>
<isSSL>false</isSSL>
<keyStoreFile>config/keystore.jks</keyStoreFile>
<keyStorePassword>password</keyStorePassword>
</webSocket>

I think port is not open.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Server start up problem

Postby Lapo » 19 Jul 2017, 07:44

If you're still getting the same error as above, you have malformed XML in your config.
Judging from the first warnings in the logs it also looks like there are other problems.

My suggestion is to download the SmartFoxServer 2.13 installer from here:
http://smartfoxserver.com/download/sfs2x#p=installer
and install the server to a new folder.

Once this is done do not edit the config files manually, instead open the AdminTool and change the settings from there.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 47 guests