graphite-manage syncdb error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
graphite-web (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
# on ubuntu 16.04 Graphite Carbon / Graphite Web
apt-get install graphite-web graphite-carbon
Installed versions are graphite-carbon 0.9.15-1 and graphite-web 0.9.15+debian-1
# Install a database for Django backend
apt-get install postgresql libpq-dev python-psycopg2
# Create a Database User and a Database
sudo -u postgres psql
postgres =# CREATE USER graphite WITH PASSWORD 'mypassword';
postgres =# CREATE DATABASE graphite WITH OWNER graphite;
postgres =# \q
# Configure Graphite Web Application
vi /etc/graphite/
```
# Change the default secret key ...
=> SECRET_KEY = 'mysecretkey'
# Change the default Time Zone (set to your time zone)
=> TIME_ZONE = 'Europe/Paris'
# Remote user authentication
=> USE_REMOTE_
# Configure the database access
DATABASES = {
'default': {
'NAME': 'graphite',
'USER': 'graphite',
'HOST': '127.0.0.1',
'PORT': '5432'
}
}
```
Save the file
# Sync the Database
graphite-manage syncdb
```
Operations to perform:
Synchronize unmigrated apps: account, cli, render, whitelist, metrics, url_shortener, dashboard, composer, events, browser
Apply all migrations: admin, contenttypes, tagging, auth, sessions
Synchronizing apps without migrations:
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
Creating table events_event
Creating table url_shortener_link
Running deferred SQL...
Traceback (most recent call last):
File "/usr/bin/
execute_
File "/usr/lib/
utility.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
output = self.handle(*args, **options)
File "/usr/lib/
call_
File "/usr/lib/
return command.
File "/usr/lib/
output = self.handle(*args, **options)
File "/usr/lib/
created_models = self.sync_
File "/usr/lib/
cursor.
File "/usr/lib/
return self.cursor.
File "/usr/lib/
six.
File "/usr/lib/
return self.cursor.
django.
```
I am also getting the same error