New question #272045 on Graphite:
https://answers.launchpad.net/graphite/+question/272045

Some background info:

Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: armel (armv5tel)

Kernel: Linux 3.16.0-4-kirkwood
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages graphite-web depends on:
ii  adduser                3.113+nmu3
ii  libjs-jquery           1.7.2+dfsg-3.2
ii  libjs-jquery-flot      0.8.2+dfsg-1
ii  libjs-prototype        1.7.1-3
ii  libjs-scriptaculous    1.9.0-2
ii  python                 2.7.9-1
ii  python-cairo           1.8.8-1+b2
ii  python-django          1.7.7-1+deb8u2
ii  python-django-tagging  1:0.3.1-4
ii  python-pyparsing       2.0.3+dfsg1-1
ii  python-simplejson      3.6.5-1
ii  python-tz              2012c+dfsg-0.1
ii  python-whisper         0.9.12-1

Versions of packages graphite-web suggests:
libapache2-mod-wsgi  4.3.0-1


-- Configuration File:
/etc/graphite/local_settings.py changed:
LOG_RENDERING_PERFORMANCE = True
LOG_CACHE_PERFORMANCE = True
LOG_METRIC_ACCESS = True
DEBUG = True
GRAPHITE_ROOT = '/usr/share/graphite-web'
CONF_DIR = '/etc/graphite'
STORAGE_DIR = '/var/lib/graphite'
CONTENT_DIR = '/usr/share/graphite-web/static'
RRD_DIR = '/var/lib/graphite/rrd'
LOG_DIR = '/var/log/graphite'
INDEX_FILE = '/var/lib/graphite/search_index'  # Search index file
DATABASES = {
    'default': {
        'NAME': '/var/lib/graphite/graphite.db',
        'ENGINE': 'django.db.backends.sqlite3',
        'USER': '',
        'PASSWORD': '',
        'HOST': '',
        'PORT': ''
    }
}

the RRD files are generated by collectd into the directory 
/var/lib/collectd/rrd/kessel0001.fritz.box/biosmart, and i created a symlink 
pointing so graphit finds them under 
/var/lib/graphite/rrd/kessel0001_fritz_box/biosmart .

Graphite find the files and displays all the available rrd files in the tree 
view to the left of the screen. I can select a couple of values and create a 
plot. however, the graphs are not rendered. when accessing the URL to the 
rendered graph directly, i get a python traceback:


Request Method: GET
Request URL: 
http://david/render/?width=586&height=308&_salt=1443903801.12&target=kessel0001_fritz_box.biosmart.temperature-Puffertemperatur%20Mitte.value&target=kessel0001_fritz_box.biosmart.temperature-Puffertemperatur%20Oben.value&target=kessel0001_fritz_box.biosmart.temperature-Puffertemperatur%20Unten.value&target=

Django Version: 1.7.7
Python Version: 2.7.9
Installed Applications:
('graphite.metrics',
 'graphite.render',
 'graphite.cli',
 'graphite.browser',
 'graphite.composer',
 'graphite.account',
 'graphite.dashboard',
 'graphite.whitelist',
 'graphite.events',
 'django.contrib.auth',
 'django.contrib.sessions',
 'django.contrib.admin',
 'django.contrib.contenttypes',
 'tagging')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.middleware.gzip.GZipMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in 
get_response
  111.                     response = wrapped_callback(request, *callback_args, 
**callback_kwargs)
File "/usr/lib/python2.7/dist-packages/graphite/render/views.py" in renderView
  112.         data.extend(seriesList)

Exception Type: TypeError at /render/
Exception Value: 'NoneType' object is not iterable


there is plenty (24h+ worth) of data in the rrd files. however i let collectd 
create the rrd files with this  collectd config:

  RRATimespan 3600
  RRATimespan 86400
  RRATimespan 604800
  RRATimespan 2678400
  RRATimespan 31622400
  RRATimespan 315576000

the last line will hold data of 10 years, which will only get the first data 
point after (i think) 3 days. Will it take that long till the graphs are 
viewable? can i shorten that time? can i pre-seed the rrd files somehow? or is 
this traceback caused by a different error? what would be a simple fix?

/andreas

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

_______________________________________________
Mailing list: https://launchpad.net/~graphite-dev
Post to     : graphite-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~graphite-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to