Ask Your Question
1

Askbot stopped working after newest update

asked 2012-09-16 14:06:24 -0600

Toms gravatar image

updated 2012-09-16 15:10:41 -0600

Evgeny gravatar image

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.
edit retag flag offensive 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 gravatar imageEvgeny ( 2012-09-16 14:20:02 -0600 )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 gravatar imageEvgeny ( 2012-09-16 14:34:58 -0600 )edit

@Evegeny I've updated the question.

Toms gravatar imageToms ( 2012-09-16 15:08:49 -0600 )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 gravatar imageEvgeny ( 2012-09-16 15:12:20 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-09-16 15:08:29 -0600

Evgeny gravatar image

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.

edit flag offensive delete link more

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 gravatar imageToms ( 2012-09-16 15:30:01 -0600 )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 gravatar imageEvgeny ( 2012-09-16 15:32:01 -0600 )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 gravatar imageToms ( 2012-09-16 16:33:11 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-09-16 14:06:24 -0600

Seen: 441 times

Last updated: Sep 16 '12