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

Plugin Error #17

Closed
flxai opened this issue Aug 11, 2016 · 12 comments
Closed

Plugin Error #17

flxai opened this issue Aug 11, 2016 · 12 comments

Comments

@flxai
Copy link

flxai commented Aug 11, 2016

Hello,

I installed the plugin to my Grafana plugin directory. After restarting Grafana, the plugin seems to be recognized and I am able to add it via the interface to add new panels.

The problem is, when I try to do this, I get the following error:

Plugin Error
Error loading https://example.org/public/plugins/mtanda-heatmap-epoch-panel/heatmap.js as "./heatmap" from https://example.org/public/plugins/mtanda-heatmap-epoch-panel/module.js

I replace my domain with example.org. The shown URL is visitable.

Is this a known bug? Is there a way to remedy this?

@mtanda
Copy link
Owner

mtanda commented Aug 11, 2016

What Grafana version do you use?
I use Grafana 3.1.0, and setup this plugin by following command.

sudo git clone --depth 1 https://github.com/mtanda/grafana-heatmap-epoch-panel.git /var/lib/grafana/plugins/mtanda-heatmap-epoch-panel
# after install restart grafana

It works.

@mtanda mtanda closed this as completed Aug 11, 2016
@mtanda mtanda reopened this Aug 11, 2016
@flxai
Copy link
Author

flxai commented Aug 12, 2016

I'm currently using Grafana 3.1.1.

I also have cloned the repo and use commit e1ec956. The location is:
/var/lib/grafana-mysite/plugins/grafana-heatmap-epoch-panel

@mtanda
Copy link
Owner

mtanda commented Aug 13, 2016

/var/lib/grafana-mysite/plugins/grafana-heatmap-epoch-panel

is not correct location.

/var/lib/grafana-mysite/plugins/mtanda-heatmap-epoch-panel

is correct location.

Please check my comment. #17 (comment)

@mtanda mtanda mentioned this issue Aug 13, 2016
@flxai
Copy link
Author

flxai commented Aug 14, 2016

Thank you. I tried your suggestions, but unfortunately it still does not work.

I also tried using the following path, of course also set up within grafana's config:
/var/lib/grafana/plugins/mtanda-heatmap-epoch-panel

This doesn't work either and the same error box pops up. In all cases, the script was loadable from the web server.

Is there some way I could debug this further?

@mtanda
Copy link
Owner

mtanda commented Aug 14, 2016

hmm, you can access plugin files by directly access the url?

@mtanda
Copy link
Owner

mtanda commented Aug 14, 2016

@flxai
Copy link
Author

flxai commented Aug 14, 2016

Yes, accessing the URL does work.

@mtanda
Copy link
Owner

mtanda commented Aug 16, 2016

Sorry, late reply.
If the url is accessible, it should work.
Try to clear browser cache...

@pokemane
Copy link

@icks Do you have an ad blocker going? Try disabling it on that page or that domain and remove the broken panel/row, clear cache/force refresh/etc and try re-adding the heatmap after that.

@flxai
Copy link
Author

flxai commented Aug 19, 2016

Thanks for your help and sorry for the wait.

@pokemane That's it! Disabling the ad blocker works for me. Never thought of that.

@mtanda Would it be possible to adapt the plugin to not be blocked by ad blockers?

@flxai flxai closed this as completed Aug 19, 2016
@mtanda
Copy link
Owner

mtanda commented Aug 20, 2016

It is hard to resolve the issue in plugin side, please disabling ad blocker for Grafana page.

@pokemane Thanks for your help :-)

@alexanderzobnin
Copy link

Had the same issue in Grafana 4.x, but disabling ad blocker helps.

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

4 participants