"TERM trapped. Shutting down" server stops unexpe

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

Moderators: Lapo, Bax

Post Reply
johnsquires
Posts: 5
Joined: 08 Jul 2008, 20:11

"TERM trapped. Shutting down" server stops unexpe

Post by johnsquires »

Hi guys
I have got SFS Basic working well, with a flash application I wrote. It is excellent!
But, every so often, the server shuts down for no reason. I get this error:

INFO | jvm 1 | 2008/07/19 09:27:49 | 09:27:49.053 - [ INFO ] > Server is up and running!
STATUS | wrapper | 2008/07/19 09:47:25 | TERM trapped. Shutting down.

or here is another example:
INFO | jvm 1 | 2008/07/18 00:01:04 | 00:01:04.254 - [ INFO ] > Server is up and running!
INFO | jvm 1 | 2008/07/18 00:20:23 | 00:20:23.913 - [ WARNING ] > SysHandler -> Bad room id. Action: asObj >> java$
STATUS | wrapper | 2008/07/18 00:30:33 | TERM trapped. Shutting down.

So, the server runs for 20 or 30 mins then dies.

I am not a Linux expert, so can you help me to diagnose the problem?

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

Post by Lapo »

Try starting the server with the start.sh script instead of sfs. This will start the JVM alone without the native third-party wrapper.
If you need to restart/stop the server you can use the provided admin tool

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
nurdogan
Posts: 17
Joined: 18 Oct 2006, 13:03

Post by nurdogan »

Lapo wrote:Try starting the server with the start.sh script instead of sfs. This will start the JVM alone without the native third-party wrapper.
If you need to restart/stop the server you can use the provided admin tool

Hope it helps
Today i also had this Error Message "Error Trapped".

INFO | jvm 1 | 2008/12/12 11:28:41 | INFO: Disconneting idle user: xxx
INFO | jvm 1 | 2008/12/12 11:31:21 | 11:31:21.893 - [ INFO ] > Disconneting idle user: xxxx
INFO | jvm 1 | 2008/12/12 11:31:21 | Dec 12, 2008 11:31:21 AM it.gotoandplay.smartfoxserver.lib.ConnectionCleanerTask run
INFO | jvm 1 | 2008/12/12 11:31:21 | INFO: Disconneting idle user: xxx
STATUS | wrapper | 2008/12/12 11:34:37 | TERM trapped. Shutting down.


Is there a known Problem with Tanuki?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

We know that Tanuki and Linux CentOS tend to fight each other, although the reason is unknown.
What version of SFS are you using?
Judging from the last message fired by the Wrapper it would be also possible that the application has received a SIG_TERM from an admin? ( a kill, in other words ) Possible?
Lapo
--
gotoAndPlay()
...addicted to flash games
kmk
Posts: 4
Joined: 08 May 2008, 08:36

Post by kmk »

Lapo wrote: Judging from the last message fired by the Wrapper it would be also possible that the application has received a SIG_TERM from an admin? ( a kill, in other words ) Possible?
It should be possible to ignore SIG_TERM and -INT.

Please read here how to do that:
http://wrapper.tanukisoftware.org/doc/e ... gnals.html
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Thanks for pointing to that page. I found this interesting:
On UNIX systems, some backup programs that run as cron jobs will send out system wide TERM signals that can cause the Wrapper to shutdown. These signals can be ignored by setting this property to true.
... could be the culprit.

As suggested you should be able to add this line:

Code: Select all

wrapper.ignore_signals=true
in your Server/conf/wrapper.conf file to ignore those signals.

Let me know if it works
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply