WebFaction
Community site: login faq

I am innocent about python etc. (medical student). please help me installing askbot. here I reached to last step while installing askbot on webfaction. http://askbot.org/doc/deployment.html#deployment

here I have to configure webserver where I have to put this code and what should be path names.

#NOTE: the directory paths used here may be adjusted

#the following two directories must be both readable and writable by apache
WSGISocketPrefix /path/to/socket/sock
WSGIPythonEggs /var/python/eggs

#the following directory must be readable by apache
WSGIPythonHome /usr/local

#NOTE: all urs below will need to be adjusted if
#settings.FORUM_SCRIPT_ALIAS is anything other than empty string (e.g. = 'forum/')
#this allows "rooting" forum at http://example.com/forum, if you like

#replace with 127.0.0.1 with real IP address
<VirtualHost 127.0.0.1:80>
     ServerAdmin you@example.com
     DocumentRoot /path/to/django-project
     ServerName example.come

     #aliases to serve static media directly
     #will probably need adjustment
     Alias /static/ /path/to/django-project/static/
     Alias /upfiles/ /path/to/django-project/askbot/upfiles/
     <DirectoryMatch "/path/to/django-project/askbot/skins/([^/]+)/media">
        Order deny,allow
        Allow from all
     </DirectoryMatch>
     <Directory "/path/to/django-project/askbot/upfiles">
        Order deny,allow
        Allow from all
     </Directory>
     #must be a distinct name within your apache configuration
     WSGIDaemonProcess askbot2
     WSGIProcessGroup askbot2
     WSGIScriptAlias / /path/to/django-project/django.wsgi
     #make all admin stuff except media go through secure connection
     <LocationMatch "/admin(?!/media)">
     RewriteEngine on
         RewriteRule /admin(.*)$ https://example.com/admin$1 [L,R=301]
         </LocationMatch>
     CustomLog /var/log/httpd/askbot/access_log common
     ErrorLog /var/log/httpd/askbot/error_log
     LogLevel debug
</VirtualHost>
#again, replace the IP address
<VirtualHost 127.0.0.1:443>
     ServerAdmin you@example.com
     DocumentRoot /path/to/django-project
     ServerName example.com
     <LocationMatch "^(?!/admin)">
         RewriteEngine on
         RewriteRule django.wsgi(.*)$ http://example.com$1 [L,R=301]
     </LocationMatch>
     SSLEngine on
     #your SSL keys
     SSLCertificateFile /etc/httpd/ssl.crt/server.crt
     SSLCertificateKeyFile /etc/httpd/ssl.key/server.key
     Alias /admin/media/ /usr/local/lib/python2.6/site-packages/django/contrib/admin/media/
     WSGIScriptAlias / /path/to/django-project/django.wsgi
     CustomLog /var/log/httpd/askbot/access_log common
     ErrorLog /var/log/httpd/askbot/error_log
</VirtualHost>

you can read that code on that page tooo.. please guide me evrything.here is this code

asked 09 Apr '12, 01:53

Pramvir Rath...
71917
accept rate: 0%

edited 09 Apr '12, 02:29

ryans ♦♦
5.0k93160

which file I have to edit of the application on which I am trying to run askbot ?

(09 Apr '12, 01:59) Pramvir Rath...

I think httpd.conf

(09 Apr '12, 01:59) Pramvir Rath...

Here are the steps you can take to install Askbot - be sure to replace "username", "database_name", "database_password", and "yourdomain.com" with the appropriate values:

  1. Create a 'mod_wsgi 3.3/Python 2.7' app via the control panel. In this example, I'll name the app 'askbot_server'.
  2. Add the app you just created to a new site in the control panel
  3. Create a new PostgreSQL database via the control panel, and make a note of the database name and password.
  4. SSH into your server and run the following commands (I'm using "myask" as the project name):
    cd ~/webapps/askbot_server
    mkdir -p bin lib/python2.7
    PYTHONPATH=$PWD/lib/python2.7 easy_install-2.7 -s $PWD/bin -d $PWD/lib/python2.7 askbot
    # wait for everything to install
    ./bin/askbot-setup -n myask -d database_name -u database_name -p database_password --domain=yourdomain.com
    cd myask
    python2.7 manage.py syncdb --all
    mkdir static
    python2.7 manage.py collectstatic
    
  5. In the control panel, create a new 'Symbolic link to static-only app' using /home/username/webapps/askbot_server/myask/static as the symlink path.
  6. Add the symlink app to your askbot site using '/m' as the URL path.
  7. Edit /home/username/webapps/askbot_server/apache2/conf/httpd.conf to change this bit...
    <Directory /home/username/webapps/askbot_server/htdocs>
        AddHandler wsgi-script .py
    </Directory>
    ... to this ....
    WSGIScriptAlias / /home/username/webapps/askbot_server/myask/django.wsgi
  8. Restart your Apache with /home/username/webapps/askbot_server/apache2/bin/restart

You're finished - Hope that helps!

permanent link
This answer is marked "community wiki".

answered 09 Apr '12, 13:26

seanf
12.2k41836
accept rate: 37%

edited 09 Apr '12, 13:38

yes got installed thank you very much.

(09 Apr '12, 17:40) Pramvir Rath...

Evgeny commented - (1 hour ago): It's incomplete actually - you'll need to run the full text search setup script via the management command python manage.py init_postgresql_full_text_search. There may be other issues, we have not tested this method. We will work on properly supporting newer releases of the databases.

askbot team is saying so about it see here http://askbot.org/en/question/7011/can-not-migrate-askbot-please-help?comment=7027#comment-7027

(09 Apr '12, 17:57) Pramvir Rath...

Be sure to run the command as python2.7 manage.py init_postgresql_full_text_search - if you don't use the version-specific python command, the command will fail.

(09 Apr '12, 18:03) seanf

before i ran it without 2.7 (before your comment) now I ran in myask directory but nothing happened... python2.7 manage.py init_postgresql_full_text_search

(09 Apr '12, 18:11) Pramvir Rath...

running it start a process and finish without any error

(09 Apr '12, 18:12) Pramvir Rath...

I honestly don't know if that command will produce any output. It doesn't seem to be documented in the Askbot docs, so if they're going to recommend that you run it, then perhaps they should document it :)

(09 Apr '12, 18:20) seanf

I followed these steps without any errors during installation. But when I start apache and I visite my webpage from browser, I get an 500 server error, with the log file containing these below. Any help?

[Sat Apr 21 17:24:59 2012] [warn] mod_wsgi: Compiled for Python/2.6.5.
[Sat Apr 21 17:24:59 2012] [warn] mod_wsgi: Runtime using Python/2.6.6.
[Sat Apr 21 17:24:59 2012] [notice] Apache/2.2.17 (Unix) mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
[Sat Apr 21 10:25:06 2012] [error] /home/commonsense/webapps/test2_app/lib/python2.6/django/db/__init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABASES instead.
[Sat Apr 21 10:25:06 2012] [error]   DeprecationWarning
[Sat Apr 21 10:25:06 2012] [error] /home/commonsense/webapps/test2_app/lib/python2.6/django/db/__init__.py:60: DeprecationWarning: Short names for ENGINE in database configurations are deprecated. Prepend default.ENGINE with 'django.db.backends.'
[Sat Apr 21 10:25:06 2012] [error]   DeprecationWarning
[Sat Apr 21 10:25:07 2012] [error] 
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1] mod_wsgi (pid=31666): SystemExit exception raised by WSGI script '/home/commonsense/webapps/test2_app/qaroto/django.wsgi' ignored.
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1] Traceback (most recent call last):
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/webapps/test2_app/lib/python2.6/django/core/handlers/wsgi.py", line 250, in __call__
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     self.load_middleware()
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/webapps/test2_app/lib/python2.6/django/core/handlers/base.py", line 45, in load_middleware
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     mod = import_module(mw_module)
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/webapps/test2_app/lib/python2.6/django/utils/importlib.py", line 35, in import_module
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     __import__(name)
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/lib/python2.6/askbot-0.7.40-py2.6.egg/askbot/middleware/view_log.py", line 7, in <module>
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     from askbot.models import signals
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/lib/python2.6/askbot-0.7.40-py2.6.egg/askbot/models/__init__.py", line 2, in <module>
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     startup_procedures.run()
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/webapps/test2_app/lib/python2.6/django/db/transaction.py", line 217, in inner
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     res = func(*args, **kwargs)
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/lib/python2.6/askbot-0.7.40-py2.6.egg/askbot/startup_procedures.py", line 526, in run
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     sys.exit(1)
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1] SystemExit: 1
[Sat Apr 21 10:25:07 2012] [error] /home/commonsense/webapps/test2_app/lib/python2.6/django/db/__init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABASES instead.
[Sat Apr 21 10:25:07 2012] [error]   DeprecationWarning
[Sat Apr 21 10:25:07 2012] [error] /home/commonsense/webapps/test2_app/lib/python2.6/django/db/__init__.py:60: DeprecationWarning: Short names for ENGINE in database configurations are deprecated. Prepend default.ENGINE with 'django.db.backends.'
[Sat Apr 21 10:25:07 2012] [error]   DeprecationWarning
[Sat Apr 21 10:25:07 2012] [error] 
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1] mod_wsgi (pid=31667): SystemExit exception raised by WSGI script '/home/commonsense/webapps/test2_app/qaroto/django.wsgi' ignored.
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1] Traceback (most recent call last):
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/webapps/test2_app/lib/python2.6/django/core/handlers/wsgi.py", line 250, in __call__
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     self.load_middleware()
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/webapps/test2_app/lib/python2.6/django/core/handlers/base.py", line 45, in load_middleware
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     mod = import_module(mw_module)
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/webapps/test2_app/lib/python2.6/django/utils/importlib.py", line 35, in import_module
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     __import__(name)
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/lib/python2.6/askbot-0.7.40-py2.6.egg/askbot/middleware/view_log.py", line 7, in <module>
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     from askbot.models import signals
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/lib/python2.6/askbot-0.7.40-py2.6.egg/askbot/models/__init__.py", line 2, in <module>
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     startup_procedures.run()
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/webapps/test2_app/lib/python2.6/django/db/transaction.py", line 217, in inner
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     res = func(*args, **kwargs)
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]   File "/home/commonsense/lib/python2.6/askbot-0.7.40-py2.6.egg/askbot/startup_procedures.py", line 526, in run
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1]     sys.exit(1)
[Sat Apr 21 10:25:07 2012] [error] [client 127.0.0.1] SystemExit: 1
[Sat Apr 21 17:25:12 2012] [notice] caught SIGTERM, shutting down
[Sat Apr 21 10:25:12 2012] [error] Exception KeyError: KeyError(139917886244608,) in <module 'threading'="" from="" '="" usr="" lib64="" python2.6="" threading.pyc'=""> ignored
[Sat Apr 21 10:25:12 2012] [error] Exception KeyError: KeyError(139917886244608,) in <module 'threading'="" from="" '="" usr="" lib64="" python2.6="" threading.pyc'=""> ignored
(21 Apr '12, 10:34) zafm

The following error means that you need to use new format for databases in your settings.py: [error] /home/commonsense/webapps/test2_app/lib/python2.6/django/db/init.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABASES instead. [Sat Apr 21 10:25:06 2012] [error] DeprecationWarning

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': '',                      # Or path to database file if using sqlite3.
        'USER': '',                      # Not used with sqlite3.
        'PASSWORD': '',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
    }
}
(21 Apr '12, 10:59) timg ♦♦

Well, I made some progress with your suggestion, thanks a lot, I don't have any DeprecationWarning any more, but the rest errors remain :( Just to note, I'm using Django 1.3.1 (mod_wsgi 3.2/Python 2.6) app type, and Symbolic link to static-only app for my static files. I also run these in a virual environment created with virtualenv. Please help!

(21 Apr '12, 11:26) zafm

Hi,

Please submit a support ticket, so we can take a look at your configuration and try to help you fix it.

(21 Apr '12, 11:29) timg ♦♦

Just to update this thread, I needed to change my django.wsgi file so that sys.path includes lib/python2.6 directory of my virtual environment. Now it's working fine, thanks again for support!

(21 Apr '12, 14:43) zafm

raceback (most recent call last): File "manage.py", line 11, in <module> execute_manager(settings) File "/home/inultcom/webapps/careeroto/lib/python2.7/Django-1.3.1-py2.7.egg/dj ngo/core/management/init.py", line 438, in execute_manager utility.execute() File "/home/inultcom/webapps/careeroto/lib/python2.7/Django-1.3.1-py2.7.egg/dj ngo/core/management/init.py", line 379, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/inultcom/webapps/careeroto/lib/python2.7/Django-1.3.1-py2.7.egg/dj ngo/core/management/base.py", line 191, in run_from_argv self.execute(args, options.dict) File "/home/inultcom/webapps/careeroto/lib/python2.7/Django-1.3.1-py2.7.egg/dj ngo/core/management/base.py", line 220, in execute output = self.handle(*args, options) File "/home/inultcom/webapps/careeroto/lib/python2.7/Django-1.3.1-py2.7.egg/dj ngo/core/management/base.py", line 351, in handle return self.handle_noargs(options) File "/home/inultcom/webapps/careeroto/lib/python2.7/South-0.7.4-py2.7.egg/sou h/management/commands/syncdb.py", line 90, in handle_noargs syncdb.Command().execute(options) File "/home/inultcom/webapps/careeroto/lib/python2.7/Django-1.3.1-py2.7.egg/dj ngo/core/management/base.py", line 220, in execute output = self.handle(args, options) File "/home/inultcom/webapps/careeroto/lib/python2.7/Django-1.3.1-py2.7.egg/dj ngo/core/management/base.py", line 351, in handle return self.handle_noargs(options) File "/home/inultcom/webapps/careeroto/lib/python2.7/Django-1.3.1-py2.7.egg/dj ngo/core/management/commands/syncdb.py", line 56, in handle_noargs cursor = connection.cursor() File "/home/inultcom/webapps/careeroto/lib/python2.7/Django-1.3.1-py2.7.egg/dj

error while sync db what to do now

(28 Apr '12, 12:19) MR MAN

python2.7 manage.py migrate is working now

(29 Apr '12, 17:23) MR MAN

Glad to hear you got it working.

(29 Apr '12, 18:13) johns

Really struggling with installing askbot on webfaction. I followed the steps by seanf above exactly, but had to change manage.py otherwise I'd get error (could not find settings.py). In the end the installation was completed.

However, I still get "500 Internal Server Error". Could anyone help what could be wrong?

(04 Sep '14, 13:41) valuenaut

The instructions above are over 2 years old, so it's very likely that the won't work with the current version of Askbot. Check your error log for the exact error.

(04 Sep '14, 19:27) seanf

Hi seanf, the error was:

SettingNotSet: ("Startup error, couldn't load EXTERNAL_KEYS.RECAPTCHA_SECRET", None)

I opened a ticket and you guys at webfaction have been very helpful, but we're all struggling with getting askbot to work.

I wonder if someone out there has the latest instructions/steps to get it to work.

Thanks.

(05 Sep '14, 01:43) valuenaut

Fed up with the time struggling to get Askbot up and running, decided to try OSQA instead. Very useful instructions below, thanks.

http://stackoverflow.com/questions/9285892/how-to-set-up-osqa-at-webfaction/25678169#25678169

(05 Sep '14, 03:37) valuenaut
showing 5 of 18 show 13 more comments

You will need to submit a support ticket if you would like us to assist you with thisas it will require us to look at the account directly.

We already provide a working configuration for apache and Django, so most of that configuration will be invalid.

I looked at your current configuration and it is already configured to point to the app with a wsgi file.

At this point we need you to submit a support ticket and explain what is currently on the account and what steps you have already done for us to be able to tell you how to finish the process.

permanent link

answered 09 Apr '12, 03:12

johns
5.3k312
accept rate: 23%

i managed this and successfully setup it, (not this config - another) but when i was migrating this error happends see all the commands i used to sync db and then migrate askbot

Using username "pramvir".
pramvir@pramvir.webfactional.com's password:
Last login: Mon Apr  9 03:57:15 2012 from 42.108.188.226
[pramvir@web322 ~]$ cd ~/webapps/0to9to0/forum
[pramvir@web322 forum]$ python manage.py syncdb
/home/pramvir/webapps/0to9to0/lib/python2.6/django/db/__init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABASES instead.
  DeprecationWarning
/home/pramvir/webapps/0to9to0/lib/python2.6/django/db/__init__.py:60: DeprecationWarning: Short names for ENGINE in database configurations are deprecated. Prepend default.ENGINE with 'django.db.backends.'
  DeprecationWarning
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.

Synced:
 > django.contrib.auth
 > django.contrib.contenttypes
 > django.contrib.sessions
 > django.contrib.sites
 > django.contrib.staticfiles
 > django.contrib.admin
 > django.contrib.sitemaps
 > south
 > askbot.deps.livesettings
 > keyedcache
 > robots
 > django_countries
 > djcelery
 > djkombu
 > followit

Not synced (use migrations):
 - askbot.deps.django_authopenid
 - askbot
(use ./manage.py migrate to migrate these)
[pramvir@web322 forum]$ python manage.py migrate askbot
/home/pramvir/webapps/0to9to0/lib/python2.6/django/db/__init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABASES instead.
  DeprecationWarning
/home/pramvir/webapps/0to9to0/lib/python2.6/django/db/__init__.py:60: DeprecationWarning: Short names for ENGINE in database configurations are deprecated. Prepend default.ENGINE with 'django.db.backends.'
  DeprecationWarning
Running migrations for askbot:
 - Migrating forwards to 0113_auto__add_field_thread_added_at__add_field_thread_score__add_field_rep.
 > askbot:0032_auto__del_field_badgedata_multiple__del_field_badgedata_description__d
 ! Error found during real run of migration! Aborting.

 ! Since you have a database that does not support running
 ! schema-altering statements in transactions, we have had
 ! to leave it in an interim state between migrations.

! You *might* be able to recover with:   = ALTER TABLE `askbot_badgedata` ADD COLUMN `multiple` bool NOT NULL DEFAULT False; []
   - no dry run output for alter_column() due to dynamic DDL, sorry
   = ALTER TABLE `askbot_badgedata` ADD COLUMN `description` varchar(300) NOT NULL DEFAULT ''; []
   - no dry run output for alter_column() due to dynamic DDL, sorry
   = ALTER TABLE `askbot_badgedata` ADD COLUMN `type` smallint NOT NULL DEFAULT 3; []
   - no dry run output for alter_column() due to dynamic DDL, sorry
   = ALTER TABLE `askbot_badgedata` ADD COLUMN `name` varchar(50) NOT NULL DEFAULT ''; []
   - no dry run output for alter_column() due to dynamic DDL, sorry
   - no dry run output for alter_column() due to dynamic DDL, sorry
   - no dry run output for delete_unique_column() due to dynamic DDL, sorry

 ! The South developers regret this has happened, and would
 ! like to gently persuade you to consider a slightly
 ! easier-to-deal-with DBMS (one that supports DDL transactions)
 ! NOTE: The error which caused the migration to fail is further up.
Error in migration: askbot:0032_auto__del_field_badgedata_multiple__del_field_badgedata_description__d
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File "/home/pramvir/webapps/0to9to0/lib/python2.6/django/core/management/__init__.py", line 438, in execute_manager
    utility.execute()
  File "/home/pramvir/webapps/0to9to0/lib/python2.6/django/core/management/__init__.py", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/pramvir/webapps/0to9to0/lib/python2.6/django/core/management/base.py", line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/pramvir/webapps/0to9to0/lib/python2.6/django/core/management/base.py", line 220, in execute
    output = self.handle(*args, **options)
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/management/commands/migrate.py", line 107, in handle
    ignore_ghosts = ignore_ghosts,
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/migration/__init__.py", line 219, in migrate_app
    success = migrator.migrate_many(target, workplan, database)
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/migration/migrators.py", line 235, in migrate_many
    result = migrator.__class__.migrate_many(migrator, target, migrations, database)
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/migration/migrators.py", line 310, in migrate_many
    result = self.migrate(migration, database)
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/migration/migrators.py", line 133, in migrate
    result = self.run(migration)
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/migration/migrators.py", line 107, in run
    return self.run_migration(migration)
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/migration/migrators.py", line 81, in run_migration
    migration_function()
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/migration/migrators.py", line 57, in <lambda>
    return (lambda: direction(orm))
  File "/home/pramvir/lib/python2.6/askbot-0.7.40-py2.6.egg/askbot/migrations/0032_auto__del_field_badgedata_multiple__del_field_badgedata_description__d.py", line 15, in forwards
    db.delete_column('askbot_badgedata', 'multiple')
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/db/mysql.py", line 30, in _column_rm
    return func(self, table_name, column_name, *args, **opts)
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/db/mysql.py", line 216, in delete_column
    super(DatabaseOperations, self).delete_column(table_name, name)
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/db/generic.py", line 52, in _column_rm
    return func(self, table, column, *args, **opts)
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/db/generic.py", line 887, in delete_column
    self.execute(self.delete_column_string % params, [])
  File "/home/pramvir/lib/python2.6/South-0.7.4-py2.6.egg/south/db/generic.py", line 264, in execute
    cursor.execute(sql, params)
  File "/home/pramvir/webapps/0to9to0/lib/python2.6/django/db/backends/util.py", line 34, in execute
    return self.cursor.execute(sql, params)
  File "/home/pramvir/webapps/0to9to0/lib/python2.6/django/db/backends/mysql/base.py", line 86, in execute
    return self.cursor.execute(query, args)
  File "/usr/lib64/python2.6/site-packages/MySQLdb/cursors.py", line 174, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib64/python2.6/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1091, "Can't DROP 'multiple'; check that column/key exists")
[pramvir@web322 forum]$ ^C
[pramvir@web322 forum]$
(09 Apr '12, 04:11) Pramvir Rath...

Hi,

Please submit a support ticket, so we can take a look at your configuration and try to help you fix it.

(09 Apr '12, 04:46) todork

This actually looks like a programming error in Askbot, or at the very least a compatibility issue between the version of Django or the MySQL adapter that they designed for and the version you're using.

(28 Apr '12, 20:24) ryans ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×17

question asked: 09 Apr '12, 01:53

question was seen: 9,805 times

last updated: 05 Sep '14, 03:37

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM