Cannot restart server from admin console (2.9 on MacOS X)

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

Moderators: Lapo, Bax

KarymovDN
Posts: 12
Joined: 29 Jun 2014, 14:10

Cannot restart server from admin console (2.9 on MacOS X)

Postby KarymovDN » 10 Jul 2014, 15:09

Hello

I had the same problem back in 2.8.5, but found in Google that some file is missing (sfs2x.sh as far as I remember). The issue was fixed.

Now I have upgraded to 2.9 and cannot restart it from admin console again :-( I seem to have the file needed, and it works when launched from terminal. Any ideas?

End of the log:

20:00:12,024 WARN [SFSWorker:Ext:1] v2.SmartFoxServer - *** SERVER RESTARTING ***
20:00:12,025 WARN [Scheduler1-thread-1] bootLogger - Scheduler: scheduler interrupted.
20:00:12,025 WARN [SocketWriter-3] core.SocketWriter - SocketWriter thread interrupted: Thread[SocketWriter-3,5,main]
20:00:12,025 WARN [SocketWriter-1] core.SocketWriter - SocketWriter thread interrupted: Thread[SocketWriter-1,5,main]
20:00:12,025 WARN [SocketWriter-2] core.SocketWriter - SocketWriter thread interrupted: Thread[SocketWriter-2,5,main]
20:00:12,025 WARN [SocketReader] core.SocketReader - Problems in SocketReader main loop: java.lang.InterruptedException: sleep interrupted, Thread: Thread[SocketReader,5,main]
20:00:12,026 WARN [SocketReader] core.SocketReader - java.lang.InterruptedException: sleep interrupted
java.lang.Thread.sleep(Native Method)
com.smartfoxserver.bitswarm.core.SocketReader.run(SocketReader.java:173)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
java.lang.Thread.run(Thread.java:722)

20:00:15,028 INFO [SFSWorker:Ext:1] sessions.DefaultSessionManager - Session removed: { Id: 2, Type: DEFAULT, Logged: Yes, IP: 127.0.0.1:62952 }
20:00:15,535 INFO [:::SFSRestarter:::] util.SFSRestart - Process restarted: java.lang.UNIXProcess@7f139082
20:00:19,537 WARN [SFS2X ShutdownHook] core.SFSShutdownHook - SFS2X is shutting down. The process may take a few seconds...
20:00:19,537 INFO [Thread-0] managers.SFSZoneManager - BuddyList saveAll...
20:00:19,543 INFO [Thread-1] managers.SFSBannedUserManager - BanUser data saved.
User avatar
Lapo
Site Admin
Posts: 21012
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Cannot restart server from admin console (2.9 on MacOS X

Postby Lapo » 10 Jul 2014, 16:03

From the logs there aren't signs that the process didn't restart. It actually says that it did restart:

Code: Select all

20:00:15,535 INFO [:::SFSRestarter:::] util.SFSRestart - Process restarted: java.lang.UNIXProcess@7f139082

..but I don't know if maybe there are some other errors, maybe at startup? Did you check?

If you run the the server via sfs2x-service you shouldn't have any problems with remote restarts.
Lapo
--
gotoAndPlay()
...addicted to flash games
KarymovDN
Posts: 12
Joined: 29 Jun 2014, 14:10

Re: Cannot restart server from admin console (2.9 on MacOS X

Postby KarymovDN » 14 Jul 2014, 14:23

I don't run it as a server, it runs as application for development needs.

I did have problems with the logger, which were caused by newer versions of slf4j-log4j12.jar and slf4j-api-1.5.10.jar copied by installer into libs folder with different names, without removing previous ones. It caused logs to be absent in a while, but I have solved it by removing old jars.

Now there are no errors in start-up log, but I still cannot restart server from admin tool :-(
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Cannot restart server from admin console (2.9 on MacOS X

Postby rjgtav » 14 Jul 2014, 14:32

Hello,

Can you post the logs you're getting now after you've removed the old jars?

Thanks
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
User avatar
Lapo
Site Admin
Posts: 21012
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Cannot restart server from admin console (2.9 on MacOS X

Postby Lapo » 14 Jul 2014, 15:52

KarymovDN wrote:I did have problems with the logger, which were caused by newer versions of slf4j-log4j12.jar and slf4j-api-1.5.10.jar copied by installer into libs folder with different names, without removing previous ones. It caused logs to be absent in a while, but I have solved it by removing old jars.


It sounds like you chose to update the installation instead of installing the product in a new location.
If that's the case please make sure you make a new installation. SFS2X 2.9 is not a patch.
Lapo

--

gotoAndPlay()

...addicted to flash games
KarymovDN
Posts: 12
Joined: 29 Jun 2014, 14:10

Re: Cannot restart server from admin console (2.9 on MacOS X

Postby KarymovDN » 22 Jul 2014, 05:43

Hi Lapo

I did a separate installation (also standalone, not a server). It did live through 1 restart needed to change admin password, but no luck since then. I did not change any settings or add any libraries/extensions. :-(

Regards
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Cannot restart server from admin console (2.9 on MacOS X

Postby rjgtav » 22 Jul 2014, 10:15

Hello,

Can you post the logs of the server?
You can find them under SFS2X/logs. The most recent one is called smartfox.log
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
KarymovDN
Posts: 12
Joined: 29 Jun 2014, 14:10

Re: Cannot restart server from admin console (2.9 on MacOS X

Postby KarymovDN » 23 Jul 2014, 03:33

Hello

Yes, sure. Here are the logs of out-of-the box installation. I attached it as a zip-file, because it does not allow even admin tool extension logs.

It looks like after restarting it cannot bind admin tool to 8080 anymore, so it just shuts down immediately :-(
Attachments
smartfox.log.zip
(3.57 KiB) Downloaded 91 times

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Google [Bot] and 18 guests