IRONWOOD Release, issues in redirection

I have installed OpenEdx in our AWS server today and have started playing around this awesome tool. But while playing around this Vanilainstallation, it is found that some of the links are still going to localhost. Is this expected (in my previous installation some links were going to an unknown server)?

@sankallada, can you share examples of what those links are and where they can be seen? Often, the defaults for various services are set to a localhost URL in the edx/configuration repository and unless they are overridden those default values get deployed.

1 Like

@guruprasad

Here are some examples of links which are redirected to localhost

1**.Trying to logout from studio**,it will redirected to http://edx.devstack.lms:18000/logout
2.sign up in studio
http://localhost:18000/register?next=http%3A%2F%2F13.127.11.217%3A18010%2F
3.sign in studio
http://localhost:18000/login?next=http%3A%2F%2F13.127.11.217%3A18010%2Fdio -
4.can’t able to access discussion forum
ConnectionError at /courses/course-v1:Kefi+PTC100+2020/discussion/forum/
HTTPConnectionPool(host=‘edx.devstack.forum’, port=4567): Max retries exceeded with url: /api/v1/users/2?complete=True&request_id=ef7582ba-e580-4836-bd05-f8446f619d26 (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f2a022568d0>: Failed to establish a new connection: [Errno -2] Name or service not known’,))
5.while clicking view live button in studio
http://localhost:18000/courses/course-v1:edX+DemoX+Demo_Course/jump_to/block-v1:edX+DemoX+Demo_Course+type@course+block@course

1 Like

@guruprasad Thank you for the reply, please note that @Devi_Sithar is my colleague.
Today I got advice from another community to change the localhost references in “lms.env.json & cms.env.json”. But I’m seeing a lot of references to localhost in these files. What exactly do I need to change?

From the references to edx.devstack.lms, it looks like you’re using the devstack, which is useful for local development and will contain many references to localhost. I don’t know whether it’s easy to change them to use other different domain.
Modifying lms.env.json / cms.env.json can help, or maybe modifying the Site object in /admin/sites/site/. Replacing all occurrences would work.

But for production server, you usually use a native installation, and you can set the right domain names through ansible variables.

Thanks @clemente for the detailed notes. This will save us a lot of time. Also, can you please point us some documentation on the EdX configuration files. I accept that most of the variable names are self-explanatory, but we feel that any documentation on this can help us a lot.

@sankallada There are many variables you can toggle in the configuration repository (example) but you don’t need to change them, except for 1 or 2 to choose your domain name.
The recommend native installation instructions just use EDXAPP_LMS_BASE and EDXAPP_CMS_BASE as configuration variables to specify the domain name.

1 Like