Sanity check of upgrade procedure
The other day Abhilash posted here that updated releases are available.
I rarely upgrade my Mailman3 server running in a venv on Debian 11. But when I have there was previously an issue with mistune, requiring commands like this (run as mailman in a venv):
pip install -U mailman postorius django-mailman3 hyperkitty mailman-web uwsgi pip install wheel mailman pymysql mysqlclient pip install mistune==2.0.0rc1 mailman-web migrate mailman-web compress mailman-web collectstatic mailman-web compilemessages
For these new releases, is that mistune step still needed?
Thanks!
dn
On 10/26/22 11:08, David Newman wrote:
For these new releases, is that mistune step still needed?
No. That is one of the issues fixed in HyperKitty 1.3.6 which now requires mistune>=2.0.0,<3.0 and will work with those versions.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 10/26/22 3:10 PM, Mark Sapiro wrote:
On 10/26/22 11:08, David Newman wrote:
For these new releases, is that mistune step still needed?
No. That is one of the issues fixed in HyperKitty 1.3.6 which now requires mistune>=2.0.0,<3.0 and will work with those versions.
OK, thanks. Before getting to mistune, this command, run as mailman in a venv:
pip install -U mailman postorius django-mailman3 hyperkitty mailman-web uwsgi Mailmanclient
produced this error:
..
Attempting uninstall: mailman-web Found existing installation: mailman-web 0.0.6.dev9+gc606169 Uninstalling mailman-web-0.0.6.dev9+gc606169: Successfully uninstalled mailman-web-0.0.6.dev9+gc606169 ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'WHEEL' Check the permissions.
The command also said I needed to upgrade pip. Doing that produced a similar error.
How to resolve this error? Thanks again.
dn
On 10/26/22 17:30, David Newman wrote:
OK, thanks. Before getting to mistune, this command, run as mailman in a venv:
pip install -U mailman postorius django-mailman3 hyperkitty mailman-web uwsgi Mailmanclient
produced this error:
..
Attempting uninstall: mailman-web Found existing installation: mailman-web 0.0.6.dev9+gc606169 Uninstalling mailman-web-0.0.6.dev9+gc606169: Successfully uninstalled mailman-web-0.0.6.dev9+gc606169 ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'WHEEL' Check the permissions.
The command also said I needed to upgrade pip. Doing that produced a similar error.
How to resolve this error? Thanks again.
Was the venv initially created as the mailman
user? Maybe
sudo chown mailman:mailman /path/to/venv
will fix it.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 10/26/22 6:14 PM, Mark Sapiro wrote:
Attempting uninstall: mailman-web Found existing installation: mailman-web 0.0.6.dev9+gc606169 Uninstalling mailman-web-0.0.6.dev9+gc606169: Successfully uninstalled mailman-web-0.0.6.dev9+gc606169 ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'WHEEL' Check the permissions.
The command also said I needed to upgrade pip. Doing that produced a similar error.
How to resolve this error? Thanks again.
Was the venv initially created as the
mailman
user? Maybesudo chown mailman:mailman /path/to/venv
will fix it.
Yup, that was it. Some Django directories were owned by root. The installation ran clean after running 'chown -R mailman:mailman' on those directories.
Thanks!
dn
participants (2)
-
David Newman
-
Mark Sapiro