Skip to content

failed to delete syncing temporal file #3855

Closed

Description

@beastoin

return self._connection.api_request(
Traceback (most recent call last): File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner self.run() File "/usr/local/lib/python3.11/threading.py", line 982, in run self._target(*self._args, **self._kwargs) File "/app/routers/sync.py", line 316, in delete_file self.run() File "/usr/local/lib/python3.11/threading.py", line 982, in run self._target(*self._args, **self._kwargs) File "/app/routers/sync.py", line 316, in delete_file delete_syncing_temporal_file(path) File "/app/utils/other/storage.py", line 235, in delete_syncing_temporal_file delete_syncing_temporal_file(path) File "/app/utils/other/storage.py", line 235, in delete_syncing_temporal_file blob.delete() File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/google/cloud/storage/blob.py", line 805, in delete self.bucket.delete_blob( File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner blob.delete() File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/google/cloud/storage/blob.py", line 805, in delete return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/google/cloud/storage/bucket.py", line 1705, in delete_blob self.bucket.delete_blob( File "/usr/local/lib/python3.11/contextlib.py", line 81, in inner return func(*args, **kwds) ^^^^^^^^^^^^^^^^^^^ File "/opt/venv/lib/python3.11/site-packages/google/cloud/storage/bucket.py", line 1705, in delete_blob client._delete_resource( File "/opt/venv/lib/python3.11/site-packages/google/cloud/storage/client.py", line 782, in _delete_resource return self._connection.api_request(

Activity

  1. added theissue type on Dec 22, 2025
  2. beastoin commented on Dec 22, 2025

    @beastoin
    CollaboratorAuthor

    @khangkontum, can you help?

  3. added
    backend
    on Dec 22, 2025
  4. romamo commented on Dec 22, 2025

    @romamo

    I can do that

  5. khangkontum commented on Dec 22, 2025

    @khangkontum
    Contributor

    Do we have the reason for the trace here?
    The only raise error I can find is google.cloud.exceptions.NotFound
    If that's the case, then perhaps this could resolve it?. Can you take a look @beastoin
    #3860

  6. beastoin commented on Dec 22, 2025

    @beastoin
    CollaboratorAuthor

    What do you think the cause is?

  7. romamo commented on Dec 22, 2025

    @romamo

    What do you think the cause is?

    1. Duplicate call due to network issues
      @router.post("/v1/sync-local-files")
    2. Multiple files uploaded with the same filename will cause overwriting the old one
      path = f"{directory}{filename}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions