← Back to team overview

graphite-dev team mailing list archive

Re: [Question #328115]: Trouble setting up db on new Graphite install

 

Question #328115 on Graphite changed:
https://answers.launchpad.net/graphite/+question/328115

    Status: Open => Solved

Blue Jakester confirmed that the question is solved:
Success! Thanks Denis.

I re-installed Django with this command:

# pip install Django==1.4
Collecting Django==1.4
  Downloading Django-1.4.tar.gz (7.6MB)
    100% |████████████████████████████████| 7.6MB 136kB/s
Building wheels for collected packages: Django
  Running setup.py bdist_wheel for Django ... done
  Stored in directory: /root/.cache/pip/wheels/6c/ca/0d/021df844c41aac7878225b9dd09ea49708bdc95073cd033be3
Successfully built Django
Installing collected packages: Django
  Found existing installation: Django 1.6.12
    DEPRECATION: Uninstalling a distutils installed project (Django) has been deprecated and will be removed in a future version. This is due to the fact that uninstaling a distutils project will only partially uninstall the project.
    Uninstalling Django-1.6.12:
      Successfully uninstalled Django-1.6.12
Successfully installed Django-1.9

Even though it reported version 1.9 I reran the syncdb command and it
worked. See below. So I'm moving on to the next task in the install
docs.

Thanks everyone for the help.


# django-admin.py syncdb --settings=graphite.settings
Creating tables ...
Creating table account_profile
Creating table account_variable
Creating table account_view
Creating table account_window
Creating table account_mygraph
Creating table dashboard_dashboard_owners
Creating table dashboard_dashboard
Creating table events_event
Creating table url_shortener_link
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_session
Creating table django_admin_log
Creating table django_content_type
Creating table tagging_tag
Creating table tagging_taggeditem

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'root'):
E-mail address: xxxxxxx#xxxxx.com
Password:
Password (again):
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)

# ls -l storage
total 68
-rw-r--r-- 1 root   root   69632 Aug  9 10:06 graphite.db
drwxr-xr-x 2 apache apache     6 Aug  3 14:44 lists
drwxr-xr-x 3 apache apache    19 Aug  3 14:48 log
drwxr-xr-x 2 apache apache     6 Aug  3 14:44 rrd
drwxr-xr-x 2 apache apache     6 Aug  3 14:44 whisper
#

-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.