manage.py: Unknown command: 'generate_rights'
See original GitHub issueI have installed modoboa using the installer. The webadmin now seems to run ok, but I am unable to receive any email after configuring domain & users - I have done some investigation and I have noticed that I am being spammed from cron with this message:
Subject: Cron <root@columbia> $PYTHON $INSTANCE/manage.py generate_rights
Unknown command: 'generate_rights'
Type 'manage.py help' for usage.
Seems like Django is not installed? I have set it up manually and tried to run ./manage.py help as suggested but now I get:
root@columbia:/srv/modoboa/instance# ./manage.py help
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 351, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 303, in execute
settings.INSTALLED_APPS
File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in __getattr__
self._setup(name)
File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, in _setup
self._wrapped = Settings(settings_module)
File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/srv/modoboa/instance/instance/settings.py", line 207, in <module>
from modoboa_amavis.settings import *
ImportError: No module named modoboa_amavis.settings
I’m giving up.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Strange cron $PYTHON $INSTANCE/manage.py ...
Subject: Cron root@modoboa $PYTHON $INSTANCE/manage.py generate rights. Unknown command: 'generate_rights' Type 'manage.py help' for usage.
Read more >python manage.py sql Unknown command - Stack Overflow
First do a make migrations. python manage.py makemigrations app_name. Apply migrations. python manage.py migrate. Instead of using python ...
Read more >Error Unknown command syncdb running python manage py ...
I want to create the tables of one database called "database1.sqlite", so I run the command: python manage.py syncdb.
Read more >In Django, "Unknown command: 'raven'" · Issue #359 - GitHub
1 and Django 1.4.8: $ python manage.py raven test Unknown command: 'raven' Type 'manage.py help' for usage.
Read more >django-admin and manage.py — Django 4.1.4 documentation
Run django-admin help <command> to display a description of the given command and a list of its available options. App names¶. Many commands...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi,
the CRON issue happens because the modoboa-radicale extension is not installed. Edit the /etc/cron.d/modoboa file and comment the line containing generate_rights.
I don’t know what is the problem with tlsproxy yet, I’ll look into it.
installer.cfg is missing modoboa-radicale extension
original:
extensions = modoboa-amavis modoboa-pdfcredentials modoboa-postfix-autoreply modoboa-sievefilters modoboa-stats modoboa-webmail
better
extensions = modoboa-amavis modoboa-pdfcredentials modoboa-postfix-autoreply modoboa-sievefilters modoboa-stats modoboa-webmail modoboa-radicale