Ask Your Question
1

Askbot stopped working after newest update

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

Toms gravatar image Toms
661 19 6 34

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

Evgeny gravatar image Evgeny flag of Chile
11044 50 84 182
http://askbot.org/

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.
delete close flag offensive retag edit

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 ( 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 ( 2012-09-16 14:34:58 -0500 )edit

@Evegeny I've updated the question.

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 ( 2012-09-16 15:12:20 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

Evgeny gravatar image Evgeny flag of Chile
11044 50 84 182
http://askbot.org/

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.

link publish delete flag offensive edit

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 ( 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 ( 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 ( 2012-09-16 16:33:11 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 88 times

Last updated: Sep 16 '12