server-generated directory index forbidden by Options directive

Bug #1737092 reported by jeff wang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Expired
Undecided
Unassigned

Bug Description

Bug describe:

httpd error_log:
[Fri Dec 08 11:20:31.803594 2017] [autoindex:error] [pid 78430] [client 192.168.20.67:6467] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
[Fri Dec 08 11:25:50.652786 2017] [core:error] [pid 78427] [client 192.168.20.67:6471] End of script output before headers: django.wsgi
[Fri Dec 08 11:32:27.556274 2017] [mpm_prefork:notice] [pid 78410] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Dec 08 11:32:48.251386 2017] [suexec:notice] [pid 79126] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Dec 08 11:32:48.266330 2017] [auth_digest:notice] [pid 79126] AH01757: generating secret for digest authentication ...
[Fri Dec 08 11:32:48.267016 2017] [lbmethod_heartbeat:notice] [pid 79126] AH02282: No slotmem from mod_heartmonitor
[Fri Dec 08 11:32:48.277801 2017] [mpm_prefork:notice] [pid 79126] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Fri Dec 08 11:32:48.277830 2017] [core:notice] [pid 79126] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Dec 08 11:32:55.489711 2017] [autoindex:error] [pid 79144] [client 192.168.20.67:6612] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
[Fri Dec 08 11:37:59.339107 2017] [core:error] [pid 79142] [client 192.168.20.67:6611] End of script output before headers: django.wsgi

curl -l localhost/dashboard

<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator at
 root@localhost to inform them of the time this error occurred,
 and the actions you performed just before this error.</p>
<p>More information about this error may be available
in the server error log.</p>
</body></html>

jeff wang (jsjtl)
Changed in horizon:
assignee: nobody → jeff wang (jsjtl)
assignee: jeff wang (jsjtl) → nobody
assignee: nobody → jeff wang (jsjtl)
Revision history for this message
jeff wang (jsjtl) wrote :

fix bug:
Resolvent:

../httpd/conf.d/openstack-dashboard.conf

add a line:
-------------------------------------
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi
WSGIApplicationGroup %{GLOBAL} # add a line

WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /dashboard/static /usr/share/openstack-dashboard/static

<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
  Options All
  AllowOverride All
  Require all granted
</Directory>

<Directory /usr/share/openstack-dashboard/static>
  Options All
  AllowOverride All
  Require all granted
</Directory>

-------------------------------------

systemctl restart httpd

Because there is no time to look at the code, give the solution for the time being

Changed in horizon:
assignee: jeff wang (jsjtl) → nobody
jeff wang (jsjtl)
summary: - End of script output before headers: django.wsgi
+ server-generated directory index forbidden by Options directive
Revision history for this message
Akihiro Motoki (amotoki) wrote :

It looks like a duplication of bug 1708655.

If you use a package from a distribution, it should be a bug of the distribution.

If you install horizon manually, "WSGIApplicationGroup %{GLOBAL}" is a requirement.
Some improvement on documentation might be needed.

Revision history for this message
Akihiro Motoki (amotoki) wrote :

The environment of the bug report is unclear, so I will mark it as Incomplete temporarily.

Changed in horizon:
status: New → Incomplete
Revision history for this message
jeff wang (jsjtl) wrote :

My system version is Centos-7.1708

Installation of an official mirror source

From the current situation, it should be that the configuration file in the package is missing the configuration item

Revision history for this message
Akihiro Motoki (amotoki) wrote :

Do you use CentOS package?

If this is about CentOS package, the horizon upstream development team does not maintain any distribution package. Please report an issue to the packaging team.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.