Chris Lewis
unread,May 21, 2012, 9:34:59 AM5/21/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to transifex-devel
Hello,
We are currently using Transifex 1.1.0 CE with an external Postgres
DB. When attempting to upgrade from to version 1.2.1 (following steps
in docs) we get:
root@transifex:/usr/local/lib/python2.6/dist-packages/transifex-1.2.1-
py2.6.egg/transifex# ./manage.py syncdb --noinput
Syncing...
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.
Synced:
> django.contrib.admin
> django.contrib.auth
> django.contrib.comments
> django.contrib.contenttypes
> django.contrib.flatpages
> django.contrib.markup
> django.contrib.sessions
> django.contrib.messages
> django.contrib.sites
> django.contrib.admindocs
> django.contrib.staticfiles
> notification
> django_filters
> django_sorting
> south
> tagging
> tagging_autocomplete
> pagination
> piston
> ajax_select
> threadedcomments
> authority
> haystack
> social_auth
> django_addons
> compressor
> charts
> datastores
> helptext
> lotte
> timeline
> trans_memory
> txcron
> widgets
Not synced (use migrations):
- userena
- guardian
- easy_thumbnails
- transifex.languages
- transifex.projects
- transifex.actionlog
- transifex.txpermissions
- transifex.teams
- transifex.resources
- transifex.storage
- copyright
- gtranslate
- jsonmap
- locks
- priorities
- suggestions
- txapps
- watches
- webhooks
- autofetch
- transifex.releases
- transifex.txcommon
(use ./manage.py migrate to migrate these)
root@transifex:/usr/local/lib/python2.6/dist-packages/transifex-1.2.1-
py2.6.egg/transifex# python manage.py migrate copyright 0001 --fake
- Soft matched migration 0001 to 0001_initial.
Running migrations for copyright:
- Nothing to migrate.
root@transifex:/usr/local/lib/python2.6/dist-packages/transifex-1.2.1-
py2.6.egg/transifex# python manage.py migrate --ignore-ghost-
migrations --noinput
Running migrations for userena:
- Nothing to migrate.
- Loading initial data for userena.
No fixtures found.
Running migrations for guardian:
- Nothing to migrate.
- Loading initial data for guardian.
No fixtures found.
Running migrations for easy_thumbnails:
- Nothing to migrate.
- Loading initial data for easy_thumbnails.
No fixtures found.
Running migrations for languages:
- Nothing to migrate.
- Loading initial data for languages.
No fixtures found.
Running migrations for projects:
- Migrating forwards to 0006_finalize_source_language_field.
> projects:0005_set_source_language_from_resources
Error in migration: projects:0005_set_source_language_from_resources
Traceback (most recent call last):
File "manage.py", line 21, in <module>
execute_manager(settings)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.6/dist-packages/South-0.7.5-py2.6.egg/
south/management/commands/migrate.py", line 107, in handle
ignore_ghosts = ignore_ghosts,
File "/usr/local/lib/python2.6/dist-packages/South-0.7.5-py2.6.egg/
south/migration/__init__.py", line 219, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "/usr/local/lib/python2.6/dist-packages/South-0.7.5-py2.6.egg/
south/migration/migrators.py", line 235, in migrate_many
result = migrator.__class__.migrate_many(migrator, target,
migrations, database)
File "/usr/local/lib/python2.6/dist-packages/South-0.7.5-py2.6.egg/
south/migration/migrators.py", line 310, in migrate_many
result = self.migrate(migration, database)
File "/usr/local/lib/python2.6/dist-packages/South-0.7.5-py2.6.egg/
south/migration/migrators.py", line 133, in migrate
result = self.run(migration)
File "/usr/local/lib/python2.6/dist-packages/South-0.7.5-py2.6.egg/
south/migration/migrators.py", line 107, in run
return self.run_migration(migration)
File "/usr/local/lib/python2.6/dist-packages/South-0.7.5-py2.6.egg/
south/migration/migrators.py", line 81, in run_migration
migration_function()
File "/usr/local/lib/python2.6/dist-packages/South-0.7.5-py2.6.egg/
south/migration/migrators.py", line 57, in <lambda>
return (lambda: direction(orm))
File "/usr/local/lib/python2.6/dist-packages/transifex-1.2.1-
py2.6.egg/transifex/projects/migrations/
0005_set_source_language_from_resources.py", line 14, in forwards
resource = Resource.objects.filter(project=project)[0]
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/db/models/query.py", line 190, in __getitem__
return list(qs)[0]
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/db/models/query.py", line 84, in __len__
self._result_cache.extend(self._iter)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/db/models/query.py", line 273, in iterator
for row in compiler.results_iter():
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/db/models/sql/compiler.py", line 680, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/db/models/sql/compiler.py", line 735, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/db/backends/util.py", line 34, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.6/dist-packages/Django-1.3.1-py2.6.egg/
django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
return self.cursor.execute(query, args)
django.db.utils.DatabaseError: column resources_resource.category does
not exist
LINE 1: ...urce"."last_update", "resources_resource"."slug",
"resources...
^
root@transifex:/usr/local/lib/python2.6/dist-packages/transifex-1.2.1-
py2.6.egg/transifex#
Looks a like it's expecting to find a column which isn't there.
The pg database being connected to is a restored backup of the current
1.2.0 system.
The system being used is Debian 6 (base install) with build-essential
python-dev python-setuptools python-imaging gettext intltool apache2
libapache2-mod-wsgi postgresql-client libpq-d
Transifex and psycopg2 were installed using Easy_install.
Have tried installing Transifex 1.1 and linking to restored backup
(which worked) then upgrading. Failed at the same point.
Thanks in advance for any help with this.
Best regards
Chris