Hi Mark,
thanks for your patience.
Am 10.01.2022 um 04:56 schrieb Mark Sapiro <mark@msapiro.net>:
Anyway, the above is saying that restadmin:??? doesn't match what's configured in Mailman core and reported by
mailman info
. Please check carefully that these are the same in both mailman.cfg admin_pass and settings MAILMAN_REST_API_PASS.
Yes, again with password disclosed:
(mailman_33) [root@lists5 /usr/local/mailman3]# service mailman restart Restarting the Mailman runners (mailman_33) [root@lists5 /usr/local/mailman3]# su -m www -c "curl -v -u restadmin:restpass http://localhost:8001/3.1/lists"
- Trying 127.0.0.1:8001...
- Connected to localhost (91.216.35.42) port 8001 (#0)
- Server auth using Basic with user 'restadmin'
GET /3.1/lists HTTP/1.1 Host: localhost:8001 Authorization: Basic cmVzdGFkbWluOnJlc3RwYXNz User-Agent: curl/7.80.0 Accept: */*
- Mark bundle as not supporting multiuse < HTTP/1.1 401 Unauthorized < Server: gunicorn < Date: Mon, 10 Jan 2022 09:39:43 GMT < Connection: close
- Authentication problem. Ignoring this. < www-authenticate: Basic realm="mailman3-rest",charset="utf-8" < content-type: application/json < vary: Accept < content-length: 77 <
- Closing connection 0 {"title": "401 Unauthorized", "description": "REST API authorization failed“} (mailman_33) [root@lists5 /usr/local/mailman3]# (mailman_33) [root@lists5 /usr/local/mailman3]# grep REST settings.py MAILMAN_REST_API_URL = 'http://localhost:8001' MAILMAN_REST_API_USER = 'restadmin' MAILMAN_REST_API_PASS = 'restpass' (mailman_33) [root@lists5 /usr/local/mailman3]# grep admin var/etc/mailman.cfg admin_user: restadmin admin_pass: restpass (mailman_33) [root@lists5 /usr/local/mailman3]#
What am I doing wrong? Is something wrong with my installed python packages? pip freeze attached.
clueless, Axel
PGP-Key: CDE74120 ☀ computing @ chaos claudius