Skip to content

Plugin unavailable #1109

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

Open
TimShar2021 opened this issue Jan 13, 2025 · 6 comments
Open

Plugin unavailable #1109

TimShar2021 opened this issue Jan 13, 2025 · 6 comments

Comments

@TimShar2021
Copy link

TimShar2021 commented Jan 13, 2025

Query inspector to troubleshoot issues:

  • Plugin unavailable
    Object
    status:500
    statusText:""
    data:Object
    message:"Plugin unavailable"
    messageId:"plugin.unavailable"
    statusCode:500
    traceID:""
    config:Object
    url:"api/ds/query?ds_type=grafana-clickhouse-datasource&requestId=explore_7ki"
    method:"POST"
    data:Object
    requestId:"explore_7ki"
    hideFromInspector:false
    headers:Object
    retry:0
    traceId:undefined
    message:"Plugin unavailable"

What happened:

The error "Plugin is unavailable" occurs.

What you expected to happen:

Run query

How to reproduce it (as minimally and precisely as possible):

Screenshots

Image

Anything else we need to know?:

Environment:

  • Grafana version:11.0.0
  • Plugin version: 4.5.1
  • OS Grafana is installed on: linux
  • User OS & Browser: Ubuntu & Chrome
  • Others:--
@TimShar2021 TimShar2021 added datasource/ClickHouse type/bug Something isn't working labels Jan 13, 2025
@SpencerTorres
Copy link
Collaborator

Hey thanks for submitting an issue. I see you have Grafana installed on linux, but is it running inside a docker container at all? What version of ClickHouse are you using and where is that hosted? What does it say when you test the connection on the datasource configuration page? Do you have any logs to share from Grafana or ClickHouse? Or even a network/console log on the browser?

This info should help narrow things down. I've seen this error message before but it's a bit vague so it could be many different things.

Thanks!

@TimShar2021
Copy link
Author

TimShar2021 commented Jan 13, 2025

Thank you for the answer!

Yes, it works inside the container. The CH logs show:
level=error msg="Internal server error" error="[plugin.unavailable] plugin unavailable".

Since last week, sources using the plugin have been failing. We tried changing the connection settings (e.g., Query Timeout (seconds): 0.1), which sometimes helps and allows a couple of queries to go through. However, the "Plugin is unavailable" error still occurs.

@SpencerTorres
Copy link
Collaborator

Do you have any of the surrounding logs? Perhaps you could enable debug logging in Grafana. The other info would be helpful too such as ClickHouse environment + version

@TimShar2021
Copy link
Author

ClickHouse: 24.3.5.46

container_image
docker.io/grafana/grafana:11.0.0

container_name
grafana

container_name_extracted
grafana

forwarder
k8s-vector

message level=error msg="Internal server error" error="[plugin.unavailable] plugin unavailable"

node_labels_kubernetes_io_os
linux

@SpencerTorres
Copy link
Collaborator

Very odd. I wonder if the plugin process is crashing.

@bossinc do you have any idea on how we can narrow this down? It's a vague error, wondering if you've seen it in other datasources

@adamyeats
Copy link
Contributor

@SpencerTorres @TimShar2021 The "Plugin unavailable" message generally stems from the plugin process not starting or being unavailable (e.g due to a panic). In order to help us debug, a minimal reproducible test case would be helpful, or more context in the form of logs from Grafana or searching for the gpx_clickhouse_linux(_(amd64|arm))? binary in /var/log/syslog or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting
Development

No branches or pull requests

3 participants