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

Cannot export course on k8s in v16.0.3 #33

Closed
zameel7 opened this issue Feb 3, 2024 · 7 comments
Closed

Cannot export course on k8s in v16.0.3 #33

zameel7 opened this issue Feb 3, 2024 · 7 comments
Assignees

Comments

@zameel7
Copy link

zameel7 commented Feb 3, 2024

Tutor version: 16.1.8
Tutor-minio version: 16.0.3

After enabling the plugin, the course import and export shows error.

image

While checking the previous commits and releases, I saw the issue raised for S3 bucket related for dev. Hence I checked using the 16.0.2 version for the same tutor version and seems to solve the problem.

image

Is the version 16.0.2 the right version to be used for Palm?

@github-project-automation github-project-automation bot moved this to Pending Triage in Tutor project management Feb 3, 2024
@zameel7 zameel7 changed the title 16.0.3 showing issues in last final version of palm 16.0.3 showing issues in palm deployment Feb 3, 2024
@regisb
Copy link
Contributor

regisb commented Feb 5, 2024

Are you running tutor in dev or local mode? What are the error logs coming from the cms and cms-worker containers?

@zameel7
Copy link
Author

zameel7 commented Feb 5, 2024 via email

@regisb
Copy link
Contributor

regisb commented Feb 5, 2024

Can you be more specific?

@zameel7
Copy link
Author

zameel7 commented Feb 5, 2024

Can you be more specific?

Let me reproduce the issue and get some logs for you.

@zameel7
Copy link
Author

zameel7 commented Feb 6, 2024

[2024-02-06 02:05:15,867: ERROR/ForkPoolWorker-1] cms.djangoapps.contentstore.tasks.export_olx[aa43aece-5369-47a1-9f5e-9dad8678f162]: Error exporting course course-v1:blend_ed_staging+BL102D+2023_SEP
Traceback (most recent call last):
  File "/openedx/edx-platform/cms/djangoapps/contentstore/tasks.py", line 329, in export_olx
    artifact.file.save(name=os.path.basename(tarball.name), content=File(tarball))
  File "/openedx/venv/lib/python3.8/site-packages/django/db/models/fields/files.py", line 89, in save
    self.name = self.storage.save(name, content, max_length=self.field.max_length)
  File "/openedx/venv/lib/python3.8/site-packages/django/core/files/storage.py", line 54, in save
    name = self._save(name, content)
  File "/openedx/venv/lib/python3.8/site-packages/storages/backends/s3boto.py", line 425, in _save
    key = self.bucket.get_key(encoded_name)
  File "/openedx/venv/lib/python3.8/site-packages/boto/s3/bucket.py", line 193, in get_key
    key, resp = self._get_key_internal(key_name, headers, query_args_l)
  File "/openedx/venv/lib/python3.8/site-packages/boto/s3/bucket.py", line 230, in _get_key_internal
    raise self.connection.provider.storage_response_error(
boto.exception.S3ResponseError: S3ResponseError: 403 Forbidden

[2024-02-06 02:05:15,990: INFO/MainProcess] Task cms.djangoapps.cms_user_tasks.tasks.send_task_complete_email[157e845d-f670-4de3-aefe-973a517807eb] received

@regisb , this is the logs I get in cms-worker

edx-platform tag: open-release/palm.4

@regisb regisb changed the title 16.0.3 showing issues in palm deployment Cannot export course on k8s in v16.0.3 Feb 6, 2024
@DawoudSheraz DawoudSheraz moved this from Pending Triage to Backlog in Tutor project management Feb 13, 2024
@regisb
Copy link
Contributor

regisb commented Feb 13, 2024

I really do not understand why the change you propose in #34 can address this issue. There is a reason why the MinIOStorage was removed, and you can't ignore that reason to put it back in. You need to figure out why there is a 403 error and address that using the default S3Boto3Storage backend.

@FahadKhalid210 FahadKhalid210 self-assigned this Feb 21, 2024
@FahadKhalid210 FahadKhalid210 moved this from Backlog to In Progress in Tutor project management Feb 23, 2024
@FahadKhalid210
Copy link
Contributor

@zameel7 closing this issue as it's fixed now and new release(v16.0.4) is published.

@github-project-automation github-project-automation bot moved this from In Progress to Done in Tutor project management Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants