Log message: WARNING: BlueBox<->SFS Handshake failure!

Submit all your BlueBox related questions or report a bug here!

Moderators: Lapo, Bax

matthewlenton
Posts: 12
Joined: 20 Feb 2009, 00:51

Log message: WARNING: BlueBox<->SFS Handshake failure!

Postby matthewlenton » 03 Apr 2009, 06:29

We're trying to set up a stand-alone BlueBox server, but after we start it and it inits, we are constantly seeing a log message saying "WARNING: BlueBox<->SFS Handshake failure!".

We've followed the instructions on the smartfoxserver.com / BlueBox FAQ to set up Jetty for BlueBox stand-alone.

Together with this, we are seeing sessions being created through the page provided at http://host:port/BlueBox/HttpBox.do?debugCmd=main.

But, the major issue is that none of our BlueBox clients connect all the way through to the SFS instance, and we consider that it's due to the handshake failures.

The full detail, in context...

We start jetty with:

Code: Select all

 java -Xmx256 -jar start.jar etc/jetty.xml


And the output is:

Code: Select all

::::::::::: { BlueBox INITED } ::::::::::::
:                                         :
: Version 1.0.5 -- (c) 2008 gotoAndPlay() :
:                                         :
:::::::::::::::::::::::::::::::::::::::::::
2009-04-03 17:16:07.040::INFO:  Opened /home/yp/jetty/jetty-6.1.15/logs/2009_04_03.request.log
2009-04-03 17:16:07.054::INFO:  Started SelectChannelConnector@10.6.20.2:8082
Apr 3, 2009 5:17:20 PM it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter doFilter
WARNING: BlueBox<->SFS Handshake failure!
Apr 3, 2009 5:17:20 PM it.gotoandplay.smartfoxserver.httpbox.HttpBox init
INFO: BlueBox initializing...
Apr 3, 2009 5:17:20 PM it.gotoandplay.smartfoxserver.httpbox.util.ClientActivityMonitor run
INFO: Activity Monitor starts
Apr 3, 2009 5:17:36 PM it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter doFilter
WARNING: BlueBox<->SFS Handshake failure!


Our bluebox.properties:

Code: Select all

#:::::::::::::::::::::::::::::::::::::::::::::::::::::::
# {{ SmartFoxServer - BlueBox }}
# Configuration File
# version 1.0
#
# (c) 2004-2007 gotoAndPlay()
# www.smartfoxserver.com
# www.gotoandplay.it
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::

log_level=FINEST
log_folder=./logs/
log_max_size=100000
log_max_files=5

# Can be embedded or stand-alone
serverMode=stand-alone

# These 2 are available only in stand-alone mode
sfsAddr=127.0.0.1
sfsPort=80

# This value should always be > 20. A value of 30 is recommended.
client_idle_time=3600

# Needed for stand-alone configuration
client_idle_request_time=3600

# Allows runtime debugging
# You can point the browser to -> http://hostname:port/BlueBox/HttpBox.go?debugCmd=main
debug_mode=true



Our jetty.xml, well, just the Connector section for now...

Code: Select all

    <Call name="addConnector">
      <Arg>
          <New class="org.mortbay.jetty.nio.SelectChannelConnector">
            <Set name="host">10.6.20.2</Set>
            <Set name="port"><SystemProperty name="jetty.port" default="8082"/></Set>
            <Set name="maxIdleTime">30000</Set>
            <Set name="Acceptors">2</Set>
            <Set name="statsOn">false</Set>
            <Set name="confidentialPort">8443</Set>
       <Set name="lowResourcesConnections">5000</Set>
       <Set name="lowResourcesMaxIdleTime">5000</Set>
          </New>
      </Arg>
    </Call>



Finally, our AS2 client code configures the SFClient to "Bluebox-connect" to an Apache virtual host which forwards the external host-addr:80 to 10.6.20.2:8082.

Can anyone help us better understand the cause of the "SFS<->BlueBox handshake failure" messages and toward a solution which allows BlueBox clients to connect all the way through?

Thanks so much, in advance!
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 03 Apr 2009, 12:33

If the BlueBox is in standalone mode I presume it is running on its own machine, separated from SFS, right?

If so, one problem I see is that the BlueBox configuration is pointing to 127.0.0.1 which is the localhost, so it's the machine running the BlueBox not SFS

In other words, these two settings:
sfsAddr=127.0.0.1
sfsPort=80
should point to the Address and IP of the machine running SFS

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 03 Apr 2009, 12:35

Btw, since preparing a standalone BlueBox can be a little tricky we're going to prepare a downloadable pre-configured package containing the JRE, Jetty and the BlueBox ready to be used.
Lapo

--

gotoAndPlay()

...addicted to flash games
matthewlenton
Posts: 12
Joined: 20 Feb 2009, 00:51

Postby matthewlenton » 04 Apr 2009, 19:52

Hi Lapo!

We have Jetty and BlueBox running on the same server, different ports.

Our setup, in brief:

x.x.x.X:80 is SFS socket server
x.x.x.X:8081 is Jetty / BlueBox

xxx.yyy.com is a virtual host that forwards to x.x.x.X:8081

So, the bluebox.properties file is correct as sfsAddr=127.0.0.1, true?

What does the "Handshake failure" log message actually mean?

The pre-packaged stand-alone server sounds like a great idea, are you able to roughly estimate when it might become available?

Thankyou again for your excellent support of our community.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 06 Apr 2009, 06:29

hmmm... I am confused.
The "stand-alone" version of the BlueBox is meant to be run on a different machine than the one running SmartFoxServer.
If both SFS and BlueBox are running on the same hardware why separating the two instead of using the embedded jetty?

So, the bluebox.properties file is correct as sfsAddr=127.0.0.1, true?

Correct, provided that your SFS is configured to bind all IP addresses (in 1.6.5 you need to use: <ServerIP>*</ServerIP> in your config.xml

What does the "Handshake failure" log message actually mean?

There's a initial "handshake" phase between SFS and the BlueBox where the two need to exchange data. If that fails it means that the system is not configured correctly.
Lapo

--

gotoAndPlay()

...addicted to flash games
khambadkone
Posts: 7
Joined: 28 Feb 2008, 10:55
Location: India
Contact:

pre-configured package for standalone Bluebox

Postby khambadkone » 15 May 2010, 06:20

Hi Lapo, Is this preconfigured Bluebox package available?

Lapo wrote:Btw, since preparing a standalone BlueBox can be a little tricky we're going to prepare a downloadable pre-configured package containing the JRE, Jetty and the BlueBox ready to be used.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 17 May 2010, 06:21

No, but we can help you with the setup if you have a BlueBox license.
Just drop us an email, if you haven't done it already (which I believe you did)
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “BlueBox”

Who is online

Users browsing this forum: No registered users and 7 guests