What Grafana version and what operating system are you using?
Grafana version - NA
OS Fedora Linux
What are you trying to achieve?
Start Grafana after reboot
How are you trying to achieve it?
Reboot and manually start
What happened?
Starting the grafana-server.service failed
What did you expect to happen?
Can you copy/paste the configuration(s) that you are having problems with?
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
Job for grafana-server.service failed because the control process exited with error code.
grafana-server.service: Start request repeated too quickly.
grafana-server.service: Failed with result βexit-codeβ.
Did you follow any online instructions? If so, what is the URL?
Unfortunately, I donβt have that information. I inherited this system from a former employee who set the system up. It was working until a recent system reboot.
Please change the default log level to debug mode. To do this go to the server where grafana is installed and edit the configuration file (/etc/grafana/grafana.ini)
There you will this section;
#################################### Logging ##########################
[log]
# Either "console", "file", "syslog". Default is console and file
# Use space to separate multiple modes, e.g. "console file"
;mode = console file
# Either "debug", "info", "warn", "error", "critical", default is "info"
;level = info
Set the parameter level to debug and remove the colon in the beginning i.e.
level = debug
Then restart the grafana service and resent the logs once the issue occurs again.
w[eng@ewswi30000511 /]$ whereis grafana
grafana: /etc/grafana /usr/share/grafana
[eng@ewswi30000511 /]$ cd /etc/grafana/
[eng@ewswi30000511 grafana]$ ls -l
total 120
-rw-r--r--. 1 root grafana 66121 Jan 9 10:32 grafana.ini
-rw-r-----. 1 root grafana 48282 Dec 30 14:22 grafana.ini.save
-rw-r-----. 1 root grafana 2376 Aug 24 12:49 ldap.toml
drwxr-xr-x. 1 root grafana 118 Aug 24 12:49 provisioning
[eng@ewswi30000511 grafana]$ sudo nano grafana.ini
[sudo] password for eng:
[eng@ewswi30000511 grafana]$ sudo systemctl restart grafana-server
Job for grafana-server.service failed because the control process exited with error code.
See "systemctl status grafana-server.service" and "journalctl -xeu grafana-server.service" for details.
[eng@ewswi30000511 grafana]$ sudo systemctl status grafan-server
Unit grafan-server.service could not be found.
[eng@ewswi30000511 grafana]$
Hereβs the end of the log file:
logger=settings t=2023-01-06T14:52:54.983264603-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:52:55.472081827-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:52:55.764607025-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:52:56.231602354-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:53:10.219152547-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:53:10.483694934-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:53:10.972308835-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:53:11.264154418-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:53:11.764957648-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:57:51.906686891-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:57:52.267987831-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:57:52.73822074-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:57:53.225562097-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T14:57:53.730400105-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T15:03:52.602798972-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T15:03:52.995415075-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T15:03:53.488726431-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T15:03:53.949697133-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T15:03:54.23912038-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T15:03:54.744774774-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-06T15:03:55.244311129-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:36:28.667699667-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:36:28.971554316-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:36:29.453208415-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:36:29.751605947-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:36:30.208351076-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:38:52.41756135-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:38:52.752390439-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:38:53.212127891-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:38:53.710341503-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:38:54.247908232-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:42:16.946690186-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:42:17.251450687-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:42:17.713997949-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:42:18.247359418-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:42:18.708813752-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:49:37.426990794-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:49:37.755183028-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:49:38.206756138-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:49:38.453988023-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T10:49:38.745880662-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T12:26:25.822715278-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T12:26:26.151830991-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T12:26:26.520282501-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T12:26:27.020560261-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T12:26:27.507266248-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T12:26:28.025114804-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T12:26:28.506160911-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T12:26:29.024544982-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T12:26:29.488470923-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-09T12:26:29.87925403-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-10T07:52:13.628242191-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-10T07:52:13.992084647-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-10T07:52:14.52671851-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-10T07:52:14.979760297-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
logger=settings t=2023-01-10T07:52:15.24110717-05:00 level=error msg="failed to parse \"/etc/grafana/grafana.ini\": key-value delimiter not found: afs boot etc lib lost+found >
[eng@ewswi30000511 grafana]$ sudo journalctl -xeu grafana-server.service
[sudo] password for eng:
Jan 10 07:52:15 systemd[1]: grafana-server.service: Failed with result 'exit-code'.
ββ Subject: Unit failed
ββ Defined-By: systemd
ββ
ββ The unit grafana-server.service has entered the 'failed' state with result 'exit-code'.
Jan 10 07:52:15 systemd[1]: Failed to start grafana-server.service - Grafana instance.
ββ Subject: A start job for unit grafana-server.service has failed
ββ Defined-By: systemd
ββ
ββ A start job for unit grafana-server.service has finished with a failure.
ββ
ββ The job identifier is 6356 and the job result is failed.
Jan 10 07:52:15 systemd[1]: grafana-server.service: Scheduled restart job, restart counter>
ββ Subject: Automatic restarting of a unit has been scheduled
ββ Defined-By: systemd
ββ
ββ Automatic restarting of the unit grafana-server.service has been scheduled, as the result for
ββ the configured Restart= setting for the unit.
Jan 10 07:52:15 systemd[1]: Stopped grafana-server.service - Grafana instance.
ββ Subject: A stop job for unit grafana-server.service has finished
ββ Defined-By: systemd
ββ
ββ A stop job for unit grafana-server.service has finished.
ββ
ββ The job identifier is 6470 and the job result is done.
Jan 10 07:52:15 systemd[1]: grafana-server.service: Start request repeated too quickly.
Jan 10 07:52:15 systemd[1]: grafana-server.service: Failed with result 'exit-code'.
ββ Subject: Unit failed
ββ Defined-By: systemd
ββ The unit grafana-server.service has entered the 'failed' state with result 'exit-code'.
Jan 10 07:52:15 systemd[1]: Failed to start grafana-server.service - Grafana instance.
ββ Subject: A start job for unit grafana-server.service has failed
ββ Defined-By: systemd
ββ
ββ A start job for unit grafana-server.service has finished with a failure.
ββ
ββ The job identifier is 6470 and the job result is failed.
I think then the issue is definitely with your grafana.ini configuration file. Somewhere there is a line which is not recognizable by the service.
I found this similar post where your error message is looks like a match. Please have a look and I think you understand it too that either uncommenting a line in the grafana.ini file did not go correctly.
If you canβt figure it out then as @yosiasz suggested, post your complete grafana.ini file so we can view it.
Thanks for all the help. The system is up and running. I looked at grafana.ini and didnβt see anything out of order. I created a new file to replace the existing. After replacing it, everything worked as it should.
Again, thanks for the assistance.