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

tlo batch-list errors for new user #1405

Open
tamuri opened this issue Jun 27, 2024 · 0 comments
Open

tlo batch-list errors for new user #1405

tamuri opened this issue Jun 27, 2024 · 0 comments
Assignees
Labels
azure-batch bug Something isn't working

Comments

@tamuri
Copy link
Collaborator

tamuri commented Jun 27, 2024

When a job is submitted to batch, a user folder is created on the filestore to store results of their runs. The subfolders in that directory are used to filter the jobs when using batch-list. A new user won't have that folder because they've never submitted a job.

Querying Batch...
Traceback (most recent call last):
  File "/opt/anaconda3/envs/tlo/bin/tlo", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/rem76/PycharmProjects/TLOmodel/src/tlo/cli.py", line 415, in batch_list
    directories = list(share_client.list_directories_and_files(f"{username}/"))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/azure/core/paging.py", line 123, in __next__
    return next(self._page_iterator)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/azure/core/paging.py", line 75, in __next__
    self._response = self._get_next(self.continuation_token)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/azure/storage/fileshare/_models.py", line 657, in _get_next_cb
    process_storage_error(error)
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/azure/storage/fileshare/_shared/response_handlers.py", line 184, in process_storage_error
    exec("raise error from None")   # pylint: disable=exec-used # nosec
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 1, in <module>
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/azure/storage/fileshare/_models.py", line 650, in _get_next_cb
    return self._command(
           ^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/azure/core/tracing/decorator.py", line 78, in wrapper_use_tracer
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/azure/storage/fileshare/_generated/operations/_directory_operations.py", line 1156, in list_files_and_directories_segment
    map_error(status_code=response.status_code, response=response, error_map=error_map)
  File "/opt/anaconda3/envs/tlo/lib/python3.11/site-packages/azure/core/exceptions.py", line 165, in map_error
    raise error
azure.core.exceptions.ResourceNotFoundError: The specified resource does not exist.
RequestId:a8af9780-f01a-0000-066b-c8bcfd000000
Time:2024-06-27T08:22:03.9177242Z
ErrorCode:ResourceNotFound
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>ResourceNotFound</Code><Message>The specified resource does not exist.
RequestId:a8af9780-f01a-0000-066b-c8bcfd000000
Time:2024-06-27T08:22:03.9177242Z</Message></Error>
@tamuri tamuri added bug Something isn't working azure-batch labels Jun 27, 2024
@tamuri tamuri self-assigned this Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-batch bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant