SmartFox Restarting Itself

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

Moderators: Lapo, Bax

yqtang
Posts: 10
Joined: 03 May 2022, 19:14

SmartFox Restarting Itself

Postby yqtang » 30 Jun 2022, 14:19

Hello,
I've been using SmartFox2.18 and it's running well. The only thing is it keeps trying to restart itself everyday around 12am UTC. It happens everyday. Earlier the restart would finish and the server would continue running, but lately it just shut down and never restart. It would take a manual start to make the server run again. How can I stop this automatic restart at 12am UTC everyday? The following is a typical log of the end of the previous day and the start of a new day and :

The end of June 28:
28 Jun 2022 | 23:55:32,523 | INFO | pool-1-thread-3 | util.stats.CCULoggerTask | | CCU stats: { Zone: --=={{{ AdminZone }}}==-- }, CCU: 0/0
28 Jun 2022 | 23:55:32,523 | INFO | pool-1-thread-3 | util.stats.CCULoggerTask | | CCU stats: { Zone: --=={{{ AdminZone }}}==-- }, CCU: 0/0
28 Jun 2022 | 23:55:32,523 | INFO | pool-1-thread-3 | util.stats.CCULoggerTask | | CCU stats: { Zone: ZoneName}, CCU: 0/0
28 Jun 2022 | 23:55:32,523 | INFO | pool-1-thread-3 | util.stats.CCULoggerTask | | CCU stats: { Zone: ZoneName}, CCU: 0/0
28 Jun 2022 | 23:55:32,523 | INFO | pool-1-thread-3 | util.stats.CCULoggerTask | | CCU stats: CCU: 0/0
28 Jun 2022 | 23:55:32,523 | INFO | pool-1-thread-3 | util.stats.CCULoggerTask | | CCU stats: CCU: 0/0

The start of June 29:
29 Jun 2022 | 00:00:05,551 | WARN | SFS2X ShutdownHook | v2.core.SFSShutdownHook | | SFS2X is shutting down. The process may take a few seconds...
29 Jun 2022 | 00:00:05,551 | WARN | SFS2X ShutdownHook | v2.core.SFSShutdownHook | | SFS2X is shutting down. The process may take a few seconds...
29 Jun 2022 | 00:00:05,550 | INFO | Thread-3 | entities.managers.SFSZoneManager | | BuddyList saveAll...
29 Jun 2022 | 00:00:05,550 | INFO | Thread-3 | entities.managers.SFSZoneManager | | BuddyList saveAll...
29 Jun 2022 | 00:00:05,554 | INFO | Thread-4 | entities.managers.SFSBannedUserManager | | BanUser data saved.
29 Jun 2022 | 00:00:05,554 | INFO | Thread-4 | entities.managers.SFSBannedUserManager | | BanUser data saved.

Also as you can notice, all these server logs are doubled for some reason. Could someone offer some help on this issue? Thanks!
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFox Restarting Itself

Postby Lapo » 30 Jun 2022, 14:26

Hi,
there is no mechanism in SFS2X that triggers a restart so you need to find the cause of this behavior outside of SFS2X itself.
A possible reason is that you have some task in your OS that is attempting to restart some services, for reasons I can't imagine.

I would check for cron jobs if it's a Linux OS and also investigate the system's logs to understand what is happening.

Let us know
Lapo
--
gotoAndPlay()
...addicted to flash games
yqtang
Posts: 10
Joined: 03 May 2022, 19:14

Re: SmartFox Restarting Itself

Postby yqtang » 06 Jul 2022, 20:25

Hi Lapo,

It turns out to be a crontab process that runs daily and that script didn't properly restart the server. Thank you again!
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: SmartFox Restarting Itself

Postby Lapo » 07 Jul 2022, 08:01

Thanks, I am glad it was sorted out.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 53 guests