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

starting a renkulab session from the CLI fails due to trying to enable cloudstorage #3726

Open
Panaetius opened this issue May 10, 2024 · 0 comments
Assignees
Labels
kind/bug status/triage Issue needs to be triaged

Comments

@Panaetius
Copy link
Member

stack trace:

$ renku session start -p renkulab --ssh
⠸ Waiting for session to start...[2024-05-10 11:06:04,474] [WARNING] [renku.ui.service] fast project clone didn't work: 404: 404 Project Not Found
Traceback (most recent call last):
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/infrastructure/gitlab_api_provider.py", line 110, in _get_project
    project = gl.projects.get(f"{namespace}/{name}")
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/v4/objects/projects.py", line 783, in get
    return cast(Project, super().get(id=id, lazy=lazy, **kwargs))
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/exceptions.py", line 336, in wrapped_f
    return f(*args, **kwargs)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/mixins.py", line 123, in get
    server_data = self.gitlab.http_get(path, **kwargs)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/client.py", line 828, in http_get
    result = self.http_request(
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/client.py", line 788, in http_request
    raise gitlab.exceptions.GitlabAuthenticationError(
gitlab.exceptions.GitlabAuthenticationError: 401: 401 Unauthorized

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/exceptions.py", line 336, in wrapped_f
    return f(*args, **kwargs)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/mixins.py", line 123, in get
    server_data = self.gitlab.http_get(path, **kwargs)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/client.py", line 828, in http_get
    result = self.http_request(
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/client.py", line 794, in http_request
    raise gitlab.exceptions.GitlabHttpError(
gitlab.exceptions.GitlabHttpError: 404: 404 Project Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/infrastructure/gitlab_api_provider.py", line 115, in _get_project
    project = gl.projects.get(f"{namespace}/{name}")
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/v4/objects/projects.py", line 783, in get
    return cast(Project, super().get(id=id, lazy=lazy, **kwargs))
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/exceptions.py", line 338, in wrapped_f
    raise error(e.error_message, e.response_code, e.response_body) from e
gitlab.exceptions.GitlabGetError: 404: 404 Project Not Found
Error:

Traceback (most recent call last):
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/infrastructure/gitlab_api_provider.py", line 110, in _get_project
    project = gl.projects.get(f"{namespace}/{name}")
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/v4/objects/projects.py", line 783, in get
    return cast(Project, super().get(id=id, lazy=lazy, **kwargs))
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/exceptions.py", line 336, in wrapped_f
    return f(*args, **kwargs)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/mixins.py", line 123, in get
    server_data = self.gitlab.http_get(path, **kwargs)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/client.py", line 828, in http_get
    result = self.http_request(
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/client.py", line 788, in http_request
    raise gitlab.exceptions.GitlabAuthenticationError(
gitlab.exceptions.GitlabAuthenticationError: 401: 401 Unauthorized

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/exceptions.py", line 336, in wrapped_f
    return f(*args, **kwargs)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/mixins.py", line 123, in get
    server_data = self.gitlab.http_get(path, **kwargs)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/client.py", line 828, in http_get
    result = self.http_request(
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/client.py", line 794, in http_request
    raise gitlab.exceptions.GitlabHttpError(
gitlab.exceptions.GitlabHttpError: 404: 404 Project Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/infrastructure/gitlab_api_provider.py", line 115, in _get_project
    project = gl.projects.get(f"{namespace}/{name}")
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/v4/objects/projects.py", line 783, in get
    return cast(Project, super().get(id=id, lazy=lazy, **kwargs))
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/gitlab/exceptions.py", line 338, in wrapped_f
    raise error(e.error_message, e.response_code, e.response_body) from e
gitlab.exceptions.GitlabGetError: 404: 404 Project Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/ui/cli/exception_handler.py", line 90, in main
    return super().main(*args, **kwargs)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/ui/cli/session.py", line 330, in start
    session_start_command().with_communicator(communicator).build().execute(
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/command/command_builder/command.py", line 265, in execute
    hook(self, context, result, *args, **kwargs)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/command/command_builder/command.py", line 201, in _post_hook
    raise result.error
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/command/command_builder/command.py", line 251, in execute
    output = self._operation(*args, **kwargs)  # type: ignore
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/pydantic/_internal/_validate_call.py", line 113, in __call__
    res = self.__pydantic_validator__.validate_python(pydantic_core.ArgsKwargs(args, kwargs))
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/core/session/session.py", line 216, in session_start
    provider_message, warning_message = provider_api.session_start(
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/core/session/renkulab.py", line 410, in session_start
    "cloudstorage": self.get_cloudstorage(),
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/core/session/renkulab.py", line 269, in get_cloudstorage
    project_id = storage_service.project_id
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/functools.py", line 981, in __get__
    val = self.func(instance)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/infrastructure/storage/storage_service.py", line 67, in project_id
    return self._gl.get_project_id(gitlab_url, namespace, name)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/infrastructure/gitlab_api_provider.py", line 101, in get_project_id
    project = self._get_project(gitlab_url, namespace, name)
  File "/home/qualm/miniconda3/envs/mlneurotox/lib/python3.10/site-packages/renku/infrastructure/gitlab_api_provider.py", line 122, in _get_project
    raise errors.ProjectNotFound from e
renku.core.errors.ProjectNotFound
@Panaetius Panaetius added kind/bug status/triage Issue needs to be triaged labels May 10, 2024
@Panaetius Panaetius self-assigned this May 10, 2024
@github-project-automation github-project-automation bot moved this to Backlog in renku-python May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug status/triage Issue needs to be triaged
Projects
Status: Backlog
Development

No branches or pull requests

1 participant