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

Deletion of resources fail with ERROR:root:list index out of range #3564

Closed
marrobi opened this issue Jun 12, 2023 · 0 comments · Fixed by #3567
Closed

Deletion of resources fail with ERROR:root:list index out of range #3564

marrobi opened this issue Jun 12, 2023 · 0 comments · Fixed by #3567
Assignees
Labels
bug Something isn't working

Comments

@marrobi
Copy link
Member

marrobi commented Jun 12, 2023

This has been reported a number of times this past week, and occurs when deleting a resource, possibly when in a failed state.

2023-06-12T19:48:56.995524815Z ERROR:root:list index out of range
2023-06-12T19:48:56.995597816Z Traceback (most recent call last):
2023-06-12T19:48:56.995606916Z File "/usr/local/lib/python3.8/site-packages/anyio/streams/memory.py", line 94, in receive
2023-06-12T19:48:56.995612416Z return self.receive_nowait()
2023-06-12T19:48:56.995616616Z File "/usr/local/lib/python3.8/site-packages/anyio/streams/memory.py", line 89, in receive_nowait
2023-06-12T19:48:56.995620817Z raise WouldBlock
2023-06-12T19:48:56.995624817Z anyio.WouldBlock

also

2023-06-13T07:43:35.111515699Z ERROR:root:Failed to send workspace resource delete message
2023-06-13T07:43:35.111665102Z Traceback (most recent call last):
2023-06-13T07:43:35.111678602Z File "/api/api/routes/resource_helpers.py", line 180, in send_uninstall_message
2023-06-13T07:43:35.111683502Z operation = await send_resource_request_message(
2023-06-13T07:43:35.111688102Z File "/api/service_bus/resource_request_sender.py", line 44, in send_resource_request_message
2023-06-13T07:43:35.111692402Z first_step = operation.steps[0]
2023-06-13T07:43:35.111696502Z IndexError: list index out of range
2023-06-13T07:43:35.112036209Z ERROR:root:Failed to send workspace resource delete message
2023-06-13T07:43:35.112060910Z Exception message: 'list index out of range'

2023-06-13T07:43:40.052936938Z INFO:root:Got a session containing messages: f49286ed-591d-4eae-8c54-cc1156ae88de
2023-06-13T07:43:40.105665076Z INFO:root:Received and parsed JSON for: d5503b06-c022-4e96-b4a8-93e4f0654c9a
2023-06-13T07:43:40.195683750Z INFO:root:Update status in DB for f49286ed-591d-4eae-8c54-cc1156ae88de - deleting_failed

2023-06-13T07:43:42.053870960Z INFO:root:Closing session: f49286ed-591d-4eae-8c54-cc1156ae88de
2023-06-13T07:43:43.054007072Z INFO:root:Looking for new session...

Also sometimes get:

{
  "status_code": 503,
  "body": "Service bus failure"
}

returned.

I believe this is caused by this call:

first_step = operation.steps[0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant