Mihai Moldovan writes:
> Providing such wrappers as part of venv or the upstream repository
> is hence not possible.
We do provide them as Python scripts, which the wheels install in
"some reasonable place" such as $VENV/bin. I imagine this works fine
if you install to site-packages for the sy
Mihai Moldovan writes:
> But, all this said, mailman-web is typically already a wrapper
> calling su -s /bin/bash -c "python3 .../path/to/manage.py $*" www-data, so
> why should it be
> wrapped in another wrapper with a different user? The list user is typically
> used by the mailman-wrapp
Thanks for the feedback.
> an influx of requests along the lines of "I don't have a variable called
> $LIST_USER"
True. But if it's described abstractly enough, as you are explaining here in
this thread, might be ok.
___
Mailman-users mailing list --
* On 4/16/25 01:04, Sam Darwin via Mailman-users wrote:
"Virtualenv Installation, recommended for Production"
It's recommended for production.
I've followed that method. If someone does this, they may never encounter
or bump into any files from the "distro packaging (specifically in Debian
and
> The venv installation doesn't seem to ship those wrappers, which is why
> people write them themselves or use the whole explicit su mechanism to change
> to the correct users.
>From the mailman suite docs:
"Virtualenv Installation, recommended for Production"
It's recommended for production.
* On 4/16/25 00:41, Sam Darwin via Mailman-users wrote:
Right. The user 'list' goes at the end, instead of -u.
Yep.
The list user is typically used by the mailman-wrapper wrapper.
I'm discovering the great usefulness of the mailman-wrapper. :-) So the next
question: I used git to check
Hi @Mihai,
Right. The user 'list' goes at the end, instead of -u.
> The list user is typically used by the mailman-wrapper wrapper.
I'm discovering the great usefulness of the mailman-wrapper. :-) So the next
question: I used git to check out a bunch of the official gitlab repositories.
And
* On 4/16/25 00:06, Sam Darwin via Mailman-users wrote:
su - -u list -s /bin/bash -c "pwd"
That fails on Ubuntu 24.04. Did you mean sudo instead of su? su doesn't have a
-u flag. Or which operating system were you on?
Yes, Linux-based su doesn't support the -u option, but sudo does. Probbabl
Hi Marc,
I might post more later about this topic, but for now,
You wrote:
su - -u list -s /bin/bash -c "mailman-web makemigrations --merge"
Let's switch to harmless test without migrations. Try:
su - -u list -s /bin/bash -c "pwd"
That fails on Ubuntu 24.04. Did you mean sudo instead of su
Mark Sapiro wrote:
> What user ran the makemigrations --merge?
```
cat /usr/bin/mailman-web
#!/bin/sh
su -s /bin/sh -c "python3 /usr/share/mailman3-web/manage.py $*" www-data
```
> What does ls -la /usr/lib/python3/dist-packages/django_q/migrations/ show?
that all the files belong to `www-data
On 10/2/24 05:55, Chupin Maxime via Mailman-users wrote:
That does not change anything... :(
What user ran the `makemigrations --merge`?
What does `ls -la /usr/lib/python3/dist-packages/django_q/migrations/` show?
--
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Ca
On 10/2/24 05:58, Chupin Maxime via Mailman-users wrote:
Tried to add these lines before the test in the `conf.py`and nothing changes.
Should I remove the test on TIMEOUT ?
You should be reporting these issues (this and the migrations issue) to
Debian. We don't know how to deal with Debian p
Tried to add these lines before the test in the `conf.py`and nothing changes.
Should I remove the test on TIMEOUT ?
```
# Number of seconds to wait for a worker to finish.
That does not change anything... :(
___
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://l
Hello,
On Wed, Oct 02, 2024 at 08:05:44AM -, Chupin Maxime via Mailman-users wrote:
> Thank you. So, using `mailman-web makemigrations --merge` as `root` is the
> right way to do it (as it call user `www-data`). Unfortunately, I get the
> error wrote in my first message:
> PermissionError: [
Thank you. So, using `mailman-web makemigrations --merge` as `root` is the
right way to do it (as it call user `www-data`). Unfortunately, I get the error
wrote in my first message:
```
PermissionError: [Errno 13] Permission denied:
'/usr/lib/python3/dist-packages/django_q/migrations/0015_merge_
On Tue, Oct 01, 2024 at 08:10:54PM -0700, Mark Sapiro wrote:
> Look at the contents of the mailman-web script. My guess is it contains
> `sudo -u list ...`
Not exactly:
(debian bookworm)
su -s /bin/sh -c "python3 /usr/share/mailman3-web/manage.py $*" www-data
if run from root, it should not req
On 10/1/24 06:49, Chupin Maxime via Mailman-users wrote:
Thank you, but still asking for Password to execute mailman-web...
Look at the contents of the mailman-web script. My guess is it contains
`sudo -u list ...`
--
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area,
On 10/1/24 06:46, Chupin Maxime via Mailman-users wrote:
Thanks.
Unfortunately, whereas TIMEOUT is set to 59 and RETRY to 60, I still get the
warn... Very weird.
We recommend
Q_CLUSTER = {
'timeout': 300,
'retry': 360,
'save_limit': 100,
'orm': 'default',
}
--
Mark Sapiro
Another error message from the cron executions:
```
data-www@machine: /usr/share/mailman3-web/manage.py runjobs minutely
/usr/lib/python3/dist-packages/django_q/conf.py:139: UserWarning: Retry and
timeout are misconfigured. Set retry larger than timeout,
failure to do so will cause the ta
On Tue, Oct 01, 2024 at 11:29:52AM -, Chupin Maxime via Mailman-users wrote:
> Another error message from the cron executions:
Under Debian, I wrote a script for fixing up a few things, you can find it here:
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/OONLWQYV3
Mark Sapiro wrote:
> Did you run this as the Mailman user (list in the Debian packages)?
Thank you, I tried, but the system asked me a Password for this user... I do
not understand.
```
sudo -u list mailman-web makemigrations --merge
Password:
```
__
On Tue, Oct 1, 2024 at 12:36 PM Chupin Maxime via Mailman-users <
mailman-users@mailman3.org> wrote:
> Mark Sapiro wrote:
> > Did you run this as the Mailman user (list in the Debian packages)?
>
> Thank you, I tried, but the system asked me a Password for this user... I
> do not understand.
>
> `
Hello,
On Tue, Oct 01, 2024 at 11:08:19AM -, Chupin Maxime via Mailman-users wrote:
> root@machine: sudo -u list bash
If you are root already, you could also use su:
su - -u list -s /bin/bash -c "mailman-web makemigrations --merge"
(the -s /bin/bash is because the list account has a /usr/s
Odhiambo Washington wrote:
> > The user executing sudo is yourself so enter your own password.
> It's not the password for user "list" that is wanted. It's your own login
> password.
No, because I’m root and I can do :
```
root@machine: sudo -u list bash
```
and then
```
list@machine: mailman-
Thank you, but still asking for Password to execute mailman-web...
___
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailma
Thanks.
Unfortunately, whereas TIMEOUT is set to 59 and RETRY to 60, I still get the
warn... Very weird.
___
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.
On 9/30/24 03:00, Chupin Maxime via Mailman-users wrote:
Hi,
I upgraded my debian version,
Issues with the Debian Mailman packages should be reported to Debian.
Please see https://wiki.list.org/x/12812344 and
https://mail.python.org/archives/list/mailman-us...@python.org/message/T6LB2PQV5SP4
28 matches
Mail list logo