mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 09:26:00 +03:00
[GH-ISSUE #1258] Upgrading 1.6 -> 1.9 SQL relation models missing #1023
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1023
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @prisma01 on GitHub (Sep 29, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1258
When upgrading from 1.6 to 1.9 following the upgrade instructions i'm got stuck:
When i run:
I get:
Extensions and all external packages should be up to date:
Host is debian jessie, python 2.7
Did I miss anything? Or is there a simple way to readd Domain and Mailbox Modell?
@tonioo commented on GitHub (Oct 2, 2017):
Those models are provided by the modoboa package, I think your virtualenv is somewhat broken. Have you tried to recreate it?
@prisma01 commented on GitHub (Oct 2, 2017):
Hm,
thanks for mentioning virtualenv. I was using pip right away. I purged everything using
pip freeze | xargs pip uninstall -ythen I was adding a virtualenv in the modoboa homedir. Installing modoboa in the virtualenv did work after some effort :-)
But when i call
python manage.py migratei get the same error (extensions disabled):
(env)modoboa@mail:~$ python manage.py migrate
@tonioo commented on GitHub (Oct 6, 2017):
Looks like some packages are still missing. Can you paste the result of a
pip listcommand ran into you venv?@prisma01 commented on GitHub (Oct 6, 2017):
Shouldn't the dependencies be resolved by pip?
However I had to install django-rest-swagger and MySQL-python as python manage.py migrate said they were missing.
This is my list of packages in my virtualenv:
Thank you for helping me out...
@tonioo commented on GitHub (Oct 7, 2017):
They should be resolved but I think you did a little mistake while updating... Does everything work as expected now?
@prisma01 commented on GitHub (Oct 9, 2017):
No, It is unfortunately not solved. It might be, that I made a mistake but i double checked with the upgrading Documentation and I have not found anything that is not correct.
As a last resort, giving up on upgrading I removed the instance now an tried to create a new instance.
But I kept the DB, as I want to keep my Mail configuration. But during deploying the new instance I get the following error:
django.db.utils.IntegrityError: (1062, "Duplicate entry '@XXX.org' for key 'email'")
Is there another way of "manually upgrading"?
@tonioo commented on GitHub (Oct 10, 2017):
@prisma01 A complete trace would be useful.
@prisma01 commented on GitHub (Oct 15, 2017):
As this issue is no longer about upgrading but about reinstall, i'll close this. Install issue moved to #1276