Why do I need to run fix_revisionless_posts frequently?
We have recently set up an Askbot instance, which mostly works well, but frequently some questions appear to become corrupted, and I have to run manage.py fix_revisionless_posts to make that question work again.
Here is the output from running that command. I’m glad to provide whatever info you need to debug further.
root@help:/home/help# python manage.py fix_revisionless_posts WARNING!!! You are using a 'locmem' (local memory) caching backend, which is OK for a low volume site running on a single-process server. For a multi-process configuration it is neccessary to have a production cache system, such as redis or memcached.
With local memory caching and multi-process setup you might intermittently see outdated content on your site.
System check identified some issues:
WARNINGS: django_authopenid.UserPasswordQueue.user: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField. HINT: ForeignKey(unique=True) is usually better served by a OneToOneField. group_messaging.SenderList.recipient: (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField. HINT: ForeignKey(unique=True) is usually better served by a OneToOneField. have 1 corrupted posts
Comments
What database are you using and what are the version of Django and Askbot you have?
Django 1.8.10 and django.db.backends.postgresql_psycopg2 for database.
A bit more information: here is the stack trace from the error (had to paste in an "answer" instead of a comment)
@mpearrow have you resolved this? The missing revision occurs when there is some exception after the post is created and before revision is created.