Skip to content

Instantly share code, notes, and snippets.

@byroncorrales
Created February 6, 2012 15:23
Show Gist options
  • Save byroncorrales/1752647 to your computer and use it in GitHub Desktop.
Save byroncorrales/1752647 to your computer and use it in GitHub Desktop.
[9:11:24] bcorrales:askbot-devel git:(master) $ askbot-setup
Deploying Askbot - Django Q&A forum application
Problems installing? -> please email admin@askbot.org
To CANCEL - hit Ctr-C at any time
Where deploy the forum (directory)? Ctrl-C to quit. /Users/bcorrales/code/django/personal/askbot-mac
Please enter a value for database password:root
Please enter a value for database name:askbotmac
Please enter a value for domain name:localhost
Please enter a value for database user:root
Copying files:
* __init__.py
* manage.py
* urls.py
Creating settings file
settings file created
copying directories: * doc
* cron
* upfiles
Done. Please find further instructions in the file below:
/Users/bcorrales/code/django/personal/askbot-devel/askbot/doc/INSTALL
[9:12:32] bcorrales:askbot-devel git:(master) $ cd ..
[9:12:45] bcorrales:personal $ cd askbot-mac
[9:12:48] bcorrales:askbot-mac $ ls
__init__.py askbot log manage.py settings.py urls.py
[9:13:10] bcorrales:askbot-mac $ nano settings.py
[9:19:59] bcorrales:askbot-mac $ python manage.py syncdb
************************
* *
* Askbot self-test *
* *
************************
Your output encoding is not UTF-8, there may be issues with the software when anything is printed to the terminal or log files
(1146, "Table 'askbotmac.askbot_badgedata' doesn't exist")
Syncing...
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table south_migrationhistory
Creating table livesettings_setting
Creating table livesettings_longsetting
Creating table robots_url
Creating table robots_rule_sites
Creating table robots_rule_allowed
Creating table robots_rule_disallowed
Creating table robots_rule
Creating table celery_taskmeta
Creating table celery_tasksetmeta
Creating table djcelery_intervalschedule
Creating table djcelery_crontabschedule
Creating table djcelery_periodictasks
Creating table djcelery_periodictask
Creating table djcelery_workerstate
Creating table djcelery_taskstate
Creating table djkombu_queue
Creating table djkombu_message
Creating table followit_followuser
You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (Leave blank to use 'bcorrales'): django
E-mail address: byroncorrales@gmail.com
Password:
Password (again):
Error: Your passwords didn't match.
Password:
Password (again):
Askbot Superuser created successfully.
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)
[9:20:34] bcorrales:askbot-mac $ python manage.py migrate askbot
************************
* *
* Askbot self-test *
* *
************************
Your output encoding is not UTF-8, there may be issues with the software when anything is printed to the terminal or log files
(1146, "Table 'askbotmac.askbot_badgedata' doesn't exist")
Running migrations for askbot:
- Migrating forwards to 0107_added_db_indexes.
> askbot:0001_initial
> askbot:0002_auto__add_field_answer_text__chg_field_answer_html__add_field_question
> askbot:0003_copy_denorm_text_record_to_posts_for_fulltext_search
- Migration 'askbot:0003_copy_denorm_text_record_to_posts_for_fulltext_search' is marked for no-dry-run.
> askbot:0004_install_full_text_indexes_for_mysql
- Migration 'askbot:0004_install_full_text_indexes_for_mysql' is marked for no-dry-run.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! !!
!! WARNING: Your database engine does not support !!
!! full text search. Please switch to PostgresQL !!
!! or select MyISAM engine for MySQL !!
!! !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> askbot:0005_install_badges
- Migration 'askbot:0005_install_badges' is marked for no-dry-run.
adding new badge Disciplined
adding new badge Peer Pressure
adding new badge Nice answer
adding new badge Nice Question
adding new badge Pundit
adding new badge Popular Question
adding new badge Citizen patrol
adding new badge Cleanup
adding new badge Critic
adding new badge Editor
adding new badge Organizer
adding new badge Scholar
adding new badge Student
adding new badge Supporter
adding new badge Teacher
adding new badge Autobiographer
adding new badge Self-Learner
adding new badge Great Answer
adding new badge Great Question
adding new badge Stellar Question
adding new badge Famous question
adding new badge Alpha
adding new badge Good Answer
adding new badge Good Question
adding new badge Favorite Question
adding new badge Civic duty
adding new badge Strunk & White
adding new badge Generalist
adding new badge Expert
adding new badge Yearling
adding new badge Notable Question
adding new badge Enlightened
adding new badge Beta
adding new badge Guru
adding new badge Necromancer
adding new badge Taxonomist
> askbot:0006_add_subscription_setting_for_comments_and_mentions
- Migration 'askbot:0006_add_subscription_setting_for_comments_and_mentions' is marked for no-dry-run.
**************
Adding subscription on comment responses and name mentions for each user.
frequency will be automatically set to the most frequent selection
that user made for any other types of subscriptions
added 'no email' subscription for django (1)
> askbot:0007_install_mentions_model
> askbot:0008_add_html_field_to_comments
> askbot:0009_calculate_html_field_for_comments
- Migration 'askbot:0009_calculate_html_field_for_comments' is marked for no-dry-run.
> askbot:0010_add_receiving_user_to_activity_model
> askbot:0011_merge_mentions_into_activity
- Migration 'askbot:0011_merge_mentions_into_activity' is marked for no-dry-run.
> askbot:0012_delete_some_unused_models
> askbot:0013_add_response_count__to_user
probably already have column User.response_count
> askbot:0014_rename_schema_from_forum_to_askbot
> askbot:0015_rename_forum_contenttypes_to_askbot
- Migration 'askbot:0015_rename_forum_contenttypes_to_askbot' is marked for no-dry-run.
> askbot:0016_auto__del_validationhash
> askbot:0017_add_group__moderators
- Migration 'askbot:0017_add_group__moderators' is marked for no-dry-run.
> askbot:0018_add___status__field_to_user_model
> askbot:0019_populate_user_status_field
- Migration 'askbot:0019_populate_user_status_field' is marked for no-dry-run.
> askbot:0020_auto__add_field_repute_comment__chg_field_repute_question
! 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 `repute` DROP COLUMN `comment` CASCADE; []
! The South developers regret this has happened, and would
! like to gently persuade you to consider a slightly
! easier-to-deal-with DBMS.
! NOTE: The error which caused the migration to fail is further up.
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/Library/Python/2.7/site-packages/south/management/commands/migrate.py", line 105, in handle
ignore_ghosts = ignore_ghosts,
File "/Library/Python/2.7/site-packages/south/migration/__init__.py", line 191, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 221, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations, database)
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 292, in migrate_many
result = self.migrate(migration, database)
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 125, in migrate
result = self.run(migration)
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 99, in run
return self.run_migration(migration)
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 81, in run_migration
migration_function()
File "/Library/Python/2.7/site-packages/south/migration/migrators.py", line 57, in <lambda>
return (lambda: direction(orm))
File "/Users/bcorrales/code/django/personal/askbot-devel/askbot/migrations/0020_auto__add_field_repute_comment__chg_field_repute_question.py", line 15, in forwards
db.alter_column(u'repute', 'question_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['askbot.Question'], null=True, blank=True))
File "/Library/Python/2.7/site-packages/south/db/generic.py", line 397, in alter_column
field.rel.to._meta.get_field(field.rel.field_name).column
File "/Library/Python/2.7/site-packages/south/db/generic.py", line 150, in execute
cursor.execute(sql, params)
File "/Library/Python/2.7/site-packages/django/db/backends/util.py", line 34, in execute
return self.cursor.execute(sql, params)
File "/Library/Python/2.7/site-packages/django/db/backends/mysql/base.py", line 86, in execute
return self.cursor.execute(query, args)
File "/Library/Python/2.7/site-packages/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/Library/Python/2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1005, "Can't create table 'askbotmac.#sql-154_10' (errno: 121)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment