Closed Bug 1499553 Opened 8 years ago Closed 8 years ago

Figure out why purge-cache stopped working

Categories

(Taskcluster :: Operations and Service Requests, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bstack, Assigned: dustin)

Details

(Whiteboard: [stockwell infra])

Attachments

(1 file)

Today at around 11:00 PST purge-cache started returning 500s. It was about 50 minutes after a deploy of a new version of purge-cache. Here is a bit of worker logs: ``` Oct 16 12:38:44 T-W1064-MS-043.mdc1.mozilla.com generic-worker: }#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: 2018/10/16 19:38:55 Error: (Intermittent) HTTP response code 500#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: HTTP/1.1 500 Internal Server Error#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Content-Length: 475#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Access-Control-Allow-Headers: X-Requested-With,Content-Type,Authorization,Accept,Origin#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Access-Control-Allow-Methods: OPTIONS,GET,HEAD,POST,PUT,DELETE,TRACE,CONNECT#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Access-Control-Allow-Origin: *#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Access-Control-Max-Age: 900#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Access-Control-Request-Method: *#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Cache-Control: no-store no-cache must-revalidate#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Connection: keep-alive#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Content-Security-Policy: report-uri /__cspreport__;default-src 'none';frame-ancestors 'none';#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Content-Type: application/json; charset=utf-8#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Date: Tue, 16 Oct 2018 19:38:56 GMT#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Etag: W/"1db-AGZ2n7i4wlkGfbu7Rsv4F4wP/wM"#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Server: Cowboy#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Strict-Transport-Security: max-age=7776000000; includeSubDomains#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: Via: 1.1 vegur#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: X-Content-Type-Options: nosniff#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: #015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: {#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: "code": "InternalServerError",#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: "message": "Internal Server Error, incidentId: faf4a735-5033-43d4-8bdf-0b7f389ee31e\n\n---\n\n* method: purgeRequests\n* errorCode: InternalServerError\n* statusCode: 500\n* time: 2018-10-16T19:38:56.435Z",#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: "requestInfo": {#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: "method": "purgeRequests",#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: "params": {#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: "provisionerId": "releng-hardware",#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: "workerType": "gecko-t-win10-64-hw"#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: },#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: "payload": {},#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: "time": "2018-10-16T19:38:56.435Z"#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: }#015 Oct 16 12:38:56 T-W1064-MS-043.mdc1.mozilla.com generic-worker: }#015 ``` This was a bit more annoying than expected because the tasks just appeared to hang for 15 minutes without telling us what was going wrong before we checked the logs directly and only relops had access to the workers we noticed this happening on. I have rolled back purge-cache to the version that was deployed yesterday although I'm not able to find anything in the logs that points to the deployed version being the culprit. I will leave the old version deployed for now because I want to let the backlog fill in. I think we can probably roll back forward and watch closely tomorrow just to see if this was random or caused by the new version.
Assignee: nobody → bstack
Status: NEW → ASSIGNED
Assignee: bstack → dustin
Oct 16 19:38:56 taskcluster-purge-cache app/web.1: 2018-10-16T19:38:56.396Z api:errors Error occurred handling: /purge-cache/aws-provisioner-v1/gecko-1-decision?since=2018-10-16T19%3A20%3A23.552Z, err: Error: Unknown Server Error, as JSON: {"body":{},"code":"UnknownError","statusCode":503,"incidentId":"b1a4d3a4-46da-4260-9af3-3ef0a2e8913d","method":"purgeRequests","params":{"provisionerId":"aws-provisioner-v1","workerType":"gecko-3-decision"}}, incidentId: 5497b97c-185b-4945-8e28-44c529765314 Error: Unknown Server Error Oct 16 19:38:56 taskcluster-purge-cache app/web.1: at /app/node_modules/taskcluster-lib-azure/node_modules/taskcluster-client/lib/client.js:356:21 Oct 16 19:38:56 taskcluster-purge-cache app/web.1: at <anonymous> Oct 16 19:38:56 taskcluster-purge-cache app/web.1: at process._tickDomainCallback (internal/process/next_tick.js:229:7) Oct 16 19:38:56 taskcluster-purge-cache app/web.1: 2018-10-16T19:38:56.397Z app:request [16/Oct/2018:19:38:56 +0000] GET /v1/purge-cache/aws-provisioner-v1/gecko-1-decision?since=2018-10-16T19%3A20%3A23.552Z -> 500; ip=::ffff:10.65.198.169 referrer="-" ua="node-superagent/1.7.2" Oct 16 19:38:56 taskcluster-purge-cache app/web.1: raven@2.5.0 alert: failed to send exception to sentry: HTTP Error (429): undefined Oct 16 19:38:56 taskcluster-purge-cache app/web.1: Failed to log error to Sentry: Error: HTTP Error (429): undefined Oct 16 19:38:56 taskcluster-purge-cache app/web.1: raven@2.5.0 alert: failed to send exception to sentry: HTTP Error (429): undefined Oct 16 19:38:56 taskcluster-purge-cache app/web.1: raven@2.5.0 alert: failed to send exception to sentry: HTTP Error (429): undefined Oct 16 19:38:56 taskcluster-purge-cache app/web.1: 2018-10-16T19:38:56.435Z api:errors Error occurred handling: /purge-cache/releng-hardware/gecko-t-win10-64-hw, err: Error: Unknown Server Error, as JSON: {"body":{},"code":"UnknownError","statusCode":503,"incidentId":"5497b97c-185b-4945-8e28-44c529765314","method":"purgeRequests","params":{"provisionerId":"aws-provisioner-v1","workerType":"gecko-1-decision"}}, incidentId: faf4a735-5033-43d4-8bdf-0b7f389ee31e Error: Unknown Server Error Oct 16 19:38:56 taskcluster-purge-cache app/web.1: at /app/node_modules/taskcluster-lib-azure/node_modules/taskcluster-client/lib/client.js:356:21 Oct 16 19:38:56 taskcluster-purge-cache app/web.1: at <anonymous> Oct 16 19:38:56 taskcluster-purge-cache app/web.1: at process._tickDomainCallback (internal/process/next_tick.js:229:7) that looks like 503's from the auth, trying to get Azure credentials. But I don't see a 503 from that time on the auth service. I do see some 503's at 18:01 UTC, but that's an hour and 37 minutes earlier (and apparently caused by setting AUTH_LOG??)
Huh, that auth crash was due to Oct 16 17:59:22 taskcluster-auth app/web.5: AccessDeniedException: User: arn:aws:iam::692406183521:user/auth.taskcluster.net is not authorized to perform: firehose:DescribeDeliveryStream on resource: arn:aws:firehose:us-west-2:692406183521:deliverystream/taskcluster-audit-logs I thought that value was hard-coded in the production section of config.yml at that time so I made the config change without watching logs. Obviously I misunderstood something there! The change I landed that *fixed* auth was https://github.com/taskcluster/taskcluster-auth/commit/e0b08698cfe334d602c33dc16969ee6d52268e24 Anyway, looking at the metrics in purge-cache, those 503's seem to have "poisoned" its Azure credentials until it was restarted about 21:50. I filed bug 1499701 for that.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Whiteboard: [stockwell disable-recommended] → [stockwell infra]
Component: Operations → Operations and Service Requests
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: