<html>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?<br /><br />But in the end, doing as you explained didn't change anything. Basically the same errors are still present:<blockquote><p>WARNING: apt does not have a stable CLI interface. Use with caution in scripts.<br /><br />Package lists are read...<br />Dependency tree is built...<br />reading status information...<br />[master 201aff1] saving uncommitted changes in /etc prior to apt run<br /> 2 files changed, 7 insertions(+)<br /> create mode 100644 rspamd/rspamd.log<br />0 updated, 0 reinstalled, 0 to remove and 0 not updated.<br />2 not completely installed or removed.<br />After this operation, 0 B of disk space is used additionally¦.<br />mailman3-web (0+20200530-2.1) is set up ...<br />Determining localhost credentials from /etc/mysql/debian.cnf: succeeded.<br />dbconfig-common: writing config to /etc/dbconfig-common/mailman3-web.conf<br />dbconfig-common: flushing administrative password<br />^[[0mTraceback (most recent call last):<br />  File "/usr/bin/django-admin", line 33, in <module><br />    sys.exit(load_entry_point('Django==3.2.19', 'console_scripts', 'django-admin')())<br />             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br />  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 419, in execute_from_command_line<br />    utility.execute()<br />  File "/usr/lib/python3/dist-packages/django/core/management/__init__.py", line 413, in execute<br />    self.fetch_command(subcommand).run_from_argv(self.argv)<br />  File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 354, in run_from_argv<br />    self.execute(*args, **cmd_options)<br />  File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 398, in execute<br />    output = self.handle(*args, **options)<br />             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br />  File "/usr/lib/python3/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 187, in handle<br />    collected = self.collect()<br />                ^^^^^^^^^^^^^^<br />  File "/usr/lib/python3/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 114, in collect<br />    handler(path, prefixed_path, storage)<br />  File "/usr/lib/python3/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 338, in copy_file<br />    if not self.delete_file(path, prefixed_path, source_storage):<br />           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^<br />  File "/usr/lib/python3/dist-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 291, in delete_file<br />    self.storage.delete(prefixed_path)<br />  File "/usr/lib/python3/dist-packages/django/core/files/storage.py", line 318, in delete<br />    os.remove(name)<br />PermissionError: [Errno 13] Permission denied: '/var/lib/mailman3/web/static/hyperkitty/libs/jquery.hotkeys.js'<br />^[[0mdpkg: error while editing package mailman3-web (--configure):<br /> "installed post-install script of package mailman3-web" subprocess returned error value 1<br />dpkg: dependency issues preventing configuration of mailman3-full:<br /> mailman3-full depends on mailman3-web; but:<br />   Package mailman3-web is not configured yet.<br /><br />dpkg: Error while editing package mailman3-full (--configure):<br /> Abh¦ngibility problems - remains unconfigured.<br />Errors occurred while editing:<br /> mailman3-web<br /> mailman3-full<br />[master c9c8cdb] committing changes in /etc made by "apt install -f"<br /> 1 file changed, 47 insertions(+)<br />E: Sub-process /usr/bin/dpkg returned an error code (1)</p></blockquote>Richard<br /><br /><br />Am Sonntag, 13. August 2023 09:01 CEST, schrieb Takatsugu Nokubi <nokubi@gmail.com>:<br /> <blockquote type="cite" cite="CADCYzv7yoMRHW=QtKovYhjxXd+3-xqm9V5DLxu_t3tmfhbUDgQ@mail.gmail.com"><div dir="ltr"><div>I don't know why your mailman3-web was broken, anyway I can fix the problem with the following steps:</div><div> </div><div>* add config to /etc/mailman3/mailman-web.py</div><div> </div><div>```</div><div>DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'<br />Q_CLUSTER = {<br />    'timeout': 300,<br />    'retry': 600,<br />    'save_limit': 100,<br />    'orm': 'default',<br />    'poll': 5,<br />}</div><div>```</div><div> </div><div>* make django migration</div><div> </div><div>```</div><div>sudo -u www-data /usr/share/mailman3-web/manage.py makemigrations<br />sudo -u www-data /usr/share/mailman3-web/manage.py migrate</div><div>```</div><div> </div><div>to enable DEFAULT_AUTO_FIELD config</div><div> </div><div>* restart service</div><div> </div><div>```</div><div>sudo service mailman3 restart<br />sudo service mailman3-web restart<br />```</div><div> </div><div>to enable Q_CLUSTER  config</div></div></blockquote></html>