I am still using the Maple version and v13.3.1 of Tutor since we cannot make significant changes currently.
Therefore, I have built the images locally using my fork of maple.3 tag using the --build-arg argument.
I have also changed the MySQL image to MariaDB as suggested.
I can run tutor local quickstart without a problem, however, once I try to open local.overhang.io it shows Internal Server Error and the logs for lms and cms show the following problem.
Model class openedx.core.djangoapps.content_libraries.models.ContentLibrary doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
ERROR: 1
I don’t think the problem is related to M1/ARM nor to MariaDB; it seems like a python/django installation or configuration issue.
content_libraries is a Django app plugin, so this line in setup.py should result in it being “auto-detected” by the system, and automatically added to INSTALLED_APPS. Yet for some reason it’s not in INSTALLED_APPS. Is there more context to the logs so we can see at what point the error is occurring?
I would guess at some possibilities:
Perhaps edx-platform is not installed correctly into the python virtual environment. From an LMS shell, in the edx-platform directory, you can try running pip install -e . and then ./manage.py lms shell to see if that resolves it.
Perhaps something is modifying INSTALLED_APPS and removing content_libraries. I am not sure what that would be.
I think the system should also generally work with content_libraries uninstalled, so I’m wondering what code is referencing the content_libraries app even though it appears to be uninstalled. Perhaps the full error message may provide more clues.
For anyone who meets this issue, the problem was simpler than that.
I bind volume a clean fork of our edx-platform to the containers instead of exporting the fork from the image, and working on the exported version of the fork.
This meant that none of the commands to build the assets, install the openedx app etc actually run on the edx-platform directory.
@tiendv89 There might be many reasons for your problem. Additionally, I am running v13.3.1 which is not the latest version and things might have changed since.
Please create a new topic with the following information:
Version of Tutor and Open edX you are trying to run
What you have done to make Tutor work on M1, in addition to the steps you have shared.
I have been successfully used tutor local and tutor k8s.
I am trying to learn how to set up openedx develop environment and decide to go with tutor dev.
By runnning tutor dev start -d --mount=/path/to/edx-platform lms I met the issue: Model class openedx.core.djangoapps.content_libraries.models.ContentLibrary doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.
And yes, I use a clean fork of the edx-platform and mount it to lms container.
From what I understand about your solution, I am trying to use copyfrom to copy the edx-platform on the running lms to my host machine and mount it back (however it still take long time to copy and haven’t worked out yet)