deathandmayhem/jolly-roger

Doc activity sparkline is flatlined (always 0)

Closed this issue · 1 comments

egnor commented

On our (Left Out) instance, the "Doc" activity sparkline is always flatlined

image

I gather that's supposed to show how many people are editing the spreadsheet/doc, but, we can edit the spreadsheet all day and nothing seems to happen. It's enabled in our server settings

image

and the requests seem to be going through without error for the most part (originally they weren't, until I granted the scope or something like that). Is this supposed to work like I expect? Any obvious paths to debug why it might not be?

egnor commented

I did see this error in the logs just now (hadn't seen anything like it previously):

Jan 11 04:19:16 egnor-2020 mise[337202]: error: Error fetching drive activity: GaxiosError: Internal error encountered.
Jan 11 04:19:16 egnor-2020 mise[337202]:     at Gaxios._request (/home/egnor/jolly-roger-deploy/bundle.active/programs/server/npm/node_modules/go>
Jan 11 04:19:16 egnor-2020 mise[337202]:     at runMicrotasks (<anonymous>)
Jan 11 04:19:16 egnor-2020 mise[337202]:     at processTicksAndRejections (internal/process/task_queues.js:95:5)
Jan 11 04:19:16 egnor-2020 mise[337202]:  => awaited here:
Jan 11 04:19:16 egnor-2020 mise[337202]:     at Function.Promise.await (/home/egnor/jolly-roger-deploy/bundle.active/programs/server/npm/node_mod>
Jan 11 04:19:16 egnor-2020 mise[337202]:     at imports/server/gdriveActivityFetcher.ts:82:15
Jan 11 04:19:16 egnor-2020 mise[337202]:     at /home/egnor/jolly-roger-deploy/bundle.active/programs/server/npm/node_modules/meteor/promise/node>
Jan 11 04:19:16 egnor-2020 mise[337202]:  => awaited here:
Jan 11 04:19:16 egnor-2020 mise[337202]:     at Function.Promise.await (/home/egnor/jolly-roger-deploy/bundle.active/programs/server/npm/node_mod>
Jan 11 04:19:16 egnor-2020 mise[337202]:     at imports/server/gdriveActivityFetcher.ts:196:13
Jan 11 04:19:16 egnor-2020 mise[337202]:     at /home/egnor/jolly-roger-deploy/bundle.active/programs/server/npm/node_modules/meteor/promise/node>
Jan 11 04:19:16 egnor-2020 mise[337202]:  => awaited here:
Jan 11 04:19:16 egnor-2020 mise[337202]:     at Function.Promise.await (/home/egnor/jolly-roger-deploy/bundle.active/programs/server/npm/node_mod>
Jan 11 04:19:16 egnor-2020 mise[337202]:     at imports/server/withLock.ts:68:9
Jan 11 04:19:16 egnor-2020 mise[337202]:     at /home/egnor/jolly-roger-deploy/bundle.active/programs/server/npm/node_modules/meteor/promise/node>
Jan 11 04:19:16 egnor-2020 mise[337202]:  => awaited here:
Jan 11 04:19:16 egnor-2020 mise[337202]:     at Function.Promise.await (/home/egnor/jolly-roger-deploy/bundle.active/programs/server/npm/node_mod>
Jan 11 04:19:16 egnor-2020 mise[337202]:     at imports/server/gdriveActivityFetcher.ts:174:7
Jan 11 04:19:16 egnor-2020 mise[337202]:     at /home/egnor/jolly-roger-deploy/bundle.active/programs/server/npm/node_modules/meteor/promise/node>
Jan 11 04:19:16 egnor-2020 mise[337202]:   config: {
Jan 11 04:19:16 egnor-2020 mise[337202]:     url: 'https://driveactivity.googleapis.com/v2/activity:query',
Jan 11 04:19:16 egnor-2020 mise[337202]:     method: 'POST',
Jan 11 04:19:16 egnor-2020 mise[337202]:     userAgentDirectives: [ [Object] ],
Jan 11 04:19:16 egnor-2020 mise[337202]:     paramsSerializer: [Function (anonymous)],
Jan 11 04:19:16 egnor-2020 mise[337202]:     data: { filter: 'time > 1704935656375' },
Jan 11 04:19:16 egnor-2020 mise[337202]:     headers: {
Jan 11 04:19:16 egnor-2020 mise[337202]:       'x-goog-api-client': 'gdcl/7.0.0 gl-node/14.21.3',
Jan 11 04:19:16 egnor-2020 mise[337202]:       'Accept-Encoding': 'gzip',
Jan 11 04:19:16 egnor-2020 mise[337202]:       'User-Agent': 'google-api-nodejs-client/7.0.0 (gzip)',
Jan 11 04:19:16 egnor-2020 mise[337202]:       Authorization: 'Bearer ya29.a0AfB_byDGY0In8JNWY1zXvTX_3zhJnEMSOS2rSxfz520MiTej_9jesnulxuz_u8XgHmXx>
Jan 11 04:19:16 egnor-2020 mise[337202]:       'Content-Type': 'application/json'
Jan 11 04:19:16 egnor-2020 mise[337202]:     },
Jan 11 04:19:16 egnor-2020 mise[337202]:     params: {},
Jan 11 04:19:16 egnor-2020 mise[337202]:     validateStatus: [Function (anonymous)],
Jan 11 04:19:16 egnor-2020 mise[337202]:     retry: true,
Jan 11 04:19:16 egnor-2020 mise[337202]:     body: '{"filter":"time > 1704935656375"}',
Jan 11 04:19:16 egnor-2020 mise[337202]:     responseType: 'unknown',
Jan 11 04:19:16 egnor-2020 mise[337202]:     errorRedactor: [Function: defaultErrorRedactor],
Jan 11 04:19:16 egnor-2020 mise[337202]:     retryConfig: {
Jan 11 04:19:16 egnor-2020 mise[337202]:       currentRetryAttempt: 0,
Jan 11 04:19:16 egnor-2020 mise[337202]:       retry: 3,
Jan 11 04:19:16 egnor-2020 mise[337202]:       httpMethodsToRetry: [Array],
Jan 11 04:19:16 egnor-2020 mise[337202]:       noResponseRetries: 2,
Jan 11 04:19:16 egnor-2020 mise[337202]:       statusCodesToRetry: [Array]
Jan 11 04:19:16 egnor-2020 mise[337202]:     }
Jan 11 04:19:16 egnor-2020 mise[337202]:   },
Jan 11 04:19:16 egnor-2020 mise[337202]:   response: {
Jan 11 04:19:16 egnor-2020 mise[337202]:     config: {
Jan 11 04:19:16 egnor-2020 mise[337202]:       url: 'https://driveactivity.googleapis.com/v2/activity:query',
Jan 11 04:19:16 egnor-2020 mise[337202]:       method: 'POST',
Jan 11 04:19:16 egnor-2020 mise[337202]:       userAgentDirectives: [Array],
Jan 11 04:19:16 egnor-2020 mise[337202]:       paramsSerializer: [Function (anonymous)],
Jan 11 04:19:16 egnor-2020 mise[337202]:       data: [Object],
Jan 11 04:19:16 egnor-2020 mise[337202]:       headers: [Object],
Jan 11 04:19:16 egnor-2020 mise[337202]:       params: {},
Jan 11 04:19:16 egnor-2020 mise[337202]:       validateStatus: [Function (anonymous)],
Jan 11 04:19:16 egnor-2020 mise[337202]:       retry: true,
Jan 11 04:19:16 egnor-2020 mise[337202]:       body: '{"filter":"time > 1704935656375"}',
Jan 11 04:19:16 egnor-2020 mise[337202]:       responseType: 'unknown',
Jan 11 04:19:16 egnor-2020 mise[337202]:       errorRedactor: [Function: defaultErrorRedactor]
Jan 11 04:19:16 egnor-2020 mise[337202]:     },
Jan 11 04:19:16 egnor-2020 mise[337202]:     data: { error: [Object] },
Jan 11 04:19:16 egnor-2020 mise[337202]:     headers: {
Jan 11 04:19:16 egnor-2020 mise[337202]:       'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000',
Jan 11 04:19:16 egnor-2020 mise[337202]:       'cache-control': 'private',
Jan 11 04:19:16 egnor-2020 mise[337202]:       connection: 'close',
Jan 11 04:19:16 egnor-2020 mise[337202]:       'content-encoding': 'gzip',
Jan 11 04:19:16 egnor-2020 mise[337202]:       'content-type': 'application/json; charset=UTF-8',
Jan 11 04:19:16 egnor-2020 mise[337202]:       date: 'Thu, 11 Jan 2024 04:19:16 GMT',
Jan 11 04:19:16 egnor-2020 mise[337202]:       server: 'ESF',
Jan 11 04:19:16 egnor-2020 mise[337202]:       'transfer-encoding': 'chunked',
Jan 11 04:19:16 egnor-2020 mise[337202]:       vary: 'Origin, X-Origin, Referer',
Jan 11 04:19:16 egnor-2020 mise[337202]:       'x-content-type-options': 'nosniff',
Jan 11 04:19:16 egnor-2020 mise[337202]:       'x-frame-options': 'SAMEORIGIN',
Jan 11 04:19:16 egnor-2020 mise[337202]:       'x-xss-protection': '0'
Jan 11 04:19:16 egnor-2020 mise[337202]:     },
Jan 11 04:19:16 egnor-2020 mise[337202]:     status: 500,
Jan 11 04:19:16 egnor-2020 mise[337202]:     statusText: 'Internal Server Error',
Jan 11 04:19:16 egnor-2020 mise[337202]:     request: {
Jan 11 04:19:16 egnor-2020 mise[337202]:       responseURL: 'https://driveactivity.googleapis.com/v2/activity:query'
Jan 11 04:19:16 egnor-2020 mise[337202]:     }
Jan 11 04:19:16 egnor-2020 mise[337202]:   },
Jan 11 04:19:16 egnor-2020 mise[337202]:   error: undefined,
Jan 11 04:19:16 egnor-2020 mise[337202]:   status: 500,
Jan 11 04:19:16 egnor-2020 mise[337202]:   code: 500,
Jan 11 04:19:16 egnor-2020 mise[337202]:   errors: [
Jan 11 04:19:16 egnor-2020 mise[337202]:     {
Jan 11 04:19:16 egnor-2020 mise[337202]:       message: 'Internal error encountered.',
Jan 11 04:19:16 egnor-2020 mise[337202]:       domain: 'global',
Jan 11 04:19:16 egnor-2020 mise[337202]:       reason: 'backendError'
Jan 11 04:19:16 egnor-2020 mise[337202]:     }
Jan 11 04:19:16 egnor-2020 mise[337202]:   ]
Jan 11 04:19:16 egnor-2020 mise[337202]: }

That's... a 500 from Google?? Probably spurious and unrelated?? If I try that same request from the API Explorer or whatever I get the expected stream of updates.