El 14/12/22 a las 18:16, Odhiambo Washington escribió:
On Wed, Dec 14, 2022 at 8:02 PM Stephen J. Turnbull < stephenjturnbull@gmail.com> wrote:
Odhiambo Washington writes:
The site is public, so I can share the link: https://list.rc.org/archives/
The CSS is not working. Two possibilities to try first:
- (more likely) You didn't run the command that compiles the CSS. (probably) mailman-web compress
- (much less likely) The CSS got replaced in the upgrade and the ownership changed because you were working as root, and the server process can't access the files.
- other possibilities: the SASS compiler (usually sassc, possibly sass)
- The post-update script runs everything required. For the avoidance of doubt, here it is: <CUT> #!/bin/bash
set -e
BINDIR="/opt/mailman/mm/bin" CONFDIR="/opt/mailman/mm" SETTINGS="settings" DJANGO_CONTROL_SCRIPT="$BINDIR/django-admin" STATIC_DIR="$CONFDIR/static" DEBUG="False"
set -x
if [ "$DEBUG" == "False" ]; then mkdir -p "$STATIC_DIR" || : "$DJANGO_CONTROL_SCRIPT" collectstatic --clear --noinput --verbosity 0 "$DJANGO_CONTROL_SCRIPT" compress
Odhiambo, I had problems in the compress process in the last updates. I would make sure the process is running ok. I had to disable the off line compression for this matter.
"$DJANGO_CONTROL_SCRIPT" compilemessages
fi
syncdb_cmd="$DJANGO_CONTROL_SCRIPT migrate" if [[ ! -t 1 ]]; then # stdout is not a terminal syncdb_cmd="$syncdb_cmd --noinput" fi $syncdb_cmd echo 'Do you want to rebuild the search index? This takes a long time.' echo 'Type "Yes" to continue; anything else to quit.' read -p "> " response if [ "x$response" != "xYes" ] ; then exit; fi "$DJANGO_CONTROL_SCRIPT" update_index </CUT>
The script is run within the venv.
- That isn't possible. Why? Because when I do 'su -mailman' it automatically activates the venv via a .bashrc. I have run this: find /opt/mailman -type f -name "*.css" -exec ls -al {} \;
And all files are owned by mailman.mailman.
- I have the following in settings_local.py: COMPRESS_PRECOMPILERS = ( ('text/x-scss', 'sass -t compressed {infile} {outfile}'), ('text/x-sass', 'sass -t compressed {infile} {outfile}'), ) COMPRESS_OFFLINE = True COMPRESS_ENABLED = True
And: root@list:/home/wash# su - mailman (venv) mailman@list:~$ which sass /usr/bin/sass (venv) mailman@list:~$
which sass
--version Ruby Sass 3.7.4 (venv) mailman@list:~$Anything else that might be the issue?
--
Mailman's content filtering has removed the following MIME parts from this message.
Content-Type: image/png Name: firma-GHP-emails.png
Replaced multipart/alternative part with first alternative.