Page 1 of 1

SmartFox Restarting Itself

Posted: 30 Jun 2022, 14:19
by yqtang
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!

Re: SmartFox Restarting Itself

Posted: 30 Jun 2022, 14:26
by Lapo
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

Re: SmartFox Restarting Itself

Posted: 06 Jul 2022, 20:25
by yqtang
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!

Re: SmartFox Restarting Itself

Posted: 07 Jul 2022, 08:01
by Lapo
Thanks, I am glad it was sorted out.

Cheers