Ask Your Question

[Solved] Gateway Timeout error: Cannot access Horizon on OpenStack Newton.

asked 2016-12-20 20:28:08 -0500

AmirV gravatar image

updated 2016-12-27 12:33:14 -0500

Hi. I'm trying to install OpenStack Newton using the documentations here: (

I successfully installed these services: Identity, Image, Compute, and Network. Now I try to install Dashboard and I do it EXACTLY the same as the instructions at: (

However, I cannot open the Horizon (http://controller/horizon). It does not give any errors at first, it's just stuck in loading and after a while, I receive Gateway Timeout error.

Please see /etc/openstack-dashboard/ in here:

Thank you.

edit retag flag offensive close merge delete


Probably Apache can't reach the WSGI components that make up Horizon. Check /var/log/apache2, and check if any Horizon wsgi processes are running.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-20 21:19:07 -0500 )edit

Thank you very much. I will post the logs here. But if it is the cause of error, how can I fix it?

AmirV gravatar imageAmirV ( 2016-12-20 21:41:59 -0500 )edit

If the processes are not running, find out why. If they are, find out what prevents Apache from reaching them. The log files may contain clues.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-20 21:44:33 -0500 )edit

It seems wsgi works fine. There is just one error: [Thu Dec 22 01:36:03.125705 2016] [wsgi:error] [pid 14317:tid 140137276241664] [client] Truncated or oversized response headers received from daemon process 'horizon': /usr/share/openstack-dashboard/openstack_dashboard/wsgi/

AmirV gravatar imageAmirV ( 2016-12-21 16:07:12 -0500 )edit

4 answers

Sort by ยป oldest newest most voted

answered 2016-12-27 12:32:44 -0500

AmirV gravatar image

updated 2016-12-27 12:33:56 -0500

I solved the problem as below.

1) open the dashboard configuration file:

#gedit /etc/apache2/conf-available/openstack-dashboard.conf

2) Add the following line to the configturation:

WSGIApplicationGroup %{GLOBAL}

3) Reload the Apache

#service apache2 reload

BOOM! enjoy the horizon.

edit flag offensive delete link more


I happened to have have the same problem and this solution worked. Thanks!!

Mohd gravatar imageMohd ( 2017-05-08 04:57:37 -0500 )edit

It helped me as well on one of the setups which I recently did. But what I am surprised of that Dashboard of my another setup is working smoothly without it. Both the setups are of Newton Version.

exergy gravatar imageexergy ( 2017-05-31 09:16:17 -0500 )edit

answered 2016-12-21 02:42:26 -0500

@AmirV Could you please try after changing the keystone version on /etc/openstack-dashboard/ in Line OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3.0" % OPENSTACK_HOST

edit flag offensive delete link more


Hi. Still not working.

AmirV gravatar imageAmirV ( 2016-12-21 16:07:29 -0500 )edit

May i know your hardware configuration?

visolve gravatar imagevisolve ( 2016-12-22 00:31:42 -0500 )edit

Sure. I have two VMs on VMware workstation on Windows 10. The first VM is controller with 8 CPU cores and 6 GB of RAM, and the second one is the compute node with 2 GB of RAM and 2 CPU cores.

AmirV gravatar imageAmirV ( 2016-12-24 18:38:18 -0500 )edit

@AmirV Try with this OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST in /etc/openstack-dashboard/ .For me this works fine.

Pramod gravatar imagePramod ( 2017-02-17 13:29:28 -0500 )edit

answered 2016-12-22 03:19:47 -0500

silently gravatar image

updated 2016-12-22 03:21:01 -0500

[root@vm20 httpd]# pwd

[root@vm20 httpd]# ls
access_log  error_log  ssl_access_log  ssl_error_log  ssl_request_log

look the content of files as above .

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-12-20 20:27:29 -0500

Seen: 4,542 times

Last updated: Dec 27 '16