Skip to content

supervisor 502 errors causes indefinite delays #3042

@apolopena

Description

@apolopena

Describe the bug

This is an intermittant bug that occurs often with many types of repos and gitpod workspaces in a number of conditions.

  • The workspace hangs indefintely either before, after or during the "Getting Docker Image 2/3" message but never during the "initializing workspace" message.
  • Eventually the workspace IDE may open or it may not however the workspace has a status of RUNNING and minutes are charged against the users account even when they cannot access the workspace.
  • The workspace in question can always be stopped or deleted from the dashboard.

Typical errors in the console look like the below image. In this particular case the workspace IDE finally did open but the delay was unacceptable, most users would give up after 12 failed attempts to load the supervisor and no status message. The Theia websocket took 2.474 minutes to open. All this time gets charged to the user.

image

Steps to reproduce

The bug is intermittant but frequent. I have not found reproducable steps yet. This issue seems to only mostly happen after a workspace image is cached and can happen when starting the workspace, building it or reloading it once its already started.

Expected behavior

The fetch using GET for /supervisor/v1/status/supervisor should not fail with a 502 Bad Gateway error. If there is a sizable delay as the system retries to get the supervisor. The user should be notified about this indefinite delay so they can more easily ask for assistance from gitpod support and the issue can be pinpointed much easier.

Additional information

I am on the US03 cluster. My gitpod account name is Devz3n

Example repository

The bug is intermittant and does not appear to be tied to a specific repo however the issue occurs frequently with this repo.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions