Bug#992151: mailman3-web: No connection to REST API

2021-08-23 Thread Richard Rosner

The problem has now been solved. The solution was to use http instead of uwsgi 
as protocol. Also, communication is running through http instead of a socket. I 
can't tell if http protocol would also work through a socket, but uwsgi wasn't 
working through either. Maybe the uwsgi.ini should contain a hint to that 
possibility in the future. Also, the apache config that is created during 
installation seems to be incomplete, as it only contains mailman3 but not 
hyperkitty, django and admin, plus mailman3 also isn't working and had to be 
replaced by postorius. Not sure though if that was only a problem for me or if 
that should be added.


smime.p7s
Description: S/MIME cryptographic signature


Bug#992151: mailman3-web: No connection to REST API

2021-08-13 Thread Richard Rosner
Package: mailman3-web
Version: 0+20180916-8
Severity: important

Dear Maintainer,

I recently installed mailman3-full to make the switch from mailman 2.x before 
it's being discontinued. While the installation was quite a hassle since both 
mailman3 and mailman3-web had severe issues talking to mysql I was eventually 
able to install them. Importing the mailing lists was also no problem, but the 
use of mailman3-web is.

At first I was at least able to open the web site, log in and confirm the admin 
mail adress after figuring out how to incorporate the automatically generated 
apache2 config into the previously used one, but the website kept telling me it 
was not able to connect to the REST API.

I have already tried quite a few solutions while talking to someone on the 
mailman3 mailing list [1] but nothing has worked so far to get the website work 
propperly. I have already posted all relevant config files and steps taken over 
there so I'll just link the thread. Maybe you can tell what's wrong since there 
are some subtle differences between the packaged version and how it's generally 
expected to work.

Sincerely
Richard

[1]:https://lists.mailman3.org/archives/list/mailman-us...@mailman3.org/thread/3NT7E3EH7OIV3QDFO5XD5H7G7MTIDTYE/

-- System Information:
Debian Release: 10.10
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-16-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mailman3-web depends on:
ii  dbconfig-mysql 2.0.11+deb10u1
ii  debconf [debconf-2.0]  1.5.71
ii  lsb-base   10.2019051400
ii  node-less  1.6.3~dfsg-3
ii  python33.7.3-1
ii  python3-django-hyperkitty  1.2.2-1+deb10u1
ii  python3-django-postorius   1.2.4-1
ii  python3-mysqldb1.3.10-2
ii  python3-psycopg2   2.7.7-1
ii  python3-whoosh 2.7.4+git6-g9134ad92-4
ii  sassc  3.5.0-1
ii  ucf3.0038+nmu1
ii  uwsgi  2.0.18-1
ii  uwsgi-plugin-python3   2.0.18-1

Versions of packages mailman3-web recommends:
ii  libapache2-mod-proxy-uwsgi  2.4.48-3~bpo10+1

Versions of packages mailman3-web suggests:
ii  default-mysql-server1.0.5
ii  mariadb-server-10.3 [virtual-mysql-server]  1:10.3.29-0+deb10u1

-- Configuration Files:
/etc/mailman3/apache.conf changed:
Alias /mailman3/favicon.ico 
/var/lib/mailman3/web/static/postorius/img/favicon.ico
Alias /mailman3/static  /var/lib/mailman3/web/static

Require all granted


ProxyPass /mailman3/favicon.ico !
ProxyPass /mailman3/static !
ProxyPass /mailman3 unix:/run/mailman3-web/uwsgi.sock|uwsgi://localhost/

SSLEngine on
SSLCertificateFile/etc/ssl/certs/lists.fsmuw.rwth-aachen.de.cert.pem
SSLCertificateKeyFile /etc/ssl/private/lists.fsmuw.rwth-aachen.de.private.pem
SSLCertificateChainFile /etc/ssl/certs/dfnca.pem
SSLCACertificateFile /etc/ssl/certs/rwthcert.pem
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
Protocols h2 http/1.1
SSLCipherSuite 
ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256
SSLHonorCipherOrder off
/etc/mailman3/uwsgi.ini changed:
[uwsgi]
uwsgi-socket = 0.0.0.0:8000
enable-threads = true
chdir = /usr/share/mailman3-web
wsgi-file = wsgi.py
master = true
process = 2
threads = 2
uid = list
gid = list
plugins = python3
attach-daemon = python3 manage.py qcluster
logto = /var/log/mailman3/web/mailman-web.log


-- debconf information:
  mailman3-web/mysql/admin-pass: (password omitted)
  mailman3-web/app-password-confirm: (password omitted)
  mailman3-web/mysql/app-pass: (password omitted)
* mailman3-web/superuser-password: (password omitted)
  mailman3-web/password-confirm: (password omitted)
  mailman3-web/dbconfig-remove: true
  mailman3-web/internal/reconfiguring: false
* mailman3-web/dbconfig-install: true
  mailman3-web/upgrade-backup: true
  mailman3-web/install-error: abort
  mailman3-web/missing-db-package-error: abort
  mailman3-web/internal/skip-preseed: false
  mailman3-web/remote/port: 3306
  mailman3-web/passwords-do-not-match:
* mailman3-web/superuser-name: admin
* mailman3-web/restart-webserver: true
  mailman3-web/dbconfig-upgrade: true
  mailman3-web/upgrade-error: abort
  mailman3-web/purge: false
* mailman3-web/database-type: mysql
  mailman3-web/db/dbname: mailman3web
  mailman3-web/remote/newhost:
  mailman3-web/remove-error: abort
* mailman3-web/dbconfig-reinstall: false
* mailman3-web/configure-webserver: apache2
* mailman3-web/superuser-mail: ad...@fsmuw.rwth-aachen.de