Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Devsandbox] fail to restart a workspace based on the community devfile #19829

Closed
2 tasks
ibuziuk opened this issue May 20, 2021 · 3 comments · Fixed by eclipse-che/che-theia#1115
Closed
2 tasks
Labels
area/devfile-registry area/hosted-che area/plugins kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/next
Milestone

Comments

@ibuziuk
Copy link
Member

ibuziuk commented May 20, 2021

Steps to reproduce

  1. Go to http://workspaces.openshift.com/#get-started
  2. Create and start a workspace based on the community devfile e.g. Bash
  3. Stop the workspace and start it again
  4. ERROR: workspace is failing to start with:
Failed to run the workspace: "Plugins installation process failed. Error: Plugin brokering process for workspace workspaceegdel2zm4dlg5hxt failed with error: Failed to download plugin meta: failed to fetch plugin meta.yaml from URL 'https://codeready-codeready-workspaces-operator.apps.sandbox-m2.ll9k.p1.openshiftapps.com/plugin-registry/v3/plugins/mads-hartmann/bash-ide-vscode/latest/meta.yaml': Downloading https://codeready-codeready-workspaces-operator.apps.sandbox-m2.ll9k.p1.openshiftapps.com/plugin-registry/v3/plugins/mads-hartmann/bash-ide-vscode/latest/meta.yaml failed. Status code 404. Response body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL was not found on this server.</p> </body></html> "

Expected behavior

Workspace restarted without errors

Runtime

  • Openshift / OSD v4

Environment

  • Dev Sandbox (workspaces.openshift.com)

Eclipse Che Logs

Add eth0 [10.129.4.40/23]

Pulling image "registry.redhat.io/codeready-workspaces/pluginbroker-metadata-rhel8@sha256:0143a80b869620af08a0d60165dc9d13357a79e7243502832326cf053c17ee38"

Successfully pulled image "registry.redhat.io/codeready-workspaces/pluginbroker-metadata-rhel8@sha256:0143a80b869620af08a0d60165dc9d13357a79e7243502832326cf053c17ee38" in 1.430460279s

Created container pluginbroker-metadata-rhel8-0143a80b86

Started container pluginbroker-metadata-rhel8-0143a80b86

Starting plugin metadata broker

Failed to download plugin meta: failed to fetch plugin meta.yaml from URL 'https://codeready-codeready-workspaces-operator.apps.sandbox-m2.ll9k.p1.openshiftapps.com/plugin-registry/v3/plugins/mads-hartmann/bash-ide-vscode/latest/meta.yaml': Downloading https://codeready-codeready-workspaces-operator.apps.sandbox-m2.ll9k.p1.openshiftapps.com/plugin-registry/v3/plugins/mads-hartmann/bash-ide-vscode/latest/meta.yaml failed. Status code 404. Response body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>

<title>404 Not Found</title>

</head><body>

<h1>Not Found</h1>

<p>The requested URL was not found on this server.</p>

</body></html>

Failed to run the workspace: "Plugins installation process failed. Error: Plugin brokering process for workspace workspaceegdel2zm4dlg5hxt failed with error: Failed to download plugin meta: failed to fetch plugin meta.yaml from URL 'https://codeready-codeready-workspaces-operator.apps.sandbox-m2.ll9k.p1.openshiftapps.com/plugin-registry/v3/plugins/mads-hartmann/bash-ide-vscode/latest/meta.yaml': Downloading https://codeready-codeready-workspaces-operator.apps.sandbox-m2.ll9k.p1.openshiftapps.com/plugin-registry/v3/plugins/mads-hartmann/bash-ide-vscode/latest/meta.yaml failed. Status code 404. Response body: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL was not found on this server.</p> </body></html> "

Additional context

@ibuziuk ibuziuk added kind/bug Outline of a bug - must adhere to the bug report template. area/devfile-registry severity/P1 Has a major impact to usage or development of the system. area/hosted-che labels May 20, 2021
@ericwill
Copy link
Contributor

Looks like the wrong plugin URL is being used, it's trying to use the deployed plugin registry URL when it should be using the registryUrl field from the devfile.

@ibuziuk
Copy link
Member Author

ibuziuk commented May 20, 2021

@ericwill could you please investigate, I can reproduce pretty consistently?

The devfiles published to GitHub pages reference the upstream published plugin registry in the registryUrl field. For example, the published apache-camel-springboot devfile references the upstream published plugin definition for vscode-xml. I tested this on dev sandbox and it works fine.

Not sure where the bug is, but this approach does not seem to work after workspace restarts

@ibuziuk
Copy link
Member Author

ibuziuk commented May 24, 2021

@svor @azatsarynnyy folks, not sure what is the right team for this task, but could you please prioritize it for the next sprint - this is utterly important in the context of #19271 epic

benoitf added a commit to benoitf/che-theia that referenced this issue May 25, 2021
… is forgotten

Related to eclipse-che/che#19829

Change-Id: Ia7dd9aec31f0c6b5326c4d645bfbf4f87ac8e69e
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
benoitf added a commit to eclipse-che/che-theia that referenced this issue May 26, 2021
… is forgotten

Related to eclipse-che/che#19829

Change-Id: Ia7dd9aec31f0c6b5326c4d645bfbf4f87ac8e69e
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
benoitf added a commit to benoitf/che-theia that referenced this issue May 26, 2021
… is forgotten

Related to eclipse-che/che#19829

Change-Id: Ia7dd9aec31f0c6b5326c4d645bfbf4f87ac8e69e
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
benoitf added a commit to eclipse-che/che-theia that referenced this issue May 26, 2021
… is forgotten

Related to eclipse-che/che#19829

Change-Id: Ia7dd9aec31f0c6b5326c4d645bfbf4f87ac8e69e
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
@ibuziuk ibuziuk added this to the 7.31 milestone May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devfile-registry area/hosted-che area/plugins kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. sprint/next
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants