Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade failed: django.db.utils.OperationalError: (1091, "Can't DROP 'description_html'; check that column/key exists") #3953

Closed
princeofnaxos opened this issue Aug 9, 2015 · 12 comments
Assignees
Milestone

Comments

@princeofnaxos
Copy link

Upgrading from v2.5.1 to 2.6.0, pootle setup fails with this error message;

django.db.utils.OperationalError: (1091, "Can't DROP 'description_html'; check that column/key exists")

I checked the database for that field, but it isn't there.

How do I proceed?

@princeofnaxos
Copy link
Author

Solved this one by adding the field to pootle_app_project instead of pootle_app_translationproject, as stated in the text of the error message.
But now setup encounters even more missing fields:

django.db.utils.OperationalError: (1054, "Unknown column 'pootle_app_project.creation_time' in 'field list'")

@jleclanche
Copy link
Member

What's 2.5.2?

@princeofnaxos
Copy link
Author

Wasn't 2.5.1 the last version before 2.6.0? I might be mistaken there...

@princeofnaxos
Copy link
Author

Sorry to confuse you..... I'm upgrading from 2.5.1:

build = 25120
sver = "2.5.1.2"
ver = (2, 5, 1)

@jleclanche
Copy link
Member

Ok, thank you. I'll look into this tomorrow.

@jleclanche jleclanche self-assigned this Aug 9, 2015
@unho unho added this to the 2.7.x milestone Aug 10, 2015
@princeofnaxos
Copy link
Author

Tomorrow is 2 days ago... Any clue to what is causing this issue?

@unho unho modified the milestones: 2.7.x, 2.7.1 Aug 24, 2015
@phlax
Copy link
Member

phlax commented Sep 7, 2015

@princeofnaxos apologies it has taken some time to address this issue. We are currently working on a 2.7.1 release to address bugs and migration issues in the 2.7.0 release.

I believe this may be fixed in #4037 - would you be willing to test this for us?

@phlax phlax self-assigned this Sep 7, 2015
@phlax
Copy link
Member

phlax commented Sep 10, 2015

@princeofnaxos im going to close this ticket as i believe the problem will be resolved in the 2.6.1 release - which we will be releasing in the next few days.

If the problem persists please re-open ticket and we can investigate further.

@phlax phlax closed this as completed Sep 10, 2015
@dwaynebailey
Copy link
Member

Reopening as @princeofnaxos reported this still present on the mailing list. From the traceback it seems it's a 2.6.2 release

Traceback (most recent call last):
   File "/var/www/pootle/env/bin/pootle", line 9, in <module>
     load_entry_point('Pootle==2.6.2', 'console_scripts', 'pootle')()
   File "/var/www/pootle/env/local/lib/python2.7/site-packages/pootle/runner.py", line 171, in main
     django_settings_module='pootle.settings')

@dwaynebailey dwaynebailey reopened this Jan 9, 2016
@dwaynebailey
Copy link
Member

@princeofnaxos I think to make this fix really quick it would be great if you could share your DB with one of the devs.

@dwaynebailey dwaynebailey modified the milestones: 2.7.3-final, 2.7.1 Jan 9, 2016
@phlax
Copy link
Member

phlax commented Jan 15, 2016

@princeofnaxos ive tested out your db and it seems that the migrations have some problems prior to the 2.5 to 2.6 upgrade.

Not sure how its happened, but i can probably help to get through the migration.

ping me on IRC (freenode#pootle) or on gitter.im/translate/pootle and ill try and help

@phlax
Copy link
Member

phlax commented Feb 10, 2016

hi @princeofnaxos afaict this issue is specific to your db - ping me on gitter if you want to follow up, or reopen if you think the problem is wider and ill happily follow up.

@phlax phlax closed this as completed Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants