404 errors on loading js scripts in worldping plugin

Hi folks :grinning:,

I’ve been looking around a solution to solve my problem but can’t find something relevant.

We are publishing grafana behind HAPROXY reverse-proxy.
Everything works fine except 3 js scripts from worldping plugin.

I’ve tried without reverse-proxy it works well.

Any idea why only these 3 js scripts can’t be downloaded ?

errors from grafana app :

 Plugin Error
 Fetch error: 404 Not Found Instantiating http://my.domain.local/public/plugins/filters/all.js Loading http://my.domain.local/public/plugins/raintank-worldping-app/panels\endpoint-list/module.js Loading plugins/raintank-worldping-app/panels\endpoint-list/module
 Plugin Error
 Fetch error: 404 Not Found Instantiating http://my.domain.local/public/plugins/components/config/dsUpgrade.js Loading http://my.domain.local/public/plugins/raintank-worldping-app/panels\call-to-action/module.js Loading plugins/raintank-worldping-app/panels\call-to-action/module

errors in server log file :

 t=2018-01-16T20:47:18+0100 lvl=info msg="Request Completed" logger=context userId=5 orgId=1 uname=myuser method=GET path=/public/plugins/components/config/dsUpgrade.js status=404 remote_addr=172.x.x.x time_ms=15 size=25935 referer="http://my.domain.local/dashboard/db/worldping-home?orgId=1"
 t=2018-01-16T20:47:18+0100 lvl=info msg="Request Completed" logger=context userId=5 orgId=1 uname=myuser method=GET path=/public/plugins/directives/all.js status=404 remote_addr=172.x.x.x time_ms=15 size=25935 referer="http://my.domain.local/dashboard/db/worldping-home?orgId=1"
 t=2018-01-16T20:47:18+0100 lvl=info msg="Request Completed" logger=context userId=5 orgId=1 uname=myuser method=GET path=/public/plugins/filters/all.js status=404 remote_addr=172.x.x.x time_ms=0 size=25935 referer="http://my.domain.local/dashboard/db/worldping-home?orgId=1"

And the server custom configuration file :

[server]
protocol = http
http_port = 34101
domain = "my.domain.local"
enforce_domain = true
root_url = %(protocol)s://%(domain)s/
router_logging = false

Hi,

It looks strange with back- and forward slashed mixed.

Could you open chrome dev tools and the network page and load the worldping app and screenshot the network tab result?

Marcus

Just to update with last tests I’ve made.

environment details :

  • running on Windows
  • grafana 4.6.3
  • worlPing-app 1.2.3

After complete tests on localhost and behind reverse-proxy it appears, contrary to what I said earlier, that the behaviour is exactly the same, regardless of the hosting method.

For the moment, I’ve tested following versions :

  • 4.6.3 : fail
  • 4.6.2 : fail
  • 4.5.2 : success
  • 4.4.3 : success

Here is the chrome dev tool network result :

grafana 4.6.3 + worlping-app 1.2.3, fresh install, no custom running on localhost

Sounds like this: https://github.com/grafana/grafana/issues/9541

It is fixed in the master branch and will be included in the next release of Grafana.

Yep ! Totally !
Many thanks for your lightings !