# Icinga2 + Graphite showing empty graphs

**URL:** <https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475>\
**Category:** Icinga Web Modules\
**Tags:** graphite\
**Created:** [May 19, 2020, 12:07pm UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475 "2020-05-19T12:07:29Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jozef2020](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Jozef2020](https://community.icinga.com/u/Jozef2020)\
**Post date:** [May 19, 2020, 12:07pm UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/1 "2020-05-19T12:07:29Z")

</div>

Hello everyone,  
I am try install module graphite (ver 1.1.0) for showing performance data. But graphs for ping service is empty.

 ![image](https://community.icinga.com/uploads/default/original/2X/8/8d0115409b655a7ae8c587742bf4b296d12b829d.png)

# icinga2 object list --type GraphiteWriter

Object ‘graphite’ of type ‘GraphiteWriter’:  
% declared in ‘/etc/icinga2/features-enabled/graphite.conf’, lines 1:0-1:31

- \_\_name = “graphite”
- enable\_ha = false
- enable\_send\_metadata = false
- enable\_send\_thresholds = true  
% = modified in ‘/etc/icinga2/features-enabled/graphite.conf’, lines 4:3-4:31
- host = “127.0.0.1”  
% = modified in ‘/etc/icinga2/features-enabled/graphite.conf’, lines 2:3-2:20
- host\_name\_template = “icinga2.$host.name$.host.$host.check\_command$”
- name = “graphite”
- package = “\_etc”
- port = “2003”  
% = modified in ‘/etc/icinga2/features-enabled/graphite.conf’, lines 3:3-3:13
- service\_name\_template = “icinga2.$host.name$.services.$service.name$.$service.check\_command$”
- source\_location
  - first\_column = 0
  - first\_line = 1
  - last\_column = 31
  - last\_line = 1
  - path = “/etc/icinga2/features-enabled/graphite.conf”

- templates = [“graphite”]  
% = modified in ‘/etc/icinga2/features-enabled/graphite.conf’, lines 1:0-1:31
- type = “GraphiteWriter”
- zone = “”

# 

Thanks  
Jozef

---

<div class="post-metadata">

**Author:** ![homerjay](https://community.icinga.com/user_avatar/community.icinga.com/homerjay/32/377_2.png) [@homerjay](https://community.icinga.com/u/homerjay)\
**Post date:** [May 19, 2020, 12:58pm UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/2 "2020-05-19T12:58:53Z")

</div>

Hi Jozef,

do other graphs appear?  
Did you have an look at [this](https://community.icinga.com/t/a-distro-agnostic-guide-to-graphite-with-venv-examples-rhel8-debian10-ubuntu18/1424) amazing guide?

Greetings.

---

<div class="post-metadata">

**Author:** ![Jozef2020](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Jozef2020](https://community.icinga.com/u/Jozef2020)\
**Post date:** [May 20, 2020, 7:35am UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/3 "2020-05-20T07:35:35Z")

</div>

Hi Homerjay,

Thanks for the link. This is my first installation.  
I have now added services disk and load. The Graphite module still does not display new services neither ping.

Jozef

---

<div class="post-metadata">

**Author:** ![jqrun](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/858c86/32.png) [@jqrun](https://community.icinga.com/u/jqrun)\
**Post date:** [May 22, 2020, 10:08am UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/4 "2020-05-22T10:08:58Z")

</div>

if use mysqld:  
try:  
mybe modify /etc/my.cnf

sudo sed -i ‘/mb4/s@^@#@g’ /etc/my.cnf  
sudo service mysqld restart

---

<div class="post-metadata">

**Author:** ![Jozef2020](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Jozef2020](https://community.icinga.com/u/Jozef2020)\
**Post date:** [May 22, 2020, 11:04am UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/5 "2020-05-22T11:04:24Z")

</div>

> [@jqrun](#):
>
> sudo sed -i ‘/mb4/s@^@#@g’ /etc/my.cnf

Hi jqrung,

your command nothing modify in /etc/my.cnf

[root@lmaster ~]# cp /etc/my.cnf /etc/my.cnf.bck  
[root@lmaster ~]# sudo sed -i ‘/mb4/s@^@#@g’ /etc/my.cnf  
[root@lmaster ~]# diff /etc/my.cnf /etc/my.cnf.bck  
[root@lmaster ~]#

Jozef

---

<div class="post-metadata">

**Author:** ![Jozef2020](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Jozef2020](https://community.icinga.com/u/Jozef2020)\
**Post date:** [May 22, 2020, 11:11am UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/6 "2020-05-22T11:11:50Z")

</div>

Hi Homerjay,

I am got to step by step use guide, but after define service i has problem with starts carbon-relay service. Detailed info in my comment. [A distro agnostic guide to Graphite with venv (examples: RHEL8, Debian10, Ubuntu18)](https://community.icinga.com/t/a-distro-agnostic-guide-to-graphite-with-venv-examples-rhel8-debian10-ubuntu18/1424/16#)

Jozef

---

<div class="post-metadata">

**Author:** ![jqrun](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/858c86/32.png) [@jqrun](https://community.icinga.com/u/jqrun)\
**Post date:** [May 22, 2020, 2:25pm UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/7 "2020-05-22T14:25:51Z")

</div>

sorry i do not say clear  
my mysql is Compile and install

if you yum or apt install  
Not check here  
dpkg -L mysql…  
rpm -qL mysql…

find your configure

i question same as you , mysqld  
just like this  
 ![image](https://community.icinga.com/uploads/default/original/2X/2/29be38789cbbe230132a5dea80dc87262c66bd86.png)

and

if you mouse right click

[https://icingaserver.kaka.com/icingaweb2/graphite/graph/service?host.name=icingaserver.kaka.com&service.name=users&service.check\_command=users&template=users&start=-3600&end=&width=545&height=220&cachebuster=104061463062337&legend=1](https://icingaserver.kaka.com/icingaweb2/graphite/graph/service?host.name=icingaserver.kaka.com&service.name=users&service.check_command=users&template=users&start=-3600&end=&width=545&height=220&cachebuster=104061463062337&legend=1)

![image](https://community.icinga.com/uploads/default/original/2X/e/ef787e0358cb65fab41173aa404b2a390f79a73c.png)

check sql error

SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION ‘latin1\_general\_ci’ is not valid for CHARACTER SET 'utf8mb4

if you have this error  
so modify mysql configure  
sudo sed -i ‘/mb4/s@^@#@g’ /yourpath/my.cnf  
sudo service mysqld restart  
 ![image](https://community.icinga.com/uploads/default/original/2X/9/974885c6d2d7f56b0823597fb5b80f2cafa9a184.png)

---

<div class="post-metadata">

**Author:** ![homerjay](https://community.icinga.com/user_avatar/community.icinga.com/homerjay/32/377_2.png) [@homerjay](https://community.icinga.com/u/homerjay)\
**Post date:** [May 22, 2020, 2:46pm UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/8 "2020-05-22T14:46:48Z")

</div>

Hi again.

Can you please post:

- all corresponding config-files (as used in the guide)  
without comments and without your secrets  
(please formatted as code - for readability)
- your OS

Greetings.

---

<div class="post-metadata">

**Author:** ![Jozef2020](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Jozef2020](https://community.icinga.com/u/Jozef2020)\
**Post date:** [May 23, 2020, 7:46am UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/9 "2020-05-23T07:46:36Z")

</div>

Hi jqrun

Thank you your answer and your recommande.

I think I have another problem. My problem is that I can’t start the carbon-relay service.

 ![image](https://community.icinga.com/uploads/default/original/2X/7/71c5e610cac489759b8b85f64a71afcd04e1327a.png)

---

<div class="post-metadata">

**Author:** ![Jozef2020](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Jozef2020](https://community.icinga.com/u/Jozef2020)\
**Post date:** [May 23, 2020, 8:06am UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/10 "2020-05-23T08:06:06Z")

</div>

Hi Homerjay,

==================================================================================================

[root@lmaster ~]# uname -a  
Linux lmaster.localdomain 4.18.0-147.5.1.el8\_1.x86\_64 #1 SMP Wed Feb 5 02:00:39 UTC 2020 x86\_64 x86\_64 x86\_64 GNU/Linux  
[root@lmaster ~]# cat /etc/_rele_  
CentOS Linux release 8.1.1911 (Core)  
Derived from Red Hat Enterprise Linux 8.1 (Source)  
NAME=“CentOS Linux”  
VERSION=“8 (Core)”  
ID=“centos”  
ID\_LIKE=“rhel fedora”  
VERSION\_ID=“8”  
PLATFORM\_ID=“platform:el8”  
PRETTY\_NAME=“CentOS Linux 8 (Core)”  
ANSI\_COLOR=“0;31”  
CPE\_NAME=“cpe:/o:centos:centos:8”  
HOME\_URL=“[https://www.centos.org/](https://www.centos.org/)”  
BUG\_REPORT\_URL=“[https://bugs.centos.org/](https://bugs.centos.org/)”

CENTOS\_MANTISBT\_PROJECT=“CentOS-8”  
CENTOS\_MANTISBT\_PROJECT\_VERSION=“8”  
REDHAT\_SUPPORT\_PRODUCT=“centos”  
REDHAT\_SUPPORT\_PRODUCT\_VERSION=“8”

CentOS Linux release 8.1.1911 (Core)  
CentOS Linux release 8.1.1911 (Core)  
cpe:/o:centos:centos:8  
[root@lmaster ~]#

==================================================================================================

[root@lmaster ~]# cat /opt/graphite/conf/carbon.conf |grep -v ^#  
[cache]

DATABASE = whisper  
ENABLE\_LOGROTATION = True  
USER = carbon  
MAX\_CACHE\_SIZE = inf  
MAX\_UPDATES\_PER\_SECOND = 500

MAX\_CREATES\_PER\_MINUTE = 50  
MIN\_TIMESTAMP\_RESOLUTION = 1

LINE\_RECEIVER\_INTERFACE = 0.0.0.0  
ENABLE\_UDP\_LISTENER = False  
UDP\_RECEIVER\_INTERFACE = 0.0.0.0  
PICKLE\_RECEIVER\_INTERFACE = 0.0.0.0  
PICKLE\_RECEIVER\_MAX\_LENGTH = 1048576

USE\_INSECURE\_UNPICKLER = False  
CACHE\_QUERY\_INTERFACE = 0.0.0.0

LOG\_UPDATES = False  
LOG\_CREATES = False  
LOG\_CACHE\_HITS = False  
LOG\_CACHE\_QUEUE\_SORTS = False

CACHE\_WRITE\_STRATEGY = sorted  
WHISPER\_AUTOFLUSH = False

WHISPER\_FALLOCATE\_CREATE = True  
WHISPER\_LOCK\_WRITES = False

GRAPHITE\_URL = [http://127.0.0.1:8000/graphite](http://127.0.0.1:8000/graphite)

RELAY\_METHOD = rules  
REPLICATION\_FACTOR = 1  
DESTINATIONS = 127.0.0.1:2004  
MAX\_QUEUE\_SIZE = 10000  
MAX\_DATAPOINTS\_PER\_MESSAGE = 500  
QUEUE\_LOW\_WATERMARK\_PCT = 0.8  
TIME\_TO\_DEFER\_SENDING = 0.0001  
USE\_FLOW\_CONTROL = True

USE\_RATIO\_RESET=False  
MIN\_RESET\_STAT\_FLOW=1000  
MIN\_RESET\_RATIO=0.9  
MIN\_RESET\_INTERVAL=121

[aggregator]  
LINE\_RECEIVER\_INTERFACE = 0.0.0.0  
LINE\_RECEIVER\_PORT = 2023  
PICKLE\_RECEIVER\_INTERFACE = 0.0.0.0  
PICKLE\_RECEIVER\_PORT = 2024  
FORWARD\_ALL = True  
DESTINATIONS = 127.0.0.1:2004  
REPLICATION\_FACTOR = 1  
MAX\_QUEUE\_SIZE = 10000  
USE\_FLOW\_CONTROL = True  
MAX\_DATAPOINTS\_PER\_MESSAGE = 500  
MAX\_AGGREGATION\_INTERVALS = 5

[cache:a]  
LINE\_RECEIVER\_PORT = 2003  
PICKLE\_RECEIVER\_PORT = 2004  
CACHE\_QUERY\_PORT = 7002

[cache:b]  
LINE\_RECEIVER\_PORT = 2103  
PICKLE\_RECEIVER\_PORT = 2104  
CACHE\_QUERY\_PORT = 7102

[relay]  
LINE\_RECEIVER\_INTERFACE = 127.0.0.1 # you can use 127.0.0.1 if Icinga is on the same server  
LINE\_RECEIVER\_PORT = 2013  
RELAY\_METHOD = consistent-hashing  
REPLICATION\_FACTOR = 1  
DYNAMIC\_ROUTER = True  
DESTINATIONS = 127.0.0.1:2004:a, 127.0.0.1:2104:b  
DESTINATION\_PROTOCOL = pickle  
DESTINATION\_TRANSPORT = none  
USER = carbon  
QUEUE\_LOW\_WATERMARK\_PCT = 0.8  
TIME\_TO\_DEFER\_SENDING = 0.0001  
PICKLE\_RECEIVER\_INTERFACE = 0.0.0.0  
PICKLE\_RECEIVER\_MAX\_LENGTH = 1048576

[root@lmaster ~]#

==================================================================================================

[root@lmaster ~]# cat /opt/graphite/conf/storage-schemas.conf |grep -v ^#

[icinga-hosts]  
pattern = ^icinga2…\*.host.  
retentions = 5m:4w

[icinga-services]  
pattern = ^icinga2…\*.services.  
retentions = 5m:12w,15m:26w,30m:1y

[carbon]  
pattern = ^carbon.  
retentions = 60:90d

[default]  
pattern = .\*  
retentions = 60s:1d,5m:30d,1h:3y  
[root@lmaster ~]#

==================================================================================================

[root@lmaster ~]# cat /opt/graphite/webapp/graphite/local\_settings.py |grep -v ^#

SECRET\_KEY = ‘imalittleteapotshortandstout’  
DEFAULT\_XFILES\_FACTOR = 0  
URL\_PREFIX = ‘/graphite’

CARBONLINK\_HOSTS = [“127.0.0.1:7002:a”, “127.0.0.1:7102:b”]  
CARBONLINK\_TIMEOUT = 1.0  
CARBONLINK\_RETRY\_DELAY = 15 # Seconds to blacklist a failed remote server

REPLICATION\_FACTOR = 1  
FUNCTION\_PLUGINS = []

[root@lmaster ~]#

==================================================================================================

[root@lmaster ~]# cat /etc/systemd/system/carbon-cache@.service  
[Unit]  
Description=carbon-cache instance %i (graphite)

[Service]  
Environment=PATH=/opt/graphite/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin  
Environment=VIRTUAL\_ENV=/opt/graphite  
User=carbon  
Group=carbon  
ExecStartPre=/bin/rm -f /opt/graphite/storage/carbon-cache-%i.pid  
ExecStart=/opt/graphite/bin/carbon-cache.py --instance=%i start --pidfile=/opt/graphite/storage/carbon-cache-%i.pid  
Type=forking  
PIDFile=/opt/graphite/storage/carbon-cache-%i.pid  
LimitNOFILE=128000

[Install]  
WantedBy=multi-user.target  
[root@lmaster ~]#

==================================================================================================  
[root@lmaster ~]# cat /etc/systemd/system/graphite.service  
[Unit]  
Description = Graphite

[Service]  
Environment=PATH=/opt/graphite/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin  
Environment=PYTHONPATH=/opt/graphite/webapp:/opt/graphite  
Environment=VIRTUAL\_ENV=/opt/graphite  
User = carbon  
Group = carbon  
WorkingDirectory = /opt/graphite/webapp  
PIDFile = /var/run/graphite/graphite.pid  
ExecStart = /opt/graphite/bin/gunicorn --bind 127.0.0.1:8000 graphite.wsgi  
ExecReload = /bin/kill -s HUP $MAINPID  
ExecStop = /bin/kill -s TERM $MAINPID

[Install]  
WantedBy = multi-user.target  
[root@lmaster ~]#

==================================================================================================  
[root@lmaster ~]# cat /etc/systemd/system/carbon-relay.service  
[Unit]  
Description=Graphite Carbon Relay  
After=network.target

[Service]  
Environment=PATH=/opt/graphite/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin  
Environment=PYTHONPATH=/opt/graphite/webapp:/opt/graphite  
Environment=VIRTUAL\_ENV=/opt/graphite  
Type=forking  
StandardOutput=syslog  
StandardError=syslog  
ExecStart=/opt/graphite/bin/carbon-relay.py --config=/opt/graphite/conf/carbon.conf --pidfile=/var/run/carbon-relay.pid start  
ExecReload=/bin/kill -USR1 $MAINPID  
PIDFile=/var/run/carbon-relay.pid  
Restart=always

[Install]  
WantedBy=multi-user.target  
[root@lmaster ~]#

==================================================================================================

[root@lmaster ~]# cat /etc/icinga2/features-enabled/graphite.conf  
/\*\*

- The GraphiteWriter type writes check result metrics and
- performance data to a graphite tcp socket.  
\*/

object GraphiteWriter “graphite” {  
host = “127.0.0.1”  
port = 2013  
}  
[root@lmaster ~]#

==================================================================================================

[root@lmaster ~]# find / -name value.wsp  
[root@lmaster ~]#

==================================================================================================

[root@lmaster ~]# ps aux |grep carbon  
carbon 805 0.0 2.0 102736 16880 ? Ss 06:01 0:03 /opt/graphite/bin/python3 /opt/graphite/bin/gunicorn --bind 127.0.0.1:8000 graphite.wsgi  
carbon 873 0.1 3.1 279108 26688 ? Sl 06:01 0:16 /opt/graphite/bin/python3 /opt/graphite/bin/carbon-cache.py --instance=b start --pidfile=/opt/graphite/storage/carbon-cache-b.pid  
carbon 875 0.1 2.9 279108 24628 ? Sl 06:01 0:15 /opt/graphite/bin/python3 /opt/graphite/bin/carbon-cache.py --instance=a start --pidfile=/opt/graphite/storage/carbon-cache-a.pid  
carbon 6752 0.1 5.3 491200 45388 ? Sl 09:01 0:04 /opt/graphite/bin/python3 /opt/graphite/bin/gunicorn --bind 127.0.0.1:8000 graphite.wsgi  
root 8398 0.0 0.1 12108 968 pts/1 R+ 10:01 0:00 grep --color=auto carbon  
[root@lmaster ~]#

==================================================================================================

Info about wrong start service carbon-relay see [here](https://community.icinga.com/t/a-distro-agnostic-guide-to-graphite-with-venv-examples-rhel8-debian10-ubuntu18/1424/17)

Jozef

---

<div class="post-metadata">

**Author:** ![homerjay](https://community.icinga.com/user_avatar/community.icinga.com/homerjay/32/377_2.png) [@homerjay](https://community.icinga.com/u/homerjay)\
**Post date:** [May 23, 2020, 10:34am UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/11 "2020-05-23T10:34:25Z")

</div>

Hi Jozef.

I took your config-files and started a new installation process in a VM (Ubuntu, not Debian).  
All services run without an error.

The only thing that had to be changed was  
the /opt/graphite/webapp/graphite/local\_settings.py, before the migration:

```
PYTHONPATH=/opt/graphite/webapp django-admin.py migrate

```

The quotation marks had to be changed, but I assume that this just happened by copy&paste.

Maybe anyone else has a hint for you.

Greetings,

---

<div class="post-metadata">

**Author:** ![Jozef2020](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Jozef2020](https://community.icinga.com/u/Jozef2020)\
**Post date:** [May 23, 2020, 3:51pm UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/12 "2020-05-23T15:51:12Z")

</div>

Hi Homerjay,

sorry I don’t understand your recommande.

Do you means add line “PYTHONPATH=/opt/graphite/webapp django-admin.py migrate” in to the script /opt/graphite/webapp/graphite/local\_settings.py ?

I am tryed this but see SyntaxError in line 14 on the last line …

(graphite) [carbon@lmaster ~]$ PYTHONPATH=/opt/graphite/webapp django-admin.py migrate --settings=graphite.settings --run-syncdb  
Traceback (most recent call last):  
File “/opt/graphite/bin/django-admin.py”, line 5, in   
management.execute\_from\_command\_line()  
File “/opt/graphite/webapp/django/core/management/ **init**.py”, line 401, in execute\_from\_command\_line  
utility.execute()  
File “/opt/graphite/webapp/django/core/management/ **init**.py”, line 345, in execute  
settings.INSTALLED\_APPS  
File “/opt/graphite/webapp/django/conf/ **init**.py”, line 76, in **getattr**  
self.\_setup(name)  
File “/opt/graphite/webapp/django/conf/ **init**.py”, line 63, in \_setup  
self.\_wrapped = Settings(settings\_module)  
File “/opt/graphite/webapp/django/conf/ **init**.py”, line 142, in **init**  
mod = importlib.import\_module(self.SETTINGS\_MODULE)  
File “/usr/lib64/python3.6/importlib/ **init**.py”, line 126, in import\_module  
return \_bootstrap.\_gcd\_import(name[level:], package, level)  
File “”, line 994, in \_gcd\_import  
File “”, line 971, in \_find\_and\_load  
File “”, line 955, in \_find\_and\_load\_unlocked  
File “”, line 665, in \_load\_unlocked  
File “”, line 678, in exec\_module  
File “”, line 219, in \_call\_with\_frames\_removed  
File “/opt/graphite/webapp/graphite/settings.py”, line 226, in   
globals().update(import\_module(SETTINGS\_MODULE). **dict** )  
File “/usr/lib64/python3.6/importlib/ **init**.py”, line 126, in import\_module  
return \_bootstrap.\_gcd\_import(name[level:], package, level)  
File “”, line 994, in \_gcd\_import  
File “”, line 971, in \_find\_and\_load  
File “”, line 955, in \_find\_and\_load\_unlocked  
File “”, line 665, in \_load\_unlocked  
File “”, line 674, in exec\_module  
File “”, line 781, in get\_code  
File “”, line 741, in source\_to\_code  
File “”, line 219, in \_call\_with\_frames\_removed  
File “/opt/graphite/webapp/graphite/local\_settings.py”, line 14  
PYTHONPATH=/opt/graphite/webapp django-admin.py migrate  
^  
SyntaxError: invalid syntax  
(graphite) [carbon@lmaster ~]$

Your test start the service carbon-relay is really run?  
Because I am have constantly this state …

[root@lmaster ~]# systemctl status carbon-relay.service  
● carbon-relay.service - Graphite Carbon Relay  
Loaded: loaded (/etc/systemd/system/carbon-relay.service; enabled; vendor preset: disabled)  
Active: failed (Result: exit-code) since Sat 2020-05-23 17:38:47 CEST; 24s ago  
Process: 13987 ExecStart=/opt/graphite/bin/carbon-relay.py --config=/opt/graphite/conf/carbon.conf --pidfile=/var/run/carbon-relay.pid start \>

May 23 17:38:47 lmaster.localdomain systemd[1]: carbon-relay.service: Failed with result ‘exit-code’.  
May 23 17:38:47 lmaster.localdomain systemd[1]: Failed to start Graphite Carbon Relay.  
May 23 17:38:47 lmaster.localdomain systemd[1]: carbon-relay.service: Service RestartSec=100ms expired, scheduling restart.  
May 23 17:38:47 lmaster.localdomain systemd[1]: carbon-relay.service: Scheduled restart job, restart counter is at 5.  
May 23 17:38:47 lmaster.localdomain systemd[1]: Stopped Graphite Carbon Relay.  
May 23 17:38:47 lmaster.localdomain systemd[1]: carbon-relay.service: Start request repeated too quickly.  
May 23 17:38:47 lmaster.localdomain systemd[1]: carbon-relay.service: Failed with result ‘exit-code’.  
May 23 17:38:47 lmaster.localdomain systemd[1]: Failed to start Graphite Carbon Relay.  
ESCOC

---

<div class="post-metadata">

**Author:** ![homerjay](https://community.icinga.com/user_avatar/community.icinga.com/homerjay/32/377_2.png) [@homerjay](https://community.icinga.com/u/homerjay)\
**Post date:** [May 23, 2020, 5:00pm UTC](https://community.icinga.com/t/icinga2-graphite-showing-empty-graphs/4475/13 "2020-05-23T17:00:00Z")

</div>

Hi Jozef.

Yes, I mean the

```auto
/opt/graphite/webapp/graphite/local_settings.py

```

Use this (the only difference are the single quotation marks):

```auto
SECRET_KEY = 'imalittleteapotshortandstout'
DEFAULT_XFILES_FACTOR = 0
URL_PREFIX = '/graphite'

CARBONLINK_HOSTS = ["127.0.0.1:7002:a", "127.0.0.1:7102:b"]
CARBONLINK_TIMEOUT = 1.0
CARBONLINK_RETRY_DELAY = 15 # Seconds to blacklist a failed remote server

REPLICATION_FACTOR = 1
FUNCTION_PLUGINS = []

```

Then run:

```auto
PYTHONPATH=/opt/graphite/webapp django-admin.py migrate

```

again. This process has to complete successfully.

I only used your configs and the services all started correctly.  
The only thing which didn’t work was the db-migration process.

Hope this helps.

Greetings.
