sensu / sensu-go

Simple. Scalable. Multi-cloud monitoring.
https://sensu.io
MIT License
1.01k stars 177 forks source link

[Web UI] Error: GraphQL error: unable to coerce value for field 'status' (Powershell checks crash the GUI) #2513

Closed marcseguin closed 5 years ago

marcseguin commented 5 years ago

Expected Behavior

no crash of the GUI

Current Behavior

crash of the GUI, details see below image

Possible Solution

Steps to Reproduce (for bugs)

  1. issue occurs configuring a first check for a Windows computer: [srv-mon01:~]# sensuctl check list Name Command Interval Cron Timeout TTL Subscriptions Handlers Assets Hooks Publish? Stdin? Metric Format Metric Handlers ─────────── ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── ────────── ────── ───────── ───── ─────────────── ────────── ──────── ─────── ────────── ──────── ─────────────── ───────────────── check-cpu Powershell.exe -NonInteractive -NoProfile -ExecutionPolicy Bypass -NoLogo -File "C:\Program Files\Sensu\plugins\powershell\check-windows-cpu-load.ps1" 90 95 60 0 0 Windows true false

Context

Web UI Stack Trace:

at ApolloError (/static/js/main.d07bc22e.js:7) at lq9a/</w</QueryManager.prototype.queryListenerForObserver/< (/static/js/main.d07bc22e.js:60) at lq9a/</w</QueryManager.prototype.broadcastQueries/</< (/static/js/main.d07bc22e.js:60) at lq9a/</w</QueryManager.prototype.broadcastQueries/< (/static/js/main.d07bc22e.js:60) at lq9a/</w</QueryManager.prototype.broadcastQueries (/static/js/main.d07bc22e.js:60) at next (/static/js/main.d07bc22e.js:60) at notifySubscription (/static/js/main.d07bc22e.js:60) at onNotify (/static/js/main.d07bc22e.js:60) at next (/static/js/main.d07bc22e.js:60) at next/< (/static/js/main.d07bc22e.js:36) at next (/static/js/main.d07bc22e.js:36) at notifySubscription (/static/js/main.d07bc22e.js:60) at onNotify (/static/js/main.d07bc22e.js:60) at next (/static/js/main.d07bc22e.js:60) at next/< (/static/js/main.d07bc22e.js:66)

Your Environment

marcseguin commented 5 years ago

The issue remains even after deleting the check and even after restart of the sensu-backend processes.

annaplotkin commented 5 years ago

Thanks for reporting @marcseguin ! I think this may be a similar issue to the one we are working on resolving here: https://github.com/sensu/sensu-go/issues/2494

annaplotkin commented 5 years ago

@marcseguin We've confirmed that this is the same issue as #2494. The team is actively working on that ticket and please watch it for updates. Closing this one as a duplicate. Thanks again for reporting!