Hi,
I'm the translation manager of Koha project [1]
We have been using Pootle for many years, at this moment
we are using Pootle 2.5.1.1 [2]
Now I'm trying to test the new version but am encountering some problems
during the intermediate step (2.5.1.1 -> 2.6.1) when executing the 'setup'
(working on backup server, not production one)
If anyone could take a look and have an idea, it will be much appreciated :)
Best regards,
Bernardo
Before:
(env)root@host:/var/www# pootle --version
Pootle 2.5.1.1
Translate Toolkit 1.12.0
Django 1.4.15
After upgrading pip and pootle:
(env)root@host:/var/www# pootle --version
Pootle 2.6.1 (Django 1.6.11, Translate Toolkit 1.13.0)
Setup output:
(env)root@host:/var/www# pootle setup
2015-09-24 10:17:58,867 INFO Loading custom settings from
'/root/.pootle/pootle.conf'...
2015-09-24 13:17:59,330 INFO Using Python PO
2015-09-24 13:17:59,587 INFO Upgrading existing Pootle installation.
Syncing...
Creating tables ...
Creating table account_emailaddress
Creating table account_emailconfirmation
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
Synced:
> django.contrib.sessions
> django.contrib.auth
> django.contrib.contenttypes
> django.contrib.sites
> django.contrib.admin
> django.contrib.messages
> django.contrib.staticfiles
> allauth
> allauth.account
> djblets.siteconfig
> django_assets
> south
Not synced (use migrations):
- accounts
- pootle_app
- pootle_store
- pootle_language
- pootle_project
- pootle_translationproject
- pootle_statistics
- pootle_tagging
- pootle_notifications
- reports
- staticpages
- virtualfolder
- allauth.socialaccount
(use ./manage.py migrate to migrate these)
Running migrations for accounts:
- Migrating forwards to 0009_drop_registration_remnant.
> pootle_translationproject:0003_add_m2ms
>
pootle_translationproject:0004_auto__add_field_translationproject_total_wordcount__add_field_translat
> pootle_project:0003_add_m2ms
> pootle_project:0004_auto__del_field_project_report_target
> pootle_project:0005_auto__add_field_project_report_email
> pootle_project:0006_auto__add_field_project_disabled
>
pootle_translationproject:0005_auto__add_field_translationproject_disabled
>
pootle_translationproject:0006_auto__add_field_translationproject_failing_critical_count
> accounts:0001_initial
> pootle_app:0002_add_m2ms
> pootle_store:0002_auto__add_tmunit
> pootle_store:0003_add_m2ms
> pootle_store:0004_auto__add_field_unit_creation_time
> pootle_store:0005_auto__del_field_store_tm__del_field_store_pending
>
pootle_store:0006_auto__add_field_store_total_wordcount__add_field_store_translated_word
> pootle_store:0007_auto__add_field_store_failing_critical_count
>
pootle_store:0008_auto__add_field_suggestion_reviewer__add_field_suggestion_translation_
> pootle_statistics:0002_auto__add_field_submission_check
> pootle_statistics:0003_auto__add_field_submission_suggestion
> pootle_store:0009_move_data_from_pootle_app_suggestion
- Migration 'pootle_store:0009_move_data_from_pootle_app_suggestion' is
marked for no-dry-run.
2015-09-24 13:45:40,743 INFO {'PAS_LESS_THAN_PSS': 194,
'NO_PSS_FOR_PENDING_PAS': 142, 'NO_SUB_FOR_PAS': 4358, 'DEL_REJECTED_PAS':
8372, 'ONE_TO_ONE_COPY': 3590, 'NO_PAS_FOR_PSS': 35132,
'SUG_CREATED_FROM_SUB': 5519, 'NO_UNIT_FOR_PAS': 899, 'MANY_TO_MANY_COPY':
0, 'PSS_LESS_THAN_PAS': 1, 'DUPLICATED_SUG': 61}
> pootle_store:0010_populate_translation_project_field
- Migration 'pootle_store:0010_populate_translation_project_field' is
marked for no-dry-run.
! 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: (migration cannot be dry-run;
cannot discover commands)
! 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: pootle_store:0010_populate_translation_project_field
Traceback (most recent call last):
File "/var/www/pootle/env/bin/pootle", line 11, in <module>
sys.exit(main())
File "/var/www/pootle/env/lib/python2.7/site-packages/pootle/runner.py",
line 171, in main
django_settings_module='pootle.settings')
File "/var/www/pootle/env/lib/python2.7/site-packages/pootle/runner.py",
line 150, in run_app
management.execute_from_command_line([runner_name] + remainder)
File
"/var/www/pootle/env/lib/python2.7/site-packages/django/core/management/__init__.py",
line 399, in execute_from_command_line
utility.execute()
File
"/var/www/pootle/env/lib/python2.7/site-packages/django/core/management/__init__.py",
line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/var/www/pootle/env/lib/python2.7/site-packages/django/core/management/base.py",
line 242, in run_from_argv
self.execute(*args, **options.__dict__)
File
"/var/www/pootle/env/lib/python2.7/site-packages/django/core/management/base.py",
line 285, in execute
output = self.handle(*args, **options)
File
"/var/www/pootle/env/lib/python2.7/site-packages/django/core/management/base.py",
line 415, in handle
return self.handle_noargs(**options)
File
"/var/www/pootle/env/lib/python2.7/site-packages/pootle/apps/pootle_app/management/commands/setup.py",
line 77, in handle_noargs
call_command('migrate', interactive=False)
File
"/var/www/pootle/env/lib/python2.7/site-packages/django/core/management/__init__.py",
line 159, in call_command
return klass.execute(*args, **defaults)
File
"/var/www/pootle/env/lib/python2.7/site-packages/django/core/management/base.py",
line 285, in execute
output = self.handle(*args, **options)
File
"/var/www/pootle/env/lib/python2.7/site-packages/south/management/commands/migrate.py",
line 111, in handle
ignore_ghosts = ignore_ghosts,
File
"/var/www/pootle/env/lib/python2.7/site-packages/south/migration/__init__.py",
line 220, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File
"/var/www/pootle/env/lib/python2.7/site-packages/south/migration/migrators.py",
line 256, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations,
database)
File
"/var/www/pootle/env/lib/python2.7/site-packages/south/migration/migrators.py",
line 331, in migrate_many
result = self.migrate(migration, database)
File
"/var/www/pootle/env/lib/python2.7/site-packages/south/migration/migrators.py",
line 133, in migrate
result = self.run(migration, database)
File
"/var/www/pootle/env/lib/python2.7/site-packages/south/migration/migrators.py",
line 114, in run
return self.run_migration(migration, database)
File
"/var/www/pootle/env/lib/python2.7/site-packages/south/migration/migrators.py",
line 84, in run_migration
migration_function()
File
"/var/www/pootle/env/lib/python2.7/site-packages/south/migration/migrators.py",
line 60, in <lambda>
return (lambda: direction(orm))
File
"/var/www/pootle/env/lib/python2.7/site-packages/pootle/apps/pootle_store/migrations/0010_populate_translation_project_field.py",
line 13, in forwards
bs.translation_project = bs.unit.store.translation_project
File
"/var/www/pootle/env/lib/python2.7/site-packages/django/db/models/fields/related.py",
line 320, in __get__
rel_obj = qs.get()
File
"/var/www/pootle/env/lib/python2.7/site-packages/django/db/models/query.py",
line 310, in get
self.model._meta.object_name)
pootle_store.models.DoesNotExist: Unit matching query does not exist.
[1] http://koha-community.org/
[2] http://translate.koha-community.org/
--
Bernardo Gonzalez Kriegel
[email protected]
------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle