database error while running migration

118 views
Skip to first unread message

Federico Bruni

unread,
Jun 4, 2014, 6:05:17 AM6/4/14
to mezzani...@googlegroups.com
Hi all

I have a problem with the database migration during a deployment.

I have changed only the LANGUAGE_CODE variable in settings.py
When I launch 'fab deploy' I get this error:

'''
out: django.db.utils.ProgrammingError: ERROR:  the relation "conf_setting" already exists
[xx.xx.xx.xx] out:
[xx.xx.xx.xx] out:

Fatal error: run() received nonzero return code 1 while executing!

Requested: /home/fede/.virtualenvs/test/bin/python /home/fede/.virtualenvs/test/project/manage.py migrate --noinput
Executed: /bin/bash -l -c "cd /home/fede/.virtualenvs/test/project && source /home/fede/.virtualenvs/test/bin/activate && /home/fede/.virtualenvs/test/bin/python /home/fede/.virtualenvs/test/project/manage.py migrate --noinput"

Aborting.
'''

What should I check?
Thanks in advance
Federico


Federico Bruni

unread,
Jun 10, 2014, 12:07:04 PM6/10/14
to mezzani...@googlegroups.com
Any pointer?
I don't want to destroy the project and re-deploy from scratch.

Josh Cartmell

unread,
Jun 10, 2014, 12:19:54 PM6/10/14
to mezzani...@googlegroups.com
Hey Federico, shot in the dark here, but was South definitely installed when you deployed in the first place?  I'm wondering if some of the records of migrations are missing.

I could be totally off and I'm not sure how changing the language code would affect the db.


--
You received this message because you are subscribed to the Google Groups "Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mezzanine-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Federico Bruni

unread,
Jun 10, 2014, 12:50:22 PM6/10/14
to mezzani...@googlegroups.com
Hey Josh

no, South was not installed. I thought it was a dependency of Mezzanine, but I see that it's optional:
https://pypi.python.org/pypi/Mezzanine/3.1.5

I've installed it, added it to the requirements and pushed to the repository, but I'm getting the same error.

I've deployed from scratch. I'll see next time..

Thank you
Federico

--
You received this message because you are subscribed to a topic in the Google Groups "Mezzanine Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mezzanine-users/7Hz_5DK_Q0Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mezzanine-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages