Course not going public?

112 views
Skip to first unread message

Samuel Marks

unread,
Jun 6, 2017, 1:05:52 AM6/6/17
to General Open edX discussion
My course isn't public for some reason. Ficus deployment. In https://<cms>/settings/advanced/course-v1:<course_id> 'Invitation Only' is set to `false`, and I set the course start date and enrollment start date in https://<cms>/settings/details/course-v1:<course_id> to yesterday.

It doesn't show in the course list, and opening the absolute https://<lms>/courses/course-<course_id>/about link gives a "Page not found" message (with a 404 HTTP status code). That same link works when I'm logged in as a super user.

(if it makes a difference, I've turned off email activation by setting SKIP_EMAIL_VALIDATION in the FEATURES key of /edx/app/edxapp/lms.env.json and /edx/app/edxapp/cms.env.json)

How do I make it public?

Thanks

Robert Raposa

unread,
Jun 17, 2017, 10:01:53 AM6/17/17
to edx-...@googlegroups.com
Hello Samuel.

Did you figure this out? Have you published the content?

Here is a checklist of activities:

Good luck.

Robert
--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/028619e9-5c25-4c00-a6c2-84f3e650e071%40googlegroups.com.

Samuel Marks

unread,
Jun 18, 2017, 4:19:00 AM6/18/17
to edx-...@googlegroups.com
Hi Robert,

Yeah, solved it. - Traced it down to:
def in_preview_mode():
    """
    Returns whether the user is in preview mode or not.
    """
    hostname = get_current_request_hostname()
    preview_lms_base = settings.FEATURES.get('PREVIEW_LMS_BASE', None)
    return bool(preview_lms_base and hostname and hostname.split(':')[0] == preview_lms_base.split(':')[0])

Turns out my PREVIEW_LMS_BASE was set with the same value as my LMS_BASE.

--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/A3DFCFC1-F017-4E8A-9CAC-544936E1A749%40edx.org.

Robert Raposa

unread,
Jun 19, 2017, 12:12:54 PM6/19/17
to edx-...@googlegroups.com
Great.  Thanks.




--

Robert Raposa

edX | Software Architect  | rra...@edx.org  

141 Portland Street, 9th floor

Cambridge, MA 02139

http://www.edx.org

http://www.e-learn.nl/media/blogs/e-learn/edX_Logo_Col_RGB_FINAL.jpg?mtime=1336074566

Sivakumar

unread,
Jun 26, 2017, 5:29:34 AM6/26/17
to General Open edX discussion
Had the same issue in my Eucalyptus deployment, your solution helped me resolve it. But right now, as a student, I am not able to add a new post in the discussion forum for some reason. "Add a Post" is not visible for students, whereas it is visible for staff.

How do I make it available for students?

Thanks.

Samuel Marks

unread,
Jun 26, 2017, 5:33:30 AM6/26/17
to edx-...@googlegroups.com
We really need a configuration file validator. Maybe we can use marshmallow—with some multikey validation steps—and thus centralise all schema validation.

JSON-schema is also an option, although I think certain rules need more complicated logic then JSON-schema facilitates out-of-the-box.

Not having serious validation is a real annoyance to developers and ops who are unfamiliar with the openedx codebase IMHO :\
This e-mail (and any attachments), is confidential and may be privileged. It may be read, copied and used only by the intended recipients. Unauthorised access to this e-mail (or attachments) and disclosure or copying of its contents or any action taken in reliance on it is unlawful. Unintended recipients must notify the sender immediately by e-mail or phone and delete it from their system without making any copies or disclosing it to a third person. TeachEdison Solutions Private Limited reserves the right to store, monitor and review the content of all messages sent to or from this email address.

--
You received this message because you are subscribed to a topic in the Google Groups "General Open edX discussion" group.
Reply all
Reply to author
Forward
0 new messages