Hello Open edX Community,
I am setting up a development environment using Tutor version 19.0.2, following the official documentation at https://docs.tutor.edly.io/, specifically the section on “Running open edX in development”. I have tested this issue with both the open-release/sumac.master and open-release/sumac.2, branches/tag of the Open edX platform.
I installed Tutor in a Python virtual environment(python -m venv tutor-venv). I have successfully started the environment, and I can access the LMS at http://local.openedx.io:8000 and the CMS at http://studio.local.openedx.io:8001. Both sites load successfully.
Importantly, I am able to register a new user successfully via the LMS interface. I was also able to create staff and superuser accounts using the tutor dev do createuser ...
command. I can log in successfully as both regular registered users and the admin/staff users.
The Issue:
My problem is when I attempt to use the “Sign Up” button located on the CMS login page . Clicking this button redirects my browser to http://localhost:18000. This URL then displays an error ‘Unable to connect’ message, preventing users from signing up via the link provided on the CMS.
Contextual Observation:
I looked into the edx-platform codebase and noted that in the cms/envs/common.py file, the variables LMS_BASE and LMS_ROOT_URL are defined as localhost:18000. While I understand these variables are used internally by the CMS to refer to the LMS( and please correct me if this understanding is incorrect,), it seems like the “Sign Up” link on the CMS login page is incorrectly using this internal localhost:18000 value for the external redirect, instead of the actual, accessible LMS URL.
Steps Taken:
- Followed Tutor documentation for development setup via virtual environment(tutor version 19.0.2).
- Used Tutor to set up an Open edX development environment, testing with open-release/sumac.master and open-release/sumac.2
- Launch the development environment (e.g., using tutor dev launch).
- Accessed the CMS url.
- Clicked the “Sign Up” button on the CMS login page.
Observed Behavior:
The browser redirects to http://localhost:18000, which shows an error ‘Unable to connect’.
Expected Behavior:
I expected to be redirected to the user registration page on the LMS at :8000/register to create a new account.
Request for Help:
Has anyone encountered this specific redirect issue with Tutor 19.0.2 and the Sumac release where the CMS signup link points to localhost:18000 instead of the configured LMS URL (of port :8000)? Given that LMS registration and user logins otherwise work, it seems specific to this CMS-initiated signup redirect. Is there a configuration setting within Tutor or Open edX that controls this specific redirect URL for the CMS signup button that I might need to adjust, particularly in a development context using these versions? Or is this a known behavior/issue? Any guidance on how to fix this redirect would be greatly appreciated.
Thanks in advance for any guidance or assistance!