Red Hat Bugzilla – Bug 1019526
got incomplete html response when the server returns a http 504 in PROD.
Last modified: 2015-05-14 20:55:50 EDT
Description of problem:
When trying to scale up a php app in PROD, it timed out, but the response from the server is incomplete.
DEBUG: code 200 597 ms
This operation will run until the application is at the minimum scale and may take several minutes.
Setting scale range for php-5.3 ... DEBUG: Setting scales = scales_from: 2
DEBUG: Using token authentication
DEBUG: Request PUT https://openshift.redhat.com/broker/rest/domain/op0sd1/application/app5/cartridge/php-5.3
DEBUG: code 504 300130 ms
DEBUG: Response did not include a message from server: invalid character at "<html><bod"
Server returned an unexpected error code: 504
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rhc app create app4 php-5.3 -s
2. rhc cartridge scale php-5.3 -a app5 --min 2 -d
Response did not include a message from server: invalid character at "<html><bod"
a valid html repsonse
A 504 is a gateway timeout error. See more info here
Most likely what has happened is that the proxy server timeout waiting for the broker to respond from the scale-up event. The response most likely truncated by the rhc client tools (meaning not shown is full) is most probably from the proxy server.
- increase timeout on proxy server
- speed up scaling.
According to comment 1,This bug is caused by gateway timeout, we can avoid it by increase timeout. so change to verified temporary.