Skip to content

Instantly share code, notes, and snippets.

@pinnokio
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save pinnokio/8844203 to your computer and use it in GitHub Desktop.

Select an option

Save pinnokio/8844203 to your computer and use it in GitHub Desktop.
Textr error message
% fab newtest rebuild_db
[textr.no-ip.org:2229] Executing task 'rebuild_db'
[textr.no-ip.org:2229] run: mysql -uroot -e "drop database if exists textr_db;"
[textr.no-ip.org:2229] run: mysql -uroot -e "create database if not exists textr_db character set utf8 collate utf8_general_ci;"
[textr.no-ip.org:2229] run: python manage.py syncdb --noinput
[textr.no-ip.org:2229] out: Syncing...
[textr.no-ip.org:2229] out: Creating tables ...
[textr.no-ip.org:2229] out: Creating table auth_permission
[textr.no-ip.org:2229] out: Creating table auth_group_permissions
[textr.no-ip.org:2229] out: Creating table auth_group
[textr.no-ip.org:2229] out: Creating table django_content_type
[textr.no-ip.org:2229] out: Creating table django_session
[textr.no-ip.org:2229] out: Creating table django_site
[textr.no-ip.org:2229] out: Creating table django_admin_log
[textr.no-ip.org:2229] out: Creating table seo_mymetadatapath
[textr.no-ip.org:2229] out: Creating table seo_mymetadatamodelinstance
[textr.no-ip.org:2229] out: Creating table seo_mymetadatamodel
[textr.no-ip.org:2229] out: Creating table seo_mymetadataview
[textr.no-ip.org:2229] out: Creating table social_auth_usersocialauth
[textr.no-ip.org:2229] out: Creating table social_auth_nonce
[textr.no-ip.org:2229] out: Creating table social_auth_association
[textr.no-ip.org:2229] out: Creating table social_auth_code
[textr.no-ip.org:2229] out: Creating table south_migrationhistory
[textr.no-ip.org:2229] out: Creating table infosite_devstage
[textr.no-ip.org:2229] out: Creating table infosite_infoblock
[textr.no-ip.org:2229] out: Creating table infosite_creator
[textr.no-ip.org:2229] out: Creating table faq_faqitem
[textr.no-ip.org:2229] out: Creating table work_workcategory
[textr.no-ip.org:2229] out: Creating table work_work
[textr.no-ip.org:2229] out: Creating table notifications_message_viewed_by
[textr.no-ip.org:2229] out: Creating table notifications_message
[textr.no-ip.org:2229] out: Creating table registration_registrationprofile
[textr.no-ip.org:2229] out: Installing custom SQL ...
[textr.no-ip.org:2229] out: Installing indexes ...
[textr.no-ip.org:2229] out: Installed 0 object(s) from 0 fixture(s)
[textr.no-ip.org:2229] out:
[textr.no-ip.org:2229] out: Synced:
[textr.no-ip.org:2229] out: > django.contrib.auth
[textr.no-ip.org:2229] out: > django.contrib.contenttypes
[textr.no-ip.org:2229] out: > django.contrib.sessions
[textr.no-ip.org:2229] out: > django.contrib.sites
[textr.no-ip.org:2229] out: > django.contrib.messages
[textr.no-ip.org:2229] out: > django.contrib.staticfiles
[textr.no-ip.org:2229] out: > django.contrib.admin
[textr.no-ip.org:2229] out: > ckeditor
[textr.no-ip.org:2229] out: > constance
[textr.no-ip.org:2229] out: > paintstore
[textr.no-ip.org:2229] out: > pagination
[textr.no-ip.org:2229] out: > rollyourown.seo
[textr.no-ip.org:2229] out: > rosetta
[textr.no-ip.org:2229] out: > social.apps.django_app.default
[textr.no-ip.org:2229] out: > south
[textr.no-ip.org:2229] out: > spurl
[textr.no-ip.org:2229] out: > sanitizer
[textr.no-ip.org:2229] out: > common
[textr.no-ip.org:2229] out: > infosite
[textr.no-ip.org:2229] out: > faq
[textr.no-ip.org:2229] out: > work
[textr.no-ip.org:2229] out: > library
[textr.no-ip.org:2229] out: > notifications
[textr.no-ip.org:2229] out: > registration
[textr.no-ip.org:2229] out: > modeltranslation
[textr.no-ip.org:2229] out:
[textr.no-ip.org:2229] out: Not synced (use migrations):
[textr.no-ip.org:2229] out: - constance.backends.database
[textr.no-ip.org:2229] out: - taggit
[textr.no-ip.org:2229] out: - profiles
[textr.no-ip.org:2229] out: (use ./manage.py migrate to migrate these)
[textr.no-ip.org:2229] out:
[textr.no-ip.org:2229] run: python manage.py migrate
[textr.no-ip.org:2229] out: Running migrations for database:
[textr.no-ip.org:2229] out: - Migrating forwards to 0002_auto__chg_field_constance_key__add_unique_constance_key.
[textr.no-ip.org:2229] out: > database:0001_initial
[textr.no-ip.org:2229] out: > database:0002_auto__chg_field_constance_key__add_unique_constance_key
[textr.no-ip.org:2229] out: - Loading initial data for database.
[textr.no-ip.org:2229] out: Installed 0 object(s) from 0 fixture(s)
[textr.no-ip.org:2229] out: Running migrations for taggit:
[textr.no-ip.org:2229] out: - Migrating forwards to 0002_unique_tagnames.
[textr.no-ip.org:2229] out: > taggit:0001_initial
[textr.no-ip.org:2229] out: > taggit:0002_unique_tagnames
[textr.no-ip.org:2229] out: - Loading initial data for taggit.
[textr.no-ip.org:2229] out: Installed 0 object(s) from 0 fixture(s)
[textr.no-ip.org:2229] out: Running migrations for profiles:
[textr.no-ip.org:2229] out: - Migrating forwards to 0002_auto__add_field_profile_slug.
[textr.no-ip.org:2229] out: > profiles:0001_initial
[textr.no-ip.org:2229] out: > profiles:0002_auto__add_field_profile_slug
[textr.no-ip.org:2229] out: - Loading initial data for profiles.
[textr.no-ip.org:2229] out: Installed 0 object(s) from 0 fixture(s)
[textr.no-ip.org:2229] out:
[textr.no-ip.org:2229] run: python manage.py filldb
[textr.no-ip.org:2229] out: Starting fill db
[textr.no-ip.org:2229] out:
[textr.no-ip.org:2229] out: Traceback (most recent call last):
[textr.no-ip.org:2229] out: File "manage.py", line 14, in <module>
[textr.no-ip.org:2229] out: execute_from_command_line(sys.argv)
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
[textr.no-ip.org:2229] out: utility.execute()
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
[textr.no-ip.org:2229] out: self.fetch_command(subcommand).run_from_argv(self.argv)
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
[textr.no-ip.org:2229] out: self.execute(*args, **options.__dict__)
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
[textr.no-ip.org:2229] out: output = self.handle(*args, **options)
[textr.no-ip.org:2229] out: File "./apps/common/management/commands/filldb.py", line 23, in handle
[textr.no-ip.org:2229] out: WorkFactory.create_batch(5, user=admin)
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/factory/base.py", line 527, in create_batch
[textr.no-ip.org:2229] out: return [cls.create(**kwargs) for _ in range(size)]
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/factory/base.py", line 514, in create
[textr.no-ip.org:2229] out: attrs = cls.attributes(create=True, extra=kwargs)
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/factory/base.py", line 363, in attributes
[textr.no-ip.org:2229] out: force_sequence=force_sequence,
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/factory/containers.py", line 282, in build
[textr.no-ip.org:2229] out: return stub.__fill__()
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/factory/containers.py", line 83, in __fill__
[textr.no-ip.org:2229] out: res[attr] = getattr(self, attr)
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/factory/containers.py", line 105, in __getattr__
[textr.no-ip.org:2229] out: val = val.evaluate(self, self.__containers)
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/factory/containers.py", line 214, in evaluate
[textr.no-ip.org:2229] out: containers=containers,
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/factory/declarations.py", line 75, in evaluate
[textr.no-ip.org:2229] out: return self.function(obj)
[textr.no-ip.org:2229] out: File "./apps/work/factories.py", line 28, in category
[textr.no-ip.org:2229] out: return WorkCategory.objects.filter(user=self.user).order_by('?')[:1].get()
[textr.no-ip.org:2229] out: File "/home/webmaster/text/env/local/lib/python2.7/site-packages/django/db/models/query.py", line 307, in get
[textr.no-ip.org:2229] out: self.model._meta.object_name)
[textr.no-ip.org:2229] out: work.models.DoesNotExist: WorkCategory matching query does not exist.
[textr.no-ip.org:2229] out:
Fatal error: run() received nonzero return code 1 while executing!
Requested: python manage.py filldb
Executed: /bin/bash -l -c "cd /home/webmaster/text && source env/bin/activate && export PATH=\"\$PATH:\"/home/webmaster/text\"\" && python manage.py filldb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment