On 6/9/20 1:05 AM, Danil Smirnov wrote:
On Tue, 9 Jun 2020 at 00:05, Mark Sapiro <mark@msapiro.net> wrote:
After you upgraded did you run these django-admin commands?
django-admin collectstatic --clear --noinput --verbosity 0 django-admin compress django-admin compilemessages django-admin migrate
These 4 commands should be run after every update to Postorius, HyperKitty or django_mainlman3.
Hm, interesting... Could you point me to some related docs please?
The documentation is weak and should be updated, but see <https://docs.mailman3.org/en/latest/upgrade-3.2.html#migration-steps>
To upgrade, I've just bumped app versions in my Dockerfiles, built and restarted... Mailman-core worked right away with no issues. Mailman-web (Hyperkitty) failed with the error:
ERROR 2020-06-08 19:46:41,942 14 django.request Internal Server Error: /hyperkitty/ Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/compressor/base.py", line 282, in precompile mod = import_module(mod_name) File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 994, in _gcd_import File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked ModuleNotFoundError: No module named 'sassc -t compressed {infile} {outfile}' ... I've fixed the error by removing the older file which is /opt/mailman-web-data/static/hyperkitty/libs/bootstrap/stylesheets/_bootstrap.scss
After that everything seems to be working fine.
I'm not sure about the above error.
'sassc -t compressed {infile} {outfile}'
is defined in settings
COMPRESS_PRECOMPILERS, but it is a command to
be run as part of django-admin compress
, not a module to be imported.
Possibly running django-admin compress
before starting Hyperkitty
would have avoided this.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan