Page MenuHomePhabricator

Installing the striker role fails with " Couldn't load manifest 'staticfiles.json'"
Open, Needs TriagePublic

Description

Hi, over the weekend i installed the striker role in mw vagrant, but it failed with:

==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns: Traceback (most recent call last):
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:   File "manage.py", line 30, in <module>
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:     execute_from_command_line(sys.argv)
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:   File "/vagrant/srv/striker/.venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:     utility.execute()
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:   File "/vagrant/srv/striker/.venv/lib/python3.5/site-packages/django/core/management/__init__.py", line 375, in execute
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:     self.fetch_command(subcommand).run_from_argv(self.argv)
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:   File "/vagrant/srv/striker/.venv/lib/python3.5/site-packages/django/core/management/base.py", line 316, in run_from_argv
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:     self.execute(*args, **cmd_options)
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:   File "/vagrant/srv/striker/.venv/lib/python3.5/site-packages/django/core/management/base.py", line 353, in execute
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:     output = self.handle(*args, **options)
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:   File "/vagrant/srv/striker/.venv/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 162, in handle
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:     if self.is_local_storage() and self.storage.location:
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:   File "/vagrant/srv/striker/.venv/lib/python3.5/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 216, in is_local_storage
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:     return isinstance(self.storage, FileSystemStorage)
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:   File "/vagrant/srv/striker/.venv/lib/python3.5/site-packages/django/utils/functional.py", line 213, in inner
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:     self._setup()
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:   File "/vagrant/srv/striker/.venv/lib/python3.5/site-packages/django/contrib/staticfiles/storage.py", line 491, in _setup
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:     self._wrapped = get_storage_class(settings.STATICFILES_STORAGE)()
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:   File "/vagrant/srv/striker/.venv/lib/python3.5/site-packages/django/contrib/staticfiles/storage.py", line 376, in __init__
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:     self.hashed_files = self.load_manifest()
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:   File "/vagrant/srv/striker/.venv/lib/python3.5/site-packages/django/contrib/staticfiles/storage.py", line 398, in load_manifest
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns:     (self.manifest_name, self.manifest_version))
==> default: Notice: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns: ValueError: Couldn't load manifest 'staticfiles.json' (version 1.0)
==> default: Error: /vagrant/srv/striker/.venv/bin/python manage.py collectstatic --noinput returned 1 instead of one of [0]
==> default: Error: /Stage[main]/Role::Striker/Exec[striker manage.py collectstatic]/returns: change from notrun to 0 failed: /vagrant/srv/striker/.venv/bin/python manage.py collectstatic --noinput returned 1 instead of one of [0]

Event Timeline

Paladox created this task.Jun 3 2019, 3:12 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 3 2019, 3:12 PM
bd808 added a subscriber: bd808.

I found a few bug reports with a web search that point to this being something new that happened to some people after upgrading to Django 2. I'm not sure that I have done a clean install of the role since we did that ourselves, so that could explain why I haven't seen this problem myself yet.