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

Error after importing sample course #256

Closed
adrian-marcelo-gallardo opened this issue Oct 8, 2019 · 3 comments
Closed

Error after importing sample course #256

adrian-marcelo-gallardo opened this issue Oct 8, 2019 · 3 comments

Comments

@adrian-marcelo-gallardo
Copy link

Bug description

I've followed the steps to import the demo-course through the CMS (following the steps enumerated here: https://github.com/edx/edx-demo-course)

The course is created and I can see it in the LMS, but the CMS crashes when I enter to edit the course (I'm running the dev CMS version):

Screen Shot 2019-10-08 at 10 57 50 AM

How to reproduce

Download the gzip course from here: https://github.com/edx/edx-demo-course
Run CMS using tutor dev runserver cms
Open the CMS, go to import, and select the gzip course to start importing
The import utility fail before finishing, but the course is still created and accessible from the LMS.
If you want to enter to edit the course, the error shown above is displayed.

Environment

MacOS High Sierra

Additional context

Not sure if tutor local importdemocourse fixes this issue; the problem is I can't use it because it doesn't work for the development CMS server.

@regisb
Copy link
Contributor

regisb commented Oct 8, 2019

Hi @adrian-marcelo-gallardo! I see that the README recommends that the 1.0 gzipped tarball be downloaded (https://github.com/edx/edx-demo-course/releases/download/1.0/edx_demo_course_1_0.tar.gz), but this release is 6 year old. Did you try downloading the ironwood.2 release? https://github.com/edx/edx-demo-course/archive/open-release/ironwood.2.tar.gz

Also, did you know there is a tutor local importdemocourse command in tutor?

@adrian-marcelo-gallardo
Copy link
Author

Hello @regisb, thanks for the quick reply!

You were right, using the version on the home README didn't work, but the last version you shared in your comment worked great! Thanks for helping me with this issue 👏 👏 👏

On a side note, I was not able to run tutor local importdemocourse. I believe it is because I'm running the CMS locally with tutor dev runserver cms, and when I run importdemocourse it is complaining cms_1 container doesn't exists.

regisb added a commit to regisb/edx-demo-course that referenced this issue Oct 9, 2019
Previous version pointed to v1.0, which dates back from 2013. This
misleads users who try to install the old version in newer open edx
install. See for instance: overhangio/tutor#256
@regisb
Copy link
Contributor

regisb commented Oct 9, 2019

You were right, using the version on the home README didn't work, but the last version you shared in your comment worked great! Thanks for helping me with this issue

Awesome! For the record, I opened a pull request to solve this issue upstream: You were right, using the version on the home README didn't work, but the last version you shared in your comment worked great! Thanks for helping me with this issue

On a side note, I was not able to run tutor local importdemocourse. I believe it is because I'm running the CMS locally with tutor dev runserver cms, and when I run importdemocourse it is complaining cms_1 container doesn't exists.

That's right. In order to import the demo course, you should actually run:

tutor local quickstart
tutor local importdemocourse

@regisb regisb closed this as completed Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants