Bug#1041496: mailman3-web: Upgrade from Debian 11 to 12 dpkg can't configure mailman3-full and -web

2023-08-23 Thread Richard Rosner

PS: this only fixed the problem with mailman3-web not working. The problem that 
mailman3-full and mailman3-web can't be configured (which means apt will retry 
any time I update stuff) still exists. If anybody got recommendations for this 
it would be appreciated too.


smime.p7s
Description: S/MIME cryptographic signature


Bug#1041496: mailman3-web: Upgrade from Debian 11 to 12 dpkg can't configure mailman3-full and -web

2023-08-07 Thread Richard Rosner

It would be very much appreciated if a solution could be found, or at least 
help provided to figure out the problem. Right now, both mailman3-full and 
mailman3-web can't be configured, so every time apt runs, it also tries to fix 
them. While mailman3 itself is working, mailman3-web is completely dead.

PS: I also tried adding DEFAULT_AUTO_FIELD='django.db.models.AutoField' to the 
settings.py, but I don't see any changes. Output is this (for dpkg --configure 
-a):

mailman3-web (0+20200530-2.1) is being set up ...
Determining localhost credentials from /etc/mysql/debian.cnf: 
succeeded.dbconfig-common: writing config to 
/etc/dbconfig-common/mailman3-web.conf
dbconfig-common: flushing administrative password
/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 tasks to be retriggered before completion.
See https://django-q.readthedocs.io/en/latest/configure.html#retry for details.
warn(
/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 tasks to be retriggered before completion.
See https://django-q.readthedocs.io/en/latest/configure.html#retry for details.
warn(
Traceback (most recent call last):
File "/usr/bin/django-admin", line 33, in 
sys.exit(load_entry_point('Django==3.2.19', 'console_scripts', 
'django-admin')())
^^^
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 
419, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 
413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 354, 
in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 398, 
in execute
output = self.handle(*args, **options)
^
File 
"/usr/lib/python3/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
 line 187, in handle
collected = self.collect()
^^
File 
"/usr/lib/python3/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
 line 114, in collect
handler(path, prefixed_path, storage)
File 
"/usr/lib/python3/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
 line 338, in copy_file
if not self.delete_file(path, prefixed_path, source_storage):
^
File 
"/usr/lib/python3/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py",
 line 291, in delete_file
self.storage.delete(prefixed_path)
File "/usr/lib/python3/dist-packages/django/core/files/storage.py", line 318, 
in delete
os.remove(name)
PermissionError: [Errno 13] Permission denied: 
'/var/lib/mailman3/web/static/hyperkitty/libs/jquery.hotkeys.js'
dpkg: Error during processing of package mailman3-web (--configure):
»installed post-installation-skrict of package mailman3-web«-sub process exited 
with error code 1
dpkg: dependency errors prevent configuration of mailman3-full:
mailman3-full depends onmailman3-web; but:
Package mailman3-web isn't configured.

dpkg: error during processing of package mailman3-full (--configure):
Dependency errors - stays unconfigured
Errors during processing of:
mailman3-web
mailman3-full



smime.p7s
Description: S/MIME cryptographic signature


Bug#1041496: mailman3-web: Upgrade from Debian 11 to 12 dpkg can't configure mailman3-full and -web

2023-07-19 Thread Richard Rosner
Package: mailman3-web
Version: 0+20200530-2.1
Severity: important

Dear Maintainer,

I just made the upgrade from bullseye to bookworm. mailman3 was up and running 
before, but the upgrade failed at the point mailman3-full and mailman3-web 
where supposed to be configured by dpkg. dpkg --configure mailman3-web gives 
these mostly hyperkitty-related errors:

mailman3-web (0+20200530-2.1) wird eingerichtet ...
Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.
dbconfig-common: writing config to /etc/dbconfig-common/mailman3-web.conf
dbconfig-common: flushing administrative password
/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 tasks to be retriggered before 
completion.
See https://django-q.readthedocs.io/en/latest/configure.html#retry for 
details.
  warn(
System check identified some issues:

WARNINGS:
django_mailman3.MailDomain: (models.W042) Auto-created primary key used when 
not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
DjangoMailman3Config.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
django_mailman3.Profile: (models.W042) Auto-created primary key used when not 
defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
DjangoMailman3Config.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
hyperkitty.Attachment: (models.W042) Auto-created primary key used when not 
defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
HyperKittyConfig.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
hyperkitty.Email: (models.W042) Auto-created primary key used when not defining 
a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
HyperKittyConfig.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
hyperkitty.Favorite: (models.W042) Auto-created primary key used when not 
defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
HyperKittyConfig.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
hyperkitty.LastView: (models.W042) Auto-created primary key used when not 
defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
HyperKittyConfig.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
hyperkitty.MailingList: (models.W042) Auto-created primary key used when not 
defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
HyperKittyConfig.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
hyperkitty.Profile: (models.W042) Auto-created primary key used when not 
defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
HyperKittyConfig.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
hyperkitty.Tag: (models.W042) Auto-created primary key used when not defining a 
primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
HyperKittyConfig.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
hyperkitty.Tagging: (models.W042) Auto-created primary key used when not 
defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
HyperKittyConfig.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
hyperkitty.Thread: (models.W042) Auto-created primary key used when not 
defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
HyperKittyConfig.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
hyperkitty.ThreadCategory: (models.W042) Auto-created primary key used when not 
defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the 
HyperKittyConfig.default_auto_field attribute to point to a subclass of 
AutoField, e.g. 'django.db.models.BigAutoField'.
hyperkitty.Vote: (models.W042) Auto-created