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

Broken Containerization and Workflow (on new account) #1795

Closed
SandroBoelsz opened this issue Jan 25, 2025 · 1 comment
Closed

Broken Containerization and Workflow (on new account) #1795

SandroBoelsz opened this issue Jan 25, 2025 · 1 comment

Comments

@SandroBoelsz
Copy link

Describe the bug
When creating a new account and then following the starting tutorial at https://naavre.net/docs/tutorials/#starting-your-virtual-lab in the NaaVRE Open Lab the following behavior happens for both R and Python:

When using the Component Containerizer, an error pops up with the following error:
{
"message": "Unhandled error",
"reason": null,
"traceback": "Traceback (most recent call last):\n File "/venv/lib/python3.11/site-packages/tornado/web.py", line 1790, in _execute\n result = await result\n ^^^^^^^^^^^^\n File "/venv/lib/python3.11/site-packages/jupyterlab_vre/component_containerizer/handlers.py", line 430, in post\n do_dispatch_github_workflow, image_version = create_or_update_cell_in_repository(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/venv/lib/python3.11/site-packages/jupyterlab_vre/component_containerizer/handlers.py", line 486, in create_or_update_cell_in_repository\n remote_hash = repository.get_contents(path=task_name + '/' + f_name).sha\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/venv/lib/python3.11/site-packages/github/Repository.py", line 2137, in get_contents\n headers, data = self._requester.requestJsonAndCheck(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/venv/lib/python3.11/site-packages/github/Requester.py", line 537, in requestJsonAndCheck\n return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url)))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/venv/lib/python3.11/site-packages/github/Requester.py", line 598, in __check\n raise self.createException(status, responseHeaders, data)\ngithub.GithubException.GithubException: 404 {"message": "No object found for the path input-list-s-boelsz-gmail-com/task.R", "documentation_url": "https://docs.github.com/v3/repos/contents/\", "status": "404"}\n"
}

Although the component is still created, when trying to run said components in a workflow, the workflow itself will run indefinite and produce the following error message (manual termination was required to stop the workflow):

InvalidImageName: Failed to apply default image tag "ghcr.io/qcdis/naavre-cells-test-2/input-list-s-boelsz-gmail-com:": couldn't parse image reference "ghcr.io/qcdis/naavre-cells-test-2/input-list-s-boelsz-gmail-com:": invalid reference format.

To Reproduce
Steps to reproduce the behavior:

  1. Create new account
  2. Go the Open Lab and launch your instance.
  3. follow the tutorial at https://naavre.net/docs/tutorials/#starting-your-virtual-lab.
  4. Containerize and see the first error.
  5. Create a workflow and run it to see the second error.

Expected behavior
What should happen is the behaviour specified in the tutorial. Which means that the containers are created succesfully. Furthermore, these containers should be usable in the workflow and that workflow will finish as expected without errors.

Screenshots
Image
Image
Image
Image

Additional context
I tried it on two different accounts. The behavior is visible for both R and Python.

@gpelouze
Copy link
Member

Hi @SandroBoelsz, thanks for the detailed report.

This is a duplicate of #1789 for which we already have a fix.

We are currently testing the new release in our staging environment, and will deploy the fix withing the following days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants