[Pkg-mailman-hackers] Bug#1041496: RE: mailman3-web: Upgrade from Debian 11 to 12 dpkg can't configure mailman3-full and -web

Richard Rosner rrosner at fsmuw.rwth-aachen.de
Tue Aug 15 13:31:58 BST 2023


Nevermind, executing manage.py as root did solve the error. The question only is if that means some permissions are off. Any way to check that?

But in the end, doing as you explained didn't change anything. Basically the same errors are still present:
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Package lists are read...
Dependency tree is built...
reading status information...
[master 201aff1] saving uncommitted changes in /etc prior to apt run
 2 files changed, 7 insertions(+)
 create mode 100644 rspamd/rspamd.log
0 updated, 0 reinstalled, 0 to remove and 0 not updated.
2 not completely installed or removed.
After this operation, 0 B of disk space is used additionally¦.
mailman3-web (0+20200530-2.1) is 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
^[[0mTraceback (most recent call last):
  File "/usr/bin/django-admin", line 33, in <module>
    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'
^[[0mdpkg: error while editing package mailman3-web (--configure):
 "installed post-install script of package mailman3-web" subprocess returned error value 1
dpkg: dependency issues preventing configuration of mailman3-full:
 mailman3-full depends on mailman3-web; but:
   Package mailman3-web is not configured yet.

dpkg: Error while editing package mailman3-full (--configure):
 Abh¦ngibility problems - remains unconfigured.
Errors occurred while editing:
 mailman3-web
 mailman3-full
[master c9c8cdb] committing changes in /etc made by "apt install -f"
 1 file changed, 47 insertions(+)
E: Sub-process /usr/bin/dpkg returned an error code (1)Richard


Am Sonntag, 13. August 2023 09:01 CEST, schrieb Takatsugu Nokubi <nokubi at gmail.com>:
 I don't know why your mailman3-web was broken, anyway I can fix the problem with the following steps: * add config to /etc/mailman3/mailman-web.py ```DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
Q_CLUSTER = {
    'timeout': 300,
    'retry': 600,
    'save_limit': 100,
    'orm': 'default',
    'poll': 5,
}``` * make django migration ```sudo -u www-data /usr/share/mailman3-web/manage.py makemigrations
sudo -u www-data /usr/share/mailman3-web/manage.py migrate``` to enable DEFAULT_AUTO_FIELD config * restart service ```sudo service mailman3 restart
sudo service mailman3-web restart
``` to enable Q_CLUSTER  config
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-mailman-hackers/attachments/20230815/5b565565/attachment.htm>


More information about the Pkg-mailman-hackers mailing list