gitpod-io / gitpod-io/gitpod

Workspace Failing to Start Due To 'metadata.annotations' Too Long

Open
#11,626 3 comments 0 reactions 1 assignee View on GitHub

@jimmybrancaccio is already working on this.

Since Jul 25, 2022.

meta: never-stale team: workspace type: bug
Dominant language
TypeScript
Stars
13.8k
Forks
1.4k
Avg merge
17h 58m
Merged PRs (30d)
5

Description

Bug description

I received a support ticket today where a customer was unable to start their workspace. After digging into the logs it seems the workspace cannot start due to metadata.annotations being too long.

cannot mark workspace bf938941-a5a5-43e1-aad9-a1af9836c11a with +gitpod/explicitFail:
    github.com/gitpod-io/gitpod/ws-manager/pkg/manager.(*Manager).markWorkspace
        github.com/gitpod-io/gitpod/ws-manager/pkg/manager/annotations.go:139
  - Pod "ws-bf938941-a5a5-43e1-aad9-a1af9836c11a" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Steps to reproduce

This may be a little difficult, but what I would suggest:

  1. Create a workspace but then stop it.
  2. Some how manually manipulate the metadata.annotations of the pod so that it's more than 262144 bytes.
  3. Attempt to spin up the workspace again.
  4. Observe in logs that you get an error about the metadata.annotations being too long.
Workspace affected

No response

Expected behavior

I am not sure what error message is being displayed to the customer but I can attempt to find this out within the Front conversation.

Depending on the error message or error displayed we should provide more information on why that happened and the next steps a customer can take.

Example repository

No response

Anything else?

No response

Front logo Front conversations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.