Horizon can't work without Debug option enabled

Bug #901606 reported by Jérôme Gallard
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Critical
Gabriel Hurley

Bug Description

Horizon Diablo version with apache2.

Hi,

When setting the flag "DEBUG = False" in the file "/var/www/horizon/openstack-dashboard/local/local_settings.py" I got some errors in the apache error log : [error] No handlers could be found for logger "django_openstack.auth". Due to this error, CSS and other files are not loaded properly (if this flag is set to True, everything is ok).

Thanks,
Jérôme

summary: - Horizon can't work without Debug option
+ Horizon can't work without Debug option enabled
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

The diablo release did not ship with any logging configuration. You will need to customize logging for your production setup with Diablo. The current horizon trunk has suggested logging config for development enabled. If there's still a problem in the current horizon master please update this question.

Changed in horizon:
status: New → Incomplete
Revision history for this message
Jérôme Gallard (jerome-gallard) wrote :

Thank you very much for your answer.

As you recommend me, I tested it with the last version of Horizon, but the issue seems to be the same:

[12/Dec/2011 09:30:13] "GET /static/dashboard/css/bootstrap.css HTTP/1.1" 404 2558
[12/Dec/2011 09:30:13] "GET /static/dashboard/css/style.css HTTP/1.1" 404 2558

...

Thanks,
Jérôme

Devin Carlen (devcamcar)
Changed in horizon:
status: Incomplete → Confirmed
importance: Undecided → Critical
assignee: nobody → Gabriel Hurley (gabriel-hurley)
milestone: none → essex-3
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

If you set DEBUG=False you no longer get the benefit of built-in static media serving. Your 404's are most likely because your apache config isn't properly configured to serve the static media.

If you were still having the logging errors those would be 500's, not 404's.

If you're still getting the logging error messages then please post that part of the log.

Changed in horizon:
status: Confirmed → Incomplete
Revision history for this message
Gabriel Hurley (gabriel-hurley) wrote :

Closing as invalid due to no response to the last suggestion and testing with apache/devstack that current configuration works fine when apache is configured to serve the media.

Changed in horizon:
status: Incomplete → Invalid
Devin Carlen (devcamcar)
Changed in horizon:
milestone: essex-3 → none
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.