Re: Core, Hyperkitty and Postorius releases
On Fri, May 14, 2021 at 2:52 PM Jeff Steele <jeff@steele.com> wrote:
On May 14, 2021, at 7:49 AM, Odhiambo Washington <odhiambo@gmail.com> wrote:
/bin/sh: sass: Permission denied*
Did you check the permissions on your sass binary?
My mailman installed in /opt/mailman/mm
find /opt/mailman/ -type f -name sass
yielded nothing!
pip3 install sass generated so many errors then ended with:
ERROR: Command errored out with exit status 1: /opt/mailman/mm/venv/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cltizg93/sass_9783b9d070744303b5c04271674abc23/setup.py'"'"'; __file__='"'"'/tmp/pip-install-cltizg93/sass_9783b9d070744303b5c04271674abc23/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-1g2omozl/install-record.txt --single-version-externally-managed --compile --install-headers /opt/mailman/mm/venv/include/site/python3.7/sass Check the logs for full command output.
I will have to blow away mailman and start afresh.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v "^$|^.*#" :-)
On 5/14/21 5:02 AM, Odhiambo Washington wrote:
On Fri, May 14, 2021 at 2:52 PM Jeff Steele <jeff@steele.com> wrote:
On May 14, 2021, at 7:49 AM, Odhiambo Washington <odhiambo@gmail.com> wrote:
/bin/sh: sass: Permission denied*
Did you check the permissions on your sass binary?
My mailman installed in /opt/mailman/mm
find /opt/mailman/ -type f -name sass
yielded nothing!
Try which sass
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Fri, May 14, 2021 at 7:04 PM Mark Sapiro <mark@msapiro.net> wrote:
On 5/14/21 5:02 AM, Odhiambo Washington wrote:
On Fri, May 14, 2021 at 2:52 PM Jeff Steele <jeff@steele.com> wrote:
On May 14, 2021, at 7:49 AM, Odhiambo Washington <odhiambo@gmail.com> wrote:
/bin/sh: sass: Permission denied*
Did you check the permissions on your sass binary?
My mailman installed in /opt/mailman/mm
find /opt/mailman/ -type f -name sass
yielded nothing!
Try
which sass
root@gw:/usr/home/wash # su mailman3 (venv) [mailman3@gw /usr/home/wash]$ which sass (venv) [mailman3@gw /usr/home/wash]$
There is no sass.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v "^$|^.*#" :-)
On 5/14/21 12:50 PM, Odhiambo Washington wrote:
On Fri, May 14, 2021 at 7:04 PM Mark Sapiro <mark@msapiro.net> wrote:
On 5/14/21 5:02 AM, Odhiambo Washington wrote:
On Fri, May 14, 2021 at 2:52 PM Jeff Steele <jeff@steele.com> wrote:
On May 14, 2021, at 7:49 AM, Odhiambo Washington <odhiambo@gmail.com> wrote:
/bin/sh: sass: Permission denied*
... Try
which sass
root@gw:/usr/home/wash # su mailman3 (venv) [mailman3@gw /usr/home/wash]$ which sass (venv) [mailman3@gw /usr/home/wash]$
There is no sass.
There has to be. You can't get a permissions error on sass if it doesn't exist (well, maybe if you don't have permission to search a superordinate directory, but that's unlikely).
Try find /usr -name sass
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Fri, May 14, 2021 at 11:13 PM Mark Sapiro <mark@msapiro.net> wrote:
On 5/14/21 12:50 PM, Odhiambo Washington wrote:
On Fri, May 14, 2021 at 7:04 PM Mark Sapiro <mark@msapiro.net> wrote:
On 5/14/21 5:02 AM, Odhiambo Washington wrote:
On Fri, May 14, 2021 at 2:52 PM Jeff Steele <jeff@steele.com> wrote:
On May 14, 2021, at 7:49 AM, Odhiambo Washington <odhiambo@gmail.com> wrote:
/bin/sh: sass: Permission denied*
... Try
which sass
root@gw:/usr/home/wash # su mailman3 (venv) [mailman3@gw /usr/home/wash]$ which sass (venv) [mailman3@gw /usr/home/wash]$
There is no sass.
There has to be. You can't get a permissions error on sass if it doesn't exist (well, maybe if you don't have permission to search a superordinate directory, but that's unlikely).
Try
find /usr -name sass
/usr/local/include/sass
That is the only thing found that is in the base system.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v "^$|^.*#" :-)
On 5/14/21 1:54 PM, Odhiambo Washington wrote:
/usr/local/include/sass
That is the only thing found that is in the base system.
And that's the one you want. What is it's mode?
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Sat, May 15, 2021 at 12:01 AM Mark Sapiro <mark@msapiro.net> wrote:
On 5/14/21 1:54 PM, Odhiambo Washington wrote:
/usr/local/include/sass
That is the only thing found that is in the base system.
And that's the one you want. What is it's mode?
root@gw:/usr/home/wash # ls -al /usr/local/include/sass total 104 drwxr-xr-x 2 root wheel 512 Apr 16 16:49 . drwxr-xr-x 176 root wheel 10240 Apr 19 18:05 .. -rw-r--r-- 1 root wheel 2369 Apr 8 11:08 base.h -rw-r--r-- 1 root wheel 10742 Apr 8 11:08 context.h -rw-r--r-- 1 root wheel 6632 Apr 8 11:08 functions.h -rw-r--r-- 1 root wheel 6489 Apr 8 11:08 values.h -rw-r--r-- 1 root wheel 198 Apr 8 11:08 version.h
I imagined I needed an executable.
drwxr-xr-x 2 root wheel 512 Apr 16 16:49 sass
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v "^$|^.*#" :-)
On Fri, May 14, 2021, at 2:16 PM, Odhiambo Washington wrote:
On Sat, May 15, 2021 at 12:01 AM Mark Sapiro <mark@msapiro.net> wrote:
On 5/14/21 1:54 PM, Odhiambo Washington wrote:
/usr/local/include/sass
That is the only thing found that is in the base system.
And that's the one you want. What is it's mode?
root@gw:/usr/home/wash # ls -al /usr/local/include/sass total 104 drwxr-xr-x 2 root wheel 512 Apr 16 16:49 . drwxr-xr-x 176 root wheel 10240 Apr 19 18:05 .. -rw-r--r-- 1 root wheel 2369 Apr 8 11:08 base.h -rw-r--r-- 1 root wheel 10742 Apr 8 11:08 context.h -rw-r--r-- 1 root wheel 6632 Apr 8 11:08 functions.h -rw-r--r-- 1 root wheel 6489 Apr 8 11:08 values.h -rw-r--r-- 1 root wheel 198 Apr 8 11:08 version.h
I imagined I needed an executable.
This sounds like a result of you running pip3 install sass
, probably with sudo
which failed mid-way due to the exception you posted above.
Which OS are you using? On debian/ubuntu, you can install:
sudo apt install sassc
I am not exactly sure how it got removed during your upgrade to the new version of Mailman since it shouldn't affect your system packages.
Did you install Mailman initially using system packages or instructions provided at 1?
-- thanks, Abhilash Raj (maxking)
On Sat, May 15, 2021 at 12:24 AM Abhilash Raj <maxking@asynchronous.in> wrote:
On Fri, May 14, 2021, at 2:16 PM, Odhiambo Washington wrote:
On Sat, May 15, 2021 at 12:01 AM Mark Sapiro <mark@msapiro.net> wrote:
On 5/14/21 1:54 PM, Odhiambo Washington wrote:
/usr/local/include/sass
That is the only thing found that is in the base system.
And that's the one you want. What is it's mode?
root@gw:/usr/home/wash # ls -al /usr/local/include/sass total 104 drwxr-xr-x 2 root wheel 512 Apr 16 16:49 . drwxr-xr-x 176 root wheel 10240 Apr 19 18:05 .. -rw-r--r-- 1 root wheel 2369 Apr 8 11:08 base.h -rw-r--r-- 1 root wheel 10742 Apr 8 11:08 context.h -rw-r--r-- 1 root wheel 6632 Apr 8 11:08 functions.h -rw-r--r-- 1 root wheel 6489 Apr 8 11:08 values.h -rw-r--r-- 1 root wheel 198 Apr 8 11:08 version.h
I imagined I needed an executable.
This sounds like a result of you running
pip3 install sass
, probably with sudo which failed mid-way due to the exception you posted above.
Closer to the truth! It failed. I was running this from within the virtualenv.
Which OS are you using?
FreeBSD.
On debian/ubuntu, you can install:
sudo apt install sassc
Do I need to install sassc in the base OS or in the virtualenv?
I am not exactly sure how it got removed during your upgrade to the new version of Mailman since it shouldn't affect your system packages.
The funny part is my MM3 used to run. Mark took so much hand-holding for me to get it running. Then one day I used the update process and things got hosed. The happy part is that I had not put any production lists on MM3 as I hadn't developed the confidence of managing it.
Did you install Mailman initially using system packages or instructions
provided at 1?
No. I relied on https://wiki.list.org/DOC/Mailman%203%20installation%20experience. This is way back! Your new link is recent, no?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v "^$|^.*#" :-)
On 5/14/21 2:52 PM, Odhiambo Washington wrote:
Do I need to install sassc in the base OS or in the virtualenv?
Have you checked which sassc
to see if you don't already have it. It
doesn't matter whether it's in the base OS or the virtualenv. Things
running in the virtualenv can still access the base OS, just not vice versa.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Sat, May 15, 2021 at 1:04 AM Mark Sapiro <mark@msapiro.net> wrote:
On 5/14/21 2:52 PM, Odhiambo Washington wrote:
Do I need to install sassc in the base OS or in the virtualenv?
Have you checked
which sassc
to see if you don't already have it. It doesn't matter whether it's in the base OS or the virtualenv. Things running in the virtualenv can still access the base OS, just not vice versa.
I install sassc, because sass installation always failed - after some upgrade. <https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/> I remember posting about it in 2020 or 2019 :)
root@gw:/usr/home/wash # which sassc /usr/local/bin/sassc
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v "^$|^.*#" :-)
On 14/5/21 23:52, Odhiambo Washington wrote:
Which OS are you using? FreeBSD.
As Mark pointed, you probably have installed the textproc/sassc port (or package). I'ts an equivalent for sass. Do the config as advised.
I have mailman3 installed and running smoothly in a pair of 12.2 RELEASE FBSD servers.
There is a thread about this installations that can help: https://forums.freebsd.org/threads/mailman-3.61050/post-488128
On Sat, May 15, 2021 at 1:08 AM Guillermo Hernandez (Oldno7) via Mailman-users <mailman-users@mailman3.org> wrote:
On 14/5/21 23:52, Odhiambo Washington wrote:
Which OS are you using? FreeBSD.
As Mark pointed, you probably have installed the textproc/sassc port (or package). I'ts an equivalent for sass. Do the config as advised.
I have mailman3 installed and running smoothly in a pair of 12.2 RELEASE FBSD servers.
There is a thread about this installations that can help: https://forums.freebsd.org/threads/mailman-3.61050/post-488128 <https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/>
I will look into this. I know FreeBSD has a mailam3 port, but I have mailman2 in production and the port installs to /usr/local/mailman so I have to be careful - install mailman3 in /opt, then plan on hosing mailan2 and moving mailman3 to it's place after migration. It's not simple.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v "^$|^.*#" :-)
On 15/5/21 0:29, Odhiambo Washington wrote:
On Sat, May 15, 2021 at 1:08 AM Guillermo Hernandez (Oldno7) via Mailman-users <mailman-users@mailman3.org <mailto:mailman-users@mailman3.org>> wrote:
On 14/5/21 23:52, Odhiambo Washington wrote: >> Which OS are you using? > FreeBSD. > > As Mark pointed, you probably have installed the textproc/sassc port (or package). I'ts an equivalent for sass. Do the config as advised. I have mailman3 installed and running smoothly in a pair of 12.2 RELEASE FBSD servers. There is a thread about this installations that can help: https://forums.freebsd.org/threads/mailman-3.61050/post-488128 <https://forums.freebsd.org/threads/mailman-3.61050/post-488128>
I will look into this. I know FreeBSD has a mailam3 port,
The mailman3 port runs, but aaaaaall the other apps needed, just no. Following the FreeBSD ports route ended in a failure. In the previous post on the link I explained all the failed tries.
but I have mailman2 in production and the port installs to /usr/local/mailman I had mailman2 indeed. And migrated to mailman3 all my lists (17 in one server, 2 in other). One of them with more than 8000 suscribers. I know it's not much, but in that thread you can find example config files than you can compare. They are working. so I have to be careful - install mailman3 in /opt, then plan on hosing mailan2 and moving mailman3 to it's place after migration. It's not simple.
Yes, I know. I did.
Best luck.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v "^$|^.*#" :-)
On 5/14/21 2:16 PM, Odhiambo Washington wrote:
root@gw:/usr/home/wash # ls -al /usr/local/include/sass total 104 drwxr-xr-x 2 root wheel 512 Apr 16 16:49 . drwxr-xr-x 176 root wheel 10240 Apr 19 18:05 .. -rw-r--r-- 1 root wheel 2369 Apr 8 11:08 base.h -rw-r--r-- 1 root wheel 10742 Apr 8 11:08 context.h -rw-r--r-- 1 root wheel 6632 Apr 8 11:08 functions.h -rw-r--r-- 1 root wheel 6489 Apr 8 11:08 values.h -rw-r--r-- 1 root wheel 198 Apr 8 11:08 version.h
I imagined I needed an executable.
drwxr-xr-x 2 root wheel 512 Apr 16 16:49 sass
Those are headers for compiling some sass. Possibly you actually have a
sassc
installed in which case you may need
COMPRESS_PRECOMPILERS = ( ('text/x-scss', 'sassc -t compressed {infile} {outfile}'), ('text/x-sass', 'sassc -t compressed {infile} {outfile}'), )
in your settings_local.py. See https://docs.mailman3.org/projects/hyperkitty/en/latest/install.html#install... and the Sass compiler section at https://docs.mailman3.org/en/latest/install/virtualenv.html#dependencies.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Sat, May 15, 2021 at 12:47 AM Mark Sapiro <mark@msapiro.net> wrote:
On 5/14/21 2:16 PM, Odhiambo Washington wrote:
root@gw:/usr/home/wash # ls -al /usr/local/include/sass total 104 drwxr-xr-x 2 root wheel 512 Apr 16 16:49 . drwxr-xr-x 176 root wheel 10240 Apr 19 18:05 .. -rw-r--r-- 1 root wheel 2369 Apr 8 11:08 base.h -rw-r--r-- 1 root wheel 10742 Apr 8 11:08 context.h -rw-r--r-- 1 root wheel 6632 Apr 8 11:08 functions.h -rw-r--r-- 1 root wheel 6489 Apr 8 11:08 values.h -rw-r--r-- 1 root wheel 198 Apr 8 11:08 version.h
I imagined I needed an executable.
drwxr-xr-x 2 root wheel 512 Apr 16 16:49 sass
Those are headers for compiling some sass. Possibly you actually have a
sassc
installed in which case you may needCOMPRESS_PRECOMPILERS = ( ('text/x-scss', 'sassc -t compressed {infile} {outfile}'), ('text/x-sass', 'sassc -t compressed {infile} {outfile}'), )
This change makes the error I was getting to go away. However, I cannot login to manage lists, even after restarting mailman.
The error details are here: https://pastebin.ubuntu.com/p/vM2c5WYyJ4/
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v "^$|^.*#" :-)
On 5/14/21 3:00 PM, Odhiambo Washington wrote:
On Sat, May 15, 2021 at 12:47 AM Mark Sapiro <mark@msapiro.net> wrote:
Those are headers for compiling some sass. Possibly you actually have a
sassc
installed in which case you may needCOMPRESS_PRECOMPILERS = ( ('text/x-scss', 'sassc -t compressed {infile} {outfile}'), ('text/x-sass', 'sassc -t compressed {infile} {outfile}'), )
This change makes the error I was getting to go away. However, I cannot login to manage lists, even after restarting mailman.
The error details are here: https://pastebin.ubuntu.com/p/vM2c5WYyJ4/
The relevant part of which is
OfflineGenerationError at /accounts/login/ You have offline compression enabled but key "fa788b08b65fd318d68cfc5afebc18acd3e93cebffadb54d863572ad1754f368" is missing from offline manifest. You may need to run "python manage.py compress". Here is the original content:
I.e., something went wrong with your compress command. Try it again.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Sat, May 15, 2021 at 1:08 AM Mark Sapiro <mark@msapiro.net> wrote:
On 5/14/21 3:00 PM, Odhiambo Washington wrote:
On Sat, May 15, 2021 at 12:47 AM Mark Sapiro <mark@msapiro.net> wrote:
Those are headers for compiling some sass. Possibly you actually have a
sassc
installed in which case you may needCOMPRESS_PRECOMPILERS = ( ('text/x-scss', 'sassc -t compressed {infile} {outfile}'), ('text/x-sass', 'sassc -t compressed {infile} {outfile}'), )
This change makes the error I was getting to go away. However, I cannot login to manage lists, even after restarting mailman.
The error details are here: https://pastebin.ubuntu.com/p/vM2c5WYyJ4/
The relevant part of which is
OfflineGenerationError at /accounts/login/ You have offline compression enabled but key "fa788b08b65fd318d68cfc5afebc18acd3e93cebffadb54d863572ad1754f368" is missing from offline manifest. You may need to run "python manage.py compress". Here is the original content:
I.e., something went wrong with your compress command. Try it again.
I have successfully run the following commands:
/opt/mailman/mm/bin/django-admin collectstatic --clear --noinput --verbosity 0 /opt/mailman/mm/bin/django-admin compress /opt/mailman/mm/bin/django-admin compilemessages /opt/mailman/mm/bin/django-admin migrate
But the error at https://pastebin.ubuntu.com/p/vM2c5WYyJ4/ persists.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v "^$|^.*#" :-)
participants (4)
-
Abhilash Raj
-
Guillermo Hernandez (Oldno7)
-
Mark Sapiro
-
Odhiambo Washington