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

grookier
Posts: 26
Joined: 28 Sep 2016, 10:40

SmartFoxServer_1.6.6 / 1.6.18

Postby grookier » 28 Sep 2016, 10:51

Hello everyone, I am trying to use an old installation of smartfoxserver 1.6.6 / 1.618 unsuccessfully unfortunately.

I also tried to reinstall it, but I always have the same problem.

It seems to start but does not go forward. It freezes, but it seems there are no errors.

Someone can help me?

VPS with ubuntu 14

I try to get it started with ./sfs start or ./start.sh there is no difference, always the same.

Code: Select all

./sfs console
Running SmartFoxServer PRO...
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
jvm 1    | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1    |   Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.
jvm 1    |
jvm 1    | |::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
jvm 1    | |                                                            |
jvm 1    | |              ...:::  SmartFoxServer :::...                 |
jvm 1    | |                Multiplayer Socket Server                   |
jvm 1    | |                      version 1.6.18                        |
jvm 1    | |                           ---                              |
jvm 1    | |              (c) 2004 - 2015 gotoAndPlay()                 |
jvm 1    | |                  www.smartfoxserver.com                    |
jvm 1    | |                    www.gotoandplay.it                      |
jvm 1    | |                                                            |
jvm 1    | |::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
jvm 1    |



SmartFoxServer 2 works perfectly.
Other question, can i use SmartFoxServer 1.6.x and SmartFoxServer 2 on the same server at the same time? obviously changing the ports.
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 » 28 Sep 2016, 14:51

Hi,
it seems like the start up process is waiting for something. I tried installing a fresh copy (1.6.6.) + patch on a Ubuntu 14.04 and didn't find any issue, so it doesn't seem to be OS related.

I suggest a simple test:
- Start the server with ./start.sh
- When it gets stuck press CTRL + \
- This should output a thread dump to the terminal. Grab it and store it to a text file.

Then copy/paste it here.

Thanks
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 » 28 Sep 2016, 14:51

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, no problems.
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 » 28 Sep 2016, 15:18

Thanks for the answer.

Now i'm able to boot both servers, the problem is that smartfoxserver 1.6.x need about 15 minutes to boot.
After that screen that I sent you, I have to wait a long time.

My VPS or it could be a problem smartfoxservers problem?

To use both servers, I just change the port 8080, or even more?
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 » 28 Sep 2016, 16:42

I would still suggest to do the test I have mentioned as it could give us a bit more info on what might be happening.
I don't know if it is a VPS issue, maybe. SFS PRO requires little memory to startup, typically 32MB are enough, but even with that little memory it should boot up very quickly.

To use both servers, I just change the port 8080, or even more?

Yes, that's correct.

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 » 29 Sep 2016, 09:03

Ok, thanks again.
Unfortunately now I can not restart it for the test, because my boss is using it. I'll do it as soon as I can :)
grookier
Posts: 26
Joined: 28 Sep 2016, 10:40

Re: SmartFoxServer_1.6.6 / 1.6.18

Postby grookier » 20 Oct 2016, 12:37

Hello, I finally got to try what you asked me, after 20 days have crashated both servers, and now I'm trying again to start smartfoxserver1.6. *

CTRL + \
http://pastebin.com/mB19Qkcr

It seems to be up, right?

But when I try to connect, the page-loading is infinite

EDIT:
i've killed the process and started again.
New log: http://pastebin.com/FK5zPBFs

When i try to connect:
ERR_CONNECTION_REFUSED

EDIT 2:
Apparently my smartfoxserver crashed 2 days ago.
Can't understand why
http://pastebin.com/NTbj3hhb
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 Oct 2016, 13:58

Sorry, I am a little confused as to what the problem is.
In the first post you reported that the server was "freezing" in the middle of starting up.

Now you have sent a bunch of logs showing that the server is starting up fine but you have problems connecting?

So is the first issue solved?

But when I try to connect, the page-loading is infinite

What page?
A web page? Is it hosted on the SmartFox internal web server?

When i try to connect:
ERR_CONNECTION_REFUSED

Are you sure you can reach the server at all?

Try a simple telnet test from command line (either Windows command prompt or Linux terminal)

Code: Select all

telnet ipAddress port

replacing ipAddress and port with the real address of the server and TCP port (default 9339)

If you get any errors it's likely that you have a firewall blocking the communication.

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 » 21 Oct 2016, 08:49

You're right, I'm sorry, I was not very clear.

When I opened the thread, the server was not started, stay frozen.
After 15 minutes is started.

After 20 days have crashed both servers, smartfoxserver 1.6.* / 2.*

I tried to start smartfoxserver1.6. *, But it was frozen again.
Following your advice I pressed CTRL + \, and the result was this http://pastebin.com/mB19Qkcr. From log files the server looks up, but if I try to connect to my address **. ***. * **. ***: 8080, it wont work, the page loads is infinite.

So I killed the process in console, I tried to start it again, and the result is this http://pastebin.com/FK5zPBFs. This time, when I tried to reconnect to my ip:8080 -> "ERR_CONNECTION_REFUSED".

Failing to solve, I restarted my VPS, so I tried to start smartfoxserver and finally it worked.
At this point perhaps the problem is not smartfoxserver, but the VPS. I can not understand.


I found the log file in my VPS and it seems that after 20 days, the server crashed, because the JVM crashed, I do not know why.
http://pastebin.com/NTbj3hhb

I did try the telnet command, it can not seem to connect, but the firewall is disabled.
Probably because it is a shared VPS.
http://pastebin.com/nwcWhrDR

I hope I was clear enough, I'm sorry for all these logs
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 » 21 Oct 2016, 09:52

What you have posted via pastebin is not a thread dump, all I can see is the standard SmartFox logs.

Try starting SFS 1.6 using the ./start.sh
if the server doesn't boot up press CTRL + \ and you will see a lot of extra output that looks like this:

Code: Select all

Full thread dump OpenJDK 64-Bit Server VM (24.79-b02 mixed mode):

"pool-2-thread-1" prio=10 tid=0x00007f24a813c800 nid=0x7441 waiting on condition [0x00007f249b9f8000]
   java.lang.Thread.State: TIMED_WAITING (sleeping)
   at java.lang.Thread.sleep(Native Method)
   at it.gotoandplay.smartfoxserver.util.scheduling.Scheduler.run(Scheduler.java:224)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
   at java.lang.Thread.run(Thread.java:745)
...
...
...

That's the start of the thread dump, you can grab the whole block of text and post it here.

So I killed the process in console, I tried to start it again, and the result is this http://pastebin.com/FK5zPBFs. This time, when I tried to reconnect to my ip:8080 -> "ERR_CONNECTION_REFUSED".

Well, if you killed the process then connecting to your ip:8080 won't work... Am I missing something?

I found the log file in my VPS and it seems that after 20 days, the server crashed, because the JVM crashed, I do not know why.
http://pastebin.com/NTbj3hhb

Yes, it seems like a problem with the VPS. The server did not crash, but it was killed via a SIGKILL, which is the equivalent of forcefully shutting down a program.

Some VPS do this automatically with all applications that use too many resources, so maybe SFS was working a bit harder than usual and the system shut it down. You should ask your VPS provider if this can happen in their system and how you could avoid it. Probably you will need to assign a bit more resources to the machine...

Hope it helps
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 » 21 Oct 2016, 12:39

Trust me, http://pastebin.com/mB19Qkcr THIS is what i have in Terminal after i click CTRL + \ , nothing more, i have done a lot of try, but i'll do it again asap.

After i've killed the process, I STARTED IT AGAIN, the server apparently was up, but the respose on myIp:8080 was: ""ERR_CONNECTION_REFUSED"."

Yes, it seems like a problem with the VPS. The server did not crash, but it was killed via a SIGKILL, which is the equivalent of forcefully shutting down a program.

Some VPS do this automatically with all applications that use too many resources, so maybe SFS was working a bit harder than usual and the system shut it down. You should ask your VPS provider if this can happen in their system and how you could avoid it. Probably you will need to assign a bit more resources to the machine...


That helped me alot, didnt knew about it, 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 » 21 Oct 2016, 14:10

grookier wrote:Trust me, http://pastebin.com/mB19Qkcr THIS is what i have in Terminal after i click CTRL + \ , nothing more, i have done a lot of try, but i'll do it again asap.

I trust you :)
But I can also tell you that is not what you will see from a JVM thread dump ;) Something is not right, though I don't have enough details to tell you what it might be. If you follow my instructions you can't go wrong.

Basically what you posted is the server logs, while the CTRL + \ will generate a lot of extra output.

After i've killed the process, I STARTED IT AGAIN, the server apparently was up, but the respose on myIp:8080 was: ""ERR_CONNECTION_REFUSED"."

You said the server was "apparently up". I would like you to be entirely, positively sure that it is up by checking that the boot is complete and that no errors are present in the logs.

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 » 22 Nov 2016, 15:36

Hello,

SFS1 crashed again,

I'm trying to do CTRL + \ but nothing happen

Tomorrow i'll update my VPS to ubuntu server 16 (currently i'm using ubuntu server 15), and i'll try again.

I would ask to you if after upgrading ubuntu, my servers may experience more problems?

I have to change some important parameter?

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 » 23 Nov 2016, 09:51

No there's nothing specific that needs to be changed as far as we know.

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 » 23 Nov 2016, 14:00

Thank you, i've upgraded my VPS, and there is no problems atm.

Smartfoxserver pro 1.6.18 is still so slow to startup ( ~10minuts)

I click CTRL + \ but nothing happen.

http://pastebin.com/2BfbRUvP

After some minuts, my console show it:

http://pastebin.com/bbzVVHZ8

Finally i have time to test it.

Any idea?

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 39 guests