Graphs render cause 500 Internal error

Asked by Mohamed Lrhazi

I followed the instructions here: http://graphite.wikidot.com/documentation
and installed graphite trunk, on redhat enterprise 6.1

I installed collectd and collectd-carbon plugin.

The data seems to make it to graphite, as I see my tow hosts listed in the GUI, and their metrics too, cpu, interface and so on.

When I click to display any graph, for any value, it simply shows the broken image icon.

Firebug shows all such requests get 500 error, example:

http://lnx3-test/render/?width=586&height=308&_salt=1319850105.085

500 http response code, with an empty body and headers like:

Date: Sat, 29 Oct 2011 01:01:37 GMT
Server: Apache/2.2.15 (Red Hat)
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

I can't see anything in the logs.... though I set DEBUG = True in local_settings.py

How do I debug this to figure out the actual problem?

Thanks a lot.
Mohamed.

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Mohamed Lrhazi
Solved:
Last query:
Last reply:
Revision history for this message
Mohamed Lrhazi (lrhazi) said :
#1

Thanks to strace I found out I was having the same issue described here:
https://answers.launchpad.net/graphite/+question/38833

Installing bitmap fonts fixed it:

yum install bitmap-*

Revision history for this message
chrismd (chrismd) said :
#2

Yep, and another good way to get debug data is to set DEBUG = True (like you did) and then directly view the url of the broken image, it will contain a detailed stacktrace.

Revision history for this message
rocky (rocky.munich1) said :
#3

Hi,

After installation of graphite getting Internal server error (error code : 500) while hitting from the browser. Could you please check and provide your inputs.

Below log path : /opt/graphite/storage/log/webapp

file : error.log

[Tue Sep 26 01:28:41 2017] [error] [client 10.2.200.22] mod_wsgi (pid=21224): Target WSGI script '/opt/graphite/conf/graphite.wsgi' cannot be loaded as Python module.
[Tue Sep 26 01:28:41 2017] [error] [client 10.2.200.22] mod_wsgi (pid=21224): Exception occurred processing WSGI script '/opt/graphite/conf/graphite.wsgi'.
[Tue Sep 26 01:28:41 2017] [error] [client 10.2.200.22] Traceback (most recent call last):
[Tue Sep 26 01:28:41 2017] [error] [client 10.2.200.22] File "/opt/graphite/conf/graphite.wsgi", line 4, in <module>
[Tue Sep 26 01:28:41 2017] [error] [client 10.2.200.22] from graphite.wsgi import application
[Tue Sep 26 01:28:41 2017] [error] [client 10.2.200.22] File "/opt/graphite/webapp/graphite/wsgi.py", line 7, in <module>
[Tue Sep 26 01:28:41 2017] [error] [client 10.2.200.22] from django.utils.importlib import import_module
[Tue Sep 26 01:28:41 2017] [error] [client 10.2.200.22] ImportError: No module named django.utils.importlib

Thank you in advance.