Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration Errror - "Cannot connect to Strava API" #5

Closed
alinjie opened this issue Mar 11, 2020 · 17 comments
Closed

Configuration Errror - "Cannot connect to Strava API" #5

alinjie opened this issue Mar 11, 2020 · 17 comments

Comments

@alinjie
Copy link

alinjie commented Mar 11, 2020

I am having issues getting the Strava datasource to work properly. When saving and testing the datasource, this happens:
image

Related messages from the Grafana server log

t=2020-03-11T15:58:46+0000 lvl=eror msg="Metric request error" logger=context userId=1 orgId=1 uname=admin error="Could not find executor for data source type: grafana-strava-datasource"
t=2020-03-11T15:58:46+0000 lvl=eror msg="Request Completed" logger=context userId=1 orgId=1 uname=admin method=POST path=/api/tsdb/query status=500 remote_addr=10.0.0.17 time_ms=5 size=34 referer="http://10.0.0.100:3000/datasources/edit/3/?state=&code=<INSERT_CODE_HERE>&scope=read,activity:read_all,profile:read_all,read_all"

Grafana Version: Version 6.6.2 (commit: 3fa63cfc34, branch: HEAD)

Any help would be greatly appriciated!

@alexanderzobnin
Copy link
Collaborator

Hi! Did you configure datasource according to docs?

@alexanderzobnin
Copy link
Collaborator

Also, Could not find executor for data source type: grafana-strava-datasource means backend is not started. Please, make sure you have plugin properly installed.

@alinjie
Copy link
Author

alinjie commented Mar 11, 2020

HI @alexanderzobnin! Thank you for a quick reply.

I've tried to install the plugin as described in the documentation:
I'm starting with an empty plugins list

$ sudo grafana-cli plugins ls

Restart grafana after installing plugins . <service grafana-server restart>

I then install the plugin

$ sudo grafana-cli plugins install grafana-strava-datasource
installing grafana-strava-datasource @ 1.1.1
from: https://grafana.com/api/plugins/grafana-strava-datasource/versions/1.1.1/download
into: /var/lib/grafana/plugins

✔ Installed grafana-strava-datasource successfully

Restart grafana after installing plugins . <service grafana-server restart>

I then make sure that the directory and environment variable is created:

$ sudo mkdir /var/lib/grafana/strava
$ export GF_STRAVA_DS_DATA_PATH=/var/lib/grafana/strava

After this, I restart the server with sudo systemctl restart grafana-server and follow the process in the docs you linked, but run in to the same error.

@alinjie
Copy link
Author

alinjie commented Mar 11, 2020

The Grafana server is running on a Raspberry Pi, if that is of any relevance

$ uname -a
Linux raspberrypi 4.19.75-v7+ #1270 SMP Tue Sep 24 18:45:11 BST 2019 armv7l GNU/Linux

@alexanderzobnin
Copy link
Collaborator

Plugin doesn't have compiled binaries for arm arch. If you want to run it with Raspberry Pi, you should build it for this arch first.

@alinjie
Copy link
Author

alinjie commented Mar 11, 2020

Ah, okay. Makes sense.

I’m not familiar with how to build it for a specific architecture. Do you have any suggestions as to how I should approach it?

@Chrisblueeyes83
Copy link

please help me with the variable $ export GF_STRAVA_DS_DATA_PATH=/var/lib/grafana/strava
i odnt know how to create this...

@BeWog
Copy link

BeWog commented Mar 15, 2020

In /etc/default/grafana-server file, add this line:
GF_STRAVA_DS_DATA_PATH=/var/lib/grafana/strava

It works with 1.1.1 version 👍

@Chrisblueeyes83
Copy link

that didnt work for me :(

@Chrisblueeyes83
Copy link

please, will anybody help me with this problem? this drives me crazy!

@BeWog
Copy link

BeWog commented Mar 26, 2020

Do you have last version of Grafana and plugins ?
Please explain ;-)

@Chrisblueeyes83
Copy link

yes, its the latest version.
the process to register works fine, but ~5min later i have to re activate.

@Tigermatze
Copy link

Ah, okay. Makes sense.

I’m not familiar with how to build it for a specific architecture. Do you have any suggestions as to how I should approach it?

Can anybody explain how we can build it for an ARM achitecture?

@nzrunner
Copy link

I have the same issue as @Chrisblueeyes83. The Data Source keeps disconnecting from Strava.

Any solution for that?

@Chrisblueeyes83
Copy link

after an general update the datasource keeps connected. dont know why....

@alinjie
Copy link
Author

alinjie commented Apr 21, 2020

closed by #6
#6 (comment)

@alinjie alinjie closed this as completed Apr 21, 2020
@nzrunner
Copy link

after an general update the datasource keeps connected. dont know why....

What do you mean by "general update"? Mine is still disconnecting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants