Grafana-server fails to start

i was able to install grafana with no problems, no errors, nothing; installation went smoothly.

once installation on server was finished i used command “service grafana-server start” and went to my browser and types ip and port 3000 and i got page cant be found.

here is a readout of my service grafana-server status:

pi@raspberrypi:~ $ sudo service grafana-server status
● grafana-server.service - Grafana instance
Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Sun 2017-10-08 06:30:34 PDT; 1s ago
Docs: http://docs.grafana.org
Process: 792 ExecStart=/usr/sbin/grafana-server --config=${CONF_FILE} --pidfile=${PID_FILE_DIR}/grafana-server.pid cfg:default.paths.logs=${LOG_DIR} cfg:default.paths.data=${DATA_DIR} cfg:default.paths.plugins=
Main PID: 792 (code=killed, signal=SEGV)

Oct 08 06:30:34 raspberrypi systemd[1]: grafana-server.service: Failed with result ‘signal’.
Oct 08 06:30:34 raspberrypi systemd[1]: grafana-server.service: Service hold-off time over, scheduling restart.
Oct 08 06:30:34 raspberrypi systemd[1]: Stopped Grafana instance.
Oct 08 06:30:34 raspberrypi systemd[1]: grafana-server.service: Start request repeated too quickly.
Oct 08 06:30:34 raspberrypi systemd[1]: Failed to start Grafana instance.
Oct 08 06:30:34 raspberrypi systemd[1]: grafana-server.service: Unit entered failed state.
Oct 08 06:30:34 raspberrypi systemd[1]: grafana-server.service: Failed with result ‘signal’.

please help

check grafana log at /var/log/grafana/grafana.log

i see the directory there but there is no log file actually in the directory:

pi@raspberrypi:~ $ cd /var/log/grafana/
pi@raspberrypi:/var/log/grafana $ ls
pi@raspberrypi:/var/log/grafana $


i dont see file called grafana.log but i do see this using ls -la:

pi@raspberrypi:/var/log/grafana $ ls -la
total 8
drwxr-xr-x 2 grafana grafana 4096 Oct 8 05:33 .
drwxr-xr-x 6 root root 4096 Oct 8 06:26 …
pi@raspberrypi:/var/log/grafana $

i should also mention im tryin to run this on raspberry pi. not sure if u guys have any tips on installing this on minimalistic hardware.

Torkel,

Please scratch everything I’ve told you so far. I have reinstalled the entire operating system and installed a clean version of Garfana and now I have all the files in the appropriate directories.

Now I’m able to run web interface. It no longer says “Page cant be found”. Instead, nothing shows up, a blank page. The link reads " 10.200.20.75:3000/login"

here is a readout of my log file:

root@raspberrypi:/home/pi# less /var/log/grafana/grafana.log
2017/10/08 22:23:55 [I] Migrator: exec migration id: create org_user table v1
2017/10/08 22:23:55 [I] Migrator: exec migration id: create index IDX_org_user_org_id - v1
2017/10/08 22:23:55 [I] Migrator: exec migration id: create index UQE_org_user_org_id_user_id - v1
2017/10/08 22:23:55 [I] Migrator: exec migration id: copy data account to org
2017/10/08 22:23:55 [I] Migrator: skipping migration id: copy data account to org, condition not fulfilled
2017/10/08 22:23:55 [I] Migrator: exec migration id: copy data account_user to org_user
2017/10/08 22:23:55 [I] Migrator: skipping migration id: copy data account_user to org_user, condition not fulfilled
2017/10/08 22:23:55 [I] Migrator: exec migration id: Drop old table account
2017/10/08 22:23:55 [I] Migrator: exec migration id: Drop old table account_user
2017/10/08 22:23:55 [I] Migrator: exec migration id: create dashboard table
2017/10/08 22:23:56 [I] Migrator: exec migration id: add index dashboard.account_id
2017/10/08 22:23:56 [I] Migrator: exec migration id: add unique index dashboard_account_id_slug
2017/10/08 22:23:56 [I] Migrator: exec migration id: create dashboard_tag table
2017/10/08 22:23:56 [I] Migrator: exec migration id: add unique index dashboard_tag.dasboard_id_term
2017/10/08 22:23:56 [I] Migrator: exec migration id: drop index UQE_dashboard_tag_dashboard_id_term - v1
2017/10/08 22:23:56 [I] Migrator: exec migration id: Rename table dashboard to dashboard_v1 - v1
2017/10/08 22:23:56 [I] Migrator: exec migration id: create dashboard v2
2017/10/08 22:23:56 [I] Migrator: exec migration id: create index IDX_dashboard_org_id - v2
2017/10/08 22:23:56 [I] Migrator: exec migration id: create index UQE_dashboard_org_id_slug - v2
2017/10/08 22:23:57 [I] Migrator: exec migration id: copy dashboard v1 to v2
2017/10/08 22:23:57 [I] Migrator: exec migration id: drop table dashboard_v1
2017/10/08 22:23:57 [I] Migrator: exec migration id: alter dashboard.data to mediumtext v1
2017/10/08 22:23:57 [I] Migrator: exec migration id: create data_source table
2017/10/08 22:23:57 [I] Migrator: exec migration id: add index data_source.account_id
2017/10/08 22:23:57 [I] Migrator: exec migration id: add unique index data_source.account_id_name
2017/10/08 22:23:57 [I] Migrator: exec migration id: drop index IDX_data_source_account_id - v1
2017/10/08 22:23:57 [I] Migrator: exec migration id: drop index UQE_data_source_account_id_name - v1
2017/10/08 22:23:58 [I] Migrator: exec migration id: Rename table data_source to data_source_v1 - v1
2017/10/08 22:23:58 [I] Migrator: exec migration id: create data_source table v2
2017/10/08 22:23:58 [I] Migrator: exec migration id: create index IDX_data_source_org_id - v2
2017/10/08 22:23:58 [I] Migrator: exec migration id: create index UQE_data_source_org_id_name - v2
2017/10/08 22:23:58 [I] Migrator: exec migration id: copy data_source v1 to v2
2017/10/08 22:23:58 [I] Migrator: exec migration id: Drop old table data_source_v1 #2
2017/10/08 22:23:58 [I] Migrator: exec migration id: Add column with_credentials
2017/10/08 22:23:59 [I] Migrator: exec migration id: create api_key table
2017/10/08 22:23:59 [I] Migrator: exec migration id: add index api_key.account_id
2017/10/08 22:23:59 [I] Migrator: exec migration id: add index api_key.key
2017/10/08 22:23:59 [I] Migrator: exec migration id: add index api_key.account_id_name
2017/10/08 22:24:00 [I] Migrator: exec migration id: drop index IDX_api_key_account_id - v1
2017/10/08 22:24:00 [I] Migrator: exec migration id: drop index UQE_api_key_key - v1
2017/10/08 22:24:00 [I] Migrator: exec migration id: drop index UQE_api_key_account_id_name - v1
2017/10/08 22:24:00 [I] Migrator: exec migration id: Rename table api_key to api_key_v1 - v1
2017/10/08 22:24:00 [I] Migrator: exec migration id: create api_key table v2
2017/10/08 22:24:00 [I] Migrator: exec migration id: create index IDX_api_key_org_id - v2
2017/10/08 22:24:00 [I] Migrator: exec migration id: create index UQE_api_key_key - v2
2017/10/08 22:24:01 [I] Migrator: exec migration id: create index UQE_api_key_org_id_name - v2
2017/10/08 22:24:01 [I] Migrator: exec migration id: copy api_key v1 to v2
2017/10/08 22:24:01 [I] Migrator: exec migration id: Drop old table api_key_v1
2017/10/08 22:24:01 [I] Migrator: exec migration id: create dashboard_snapshot table v4
2017/10/08 22:24:01 [I] Migrator: exec migration id: drop table dashboard_snapshot_v4 #1
2017/10/08 22:24:01 [I] Migrator: exec migration id: create dashboard_snapshot table v5 #2
2017/10/08 22:24:01 [I] Migrator: exec migration id: create index UQE_dashboard_snapshot_key - v5
2017/10/08 22:24:01 [I] Migrator: exec migration id: create index UQE_dashboard_snapshot_delete_key - v5
2017/10/08 22:24:01 [I] Migrator: exec migration id: create index IDX_dashboard_snapshot_user_id - v5
2017/10/08 22:24:02 [I] Migrator: exec migration id: alter dashboard_snapshot to mediumtext v2
2017/10/08 22:24:02 [I] Migrator: exec migration id: create quota table v1
2017/10/08 22:24:02 [I] Migrator: exec migration id: create index UQE_quota_org_id_user_id_target - v1
2017/10/08 22:24:05 [I] Created default admin user: admin
2017/10/08 22:24:06 [I] Listen: http://0.0.0.0:3000
2017/10/08 22:24:22 [I] Completed 10.200.20.68 - “GET / HTTP/1.1” 302 Found 29 bytes in 29401us
2017/10/08 22:24:22 [I] Completed 10.200.20.68 - “GET /apple-touch-icon-precomposed.png HTTP/1.1” 404 Not Found 2189 bytes in 45974us
2017/10/08 22:24:22 [I] Completed 10.200.20.68 - “GET /apple-touch-icon.png HTTP/1.1” 404 Not Found 2189 bytes in 13064us
(END)

attached you will find an image of how my browser looks like

sorry for the insane amount of information; i just would really like this up and running. its a very interesting app.

Does anyone have any idea what the issue may be here. Once i access the website, nothings shows up

1 Like

This is probably a frontend error. I am guessing Grafana cannot load the JavaScript files it needs. Is it possible to look at the browser console and check for errors?

It probably works on localhost but not remotely. If you change the paths -> root-url config setting to be http://10.200.20.75:3000 does that work?

daniellee,

unfortuntely configuring paths -> root-url does not work. i get the same result. blank page.

anything else i can try

Did you check for the error in the browser console?

Hi,

I have the same issue on Debian stretch. I can see the server is starting, although there is an unusual timestamp (pre-epoch) for the build date…

pi@reporterpi:/etc/init.d $ sudo cat /var/log/grafana/grafana.log
2018/01/15 00:30:19 [I] Received signal terminated. shutting down
2018/01/15 00:33:13 [I] Starting Grafana
2018/01/15 00:33:13 [I] Version: master, Commit: NA, Build date: 1969-12-31 19:00:00 -0500 EST
2018/01/15 00:33:13 [I] Configuration Info
Config files:
[0]: /usr/share/grafana/conf/defaults.ini
[1]: /etc/grafana/grafana.ini
Command lines overrides:
[0]: default.paths.data=/var/lib/grafana
[1]: default.paths.logs=/var/log/grafana
Paths:
home: /usr/share/grafana
data: /var/lib/grafana
logs: /var/log/grafana

2018/01/15 00:33:13 [I] Database: sqlite3
2018/01/15 00:33:13 [I] Migrator: Starting DB migration
2018/01/15 00:33:13 [I] Listen: http://0.0.0.0:3000

Here is my server status:
pi@reporterpi:~ $ sudo service grafana-server status
● grafana.service - Starts and stops a single grafana instance on this system
Loaded: loaded (/lib/systemd/system/grafana.service; enabled; vendor preset:
Active: active (running) since Mon 2018-01-15 00:33:13 EST; 55s ago
Docs: http://docs.grafana.org
Main PID: 1184 (grafana)
CGroup: /system.slice/grafana.service
└─1184 /usr/sbin/grafana --config=/etc/grafana/grafana.ini cfg:defaul

Jan 15 00:33:13 reporterpi grafana[1184]: Command lines overrides:
Jan 15 00:33:13 reporterpi grafana[1184]: [0]: default.paths.data=/var/lib/gra
Jan 15 00:33:13 reporterpi grafana[1184]: [1]: default.paths.logs=/var/log/gra
Jan 15 00:33:13 reporterpi grafana[1184]: Paths:
Jan 15 00:33:13 reporterpi grafana[1184]: home: /usr/share/grafana
Jan 15 00:33:13 reporterpi grafana[1184]: data: /var/lib/grafana
Jan 15 00:33:13 reporterpi grafana[1184]: logs: /var/log/grafana
Jan 15 00:33:13 reporterpi grafana[1184]: 2018/01/15 00:33:13 [I] Database: sqli
Jan 15 00:33:13 reporterpi grafana[1184]: 2018/01/15 00:33:13 [I] Migrator: Star
Jan 15 00:33:13 reporterpi grafana[1184]: 2018/01/15 00:33:13 [I] Listen: http:/

I also checked my browser console and saw a couple of errors:

public/vendor/angular-native-dragdrop/draganddrop.js?bust=1515994951498:25 Uncaught TypeError: Cannot read property ‘indexOf’ of undefined
at public/vendor/angular-native-dragdrop/draganddrop.js?bust=1515994951498:25
at public/vendor/angular-native-dragdrop/draganddrop.js?bust=1515994951498:390
jquery.js?bust=1515994951498:3855 Uncaught Error: [$injector:modulerr] Failed to instantiate module ang-drag-drop due to:
Error: [$injector:nomod] Module ‘ang-drag-drop’ is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.4.3/$injector/nomod?p0=ang-drag-drop

I remember installing this as a pre-req:
66 wget http ://ftp.us.debian.org/debian/pool/main/a/angular.js/libjs-angularjs_1.5.10-1_all.deb
67 sudo dpkg -i libjs-angularjs_1.5.10-1_all.deb

Is the issue with the package I installed, or with a call within Grafana ?

Which version of Grafana are you running - it looks like you are running the latest master (and not one of the stable releases)?

That looks like a bug in Grafana on the front end which we might have fixed yesterday. Which page do you get the error on?

Sorry for the delay responding.

I am running Debian Stretch and have these issues with grafana-data_2.6.0+dfsg-3_all.deb and grafana_2.6.0+dfsg-3_armhf.deb

I see the messages in the browser console after attempting to launch the web GUI http://grafana.staged-by-discourse.com/login

… I hit F12, then clicked on the Console tab and copied the first few messages that seem to show a problem. Just was following through with your suggestions to the OP on this thread, and hoping this will help get my issue resolved.

What version should I try next ? I will try a stable release.
Is there an uninstall process to do before a new install, or can I just update to the other version ?

Just learning (the hard way) on Rpi, but Grafana is extremely cool software (I have another Pi image that it is working OK on)

I tried downgrading to the 2.6.0 version and see the same issue.

Grafana 2.6.0? That’s a very old version of Grafana. Did you install it with apt-get? The apt-get version was published by someone outside of the Grafana team and is broken.

Follow the instructions here for installing on Debian.

Thanks for the reply on the weekend, but I have spent some time with the get Grafana installation documentation and am not able to get past step 1…
wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_4.6.3_amd64.deb

That gets me the amd64 image and I am running on a RPI and arm architecture. I tried installing it, but that does not work.

Here is the OS and architecture I am installing on:

$ uname -a
Linux reporterpi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Li

We don’t provide any official packages for arm yet. At the moment, this is where to find ARM builds (it is on our backlog to include this in the official Grafana release):

Thank you very much. The package at the link you provided fixed my issue.
On to the dashboard !!

Thanks again.
Regards,
Gary G.

1 Like

Dear all
I’m just install a new Grafana on Cent OS 7 yesterday.
but follow the guide step on grafana page it was stucked at

systemctl status grafana-server.service

then it show below:

grafana-server.service - Grafana instance
Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; disabled)
Active: failed (Result: start-limit) since Fri 2018-06-08 16:38:57 ICT; 49s ago
Docs: http://docs.grafana.org
Process: 9651 ExecStart=/usr/sbin/grafana-server --config={CONF_FILE} --pidfile={PID_FILE_DIR}/grafana-server.pid cfg:default.paths.logs={LOG_DIR} cfg:default.paths.data={DATA_DIR} cfg:default.paths.plugins={PLUGINS_DIR} cfg:default.paths.provisioning={PROVISIONING_CFG_DIR} (code=exited, status=1/FAILURE)
Main PID: 9651 (code=exited, status=1/FAILURE)

Jun 08 16:38:57 localhost.localdomain systemd[1]: grafana-server.service: main process exited, code=exited, status=1/FAILURE
Jun 08 16:38:57 localhost.localdomain systemd[1]: Failed to start Grafana instance.
Jun 08 16:38:57 localhost.localdomain systemd[1]: Unit grafana-server.service entered failed state.
Jun 08 16:38:57 localhost.localdomain systemd[1]: grafana-server.service holdoff time over, scheduling restart.
Jun 08 16:38:57 localhost.localdomain systemd[1]: Stopping Grafana instance…
Jun 08 16:38:57 localhost.localdomain systemd[1]: Starting Grafana instance…
Jun 08 16:38:57 localhost.localdomain systemd[1]: grafana-server.service start request repeated too quickly, refusing to start.
Jun 08 16:38:57 localhost.localdomain systemd[1]: Failed to start Grafana instance.
Jun 08 16:38:57 localhost.localdomain systemd[1]: Unit grafana-server.service entered failed state.

can any one check?

Don’t know why after change a lot of things in side
/etc/grafana/grafana.ini

but i run this command then it worked
sudo /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --homepath=/usr/share/grafana

Open the port in CentOS’s firewall. Follow steps below.

firewall-cmd --get-active-zones

firewall-cmd --zone=public --add-port=3000/tcp --permanent (replace ‘public’ with whatever your zone is, if different)

firewall-cmd --reload