Your message dated Thu, 13 Oct 2016 18:29:47 +0200
with message-id <b725ed29-658c-935f-2114-3fbe69fad...@debian.org>
and subject line Re: [PKG-Openstack-devel] Bug#840632:
openstack-dashboard-apache: Error: No template loaders defined.
has caused the Debian Bug report #840632,
regarding openstack-dashboard-apache: Error: No template loaders defined.
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
840632: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=840632
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: openstack-dashboard-apache
Version: 3:10.0.0-1
Severity: important
----- s n i p -----
[...]
Copying
'/usr/lib/python2.7/dist-packages/horizon/static/horizon/lib/jquery/jquery.bootstrap.wizard.js'
Found another file with the destination path
'horizon/lib/jquery/jquery.min.js'. It will be ignored since only the first
encountered file is collected. If this is not what you want, make sure every
static file has a unique path.
1873 static files copied to '/usr/share/openstack-dashboard/static'.
Warning: Could not import Horizon dependencies. This is normal during
installation.
Traceback (most recent call last):
File "/usr/share/openstack-dashboard/manage.py", line 25, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 367, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python2.7/dist-packages/django/core/management/base.py",
line 345, in execute
output = self.handle(*args, **options)
File
"/usr/lib/python2.7/dist-packages/compressor/management/commands/compress.py",
line 286, in handle
self.compress(sys.stdout, **options)
File
"/usr/lib/python2.7/dist-packages/compressor/management/commands/compress.py",
line 110, in compress
raise OfflineGenerationError("No template loaders defined. You "
compressor.exceptions.OfflineGenerationError: No template loaders defined.
You must set TEMPLATE_LOADERS in your settings or set 'loaders' in your
TEMPLATES dictionary.
dpkg: error processing package openstack-dashboard-apache (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
openstack-dashboard-apache
----- s n i p -----
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/16 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages openstack-dashboard-apache depends on:
ii apache2 2.4.23-5
ii debconf [debconf-2.0] 1.5.59
ii libapache2-mod-wsgi 4.5.7-1
pn openstack-dashboard <none>
openstack-dashboard-apache recommends no packages.
openstack-dashboard-apache suggests no packages.
-- debconf information excluded
--- End Message ---
--- Begin Message ---
On 10/13/2016 02:55 PM, Turbo Fredriksson wrote:
> Package: openstack-dashboard-apache
> Version: 3:10.0.0-1
> Severity: important
>
> compressor.exceptions.OfflineGenerationError: No template loaders defined.
> You must set TEMPLATE_LOADERS in your settings or set 'loaders' in your
> TEMPLATES dictionary.
> dpkg: error processing package openstack-dashboard-apache (--configure):
> subprocess installed post-installation script returned error exit status 1
> Errors were encountered while processing:
> openstack-dashboard-apache
Hi,
The important bit is here just above:
"You must set TEMPLATE_LOADERS in your settings or set 'loaders' in your
TEMPLATES dictionary."
It's indeed hard to understand what it means, but in fact, it just means
you need to upgrade your local_settings.py. Indeed, it changed a lot
since Django 1.10 compat was added. For example, many import directive
changed.
In the postinst of openstack-dashboard, you can read:
mkdir -p /etc/openstack-dashboard
DASHBOARD_LOCAL_SETTINGS='/etc/openstack-dashboard/local_settings.py'
if ! [ -f "$DASHBOARD_LOCAL_SETTINGS" ] ; then
cp /usr/share/openstack-dashboard/local_settings.py \
$DASHBOARD_LOCAL_SETTINGS
fi
This means that at no time, /etc/openstack-dashboard/local_settings.py
will be upgraded. That's some work you have to do yourself. For example,
simply do (after saving your customization):
cp /usr/share/openstack-dashboard/local_settings.py \
/etc/openstack-dashboard
This isn't a bug, just a harder upgrade, so I'll close the issue.
Probably we should document this in a README.Debian though.
Cheers,
Thomas Goirand (zigo)
--- End Message ---