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

InsufficientStorage error raised after running a full sync with KDP #10732

Closed
LianaHarris360 opened this issue May 22, 2023 · 1 comment · Fixed by #11083
Closed

InsufficientStorage error raised after running a full sync with KDP #10732

LianaHarris360 opened this issue May 22, 2023 · 1 comment · Fixed by #11083
Assignees
Labels
DEV: backend Python, databases, networking, filesystem... P0 - critical Priority: Release blocker or regression

Comments

@LianaHarris360
Copy link
Member

LianaHarris360 commented May 22, 2023

Observed behavior

After running a full sync with KDP, the InsufficientStorage error was raised from the function _process_content_requests. The message Content download requests need 0B of free space was received which suggests that the user does not have enough storage, despite free_space being 15061171584

Possibly caused by this while statement or download_request assignment within content_request.py

Relevant:

  • It was the first time this facility had synced to KDP
  • Registration was skipped
  • Lessons and quizzes were in the local facility data (the lessons & quizzes were created, and the resources used were then deleted from the device)

Errors and logs

[python-devserver] DEBUG    2023-05-21 17:07:53,388 Did not find suitable download request for free space 15061171584
[python-devserver] WARNING  2023-05-21 17:07:53,392 Content download requests need 0B of free space
[python-devserver] ERROR    2023-05-21 17:07:53,393 Job ca69893aff45483e8bc769daf078c825 raised an exception: Traceback (most recent call last):
[python-devserver]   File "/home/richard/github/kolibri/kolibri/core/content/utils/content_request.py", line 266, in process_content_requests
[python-devserver]     _process_content_requests(incomplete_downloads)
[python-devserver]   File "/home/richard/github/kolibri/kolibri/core/content/utils/content_request.py", line 445, in _process_content_requests
[python-devserver]     raise InsufficientStorage(
[python-devserver] kolibri.core.content.utils.content_request.InsufficientStorage: Content download requests need 0B of free space

Expected behavior

If there is enough free space, the download_request should be able to be processed.

User-facing consequences

User devices unable to process download requests despite having enough space to do so.

@LianaHarris360 LianaHarris360 added P0 - critical Priority: Release blocker or regression DEV: backend Python, databases, networking, filesystem... labels May 22, 2023
@bjester
Copy link
Member

bjester commented Aug 9, 2023

I believe I fixed this in this PR #11083. There were several issues with the annotation queries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEV: backend Python, databases, networking, filesystem... P0 - critical Priority: Release blocker or regression
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants