openedx / openedx/openedx-platform

cache_programs no longer works when ran from within lms container

Open
#36,525 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.2k
Forks
4.4k
Avg merge
6d 18h
Merged PRs (30d)
42

Description

On Quince (17.0.0).

As per all documentations, the command to cache programs is:

  • tutor local run lms ./manage.py lms cache_programs

but this recently started giving:

RuntimeError: Model class openedx.core.djangoapps.content_staging.models.StagedContent doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

The solution is to simply run inside cms container instead:

tutor local run cms ./manage.py lms cache_programs

I am writing this here to notify others of this to not waste as much time as I did. I'm happy if someone formats this issue better and puts it exactly where it should be (correct repo, forum, whatever.).

The documentation needs to be updated.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the documentation for the tutor local run lms ./manage.py lms cache_programs command and compare it with the reported working cms container command. Update the relevant documentation to use the working command, then verify that the command example and explanation are consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.