Moving To SmartFox2.12.3

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

Moderators: Lapo, Bax

User avatar
ekrem5353
Posts: 118
Joined: 10 Dec 2015, 15:50

Moving To SmartFox2.12.3

Postby ekrem5353 » 28 Mar 2017, 07:09

So I decided to move from SmartFox 2.11 to SmartFox 2.12.3 I set up new compy on the linux server. With new version some methods have changed.

I have changed game extensions to work with new versin of smartfox I tested on my local machine. But I couldnt test everything. I thought I stop older version and start new version and observe couple of hours if some big problem occurs I would stop SFS 2.12.3 and start 2.11 server again fix the problem at 2.12.3 and try again. But the problem is I copied licence code at sever.xml copied at new server.xm file I started the SFS 2.12.3 it said.


28 Mar 2017 | 09:40:47,589 | INFO | main | smartfoxserver.v2.SmartFoxServer | | Boot sequence starts...
28 Mar 2017 | 09:40:49,878 | INFO | main | v2.core.SFSEventManager | | AnonymousService-1 initialized
28 Mar 2017 | 09:40:49,891 | INFO | main | vfs.impl.DefaultFileReplicator | | Using "/tmp/vfs_cache" as temporary files store.
28 Mar 2017 | 09:40:50,001 | INFO | main | smartfoxserver.v2.SmartFoxServer | | Validating license... (this process may take a few seconds)
28 Mar 2017 | 09:40:50,493 | INFO | main | smartfoxserver.v2.SmartFoxServer | | Connection with the License Server established
28 Mar 2017 | 09:40:50,950 | WARN | main | smartfoxserver.v2.SmartFoxServer | | The license is already assigned to another SmartFoxServer instance and dynamic allocation is disabled
28 Mar 2017 | 09:40:50,950 | WARN | main | smartfoxserver.v2.SmartFoxServer | | Activating Community Edition mode
28 Mar 2017 | 09:40:50,958 | INFO | main | smartfoxserver.v2.SmartFoxServer | | License loaded:

==========================================
LICENSE DETAILS
------------------------------------------
Type : Community Edition
Max users : 100
==========================================

and


28 Mar 2017 | 09:40:55,415 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 24, Type: DEFAULT, Logged: No, IP: 77.78.25.212:48326 } on Server port: 9933 <---> 48326
28 Mar 2017 | 09:40:55,436 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 25, Type: DEFAULT, Logged: No, IP: 78.170.103.11:52823 } on Server port: 9933 <---> 52823
28 Mar 2017 | 09:40:55,446 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 26, Type: DEFAULT, Logged: No, IP: 46.197.23.165:53802 } on Server port: 9933 <---> 53802
28 Mar 2017 | 09:40:55,477 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session removed: { Id: 24, Type: DEFAULT, Logged: No, IP: 77.78.25.212:48326 }
28 Mar 2017 | 09:40:55,583 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 27, Type: DEFAULT, Logged: No, IP: 213.153.201.139:51001 } on Server port: 9933 <---> 51001
28 Mar 2017 | 09:40:55,583 | INFO | SocketReader | bitswarm.sessions.DefaultSessionManager | | Session created: { Id: 28, Type: DEFAULT, Logged: No, IP: 77.78.25.212:48327 } on Server port: 9933 <---> 48327
28 Mar 2017 | 09:40:55,710 | INFO | Thread-2 | entities.managers.SFSZoneManager | | BuddyList saveAll...
28 Mar 2017 | 09:40:55,710 | WARN | SFS2X ShutdownHook | v2.core.SFSShutdownHook | | SFS2X is shutting down. The process may take a few seconds...
28 Mar 2017 | 09:40:55,722 | INFO | Thread-3 | entities.managers.SFSBannedUserManager | | BanUser data saved.


What should I do ... :/ What is the best way to move to SmartFox 2.12.3

Thanks
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Moving To SmartFox2.12.3

Postby Bax » 28 Mar 2017, 07:43

To move the license to the new SFS2X instance you installed, you have to follow the instructions we provided together with the license. Shortly:
- go to the licenses administration website and login
- click on the license
- click the "Deallocate" button
Now you can start SFS2X again and it should be able to get its license.
Paolo Bax
The SmartFoxServer Team
User avatar
ekrem5353
Posts: 118
Joined: 10 Dec 2015, 15:50

Re: Moving To SmartFox2.12.3

Postby ekrem5353 » 29 Mar 2017, 07:18

Thanks it worked
and I have one more question. I need to have one more instance of Smartfox instance there for testing games before I put them on the licenced smartfox instance. I changed its ports I made socket port 9934 and websocket port 8889 webserver port 8081 When I start it it shuts down. I cant find the reason where should I check boot log says


| __| __| __| |_ | | |
|__ | __|__ | | _|- -|
|_____|__| |_____| |___|__|__|
_____ _____ _____ ____ __ __
| __ | __| _ | \| | |
| -| __| | | |_ _|
|__|__|_____|__|__|____/ |_|
[ 2.12.4 ]

29 Mar 2017 | 10:05:08,141 | INFO | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer | | SmartFoxServer 2X (2.12.4) READY!
29 Mar 2017 | 10:05:09,544 | INFO | main | bluebox.v3.SessionFilter | | BlueBox-2X Service (3.1.0) READY.
29 Mar 2017 | 10:05:09,764 | INFO | Thread-2 | entities.managers.SFSZoneManager | | BuddyList saveAll...
29 Mar 2017 | 10:05:09,764 | WARN | SFS2X ShutdownHook | v2.core.SFSShutdownHook | | SFS2X is shutting down. The process may take a few seconds...
29 Mar 2017 | 10:05:09,767 | INFO | Thread-3 | entities.managers.SFSBannedUserManager | | BanUser data saved.

What is ShutdownHoot thanks ...
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Moving To SmartFox2.12.3

Postby Lapo » 29 Mar 2017, 07:20

SFS2X 2.12 runs with both HTTP (8080) and HTTPS (8443) services out of the box.
I think the problem is that the 2nd instance is conflicting with the same HTTPS port of the first.

My suggestion is to turn off HTTPS entirely for both instances, unless you need it.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
ekrem5353
Posts: 118
Joined: 10 Dec 2015, 15:50

Re: Moving To SmartFox2.12.3

Postby ekrem5353 » 29 Mar 2017, 07:50

Yea I dont need https

I disabled (enable https switch) at licenced server and server.xml

<webServer>
<isActive>true</isActive>
<blueBoxPollingTimeout>26</blueBoxPollingTimeout>
<blueBoxMsgQueueSize>40</blueBoxMsgQueueSize>
<gHttpPort>8080</gHttpPort>
<gHttpsPort>8443</gHttpsPort>
</webServer>


and test instance is

<webServer>
<isActive>true</isActive>
<blueBoxPollingTimeout>26</blueBoxPollingTimeout>
<blueBoxMsgQueueSize>40</blueBoxMsgQueueSize>
<gHttpPort>8081</gHttpPort>
<gHttpsPort>8444</gHttpsPort>
</webServer>

Maybe When I restart the server it will work.(I ll do tomorrow morning because server is full now) Would it work if I put there <isSSL>false</isSSL> in the test instance s server.xml file

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

Re: Moving To SmartFox2.12.3

Postby Lapo » 29 Mar 2017, 08:14

Hi,
no sorry that won't work. The settings for the Jetty's port are located in the Jetty config.
Check this post for how to do it:
viewtopic.php?p=83486#p83486

thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
ekrem5353
Posts: 118
Joined: 10 Dec 2015, 15:50

Re: Moving To SmartFox2.12.3

Postby ekrem5353 » 29 Mar 2017, 08:21

Thanks its working now

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Thomasea and 56 guests