Thanks,  but I'm still getting errors:
sudo -u www-data /usr/share/mailman3-web/manage.py makemigrations
Migrations for 'django_mailman3':
  
/usr/lib/python3/dist-packages/django_mailman3/migrations/0003_auto_20230813_0944.py
    - Alter field id on maildomain
    - Alter field id on profile
Traceback (most recent call last):
  File "/usr/share/mailman3-web/manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  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/core/management/base.py", line 
89, in wrapped
    res = handle_func(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/usr/lib/python3/dist-packages/django/core/management/commands/makemigrations.py",
 line 190, in handle
    self.write_migration_files(changes)
  File 
"/usr/lib/python3/dist-packages/django/core/management/commands/makemigrations.py",
 line 228, in write_migration_files
    with open(writer.path, "w", encoding='utf-8') as fh:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 
'/usr/lib/python3/dist-packages/django_mailman3/migrations/0003_auto_20230813_0944.py'0003_auto_20230813_0944.py
 doesn't exist, the migrate directory is owned by root. But afaik this is 
supposed to be the case. So I'm not sure what's the problem.


Am Sonntag, 13. August 2023 09:01 CEST, schrieb Takatsugu Nokubi 
<nok...@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  On Mon, 07 Aug 2023 11:30:23 +0200 "Richard 
Rosner" <rros...@fsmuw.rwth-aachen.de> wrote:
>
> 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):
 

Reply via email to