compressor.exceptions.OfflineGenerationError: You have offline compression enabled but key "[...]" is missing from offline manifest. You may need to run "python manage.py compress".

Bug #1902890 reported by Przemyslaw Hausman
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard Charm
Fix Released
Undecided
Unassigned

Bug Description

Ussuri Focal, charms revision 20.10
openstack-dashboard charm revision 308

After a fresh OpenStack deployment it is not possible to access login page. The error is displayed in the browser. See attached error.log for the contents of /var/log/apache2/error.log on one of the openstack-dashboard units.

compressor.exceptions.OfflineGenerationError: You have offline compression enabled but key "efdb07b4c9545baa4ee24e98f27202a4485283fdfb42da274361edf00c5a1c08" is missing from offline manifest. You may need to run "python manage.py compress". Here is the original content:

Workaround:

juju run --model openstack --application openstack-dashboard -- "cd /usr/share/openstack-dashboard/openstack_dashboard; sudo python3 /usr/share/openstack-dashboard/manage.py compress; sudo systemctl restart apache2"

Revision history for this message
Przemyslaw Hausman (phausman) wrote :
Revision history for this message
Przemyslaw Hausman (phausman) wrote :

Subscribing ~field-high as this issue occurs on a customer deployment.

Revision history for this message
Billy Olsen (billy-olsen) wrote :

I am unable to recreate this in a new deployment. Please provide recreate steps and/or logs

Changed in charm-openstack-dashboard:
status: New → Incomplete
Revision history for this message
Przemyslaw Hausman (phausman) wrote :

Hi @billy-olsen, thanks for looking into this. Please see the links to juju-crashdump and the juju bundle I used:

https://docs.google.com/document/d/1wttvWij3lU_FJQiIfKMbSWtrNOnrzutWnNQ_p3E4K6Y/

Steps to reproduce are fairly simple. Just deploy focal-ussuri and visit the horizon GUI. You should see the error as on the attached screenshot (dashboard-error.png).

Here's another bug that I think describes the same issue: https://bugs.launchpad.net/charm-openstack-dashboard/+bug/1902948

Revision history for this message
Nobuto Murata (nobuto) wrote :

Setting back to New for review.

Changed in charm-openstack-dashboard:
status: Incomplete → New
Revision history for this message
Nobuto Murata (nobuto) wrote :
Revision history for this message
Eric Desrochers (slashd) wrote :

I have submitted a revert of the offending commit:
https://review.opendev.org/#/c/762684/

Eric Desrochers (slashd)
Changed in charm-openstack-dashboard:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to charm-openstack-dashboard (master)

Reviewed: https://review.opendev.org/762684
Committed: https://git.openstack.org/cgit/openstack/charm-openstack-dashboard/commit/?id=6ba0b72827115447de0f3060940d66b079f6d7da
Submitter: Zuul
Branch: master

commit 6ba0b72827115447de0f3060940d66b079f6d7da
Author: Eric Desrochers <email address hidden>
Date: Fri Nov 13 11:35:14 2020 -0500

    Revert "Update template to enable offline-compression"

    This reverts commit 0fe556e389f4b7dcf68a5bbe1421c848cd78e6e1.

    Closes-Bug: 1903911
    Related-Bug: 1902890

    Change-Id: I3e774e1ce98a9e77905bf49075c95ba478cb13c3
    Signed-off-by: Eric Desrochers <email address hidden>

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to charm-openstack-dashboard (stable/20.10)

Related fix proposed to branch: stable/20.10
Review: https://review.opendev.org/762854

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Related fix proposed to branch: stable/20.10
Review: https://review.opendev.org/763093

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-openstack-dashboard (stable/20.10)

Change abandoned by Eric Desrochers (<email address hidden>) on branch: stable/20.10
Review: https://review.opendev.org/762854
Reason: Will use the cherry pick approach instead.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to charm-openstack-dashboard (stable/20.10)

Reviewed: https://review.opendev.org/763093
Committed: https://git.openstack.org/cgit/openstack/charm-openstack-dashboard/commit/?id=a3ae0e2475236855cf08a8567d7437ef609903d8
Submitter: Zuul
Branch: stable/20.10

commit a3ae0e2475236855cf08a8567d7437ef609903d8
Author: Eric Desrochers <email address hidden>
Date: Fri Nov 13 11:35:14 2020 -0500

    Revert "Update template to enable offline-compression"

    This reverts commit 0fe556e389f4b7dcf68a5bbe1421c848cd78e6e1.

    Closes-Bug: 1903911
    Related-Bug: 1902890

    Change-Id: I3e774e1ce98a9e77905bf49075c95ba478cb13c3
    Signed-off-by: Eric Desrochers <email address hidden>
    (cherry picked from commit 6ba0b72827115447de0f3060940d66b079f6d7da)

Revision history for this message
Billy Olsen (billy-olsen) wrote :

offline-compression disabled in r309

Changed in charm-openstack-dashboard:
status: In Progress → Fix Released
milestone: none → 20.10
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.