← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1615763] Re: CommandError: An error occurred during rendering

 

'<link href='{{ STATIC_URL }}horizon/lib/jquery-ui/ui/jquery-ui.css'
type='text/css' media='screen' rel='stylesheet' />'

should be

'<link href='{{ STATIC_URL }}horizon/lib/jquery-ui/jquery-ui.css'
type='text/css' media='screen' rel='stylesheet' />'

This is because legacy versions had the 'ui/' directory, but later
versions dropped it. We actually have a workaround in Horizon for this
at
https://github.com/openstack/horizon/blob/348069364cf217217af6436e455ee04587bfd26b/openstack_dashboard/utils/settings.py#L243

My advice would just be to add the original compress line back to your
template, and drop the 'ui/' part. You can see where the files are by
pulling Horizon, running 'python manage.py collectstatic' and viewing
the 'static/' dir in your horizon root.

** Changed in: horizon
       Status: Incomplete => Invalid

-- 
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/1615763

Title:
  CommandError: An error occurred during rendering

Status in congress:
  New
Status in devstack:
  New
Status in OpenStack Dashboard (Horizon):
  Invalid

Bug description:
  Repeatedly seeing the following error during devstack setup in tempest
  tests in Congress (for example:
  http://logs.openstack.org/57/356157/4/check/gate-congress-dsvm-
  api/70474ca/logs/devstack-early.txt.gz [also attached]). Any idea
  whether it's a horizon bug or devstack bug or user error on Congress
  side? Thanks so much!

  2016-08-22 04:09:07.389 | 1658 static files copied to '/opt/stack/new/horizon/static'.
  2016-08-22 04:09:09.017 | Found 'compress' tags in:
  2016-08-22 04:09:09.017 | 	/opt/stack/new/horizon/openstack_dashboard/templates/horizon/_conf.html
  2016-08-22 04:09:09.017 | 	/opt/stack/new/horizon/openstack_dashboard/templates/horizon/_scripts.html
  2016-08-22 04:09:09.017 | 	/opt/stack/new/congress/congress_dashboard/templates/admin/base.html
  2016-08-22 04:09:09.017 | 	/opt/stack/new/horizon/openstack_dashboard/templates/_stylesheets.html
  2016-08-22 04:09:09.017 | 	/opt/stack/new/congress/congress_dashboard/templates/admin/_scripts.html
  2016-08-22 04:09:09.875 | Compressing... CommandError: An error occurred during rendering /opt/stack/new/congress/congress_dashboard/templates/admin/base.html: 'horizon/lib/jquery-ui/ui/jquery-ui.css' could not be found in the COMPRESS_ROOT '/opt/stack/new/horizon/static' or with staticfiles.
  2016-08-22 04:09:09.957 | exit_trap: cleaning up child processes
  2016-08-22 04:09:09.957 | ./stack.sh: line 486: kill: (15777) - No such process+ unset GREP_OPTIONS

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


References