Skip to content

"Error watching metadata: context canceled" starting from 2025 07 04 #562

@Edvinas-Matulaitis

Description

@Edvinas-Matulaitis

Starting from 2025 07 04 on Google Cloud we get this error that links function to this repo at the bottom of this log entry:

{
  "insertId": "oguo51fnbt0fd",
  "jsonPayload": {
    "localTimestamp": "2025-07-07T05:19:00.8012Z",
    "omitempty": null,
    "message": "Error watching metadata: context canceled"
  },
  "resource": {
    "type": "gce_instance",
    "labels": {
      "instance_id": "3371365647560141590",
      "project_id": "xxxxxxxx",
      "zone": "europe-west3-a"
    }
  },
  "timestamp": "2025-07-07T05:19:00.808556387Z",
  "severity": "ERROR",
  "labels": {
    "instance_name": "aef-default-20250706t193350-58h2"
  },
  "logName": "projects/xxxxxxxx/logs/GCEGuestAgent",
  "sourceLocation": {
    "file": "metadata.go",
    "line": "68",
    "function": "github.com/GoogleCloudPlatform/guest-agent/google_guest_agent/events/metadata.(*Watcher).Run"
  },
  "receiveTimestamp": "2025-07-07T05:19:00.954340019Z"
}

Starting with those errors we started getting random 502 bad gateway requests from 2025 07 04 so not sure if that is related with guest agent or no.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions