tutor icon indicating copy to clipboard operation
tutor copied to clipboard

404 on course page

Open alincalinciuc opened this issue 8 years ago • 11 comments

After adding the demo project if you try to go to the course page you get a 404 on http://edx.domain.com/courses/course-v1:edX+DemoX+Demo_Course/about .

alincalinciuc avatar Mar 05 '18 08:03 alincalinciuc

This is a duplicate of issue #7. Please check the corresponding fix: https://github.com/regisb/openedx-docker/issues/7#issuecomment-370256117

regisb avatar Mar 05 '18 08:03 regisb

Same thing happens with a brand new created course. I've also tried http://admin.edx.domain.com/maintenance/force_publish_course it but nothing changes.

alincalinciuc avatar Mar 06 '18 06:03 alincalinciuc

Hi! Thanks for taking the time to report this.

As per my previous recommendation, did you update the openedx-docker repo? The CMS was initially pointing to a different Mongodb collection than the LMS, making the courses created by the CMS unfindable by the LMS. You need to update the repo and then create a new course.

Did you log in to a user account in the LMS ? Anonymous users do not have the permission to view "about" pages of newly created courses.

regisb avatar Mar 06 '18 07:03 regisb

Hi Régis, I did all of that, I've rm -rf data/* , updated the repo with your last commit (189ea3e7dc9695f7287f85202f57746728b42f5c) and then make all . Same result, I always receive a 404 page, no matter if I create a new project or I import the demo one. I've tried the Force Publish functionality but with no success.

It seems to work if I add the user created on LMS as Staff on the project.

Some help would be really appreciated. Best regards, Alin

alincalinciuc avatar Mar 11 '18 18:03 alincalinciuc

  1. Can you confirm you were logged in with a staff account in the LMS?
  2. Did you try creating a course in the CMS? Can you then see its "about" page in the LMS?

regisb avatar Mar 11 '18 19:03 regisb

Hi @alincalinciuc, did you manage to solve this problem?

regisb avatar Mar 29 '18 06:03 regisb

Hi, I have the same issue. It works with staff user, but not with the unregistered user

dannielarriola avatar Apr 17 '18 03:04 dannielarriola

I found a solution here

dannielarriola avatar Apr 17 '18 21:04 dannielarriola

I am currently investigating this issue, but it's really difficult to diagnose. It seems the bug lies deep inside the modulestore, which is a thorny part of the codebase. @dannielarriola : I am pretty sure the solution you proposed (changing PREVIEW_LMS_BASE) does not work. @alincalinciuc : "It seems to work if I add the user created on LMS as Staff on the project." Can you explain what you did exactly?

regisb avatar Apr 19 '18 06:04 regisb

Hi @regisb Why you say that not work?. Maybe isn't the main problem but it's work perfectly. See this and this. The fist one does not work, and the second with de PREVIEW_LMS_BASE change works great. Sorry for my english

dannielarriola avatar Apr 19 '18 15:04 dannielarriola

@dannielarriola you were absolutely right! in the latest release I changed the default preview path to preview.LMS_BASE. Thanks a lot for the tip!

regisb avatar Apr 20 '18 07:04 regisb