Error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway fatal: The remote end hung up unexpectedly

After upgrade from 8.15.4 to 8.16.x am getting following error while performing push/pull/commit with http authentication.

" error: RPC failed; HTTP 502 curl 22 The requested URL returned error: 502 Bad Gateway, fatal: The remote end hung up unexpectedly "

Tried downgrading to 8.15.4 again giving 500 page error for project page, but other things works fine.

Kindly help. All check and tests passes and am using omnibus installation on ubuntu 14.0.4