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

Version 5.0 doesnt work #1958

Closed
priprd opened this issue Jan 29, 2025 · 8 comments
Closed

Version 5.0 doesnt work #1958

priprd opened this issue Jan 29, 2025 · 8 comments
Assignees

Comments

@priprd
Copy link

priprd commented Jan 29, 2025

Describe the bug
Version 5.0 doenst work, plugin not handling datasource

Expected behavior
After automatic install via helm chart plugin stop working. Datasource keep saw but on test&save got unspected error.
Downgrade back to version 4.6.1 work again

Screenshots
If applicable, add screenshots to help explain your problem.

Network data
_p=F log="logger=context userId=45 orgId=1 uname=redacted@redacted t=2025-01-29T15:22:14.953769541Z level=error msg=\"Request Completed\" method=POST path=/api/ds/query status=500 remote_addr=<private.IP> time_ms=5 duration=5.401061ms size=95 referer=\"redacted.com?orgId=1&panes=%7B%22zeq%22%3A%7B%22datasource%22%3A%22lF2rtSf4z%22%2C%22queries%22%3A%5B%7B%22schema%22%3A12%2C%22queryType%22%3A%220%22%2C%22group%22%3A%7B%22filter%22%3A%22Applications%22%7D%2C%22host%22%3A%7B%22filter%22%3A%22CoreAPI+monitoring%22%7D%2C%22application%22%3A%7B%22filter%22%3A%22%22%7D%2C%22itemTag%22%3A%7B%22filter%22%3A%22component%3A+coreapi%22%7D%2C%22item%22%3A%7B%22filter%22%3A%22%2F.%2A%2F%22%7D%2C%22macro%22%3A%7B%22filter%22%3A%22%22%7D%2C%22functions%22%3A%5B%5D%2C%22trigger%22%3A%7B%22filter%22%3A%22%22%7D%2C%22countTriggersBy%22%3A%22%22%2C%22tags%22%3A%7B%22filter%22%3A%22%22%7D%2C%22proxy%22%3A%7B%22filter%22%3A%22%22%7D%2C%22textFilter%22%3A%22%22%2C%22evaltype%22%3A%220%22%2C%22options%22%3A%7B%22showDisabledItems%22%3Afalse%2C%22skipEmptyValues%22%3Afalse%2C%22disableDataAlignment%22%3Afalse%2C%22useZabbixValueMapping%22%3Afalse%2C%22useTrends%22%3A%22default%22%2C%22count%22%3Afalse%7D%2C%22table%22%3A%7B%22skipEmptyValues%22%3Afalse%7D%2C%22refId%22%3A%22A%22%2C%22datasource%22%3A%7B%22type%22%3A%22alexanderzobnin-zabbix-datasource%22%2C%22uid%22%3A%22lF2rtSf4z%22%7D%2C%22resultFormat%22%3A%22time_series%22%7D%5D%2C%22range%22%3A%7B%22from%22%3A%22now-12h%22%2C%22to%22%3A%22now%22%7D%7D%7D&schemaVersion=1\" handler=/api/ds/query" stream=stdout

Software versions

Grafana Zabbix Grafana-Zabbix Plugin
11.4 7.2 5.0
10.2.5 7.2 5.0
@priprd priprd changed the title Version 5.0 doenst work Version 5.0 doesnt work Jan 29, 2025
@valvin1
Copy link

valvin1 commented Jan 30, 2025

I can confirm that after update datasource indicates "Plugin failed to start" although I'm in a supported Grafana Version v11.5.0.

Image

logger=context userId=81 orgId=1 [email protected] t=2025-01-30T08:32:40.522584198Z level=error msg="Could not find plugin definition for data source" datasource_type=alexanderzobnin-zabbix-datasource
logger=accesscontrol t=2025-01-30T08:32:40.553771153Z level=debug msg="Evaluating permissions" id=user:81 orgID=1 permissions="action:plugins.app:access scopes:plugins:id:alexanderzobnin-zabbix-app"
logger=accesscontrol.evaluator t=2025-01-30T08:32:40.553806285Z level=debug msg="Matched scope" userscope=plugins:* targetscope=plugins:id:alexanderzobnin-zabbix-app
logger=accesscontrol t=2025-01-30T08:32:40.553836166Z level=debug msg="Evaluating permissions" id=user:81 orgID=1 permissions="action:plugins.app:access scopes:plugins:id:alexanderzobnin-zabbix-app"
logger=accesscontrol.evaluator t=2025-01-30T08:32:40.553847246Z level=debug msg="Matched scope" userscope=plugins:* targetscope=plugins:id:alexanderzobnin-zabbix-app
logger=accesscontrol t=2025-01-30T08:32:40.553865266Z level=debug msg="Evaluating permissions" id=user:81 orgID=1 permissions="action:plugins.app:access scopes:plugins:id:alexanderzobnin-zabbix-app"
logger=accesscontrol.evaluator t=2025-01-30T08:32:40.553874967Z level=debug msg="Matched scope" userscope=plugins:* targetscope=plugins:id:alexanderzobnin-zabbix-app
logger=context userId=81 orgId=1 [email protected] t=2025-01-30T08:32:41.780512804Z level=error msg="Request Completed" method=GET path=/api/plugins/alexanderzobnin-zabbix-datasource/settings status=500 remote_addr=10.*.*.* time_ms=9 duration=9.948345ms size=36 referer=https://grafana.redacted.com/connections/datasources/edit/*** handler=/api/plugins/:pluginId/settings status_source=server error="fork/exec /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/datasource/gpx_zabbix-datasource_linux_amd64: no such file or directory"

I'm also going to rollback. maybe something I have to do on my kubernetes deployment?

@CompPhy
Copy link

CompPhy commented Jan 30, 2025

We have a stand alone server install, on RedHat, that has done the same thing. I'm not sure what's up here, but definitely something odd in the new version. Here's some additional information from our server, which updated last night and is now throwing the same error. I got the output below in an attempt to reinstall the most recent release, but this just results in the same error.

This appears to be an issue with the 5.0.0 release of this plugin, as we were able to keep Grafana at version 11.5.0 and just roll back the plugin to version 4.6.1. After doing grafana-cli plugins install alexanderzobnin-zabbix-app 4.6.1 and systemctl restart grafana-server.service everything is working correctly again.

grafana-cli --version
grafana version 11.5.0

grafana-cli plugins install alexanderzobnin-zabbix-app
INFO [01-30|07:30:05] Starting Grafana                         logger=settings version=11.5.0 commit=f7a938db9ad71c1558e93d8e29e69f42c8a5f50b branch=HEAD compiled=2025-01-30T07:30:05-05:00
INFO [01-30|07:30:05] Config loaded from                       logger=settings file=/usr/share/grafana/conf/defaults.ini
INFO [01-30|07:30:05] Config loaded from                       logger=settings file=/etc/grafana/grafana.ini
INFO [01-30|07:30:05] Config overridden from command line      logger=settings arg="default.paths.data=/var/lib/grafana"
INFO [01-30|07:30:05] Config overridden from command line      logger=settings arg="default.paths.logs=/var/log/grafana"
INFO [01-30|07:30:05] Config overridden from command line      logger=settings arg="default.paths.plugins=/var/lib/grafana/plugins"
INFO [01-30|07:30:05] Config overridden from command line      logger=settings arg="default.paths.provisioning=/etc/grafana/provisioning"
INFO [01-30|07:30:05] Target                                   logger=settings target=[all]
INFO [01-30|07:30:05] Path Home                                logger=settings path=/usr/share/grafana
INFO [01-30|07:30:05] Path Data                                logger=settings path=/var/lib/grafana
INFO [01-30|07:30:05] Path Logs                                logger=settings path=/var/log/grafana
INFO [01-30|07:30:05] Path Plugins                             logger=settings path=/var/lib/grafana/plugins
INFO [01-30|07:30:05] Path Provisioning                        logger=settings path=/etc/grafana/provisioning
INFO [01-30|07:30:05] App mode production                      logger=settings
✔ Downloaded and extracted alexanderzobnin-zabbix-app v5.0.0 zip successfully to /var/lib/grafana/plugins/alexanderzobnin-zabbix-app

ls -altr /var/lib/grafana/plugins/alexanderzobnin-zabbix-app/datasource/
total 30376
-rw-r--r--. 1 root root      914 Jan 30 07:30 plugin.json
-rw-r--r--. 1 root root  5473299 Jan 30 07:30 module.js.map
-rw-r--r--. 1 root root     1002 Jan 30 07:30 module.js.LICENSE.txt
-rw-r--r--. 1 root root     1859 Jan 30 07:30 query_help.md
drwxr-xr-x. 2 root root       39 Jan 30 07:30 img
-rwxr-xr-x. 1 root root 24212752 Jan 30 07:30 gpx_zabbix-datasource_darwin_amd64
drwxr-xr-x. 2 root root      109 Jan 30 07:30 dashboards
drwxr-xr-x. 4 root root      184 Jan 30 07:30 .
-rw-r--r--. 1 root root  1392645 Jan 30 07:30 module.js
drwxr-xr-x. 6 root root     4096 Jan 30 07:30 ..

@isantander
Copy link

Yesterday, I installed Grafana v11.5.0. Then, I installed the Zabbix 5 plugin (both from the console and the webpage), but it never appeared in the Data Source section

@yesoreyeram
Copy link
Collaborator

We just confirmed that 5.0.0 release is broken and missing binaries. Fix on its way.

@tolzhabayev
Copy link

The fix is there, please reinstall

@fauust
Copy link

fauust commented Jan 30, 2025

Thanks @yesoreyeram for confirming. I find it a bit confusing that the release of v5.0.0 is not visible in the GitHub release page (https://github.com/grafana/grafana-zabbix/releases), the tag is apparently present though in https://github.com/grafana/grafana-zabbix/tags.

@fauust
Copy link

fauust commented Jan 30, 2025

The fix is there, please reinstall

I have just upgraded, so far so good. Thanks!

@yesoreyeram
Copy link
Collaborator

As @tolzhabayev mentioned - we have rolled out the fix. Feel free to upgrade to 5.0.0, test and let's know if that causes any issues.

Sorry for the inconveniences.

@yesoreyeram yesoreyeram unpinned this issue Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Complete
Development

No branches or pull requests

7 participants