sensu / web

Open-source Web UI for Sensu Go clusters
MIT License
30 stars 22 forks source link

Unexpected Error: "GraphQL error: Cannot query field "processes"... #375

Closed adammcdonagh closed 3 years ago

adammcdonagh commented 3 years ago

Expected Behaviour

When browsing to view an entity, the entity should be displayed. Updated agents should be listed

Current Behaviour

Error message containing the following:

Error: GraphQL error: Cannot query field "processes" on type "System".
GraphQL error: Cannot query field "ARMVersion" on type "System".
GraphQL error: Cannot query field "libCType" on type "System".
GraphQL error: Cannot query field "VMSystem" on type "System".
GraphQL error: Cannot query field "VMRole" on type "System".
GraphQL error: Cannot query field "cloudProvider" on type "System".
GraphQL error: Unknown type "Process".

Also, any agents that have been upgraded to 6.2.7 disappear from the entity list. They still appear when you use the API, the have the same namespace as before etc, but just don't show in the web interface.

Steps to Reproduce (for bugs)

  1. Log into web
  2. Navigate to entities page
  3. Click on an entity

Also

  1. Upgrade an agent that currently shows in the entity list (e.g just run yum update sensu-go-agent). In my test its an agent on 5.19
  2. Restart agent
  3. Check entity list and see that entity no longer displays. If you try to navigate directly to it via the original URL, you just get a 404 error

Context

Unable to view entities in any way.

Browser Stack Trace:

at `new t` (/static/js/vendors~app_ac7d.js:2)
at `undefined` (/static/js/vendors~app_ac7d.js:2)
at `undefined` (/static/js/vendors~app_ac7d.js:2)
at `undefined` (/static/js/vendors~app_ac7d.js:2)
at `t.broadcastQueries` (/static/js/vendors~app_ac7d.js:2)
at `undefined` (/static/js/vendors~app_ac7d.js:2)
at `Object.next` (/static/js/vendors~app_ac7d.js:2)
at `h` (/static/js/vendors~app_ac7d.js:2)
at `v` (/static/js/vendors~app_ac7d.js:2)
at `e.value` (/static/js/vendors~app_ac7d.js:2)
at `undefined` (/static/js/vendors~app_ac7d.js:2)
at `f` (/static/js/vendors~app_ac7d.js:2)
at `T._settlePromiseFromHandler` (/static/js/vendors~app_ac7d.js:2)
at `T._settlePromise` (/static/js/vendors~app_ac7d.js:2)

Your Environment

adammcdonagh commented 3 years ago

Turns out one of the servers in the cluster wasn't upgraded and was causing the issues.. After upgrading that too everything works fine