[MM3-users] Re: makemigrations --merge error after Debian upgrade

2025-04-16 Thread Stephen J. Turnbull
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2025-04-16 Thread Stephen J. Turnbull
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2025-04-15 Thread Sam Darwin via Mailman-users
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 --

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2025-04-15 Thread Mihai Moldovan
* 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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2025-04-15 Thread Sam Darwin via Mailman-users
> 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.

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2025-04-15 Thread Mihai Moldovan
* 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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2025-04-15 Thread Sam Darwin via Mailman-users
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2025-04-15 Thread Mihai Moldovan
* 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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2025-04-15 Thread Sam Darwin via Mailman-users
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-03 Thread Chupin Maxime via Mailman-users
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-02 Thread Mark Sapiro
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-02 Thread Mark Sapiro
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-02 Thread Chupin Maxime via Mailman-users
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.

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-02 Thread Chupin Maxime via Mailman-users
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-02 Thread Marc SCHAEFER
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: [

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-02 Thread Chupin Maxime via Mailman-users
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_

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-01 Thread Marc SCHAEFER
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-01 Thread Mark Sapiro
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,

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-01 Thread Mark Sapiro
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-01 Thread Chupin Maxime via Mailman-users
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-01 Thread Marc SCHAEFER
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-01 Thread Chupin Maxime via Mailman-users
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: ``` __

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-01 Thread Odhiambo Washington via Mailman-users
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. > > `

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-01 Thread Marc SCHAEFER
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-01 Thread Chupin Maxime via Mailman-users
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-

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-01 Thread Chupin Maxime via Mailman-users
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

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-10-01 Thread Chupin Maxime via Mailman-users
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.

[MM3-users] Re: makemigrations --merge error after Debian upgrade

2024-09-30 Thread Mark Sapiro
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