First time here? Check out the FAQ!
1

Askbot stopped working after newest update

I have the update problem again. After update nothing works any more. When I visit my site I get the 500 internal error. I got this email to my Admin account from my askbot site:

Traceback (most recent call last):

....

NoReverseMatch: Reverse for 'mysitedjango.get_editor' with arguments '()' and keyword arguments '{}' not found.

...

How to make it working now?

The commands I've used to update:

git fetch origin master:master-updated
git checkout master
git merge master-updated

I use the ru locale and no customization, except some css and javascript I put in the build in fields of admin panel.

EDIT

When I ran python manage.py migrate

I get following message:

************************
*                      *
*   Askbot self-test   *
*                      *
************************
Error: No module named bs4
Please run: >pip install beautifulsoup4
To install all the dependencies at once, type:
pip install -r askbot_requirements.txt
Type ^C to quit.
If necessary, type ^C (Ctrl-C) to stop the program.
Toms's avatar
767
Toms
asked 2012-09-16 14:06:24 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2012-09-16 15:10:41 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Could you give some more details? What have you done to upgrade? Are you using a staging environment to test the update before publishing it? Are you using Askbot as is or you have customized the code?

Evgeny's avatar Evgeny (2012-09-16 14:20:02 -0500) edit

Have you done python manage.py migrate ? It's not in the list of your commands... Also you would need python manage.py collectstatic.

Evgeny's avatar Evgeny (2012-09-16 14:34:58 -0500) edit

@Evegeny I've updated the question.

Toms's avatar Toms (2012-09-16 15:08:49 -0500) edit

It's clear now that you have import errors, masked by django. I've truncated your traceback to make the question more understandable and hopefully more useful. The actual traceback is not so relevant in this case.

Evgeny's avatar Evgeny (2012-09-16 15:12:20 -0500) edit
add a comment see more comments

1 Answer

1

We have a startup tester that runs before any management command.

For example - try python manage.py migrate --list - to see if there are any pending database migrations.

If there are issues with the settings.py or if any required modules are missing - there will be some hints. Try that.

There may be unpredictable error messages in the site output if some dependencies are not satisfied or if settings.py file is not up to date.

Evgeny's avatar
13.2k
Evgeny
answered 2012-09-16 15:08:29 -0500
edit flag offensive 0 remove flag delete link

Comments

I've installed some missing modules and edited settings.py. Now I'm running python manage.py migrate and I'm forced to decide:

*The following content types are stale and need to be deleted:

askbot | groupprofile

Any objects related to these content types by a foreign key will also be deleted. Are you sure you want to delete these content types? If you're unsure, answer 'no'. * What should I do? I have some questions on my site, I don't want to delete them

Toms's avatar Toms (2012-09-16 15:30:01 -0500) edit
1

Answer "yes" to this one, this won't delete any useful content from your site, only "content type" records that are not in use any more. Those are used only internally, they are not user-contributed data.

Evgeny's avatar Evgeny (2012-09-16 15:32:01 -0500) edit

thank you Evgeny! It works now. Could you provide some tutorial how to check the changes in some virtual enviroment before we do it on a working site?

Toms's avatar Toms (2012-09-16 16:33:11 -0500) edit
add a comment see more comments