[GH-ISSUE #772] manage.py: Unknown command: 'generate_rights' #694

Closed
opened 2026-02-27 11:13:04 +03:00 by kerem · 5 comments
Owner

Originally created by @Fulviuus on GitHub (Oct 30, 2015).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/772

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.

Originally created by @Fulviuus on GitHub (Oct 30, 2015). Original GitHub issue: https://github.com/modoboa/modoboa/issues/772 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.
kerem closed this issue 2026-02-27 11:13:05 +03:00
Author
Owner

@Fulviuus commented on GitHub (Oct 31, 2015):

Update: I am not sure that is the only issue I am having with the installation.
The mail log shows this bit when receiving an email:

Oct 30 20:19:06 columbia postfix/postscreen[2464]: CONNECT from [74.125.82.44]:36353 to [178.62.123.35]:25
Oct 30 20:19:06 columbia postfix/postscreen[2464]: warning: connect to private/tlsproxy service: No such file or directory
Oct 30 20:19:06 columbia postfix/postscreen[2464]: HANGUP after 0.03 from [74.125.82.44]:36353 in tests after SMTP handshake
Oct 30 20:19:06 columbia postfix/postscreen[2464]: DISCONNECT [74.125.82.44]:36353

Is there also a problem with postfix tlsproxy?

<!-- gh-comment-id:152679647 --> @Fulviuus commented on GitHub (Oct 31, 2015): Update: I am not sure that is the only issue I am having with the installation. The mail log shows this bit when receiving an email: ``` Oct 30 20:19:06 columbia postfix/postscreen[2464]: CONNECT from [74.125.82.44]:36353 to [178.62.123.35]:25 Oct 30 20:19:06 columbia postfix/postscreen[2464]: warning: connect to private/tlsproxy service: No such file or directory Oct 30 20:19:06 columbia postfix/postscreen[2464]: HANGUP after 0.03 from [74.125.82.44]:36353 in tests after SMTP handshake Oct 30 20:19:06 columbia postfix/postscreen[2464]: DISCONNECT [74.125.82.44]:36353 ``` Is there also a problem with postfix tlsproxy?
Author
Owner

@tonioo commented on GitHub (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.

<!-- gh-comment-id:152712745 --> @tonioo commented on GitHub (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.
Author
Owner

@tonioo commented on GitHub (Oct 31, 2015):

Just enable the tlsproxy, look into the master.cf file and uncomment the appropriate line.

<!-- gh-comment-id:152738211 --> @tonioo commented on GitHub (Oct 31, 2015): Just enable the tlsproxy, look into the master.cf file and uncomment the appropriate line.
Author
Owner

@ezhishui commented on GitHub (Dec 14, 2015):

I have met the same problem.The tlsproxy in master.cf was enabled all the time.And root@mydomain received lots of emails from Cron Daemon,about one email every 2 minutes.

<!-- gh-comment-id:164380538 --> @ezhishui commented on GitHub (Dec 14, 2015): I have met the same problem.The tlsproxy in master.cf was enabled all the time.And root@mydomain received lots of emails from Cron Daemon,about one email every 2 minutes.
Author
Owner

@Whichcraft commented on GitHub (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

<!-- gh-comment-id:167972568 --> @Whichcraft commented on GitHub (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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#694
No description provided.