SmartFoxServer_1.6.6 / 1.6.18

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

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

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby Lapo » 23 Nov 2016, 14:48

Can you give me the details of this last VPS you're using?
OS? CPU/RAM amounts?
Java version? Do you use the embedded JVM or a custom one?

Thanks

p.s.=
Other question, can i use SmartFoxServer 1.6.x and SmartFoxServer 2 on the same server at the same time? obviously changing the ports.

Yes sure, no problem.
Lapo
--
gotoAndPlay()
...addicted to flash games
grookier
Posts: 26
Joined: 28 Sep 2016, 10:40

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby grookier » 23 Nov 2016, 16:22

$lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial



$lshw
http://pastebin.com/AauWRUjE

$cat /proc/cpuinfo
http://pastebin.com/4y5k83H2

$dmidecode --type memory
http://pastebin.com/3munQ7wq

$java -version

Code: Select all

openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2ubuntu0.16.04.2-b14)
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)


I think to use embedded JVM..I never changed anything.

Do you need more? :)

p.s.
I already use both sfs servers, You had already answered me.
sfs2 works pretty good, its fast and never crash.

I just noticed that you're Italian, can we speak Italian here? I'm also Italian
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby Lapo » 23 Nov 2016, 17:12

Hi,
thanks, that's more than I needed :)
I will check on Ubuntu 16 and see if I reproduce the issue.

p.s.=
Yep we're in Italy but in the forum is best to use English so everyone can participate :wink:

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby Lapo » 24 Nov 2016, 14:32

I have tested under Ubuntu 16.04 LTS. Even with SFS PRO 1.6.6. I do get the same issue you have described.
The server seems stuck at the beginning of the boot phase.

Inspecting the threads shows that the cause is Jetty (the internal HTTP server) which is blocking the main thread for no apparent reason. If you turn it off the server will boot up without problems.

I have no idea what is wrong with Jetty, I suspect there's some specific issue in Ubuntu 16 though I can't imagine what it might be. Additionally it's not easy to find more about the issue because that's a very old version of Jetty. (6.x)

My suggestion is to turn off Jetty from the config via this:

Code: Select all

                <WebServer active="false">
                        <CfgFile>webserver/cfg/jetty.xml</CfgFile>
                </WebServer>


Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
grookier
Posts: 26
Joined: 28 Sep 2016, 10:40

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby grookier » 24 Nov 2016, 20:42

It worked, the server has quickly initiated.
But exactly what I've disabled?
The first thing I noticed is that if I try to connect to myIpAddress:8081, I can not connect, and I think it's normal disabling the webserver

There is an alternative way to check if the server is working without using my apps?

From my office i use the admin section for statistics etc, I also turned off that?

If it were to compromise the operation of something, would be better to reactivate it
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby Lapo » 25 Nov 2016, 08:05

The server runs on port 9339 by default. That is the port your application will connect to.
The web server (Jetty) is turned on by default but it's not mandatory and you can keep it turned off without side effects.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
grookier
Posts: 26
Joined: 28 Sep 2016, 10:40

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby grookier » 19 Dec 2016, 17:19

Hi, I have a new problem.
After a reboot, I can not boot sfs1 again

I did not make any changes, just some of ubuntu update with apt-update / upgrade / dist-upgrade

Finding the following error

Code: Select all

DB Manager Activated ( com.mysql.jdbc.Driver )
18:20:40.905 - [ SEVERE ] > DbManager could not retrive a connection. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
it.gotoandplay.smartfoxserver.exceptions.DbManagerException: The Test SQL statement failed! Please check your configuration.
   at it.gotoandplay.smartfoxserver.SmartFoxServer.setupZone(SmartFoxServer.java:1931)
   at it.gotoandplay.smartfoxserver.lib.ConfigReader.parse_Zones(ConfigReader.java:806)
   at it.gotoandplay.smartfoxserver.lib.ConfigReader.readZoneConfig(ConfigReader.java:174)
   at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFoxServer.java:346)
   at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:621)
Problems in config file: The Test SQL statement failed! Please check your configuration.
it.gotoandplay.smartfoxserver.exceptions.ConfigurationException: The Test SQL statement failed! Please check your configuration.
   at it.gotoandplay.smartfoxserver.lib.ConfigReader.readZoneConfig(ConfigReader.java:199)
   at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFoxServer.java:346)
   at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:621)

Errors found in configuration files.
Unable to start the server.


Shutting down server...
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby Lapo » 19 Dec 2016, 18:00

Hi,
I would double check that the database is up and running because SFS did not get any replies from it.

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
grookier
Posts: 26
Joined: 28 Sep 2016, 10:40

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby grookier » 19 Dec 2016, 20:18

Db is up and running

Can't figure out what's wrong

Code: Select all

|::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
|                                                            |
|              ...:::  SmartFoxServer :::...                 |
|                Multiplayer Socket Server                   |
|                      version 1.6.18                        |
|                           ---                              |
|              (c) 2004 - 2015 gotoAndPlay()                 |
|                  www.smartfoxserver.com                    |
|                    www.gotoandplay.it                      |
|                                                            |
|::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|

21:18:33.575 - [ INFO ] > Starting h2 engine...
21:18:34.310 - [ FINE ] > Connection --> it.gotoandplay.smartfoxserver.db.DbManager@20965c2a


--- [ System Info ] ------------------------------------------

System CPU(s): 1
VM Max memory: 496 MB

os.name: Linux
os.arch: amd64
os.version: 4.4.0-53-generic
java.version: 1.8.0_111
java.vendor: Oracle Corporation
java.vendor.url: http://java.oracle.com/
java.vm.specification.version: 1.8
java.vm.version: 25.111-b14
java.vm.vendor: Oracle Corporation
java.vm.name: OpenJDK 64-Bit Server VM


--- [ Network Cards ] -----------------------------------------

Card:lxcbr0
 -> fe80:0:0:0:ccb1:57ff:fe8f:6a60%lxcbr0
 -> 10.0.3.1
Card:eth0
 -> fe80:0:0:0:f816:3eff:fe0c:40a0%eth0
 -> *****************
Card:lo
 -> 0:0:0:0:0:0:0:1%lo
 -> 127.0.0.1


--- [ Licence Loaded ] ------------------------------------

License Type    -> PRO
License Owner    -> --== Free Demo Licence ==--
Max. Clients    -> 20
BlueBox Type    -> Demo Version

--- [ Zones & Rooms ] -------------------------------------

   DB Manager Activated ( com.mysql.jdbc.Driver )
21:20:42.574 - [ SEVERE ] > DbManager could not retrive a connection. com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
it.gotoandplay.smartfoxserver.exceptions.DbManagerException: The Test SQL statement failed! Please check your configuration.
   at it.gotoandplay.smartfoxserver.SmartFoxServer.setupZone(SmartFoxServer.java:1931)
   at it.gotoandplay.smartfoxserver.lib.ConfigReader.parse_Zones(ConfigReader.java:806)
   at it.gotoandplay.smartfoxserver.lib.ConfigReader.readZoneConfig(ConfigReader.java:174)
   at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFoxServer.java:346)
   at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:621)
Problems in config file: The Test SQL statement failed! Please check your configuration.
it.gotoandplay.smartfoxserver.exceptions.ConfigurationException: The Test SQL statement failed! Please check your configuration.
   at it.gotoandplay.smartfoxserver.lib.ConfigReader.readZoneConfig(ConfigReader.java:199)
   at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFoxServer.java:346)
   at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:621)

Errors found in configuration files.
Unable to start the server.


Shutting down server...




EDIT:
I think you're right, disabling the database, sfs1 works.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby Lapo » 20 Dec 2016, 08:36

Sure, the problem is the database, no doubt about that.
I fear that your recent update has reset some params of MySQL's configuration, causing the problem you're seeing. Unfortunately it's not easy to guess what it might be.

Does the DB run on the same machine with SFS?
Here's a bit of info on this specific issue that you might want to look into:
http://stackoverflow.com/questions/6865 ... -and-mysql

thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
grookier
Posts: 26
Joined: 28 Sep 2016, 10:40

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby grookier » 20 Dec 2016, 14:30

I saw that the update of ubuntu to version 16, changes the name of some important files such as my.cnf

However, the database is not on the same machine SFS, so it should not be a problem of my machine

Now I try to do some research, checking the link you shared
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby Lapo » 20 Dec 2016, 15:24

So you only updated the machine running SFS but not the one running MySQL?
Also, are you sure the machine running SFS can reach the MySQL server? I'd recommend trying a telnet test on the SFS server. From terminal type this:

Code: Select all

telnet <mysql-serv-ip> 3306

3306 is the default port for MySQL unless you're using a different value, in which case you should use whatever port you have chosen

If there's no error you can reach the machine and we can exclude connection issues.

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
grookier
Posts: 26
Joined: 28 Sep 2016, 10:40

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby grookier » 12 Nov 2018, 11:09

Hi
I write in this my old post because I find again the same problem.

I have a new VPS, these are the specifications:
Ubuntu 18.04
4 vCore
2.4 GHz
24 GB of RAM
100 GB

I installed smartfoxserver 1.6.20 cleanly with the latest patch.

SmartFoxServer to start it takes about 20 minutes.

If i disable Jetty in this way, it starts in about 10 seconds:

Code: Select all

<WebServer active = "false">
<CfgFile> webserver / cfg / jetty.xml </ CfgFile>
</ WebServer>


Using ./sfs console does not match any errors.

What could be the problem? Thank you
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby Lapo » 12 Nov 2018, 14:27

Hi,
I think it's a problem with the embedded database. It used to slow down the boot process on certain operating systems.
If you don't need it you can turn it off from configuration.

In any case, unless you're using SFS PRO for some specific reason, I would recommend using SmartFoxServer 2X instead.
SFS PRO is our oldest product and it has been "retired", meaning that apart from security patches we don't develop it any more.

Best regards
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 35 guests