← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1573488] [NEW] Openstack Mitaka: can not access dashboard(internal server 500)

 

Public bug reported:

Openstack Mitaka on Ubuntu 14.04.
It is a two-node environment installed following the guide:
http://docs.openstack.org/mitaka/install-guide-ubuntu/overview.html

When I tried to access http://controller/horizon, it hung there and below are the logs from /var/log/apache2/error.log.
Apache2 hangs when loading '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.

It looks like something related to dependency? Please take a look what
else information I need to attach here.

Many thanks

#########################
[/var/log/apache2/error.log]
[Fri Apr 22 16:51:38.033769 2016] [authz_core:debug] [pid 30211:tid 140178471515904] mod_authz_core.c(802): [client 10.0.0.11:32905] AH01626: authorization result of Require all granted: granted
[Fri Apr 22 16:51:38.033870 2016] [authz_core:debug] [pid 30211:tid 140178471515904] mod_authz_core.c(802): [client 10.0.0.11:32905] AH01626: authorization result of <RequireAny>: granted
[Fri Apr 22 16:51:38.085433 2016] [:info] [pid 30208:tid 140178545293056] mod_wsgi (pid=30208): Create interpreter 'controller|/horizon'.
[Fri Apr 22 16:51:38.089348 2016] [core:trace1] [pid 30211:tid 140178471515904] util_script.c(601): [client 10.0.0.11:32905] Status line from script 'django.wsgi': 200 Continue
[Fri Apr 22 16:51:38.089471 2016] [:info] [pid 30208:tid 140178545293056] [remote 10.0.0.11:33762] mod_wsgi (pid=30208, process='horizon', application='controller|/horizon'): Loading WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Fri Apr 22 08:56:41.512825 2016] [:info] [pid 30208:tid 140178562078464] mod_wsgi (pid=30208): Daemon process deadlock timer expired, stopping process 'horizon'.
[Fri Apr 22 08:56:41.513111 2016] [:info] [pid 30208:tid 140178648561536] mod_wsgi (pid=30208): Shutdown requested 'horizon'.
[Fri Apr 22 08:56:46.514631 2016] [:info] [pid 30208:tid 140178291226368] mod_wsgi (pid=30208): Aborting process 'horizon'.
[Fri Apr 22 16:56:46.526999 2016] [core:error] [pid 30211:tid 140178471515904] [client 10.0.0.11:32905] End of script output before headers: django.wsgi
[Fri Apr 22 16:56:46.764577 2016] [:info] [pid 30205:tid 140178648561536] mod_wsgi (pid=30208): Process 'horizon' has died, restarting.
[Fri Apr 22 16:56:46.765623 2016] [:info] [pid 30380:tid 140178648561536] mod_wsgi (pid=30380): Starting process 'horizon' with uid=125, gid=133 and threads=10.
[Fri Apr 22 16:56:46.766640 2016] [:info] [pid 30380:tid 140178648561536] mod_wsgi (pid=30380): Initializing Python.
[Fri Apr 22 16:56:46.810913 2016] [:info] [pid 30380:tid 140178648561536] mod_wsgi (pid=30380): Attach interpreter ''.


####################
root@controller:~# cat /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi 
import logging
import os
import sys
from django.core.wsgi import get_wsgi_application
from django.conf import settings

# Add this file path to sys.path in order to import settings
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
sys.stdout = sys.stderr

sys.path.append("/usr/share/openstack-dashboard/")

DEBUG = True

application = get_wsgi_application()

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1573488

Title:
  Openstack Mitaka: can not access dashboard(internal server 500)

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Openstack Mitaka on Ubuntu 14.04.
  It is a two-node environment installed following the guide:
  http://docs.openstack.org/mitaka/install-guide-ubuntu/overview.html

  When I tried to access http://controller/horizon, it hung there and below are the logs from /var/log/apache2/error.log.
  Apache2 hangs when loading '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.

  It looks like something related to dependency? Please take a look what
  else information I need to attach here.

  Many thanks

  #########################
  [/var/log/apache2/error.log]
  [Fri Apr 22 16:51:38.033769 2016] [authz_core:debug] [pid 30211:tid 140178471515904] mod_authz_core.c(802): [client 10.0.0.11:32905] AH01626: authorization result of Require all granted: granted
  [Fri Apr 22 16:51:38.033870 2016] [authz_core:debug] [pid 30211:tid 140178471515904] mod_authz_core.c(802): [client 10.0.0.11:32905] AH01626: authorization result of <RequireAny>: granted
  [Fri Apr 22 16:51:38.085433 2016] [:info] [pid 30208:tid 140178545293056] mod_wsgi (pid=30208): Create interpreter 'controller|/horizon'.
  [Fri Apr 22 16:51:38.089348 2016] [core:trace1] [pid 30211:tid 140178471515904] util_script.c(601): [client 10.0.0.11:32905] Status line from script 'django.wsgi': 200 Continue
  [Fri Apr 22 16:51:38.089471 2016] [:info] [pid 30208:tid 140178545293056] [remote 10.0.0.11:33762] mod_wsgi (pid=30208, process='horizon', application='controller|/horizon'): Loading WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
  [Fri Apr 22 08:56:41.512825 2016] [:info] [pid 30208:tid 140178562078464] mod_wsgi (pid=30208): Daemon process deadlock timer expired, stopping process 'horizon'.
  [Fri Apr 22 08:56:41.513111 2016] [:info] [pid 30208:tid 140178648561536] mod_wsgi (pid=30208): Shutdown requested 'horizon'.
  [Fri Apr 22 08:56:46.514631 2016] [:info] [pid 30208:tid 140178291226368] mod_wsgi (pid=30208): Aborting process 'horizon'.
  [Fri Apr 22 16:56:46.526999 2016] [core:error] [pid 30211:tid 140178471515904] [client 10.0.0.11:32905] End of script output before headers: django.wsgi
  [Fri Apr 22 16:56:46.764577 2016] [:info] [pid 30205:tid 140178648561536] mod_wsgi (pid=30208): Process 'horizon' has died, restarting.
  [Fri Apr 22 16:56:46.765623 2016] [:info] [pid 30380:tid 140178648561536] mod_wsgi (pid=30380): Starting process 'horizon' with uid=125, gid=133 and threads=10.
  [Fri Apr 22 16:56:46.766640 2016] [:info] [pid 30380:tid 140178648561536] mod_wsgi (pid=30380): Initializing Python.
  [Fri Apr 22 16:56:46.810913 2016] [:info] [pid 30380:tid 140178648561536] mod_wsgi (pid=30380): Attach interpreter ''.


  ####################
  root@controller:~# cat /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi 
  import logging
  import os
  import sys
  from django.core.wsgi import get_wsgi_application
  from django.conf import settings

  # Add this file path to sys.path in order to import settings
  sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
  os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
  sys.stdout = sys.stderr

  sys.path.append("/usr/share/openstack-dashboard/")

  DEBUG = True

  application = get_wsgi_application()

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1573488/+subscriptions


Follow ups