ckrintz / appscale

Automatically exported from code.google.com/p/appscale
0 stars 0 forks source link

Response of AppServer Java sometimes shows 502 error #203

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When we upload the AppServer Java app and access to 8080 ports,
the response of the app shows 502 error sometimes.

If we access to AppServer Java server port (20000) directly from browser,
there is no problem.
If we try to use latest haproxy 1.4.4, there is no problem.

So it must be the known issue between the haproxy and jetty.

http://haproxy.1wt.eu/news.html

I think we should contain the latest haproxy binary into core package.

Original issue reported on code.google.com by yoshi...@gmail.com on 29 Apr 2010 at 5:09

GoogleCodeExporter commented 9 years ago
Just to expand on this issue...

When running the standard javabook application the Java app server will 
frequently
return 502 errors. These errors occur not only on page requests but also for 
other
page assets (e.g. stylesheets) which sometimes result in the page displaying 
without
the proper styling. Note that the javabook application is not configured to 
serve the
stylesheet statically so the stylesheet is being served by the java app server.

This error is a result of an incompatibility issue between HAProxy and Jetty 
(which
the Java app server relies on). This issue is discussed in the link provided 
above. A
fix to HAProxy has been committed and is available in the latest version 
(1.4.4). By
default AppScale installs the most recent version available in the Ubuntu repos 
which
is currently 1.3.15. 

Since the Ubuntu repos do not currently contain the version we need, for this 
release
we should build from source and use the latest HAProxy binary. This will allow 
Java
applications to work without issue. When the necessary version of HAProxy is
available in the repos we should change the installation process to install 
from the
repos.

Original comment by jmkupfer...@gmail.com on 3 May 2010 at 6:04

GoogleCodeExporter commented 9 years ago
The trunk rev 471 is now including HAProxy 1.4.4

Original comment by yoshi...@gmail.com on 6 May 2010 at 12:23