Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

problem installing from source #43

Closed
rybit opened this issue Jan 26, 2017 · 10 comments
Closed

problem installing from source #43

rybit opened this issue Jan 26, 2017 · 10 comments

Comments

@rybit
Copy link

rybit commented Jan 26, 2017

Hi - I was using the 1.1.0 version linked to by grafana, but I wanted to more up to date features. So I am installing it from source.

After following a slightly modified version of your instructions (below) I am getting this error when creating a new datasource.
image

instructions:

cd /var/lib/grafana/plugins
sudo git clone https://github.com/grafana/kairosdb-datasource.git
cd kairosdb-datasource
sudo npm install
sudo grunt
sudo service kairosdb restart

I can now see the datasource, but I don't see it working. Also using the grafana-cli lists it as at version 1.0.1

$ grafana-cli plugins ls
installed plugins:
grafana-kairosdb-datasource @ 1.0.1
@jifwin
Copy link
Contributor

jifwin commented Jan 30, 2017

Once we merge #40 it should work fine.

@jifwin jifwin closed this as completed Feb 7, 2017
@rybit
Copy link
Author

rybit commented Feb 8, 2017

Sorry to re-open this but it still seems to not be working.

I updated the checkout to the latest sha (e01a9c7). then ran the commands:

sudo npm install
sudo grunt

they both exited fine, but the grunt task had no output (expected?). Then I restarted grafana server.

image

grafana version: Version 4.1.1 (commit: v4.1.1)
running on ubuntu 14.04

@jifwin
Copy link
Contributor

jifwin commented Feb 8, 2017

Strange... It works for me. Is /var/lib/grafana/plugins/kairosdb-datasource/module.js file generated after gruntification?

@jifwin jifwin reopened this Feb 8, 2017
@rybit
Copy link
Author

rybit commented Feb 8, 2017

Hmmm no it isn't. Grunt doesn't output anything actually. It has a bad error code and no output.

$ sudo grunt
$ echo $?
1
$ which grunt
/usr/local/bin/grunt
$ npm --version
1.3.10
$ nodejs --version
v0.10.25

@jifwin
Copy link
Contributor

jifwin commented Feb 8, 2017

Are you running it in /var/lib/grafana/plugins/kairosdb-datasource?

@rybit
Copy link
Author

rybit commented Feb 8, 2017

yup!

@jifwin
Copy link
Contributor

jifwin commented Feb 8, 2017

Try to install it manually

npm install -g grunt-cli

And then run again.

@rybit
Copy link
Author

rybit commented Feb 8, 2017

Ah that is what I had installed on the box. Ran again (with sudo privs). No output when I run grunt from the plugins dir.

@jifwin
Copy link
Contributor

jifwin commented Feb 8, 2017

Maybe try to update node and npm

root@613f09d5c2d8:/var/lib/grafana/plugins# node --version
v0.12.0
root@613f09d5c2d8:/var/lib/grafana/plugins# npm --version
2.5.1

@rybit
Copy link
Author

rybit commented Feb 8, 2017

resolved - I think that the issue was that I had nodejs not node installed (installing the legacy package fixed it)

@rybit rybit closed this as completed Feb 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants