table "django_content_type" already exists
Hi,
I am trying to upgrade graphite from version 0.9.15 to 1.1.7
Initially this has worked as a clean install only by removing the existing /opt/graphite directory and upgrading python(2->3.x), sqlite, mod_wsgi, whisper, carbon and graphite-web.
I now need to upgrade this for production purposes and therefore need to persist all db data and attempt to upgrade in-place without removing the existing installation.
When I get to the Django webapp db setup steps I am having issues running the django-admin.py commands. I have run
export DJANGO_
export PYTHONPATH=
/usr/local/
709 static files copied to '/opt/graphite/
/usr/local/
Migrations for 'account':
/opt/
- Alter field history on profile
Migrations for 'events':
/opt/
- Alter field tags on event
When I run the migrate command I get the following error:
/usr/local/
Operations to perform:
Synchronize unmigrated apps: browser, composer, functions, messages, metrics, render, staticfiles, whitelist
Apply all migrations: account, admin, auth, contenttypes, dashboard, events, sessions, tagging, tags, url_shortener
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Running migrations:
Applying contenttypes.
File "/usr/local/
return self.cursor.
File "/usr/local/
return Database.
sqlite3.
I have read that using --fake-initial can help... but I run into similar exception albeit against a different table
/usr/local/
Operations to perform:
Synchronize unmigrated apps: browser, composer, functions, messages, metrics, render, staticfiles, whitelist
Apply all migrations: account, admin, auth, contenttypes, dashboard, events, sessions, tagging, tags, url_shortener
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Running migrations:
Applying dashboard.
File "/usr/local/
return self.cursor.
File "/usr/local/
return Database.
sqlite3.
Is it even possible to migrate the data between these versions - 0.9.15 to 1.1.7 ?
Regards
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Simon Trimboy
- Solved:
- Last query:
- Last reply: