Issues with redirecting LMS and CMS

122 views
Skip to first unread message

ANDRIANASOLO Tiavina

unread,
Jan 22, 2018, 8:36:36 AM1/22/18
to Open edX operations
Hello everybody

I installed an instance of edX (ginkgo) on a server and configured nginx to redirect:
LMS to edx-dev.univ.run
and
CMS to studio.edx-dev.univ.run
But the two adress redirect me to the LMS

Any hints please?

these are configuration file for nginx from
/etc/nginx/site_enabled


Mahyar Damavand

unread,
Jan 22, 2018, 8:59:15 AM1/22/18
to opene...@googlegroups.com
Hello
In cms configuration change Listen 18010;  <--- to ---> Listen 80;
good luck


--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/c0ac17a6-8412-4e96-9ab0-906f3b7df4a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ANDRIANASOLO Tiavina

unread,
Jan 23, 2018, 12:32:39 AM1/23/18
to Open edX operations
Hello
Thank you for your help Mahyar Damavand
I change the configuration and now the url studio.edx-dev.univ.run give me a server error

I checked the error.log for nginx:













May I check another log? Perphaps the bug is not only from nginx
I checked edx.log for cms but there was no new log

Mahyar Damavand

unread,
Jan 23, 2018, 3:07:05 AM1/23/18
to opene...@googlegroups.com
please run this command and give us the result.
/edx/bin/supervisorctl status

if you want to check edx error logs this will help you
sudo tail -f /edx/var/log/{lms,cms,supervisor}/*log


--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.

ANDRIANASOLO Tiavina

unread,
Jan 23, 2018, 5:33:17 AM1/23/18
to opene...@googlegroups.com
It seems that this FATAL with certs occured when I made the change in the cms configuration



2018-01-23 12:06 GMT+04:00 Mahyar Damavand <mahyar....@gmail.com>:
please run this command and give us the result.
/edx/bin/supervisorctl status

if you want to check edx error logs this will help you
sudo tail -f /edx/var/log/{lms,cms,supervisor}/*log


On Tue, Jan 23, 2018 at 9:02 AM ANDRIANASOLO Tiavina <adsl.t...@gmail.com> wrote:
Hello
Thank you for your help Mahyar Damavand
I change the configuration and now the url studio.edx-dev.univ.run give me a server error

I checked the error.log for nginx:













May I check another log? Perphaps the bug is not only from nginx
I checked edx.log for cms but there was no new log

Le lundi 22 janvier 2018 17:59:15 UTC+4, Mahyar Damavand a écrit :
Hello
In cms configuration change Listen 18010;  <--- to ---> Listen 80;
good luck

--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Open edX operations" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openedx-ops/9Zqeo8yLPi0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openedx-ops+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/CABCzmJK%3DrzOHF_SPRhO9AnEwPvvpn6ri2VWSNu00pdv3sfp5_w%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Tiavina M. ANDRIANASOLO
Master 2 Informatique
Université de la Réunion
+262 6 93 00 10 67

Mahyar Damavand

unread,
Jan 23, 2018, 5:58:59 AM1/23/18
to opene...@googlegroups.com
so it means that certs service is not stable and go down quickly.
Now check the logs as I said earlier and see what error cause this


On Tue, Jan 23, 2018 at 2:03 PM ANDRIANASOLO Tiavina <adsl.t...@gmail.com> wrote:
It seems that this FATAL with certs occured when I made the change in the cms configuration



2018-01-23 12:06 GMT+04:00 Mahyar Damavand <mahyar....@gmail.com>:
please run this command and give us the result.
/edx/bin/supervisorctl status

if you want to check edx error logs this will help you
sudo tail -f /edx/var/log/{lms,cms,supervisor}/*log


On Tue, Jan 23, 2018 at 9:02 AM ANDRIANASOLO Tiavina <adsl.t...@gmail.com> wrote:
Hello
Thank you for your help Mahyar Damavand
I change the configuration and now the url studio.edx-dev.univ.run give me a server error

I checked the error.log for nginx:













May I check another log? Perphaps the bug is not only from nginx
I checked edx.log for cms but there was no new log

Le lundi 22 janvier 2018 17:59:15 UTC+4, Mahyar Damavand a écrit :
Hello
In cms configuration change Listen 18010;  <--- to ---> Listen 80;
good luck

--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Open edX operations" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openedx-ops/9Zqeo8yLPi0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openedx-ops...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Tiavina M. ANDRIANASOLO
Master 2 Informatique
Université de la Réunion
+262 6 93 00 10 67

--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/CAL9qx-77V14-xASs5FoM9vweer7SwjZV31PEcH1GzJ6iEZWUog%40mail.gmail.com.

ANDRIANASOLO Tiavina

unread,
Jan 23, 2018, 7:20:51 AM1/23/18
to Open edX operations
It was an issues with celery, it was fixed
This instance is a clone of an another instance and the problem came from that
It seems that it was not linked with the CMS problem which is not accessible yet

ANDRIANASOLO Tiavina

unread,
Jan 24, 2018, 12:33:46 AM1/24/18
to Open edX operations
I get this error in the nginx error log:
2018/01/24 06:22:07 [error] 30707#30707: *12 connect() failed (111: Connection refused) while connecting to upstream, client: 10.75.2.95, server: studio.*, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:18010/", host: "studio.edx-dev.univ.run"
2018/01/24 06:32:30 [error] 5090#5090: *79 connect() failed (111: Connection refused) while connecting to upstream, client: 10.75.2.95, server: studio.edx-dev.univ.run, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:18010/", host: "studio.edx-dev.univ.run"

What can I do about it?

ANDRIANASOLO Tiavina

unread,
Jan 24, 2018, 1:58:45 AM1/24/18
to Open edX operations
Finally it was fixed
the error come from the upstream backend

it should be 
upstream cms-backend {
                       server 127.0.0.1:8010 fail_timeout=0;
}
and mine was 18010

Thanks for your assistance

Mahyar Damavand

unread,
Jan 24, 2018, 3:45:38 AM1/24/18
to opene...@googlegroups.com
That's right
the default port is 8010 and I cannot tell you how it can be changed
No problem
have a good day



--
You received this message because you are subscribed to the Google Groups "Open edX operations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openedx-ops...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages