Problems with web interface after upgrade
Hi, I just applied all the recipes that have been recently posted for upgrading (pip install --upgrade of all pieces, migrate, collectstatic)
The compress part refuses to work "OFF_LINE", whatever that is. I tried with mailman running and stopped.
I can access hte main Postorius page and the basic list information, but I cannot login nor access the archives. Operations end on two exceptions logged to the log file (and two mail messages to the owner = me). Very similar to what I get if I try to --force the "compress".
I'm sure I'm missing somethning, but do not know what ...
Thanks!
Traceback: ERROR 2021-02-09 19:57:41,414 726 django.request Internal Server Error: /listas/accounts/login/ Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/compressor/base.py", line 263, in precompile mod = import_module(mod_name) File "/usr/lib64/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}'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/lib/python3.6/site- packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/usr/local/lib/python3.6/site- packages/django/core/handlers/base.py", line 145, in _get_response response = self.process_exception_by_middleware(e, request) File "/usr/local/lib/python3.6/site- packages/django/core/handlers/base.py", line 143, in _get_response response = response.render() File "/usr/local/lib/python3.6/site- packages/django/template/response.py", line 106, in render self.content = self.rendered_content File "/usr/local/lib/python3.6/site- packages/django/template/response.py", line 83, in rendered_content content = template.render(context, self._request) File "/usr/local/lib/python3.6/site- packages/django/template/backends/django.py", line 61, in render return self.template.render(context) File "/usr/local/lib/python3.6/site- packages/django/template/base.py", line 171, in render return self._render(context) File "/usr/local/lib/python3.6/site- packages/django/template/base.py", line 163, in _render return self.nodelist.render(context) File "/usr/local/lib/python3.6/site- packages/django/template/base.py", line 937, in render bit = node.render_annotated(context) File "/usr/local/lib/python3.6/site- packages/django/template/base.py", line 904, in render_annotated return self.render(context) File "/usr/local/lib/python3.6/site- packages/django/template/loader_tags.py", line 150, in render return compiled_parent._render(context) File "/usr/local/lib/python3.6/site- packages/django/template/base.py", line 163, in _render return self.nodelist.render(context) File "/usr/local/lib/python3.6/site- packages/django/template/base.py", line 937, in render bit = node.render_annotated(context) File "/usr/local/lib/python3.6/site- packages/django/template/base.py", line 904, in render_annotated return self.render(context) File "/usr/local/lib/python3.6/site- packages/django/template/loader_tags.py", line 150, in render return compiled_parent._render(context) File "/usr/local/lib/python3.6/site- packages/django/template/base.py", line 163, in _render return self.nodelist.render(context) File "/usr/local/lib/python3.6/site- packages/django/template/base.py", line 937, in render bit = node.render_annotated(context) File "/usr/local/lib/python3.6/site- packages/django/template/base.py", line 904, in render_annotated return self.render(context) File "/usr/local/lib/python3.6/site- packages/compressor/templatetags/compress.py", line 131, in render return self.render_compressed(context, self.kind, self.mode, forced=forced) File "/usr/local/lib/python3.6/site- packages/compressor/templatetags/compress.py", line 107, in render_compressed rendered_output = compressor.output(mode, forced=forced) File "/usr/local/lib/python3.6/site-packages/compressor/css.py", line 49, in output ret.append(subnode.output(*args, **kwargs)) File "/usr/local/lib/python3.6/site-packages/compressor/css.py", line 51, in output return super(CssCompressor, self).output(*args, **kwargs) File "/usr/local/lib/python3.6/site-packages/compressor/base.py", line 295, in output output = '\n'.join(self.filter_input(forced)) File "/usr/local/lib/python3.6/site-packages/compressor/base.py", line 235, in filter_input for hunk in self.hunks(forced): File "/usr/local/lib/python3.6/site-packages/compressor/base.py", line 205, in hunks precompiled, value = self.precompile(value, **options) File "/usr/local/lib/python3.6/site-packages/compressor/base.py", line 268, in precompile return True, filter.input(**kwargs) File "/usr/local/lib/python3.6/site- packages/compressor/filters/base.py", line 229, in input return super(CachedCompilerFilter, self).input(**kwargs) File "/usr/local/lib/python3.6/site- packages/compressor/filters/base.py", line 196, in input raise FilterError(err) compressor.exceptions.FilterError: Error: It's not clear which file to import for '@import "../libs/bootstrap/stylesheets/bootstrap"'. Candidates: ../libs/bootstrap/stylesheets/_bootstrap.scss ../libs/bootstrap/stylesheets/bootstrap.scss Please delete or rename all but one of these files. on line 4 of static/hyperkitty/sass/hyperkitty.scss
@import "../libs/bootstrap/stylesheets/bootstrap"; ^
Victoriano Giralt Innovation Director Digital Transformation Vicerectorate University of Malaga +34952131415 SPAIN
Note: signature.asc is the electronic signature of present message A: Yes. Q: Are you sure ? A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email ?
On 2/9/21 2:04 PM, Victoriano Giralt wrote:
Traceback: ERROR 2021-02-09 19:57:41,414 726 django.request Internal Server Error: /listas/accounts/login/ Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/compressor/base.py", line 263, in precompile mod = import_module(mod_name) File "/usr/lib64/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}'
So I am pretty sure you are going to need to install something like Dart Sass. Perhaps the following thread might be helpful:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
-- Brian Carpenter Harmonylists.com Emwd.com
On 2/9/21 11:11 AM, Brian Carpenter wrote:
So I am pretty sure you are going to need to install something like Dart Sass. Perhaps the following thread might be helpful:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
Or, on recent Debian/Ubuntu at least, just
apt install sassc
See <https://docs.mailman3.org/projects/hyperkitty/en/latest/install.html#install-the-code> and <https://docs.mailman3.org/en/latest/devsetup.html?#getting-prerequisites>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
De: Mark Sapiro <mark@msapiro.net>
On 2/9/21 11:11 AM, Brian Carpenter wrote:
So I am pretty sure you are going to need to install something like Dart Sass. Perhaps the following thread might be helpful:
:-( Thanks Brian
Or, on recent Debian/Ubuntu at least, just
apt install sassc
Thanks Mark!
It's CentOS7, but sassc was already installed and has -t as short for --style.
Mailman+Postorius+Hyperkitty were humming smoothly until I did the upgrade. We need another idea ...
Victoriano Giralt Sent from mobile device
The relevant part of the error was not the one about sassc, it was this other one:
''' CommandError: An error occurred during rendering /usr/local/lib/python3.6/site-packages/django_mailman3/templates/account/email_confirm.html: Error: It's not clear which file to import for '@import "../libs/bootstrap/stylesheets/bootstrap"'. Candidates: ../libs/bootstrap/stylesheets/_bootstrap.scss ../libs/bootstrap/stylesheets/bootstrap.scss Please delete or rename all but one of these files. on line 4 of static/hyperkitty/sass/hyperkitty.scss
@import "../libs/bootstrap/stylesheets/bootstrap"; ''' The _bootstrap.scss was lingering from the previously running version, and bootstrap.scss had been added wth the upgrade. This was confussing the templating engine ...
Mailman 3.3.3 humming happily with Postorius 1.3.4 and Hyperkitty 1.3.4
Thanks for your time!
On 2/9/21 3:26 PM, Victoriano Giralt wrote:
It's CentOS7, but sassc was already installed and has -t as short for --style.
You wrote
ModuleNotFoundError: No module named 'sassc -t compressed {infile} {outfile}'
It should be looking for just sassc, not 'sassc -t compressed {infile} {outfile}'. Whats in your settings for COMPRESS_PRECOMPILERS.
That may not be the issue. You also wrote
compressor.exceptions.FilterError: Error: It's not clear which file to import for '@import "../libs/bootstrap/stylesheets/bootstrap"'. Candidates: ../libs/bootstrap/stylesheets/_bootstrap.scss ../libs/bootstrap/stylesheets/bootstrap.scss Please delete or rename all but one of these files. on line 4 of static/hyperkitty/sass/hyperkitty.scss
You need to remove the older of
hyperkitty/static/hyperkitty/libs/bootstrap/stylesheets/bootstrap.scss
and
hyperkitty/static/hyperkitty/libs/bootstrap/stylesheets/_bootstrap.scss
That may be the whole issue.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
De: Mark Sapiro <mark@msapiro.net>
On 2/9/21 3:26 PM, Victoriano Giralt wrote:
It's CentOS7, but sassc was already installed and has -t as short for --style.
You wrote
ModuleNotFoundError: No module named 'sassc -t compressed {infile} {outfile}'
It should be looking for just sassc, not 'sassc -t compressed {infile} {outfile}'. Whats in your settings for COMPRESS_PRECOMPILERS.
I'll check this anyhow.
That may not be the issue. You also wrote
compressor.exceptions.FilterError: Error: It's not clear which file to import for '@import "../libs/bootstrap/stylesheets/bootstrap"'. Candidates: ../libs/bootstrap/stylesheets/_bootstrap.scss ../libs/bootstrap/stylesheets/bootstrap.scss Please delete or rename all but one of these files. on line 4 of static/hyperkitty/sass/hyperkitty.scss
You need to remove the older of
hyperkitty/static/hyperkitty/libs/bootstrap/stylesheets/bootstrap.scss
and
hyperkitty/static/hyperkitty/libs/bootstrap/stylesheets/_bootstrap.scss
That may be the whole issue.
And it was! You clearly have telepathy, as I was testing this while you were writing, and your message arrived when I had just clicked send on my "SOLVED" message :-D :-D
Victoriano Giralt Sent from mobile device
participants (3)
-
Brian Carpenter
-
Mark Sapiro
-
Victoriano Giralt