Hello,
this is my first post, so first of all I want to say that you are doing a great job with the smartfox server! Thank you!
I deployed a small game to jelastic and it works like a charm.
When I now switch to SSL I cant connect to the server anymore.
What I get:
- conecting to gameserver env-xxxxxxx.fr-1.paas.massivegrid.net:8443
- SFS2X_API_JS.js:10 WebSocket connection to 'wss://env-xxxxxxx.fr-1.paas.massivegrid.net:8443/BlueBox/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400
- static files from www over https are delivered as expected
What I did:
- Activated SSL certificate over jelastic environment topology
- Allowed 8443 in firewall settings
- Activated HTTPS and WSS and made sure port is set to 8443 in the Smartfox Admin Tool
- Client sends useSSL:true and port: 8443
Did I forget something?
Thanks in advance
Jelastic and WSS (SSL)
Re: Jelastic and WSS (SSL)
Hi,
have you tested the SSL certificate?
If you open https://env-xxxxxxx.fr-1.paas.massivegrid.net:8443 in a browser, do you seen the green lock?
Also have you checked the server side logs for errors at the time of the WSS connection error?
Thanks.
p.s. = please specify which SFS2X version and API version are you using.
have you tested the SSL certificate?
If you open https://env-xxxxxxx.fr-1.paas.massivegrid.net:8443 in a browser, do you seen the green lock?
Also have you checked the server side logs for errors at the time of the WSS connection error?
Thanks.
p.s. = please specify which SFS2X version and API version are you using.
Re: Jelastic and WSS (SSL)
Hi,
yes, I do see the green lock next to the url.
SFS Version: 2.13.5
API Version: v1.7.5
Http Log contains all the static file requests, which are fine.
Boot Log:
Smartfox Log:
No Log outputs when trying to connect over WSS. WS still isnt a problem.
Does this help?
Thanks
yes, I do see the green lock next to the url.
SFS Version: 2.13.5
API Version: v1.7.5
Http Log contains all the static file requests, which are fine.
Boot Log:
Code: Select all
25 Mar 2019 | 10:34:23,579 | INFO | main | bootLogger | | SmartFoxServer 2X
25 Mar 2019 | 10:34:23,586 | INFO | main | bootLogger | | BitSwarmEngine version: 3.52.0 { main }
25 Mar 2019 | 10:34:23,587 | INFO | main | bootLogger | | System Info:
Processor(s): 2
VM Max. memory: 747MB
os.name: Linux
os.arch: amd64
os.version: 3.10.0-862.11.6.vz7.64.7
java.version: 1.8.0_102
java.vendor: Oracle Corporation
java.vendor.url: http://java.oracle.com/
java.vm.specification.version: 1.8
java.vm.version: 25.102-b14
java.vm.vendor: Oracle Corporation
java.vm.name: Java HotSpot(TM) 64-Bit Server VM
java.io.tmpdir: /tmp
Default charset: UTF-8
25 Mar 2019 | 10:34:23,592 | INFO | main | bootLogger | | Network Info:
Card: venet0
->192.168.50.253
->127.0.0.1
Card: lo
->0:0:0:0:0:0:0:1%lo
->127.0.0.1
25 Mar 2019 | 10:34:23,602 | INFO | main | bootLogger | | Session manager ready: com.smartfoxserver.bitswarm.sessions.DefaultSessionManager@7c137fd5
25 Mar 2019 | 10:34:23,643 | INFO | main | bootLogger | | TCP Selector opened
25 Mar 2019 | 10:34:23,660 | INFO | main | bootLogger | | UDP Selector opened
25 Mar 2019 | 10:34:23,667 | INFO | main | bootLogger | | AcceptSelector opened
25 Mar 2019 | 10:34:23,699 | INFO | main | bootLogger | | Added bound tcp socket --> 0.0.0.0:9933
25 Mar 2019 | 10:34:23,716 | INFO | main | bootLogger | | Added bound udp socket --> 0.0.0.0:9933
25 Mar 2019 | 10:34:23,717 | INFO | main | bootLogger | | Added bound udp socket --> 192.168.50.253:11118
25 Mar 2019 | 10:34:23,719 | INFO | main | bootLogger | | Added bound tcp socket --> 192.168.50.253:11118
25 Mar 2019 | 10:34:23,721 | INFO | main | bootLogger | | Controller started: com.smartfoxserver.v2.controllers.v290.SystemReqController
25 Mar 2019 | 10:34:23,722 | INFO | main | bootLogger | | Controller started: com.smartfoxserver.v2.controllers.v290.ExtensionReqController
25 Mar 2019 | 10:34:23,722 | INFO | main | bootLogger | | Controller started: com.smartfoxserver.v2.controllers.v290.SmasherReqController
25 Mar 2019 | 10:34:23,723 | INFO | Scheduler1-thread-1 | bootLogger | | Scheduler started: scheduler
25 Mar 2019 | 10:34:23,726 | INFO | main | bootLogger | | Socket Writer started (pool size:3)
25 Mar 2019 | 10:34:23,728 | INFO | main | bootLogger | | Security Manager started
25 Mar 2019 | 10:34:23,732 | INFO | main | bootLogger | | DatagramReader started
25 Mar 2019 | 10:34:23,733 | INFO | main | bootLogger | | IOHandler: com.smartfoxserver.v2.protocol.SFSIoHandler@1c742ed4
25 Mar 2019 | 10:34:23,733 | INFO | main | bootLogger | | SocketReader started
25 Mar 2019 | 10:34:23,734 | INFO | main | bootLogger | | SocketAcceptor initialized
25 Mar 2019 | 10:34:23,734 | INFO | main | bootLogger | | [[[ ===--- Boot sequence complete ---=== ]]]
Smartfox Log:
Code: Select all
25 Mar 2019 | 09:10:39,692 | INFO | main | smartfoxserver.v2.SmartFoxServer | | Boot sequence starts...
25 Mar 2019 | 09:10:41,539 | INFO | main | v2.core.SFSEventManager | | AnonymousService-1 initialized
25 Mar 2019 | 09:10:41,659 | INFO | main | vfs.impl.DefaultFileReplicator | | Using "/tmp/vfs_cache" as temporary files store.
25 Mar 2019 | 09:10:41,980 | INFO | main | smartfoxserver.v2.SmartFoxServer | | License loaded:
==========================================
LICENSE DETAILS
------------------------------------------
Type : Community Edition
Max users : 100
==========================================
25 Mar 2019 | 09:10:41,984 | INFO | main | entities.managers.SFSBannedUserStorage | | BanUserStorage initialized
25 Mar 2019 | 09:10:42,027 | INFO | main | entities.managers.SFSBannedUserManager | | BanUser data loaded: 0 records.
25 Mar 2019 | 09:10:42,040 | INFO | main | smartfoxserver.v2.SmartFoxServer | | Protocol Type is: BINARY
25 Mar 2019 | 09:10:42,050 | INFO | main | v2.config.DefaultConfigLoader | | Loading: zones/pewpew.zone.xml
25 Mar 2019 | 09:10:42,148 | INFO | main | entities.managers.SFSZoneManager | |
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
>> Zone: pewpew
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
25 Mar 2019 | 09:10:42,271 | INFO | main | entities.managers.SFSRoomManager | | Room created: { Zone: --=={{{ AdminZone }}}==-- }, [ Room: AdminRoom, Id: 0, Group: default, isGame: false ], type = SFSRoom
25 Mar 2019 | 09:10:42,412 | INFO | main | v2.core.AdminToolService | | AdminTool Service started
25 Mar 2019 | 09:10:42,576 | INFO | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer | | Listening Sockets: { 0.0.0.0:9933, (Tcp) } { 0.0.0.0:9933, (Udp) } { 192.168.50.253:11118, (Udp) } { 192.168.50.253:11118, (Tcp) }
25 Mar 2019 | 09:10:42,584 | INFO | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer | |
_____ _____ _____ ___ __ __
| __| __| __| |_ | | |
|__ | __|__ | | _|- -|
|_____|__| |_____| |___|__|__|
_____ _____ _____ ____ __ __
| __ | __| _ | \| | |
| -| __| | | |_ _|
|__|__|_____|__|__|____/ |_|
[ 2.13.5 ]
25 Mar 2019 | 09:10:42,584 | INFO | SFSWorker:Sys:1 | smartfoxserver.v2.SmartFoxServer | | SmartFoxServer 2X (2.13.5) READY!
25 Mar 2019 | 09:10:47,146 | INFO | main | bluebox.v3.SessionFilter | | BlueBox-2X Service (3.3.0) READY.
No Log outputs when trying to connect over WSS. WS still isnt a problem.
Does this help?
Thanks
Re: Jelastic and WSS (SSL)
Thanks,
could you send me the url of your server? So we can try a connection from here.
You can send me a private message with the url and ports (if you have changed the standard values)
Cheers
could you send me the url of your server? So we can try a connection from here.
You can send me a private message with the url and ports (if you have changed the standard values)
Cheers
Re: Jelastic and WSS (SSL)
Result for people having the same problem:
I talked to jelastic support and they answered me the following:
Actually they use 2X instead of Basic and I told them so.
I also attached the Answer of Lapo (Thanks for investigating!) that there is another HTTP-Server (OpenResty) inbetween which might cause the problem.
So in the end I fear that Websockets over HTTPS are not possible right now over jelastic.
If they fix it, I will mention it here.
Thanks for help.
I talked to jelastic support and they answered me the following:
Code: Select all
"We would like to inform you that BlueBox is not available for SmartFoxServer Basic.
wss://env-xxxxxxx.fr-1.paas.massivegrid.net:8443/BlueBox /websocket
According to previously mentioned is a version limitation not a bad configuration issue.
You can find more useful information in the link below:
https://www.smartfoxserver.com/buy/bluebox
We remain at your disposal for any additional information you may need."
Actually they use 2X instead of Basic and I told them so.
I also attached the Answer of Lapo (Thanks for investigating!) that there is another HTTP-Server (OpenResty) inbetween which might cause the problem.
So in the end I fear that Websockets over HTTPS are not possible right now over jelastic.
If they fix it, I will mention it here.
Thanks for help.
Re: Jelastic and WSS (SSL)
Hi,
the Jelastic support response sounds a little odd as the problem is related to SFS2X and websockets, not SFS 1.x and BlueBox
In any case it's kind of sad to know that they have inhibited the use of SSL for websockets.
I hope they will unlock this limitation soon. In any case, thanks for the update.
Cheers
the Jelastic support response sounds a little odd as the problem is related to SFS2X and websockets, not SFS 1.x and BlueBox
In any case it's kind of sad to know that they have inhibited the use of SSL for websockets.
I hope they will unlock this limitation soon. In any case, thanks for the update.
Cheers
Who is online
Users browsing this forum: No registered users and 60 guests