Upgrade Graphite from 0.9.13 to 1.1.1

Asked by Neil Stack

Hej

I need to update graphite from 0.9.13 to 1.1.1 Upgrade from 0.9.13 to 0.916 that works perfectly fine. However upgrade from 0.9.13 to 1.0.0 or from 0.9.16 to 1.0.0 fails. More accurately graphite database fails. I know that graphite.db structure changed between 09.x and 1.x and I used : sudo PYTHONPATH=/opt/graphite/webapp django-admin.py migrate \
      --noinput --settings=graphite.settings --run-syncdb. However it still fails.

Ubuntu 14.04
Ansible 1.9.6

Any suggestions ?

//Niel Stack

Question information

Language:
English Edit question
Status:
Expired
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Neil Stack (linuxlover32) said :
#1

python 2.7
pip 9.0.1
Django 1.8.3

Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#2

Could you please elaborate what exactly fails?

Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#4

You need to install python scandir module, it's mandatory starting from graphite 1.0.0
https://pypi.python.org/pypi/scandir

Revision history for this message
Neil Stack (linuxlover32) said :
#5

As far as I understand the db migrations fails.

Revision history for this message
Neil Stack (linuxlover32) said :
#6

Ahh , thank you I will give a try

Revision history for this message
Neil Stack (linuxlover32) said :
#7

Thank You , it worked

Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#10

Try to run
```PYTHONPATH=/opt/graphite/webapp django-admin.py migrate auth --noinput --settings=graphite.settings ```
and then
```PYTHONPATH=/opt/graphite/webapp django-admin.py migrate --noinput --settings=graphite.settings ```

Revision history for this message
Neil Stack (linuxlover32) said :
#11

I have to do all this in ansible, so first migration auth that works but second isn't, my problem is now migrate the auth

Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#12

Sorry, linuxlover32, didn't get it. If migrate auth worked, why do you need migrate auth still?

Revision history for this message
Neil Stack (linuxlover32) said :
#13

Sorry I meant only auth migrate worked but not migrate afterwards! My concern is that only migrated the auth and not the rest

Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#14

Maybe `mirgate --run-syncdb` will work now? before it failed on auth tables, right? please try that

Revision history for this message
Neil Stack (linuxlover32) said :
#15

So I run migrate auth then migrate in two different commands and after second run it pops back same problem .

Revision history for this message
Neil Stack (linuxlover32) said :
#16

This command from playbook:

command: /opt/graphite/bin/django-admin migrate auth --pythonpath /opt/graphite/webapp --noinput --settings=graphite.settings
command: /opt/graphite/bin/django-admin migrate --pythonpath /opt/graphite/webapp --noinput --settings=graphite.settings --run-syncdb

Revision history for this message
Launchpad Janitor (janitor) said :
#17

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Neil Stack (linuxlover32) said :
#18

I had to add SQL script to remove tabels from django_migrations in graphite.db