Ask Your Question

502 Bad Gateway: Bad Gateway: The proxy server received an invalid: response from an upstream server.: Apache/2.4.37 (Ubuntu) Server at 172.*.*.* Port 80 (HTTP 502)

asked 2018-11-16 22:24:02 -0500

rogue0197 gravatar image
  • Unable to create image in openstack devstack queens.
  • It was working fine a couple of days ago,Now the images are not being uploaded/deleted from both horizon and command line. The error I get is stated above.
  • I have tried upgrading apache2 , did not solve the issue.
  • Following (This bug) , I have tried increasing the socket time .Did not help. And i have taken the different packages from the link and rerun ./ with the packages, same error again , while cirros image creation.
  • And the thing is there is same bug in both of my PC's with openstack installed on them.
edit retag flag offensive close merge delete


Devstack configures most services to run under UWSGI, but Glance doesn’t work well this way. I think there is a way to set up Devstack without UWSGI.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-17 01:26:28 -0500 )edit

Or try replacing lib/glance by the version from this patch, then adding GLANCE_USE_UWSGI=false in local.conf.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-17 01:31:04 -0500 )edit

I tried doing as stated , now the installation stops with error , glance-api failed to start

rogue0197 gravatar imagerogue0197 ( 2018-12-01 07:43:53 -0500 )edit

Check the logs.

Or perhaps use another deployment method than Devstack.

Bernd Bausch gravatar imageBernd Bausch ( 2018-12-01 08:46:48 -0500 )edit

1 answer

Sort by » oldest newest most voted

answered 2019-04-23 00:25:57 -0500

rogue0197 gravatar image

The Glance deployed uses swift as backend storage service. During devstack deployment the swift default storage is given as 2GB. So, when images size increases more than 2GB, The swift reaches its maximum limit and images get queued. Change the SWIFT_LOOPBACK_DISK_SIZE_DEFAULT to 15G (as you require) from default 2Gin ( (i.e in devstack/lib/swift file) and run The same is posted in (

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-11-16 22:24:02 -0500

Seen: 2,094 times

Last updated: Apr 23 '19