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

Raspberry Pi Compatibility #11

Closed
neoof86 opened this issue Apr 23, 2020 · 12 comments
Closed

Raspberry Pi Compatibility #11

neoof86 opened this issue Apr 23, 2020 · 12 comments
Labels
enhancement New feature or request

Comments

@neoof86
Copy link

neoof86 commented Apr 23, 2020

Hi!

Just wanted to say this dashboard is great and I have been trying to move my monitoring to a raspberry pi and unfortunately this just doesn't seem to want to work.

Do you think there will ever be support for this?
I have tried raspbian and Ubuntu server and get the below error when I try and perform the 2nd verification step

Screenshot 2020-04-23 at 14 03 32

I tried the same account on a fresh version of Ubuntu on the PC and it seems to work
Any help would be greatly appreciated

@willianpaixao
Copy link

I stumble upon your issue while having the the same problem.

According to the logs, the plugin fails to start due to lack of a proper binary:
EROR[04-23|21:14:33] Failed to start plugin logger=plugins.backend pluginId=grafana-strava-datasource error="fork/exec /tmp/grafana-6.7.3/data/plugins/grafana-strava-datasource/dist/strava-plugin_linux_arm: no such file or directory"

Luckily the fix is easy, on the Makefile we currently have:

env GOOS=$* GO111MODULE=on GOARCH=amd64 go build -ldflags="-s -w" -mod=vendor -o ./dist/$(filename) ./pkg

Adding another make target with the following cross compilation flag would add a binary compatible with the Raspberry Pi's architecture:
env GOOS=linux GOARCH=arm GOARM=7 go build ...

@alexanderzobnin how can we proceed to add support?

@neoof86
Copy link
Author

neoof86 commented Apr 24, 2020

That’s great @willianpaixao you wouldn’t happen to have the full line of code you would put it and would could maybe test via a pull request??

@alexanderzobnin
Copy link
Collaborator

Yes, I need to add arm target to the build since it's quite popular.

@alexanderzobnin alexanderzobnin added the enhancement New feature or request label Apr 24, 2020
@neoof86
Copy link
Author

neoof86 commented Apr 26, 2020

Thanks @alexanderzobnin you would not happen to have any time lines would you? Just so I dont miss deploying this one its done :) Hope you have a great weekend and week! Again thanks for all the awesome work

@alexanderzobnin
Copy link
Collaborator

Probably, I'll do some work after Grafana 7.0 release (need to fix compatibility with 7.0), so this will be included in the upcoming release.

@marcelloceschia
Copy link

I have created a pull request that allows to build it with grafana 7.1 and arm6 support, please give it a try or tell me what to improve

@alexanderzobnin
Copy link
Collaborator

PR #20 probably fixes this. Not sure about compatibility between ARM versions 6/7, that PR adds support for ARM 6, @neoof86 @willianpaixao what do you think?

@jontg
Copy link
Contributor

jontg commented Nov 1, 2020

Looks like arm64 is also missing.... :-) ?

@jontg
Copy link
Contributor

jontg commented Nov 1, 2020

t=2020-11-01T16:47:52+0000 lvl=eror msg="Failed to start plugin" logger=plugins.backend pluginId=grafana-strava-datasource error="fork/exec /var/lib/grafana/plugins/grafana-strava-datasource/strava-plugin_linux_arm64: no such file or directory"

@alexanderzobnin
Copy link
Collaborator

@jontg yes, we need to add arm64 too to the build. Thanks for the report!

@FastHogi
Copy link

FastHogi commented Mar 13, 2021

@alexanderzobnin Any updates on building an arm64 version, too? I‘m having the same issue here with running Grafana on arm64.

In the meantime I was able to build an arm64 version by myself, copied it to /var/lib/grafana/plugins/grafana-strava-datasource, restarted Grafana, but the plugin is disabled now, because of a modified plugin signature. And I'm lost now and have no idea how to sign that.

@alexanderzobnin
Copy link
Collaborator

@FastHogi I'll add ARM64 to the build.

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

No branches or pull requests

6 participants