question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

manage.py: Unknown command: 'generate_rights'

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
tonioocommented, Oct 31, 2015

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.

0reactions
Whichcraftcommented, Dec 30, 2015

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found