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 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
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?
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 ?
… 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)
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.
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):