New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running manage.py retry_deferred crashes. #1
Comments
Why don't you try django trunk and see if it fixes your problem, since that ticket is marked fixed? |
Yep, that was 1st on my to do list this morning ;) Although it seems like that issue was fixed as of the 1.0.x series? Anyway, ran it against latest revision (11782) - exact same error. Only difference in the traceback is the line numbers of the error in the first 2 function calls: Traceback (most recent call last): File "manage.py", line 11, in execute_manager(settings) File "c:\django-trunk\django\core\management\__init__.py", line 439, in execute_manager utility.execute() File "c:\django-trunk\django\core\management\__init__.py", line 380, in execute self.fetch_command(subcommand).run_from_argv(self.argv) . . . The rest of the traceback is identical (barring the path to django version). Also ran it with Python 2.5.4, against trunk and 1.1.1 - same results. |
It does seem like this is a database problem. If you can muck around with the database, here's a test: My guess is that it's failing trying to update the datetimefield "deferred" on the QueuedMessage model. From a shell, try QueuedMessage.objects.update(deferred=None) |
Ok, so in the shell, QueuedMessage.objects.update(deferred=None) works (returns the # of records updated). The db field 'deferred' is nullable and is of type "timestamp with time zone". Tested the above in both environments, works in both. |
Resolved. I was running an older version of django-mailer-2 (files were stamped Sep 10) and noticed the latest files have a stamp of Sep 24 and the comment Suggestion: Perhaps a version or changes file in the directory? Anyway, downloaded the latest version of django-mailer-2 and it now works in both environments. I apologise for wasting your time on this and thank you for your help. Regards, |
Glad you got it resolved. Yeah, I should start a todo. It's a common question for what the difference between this and the original mailer is. |
Running the retry_deferred command causes the following traceback:
Environment 1:
Win XP
Django 1.1.1
Python 2.6.4
PostgreSQL 8.2.7
Environment 2:
RHEL
Django 1.1.1
Python 2.6
PostgreSQL 8.2.3
Just found this - could be related: http://code.djangoproject.com/ticket/10443
Will keep digging and update with any new info.
Joe
The text was updated successfully, but these errors were encountered: