Hi!

I have some issues when I configure the cron job for daily digest emails. The files are owned by the "www-data" user that has access to crontab and this is my actual crontab configuration.

00 03 * * * /srv/www/meta/osqa/cron/send_email_alerts > /dev/null 2>&1

This is the error email that it makes.

Traceback (most recent call last):

File "/srv/www/realpha/osqa/manage.py", line 13, in <module>
   execute_manager(settings)
 File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/core/management/__init__.py", line 362, in execute_manager
   utility.execute()
 File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/core/management/__init__.py", line 303, in execute
   self.fetch_command(subcommand).run_from_argv(self.argv)
 File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/core/management/__init__.py", line 257, in fetch_command
   klass = load_command_class(app_name, subcommand)
 File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/core/management/__init__.py", line 67, in load_command_class
   module = import_module('%s.management.commands.%s' % (app_name, name))
 File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/utils/importlib.py", line 35, in import_module
   __import__(name)
 File "/srv/www_git/realpha/osqa/forum/management/commands/send_email_alerts.py", line 2, in <module>
   from forum.models import *
 File "/srv/www/realpha/osqa/forum/models/__init__.py", line 1, in <module>
   import forum.utils.djangofix
 File "/srv/www/realpha/osqa/forum/utils/djangofix.py", line 21, in <module>
   from forum import settings
 File "/srv/www/realpha/osqa/forum/settings/__init__.py", line 39, in <module>
   from users import *
 File "/srv/www/realpha/osqa/forum/settings/users.py", line 7, in <module>
   USERS_SET = SettingSet('users', _('Users settings'), _("General settings for the OSQA users."), 20)
 File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/utils/translation/__init__.py", line 62, in ugettext
   return real_ugettext(message)
 File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/utils/translation/__init__.py", line 43, in delayed_loader
   return g['real_%s' % caller](*args, **kwargs)
 File "/usr/lib/python2.5/site-packages/Django-1.1-py2.5.egg/django/utils/translation/trans_real.

Any Idea on what could be the problem? Running the command manually works fine!

asked 01 Feb '11, 23:01

Fitoria's gravatar image

Fitoria
215
accept rate: 0%

edited 02 Feb '11, 23:55

@Fitoria, "send email alert" cronjob does not works properly" is not a question. We require all postings at meta.osqa.net to have a clear, specific question in the title field. Could you please edit this asap? Thanks!

(02 Feb '11, 08:36) rickross ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×8

Asked: 01 Feb '11, 23:01

Seen: 286 times

Last updated: 03 Feb '11, 04:05

powered by OSQA