AWS Cloudformation domain issue

  1. Trying to Deploy AWS Cloudformation 2.13.0 using the link https://docs.openvidu.io/en/2.13.0/deployment/deploying-aws/
  2. Disabled rollback
  3. Supplied custom domain openvidu.invol.in and chose letsencrypt
  4. The DNS provider for the domain is Cloudflare
  5. On visiting openvidu.invol.in I get ERR_TOO_MANY_REDIRECTS
  6. OpenViduCallURLLE & OpenViduServerURL are the same openvidu.invol.in
  7. When I SSH into the server, I can see the letsencrypt certificates for the domain
  8. AWS Public DNS path for the instance does work and opens up the application url on non-HTTPS ec2-3-7-154-24.ap-south-1.compute.amazonaws.com
  9. Although, joining room gives the error “Http failure response for openvidu.invol.in/api/sessions: 0 Unknown Error”

Questions

  1. How do I make it work on the domain?
  2. How do I access http(s) access and error logs?
  3. How do I access OpenVidu server logs?
  4. How do I start, stop, restart OpenVidu?

Hi Mohsin_M,

I’ll answer your questions. First your need connect by ssh in your Openvidu server instance.
When you are on a terminal of the instance, change to root user for this propuse use the following command:

sudo su

The installation of Openvidu is in the /opt/openvidu folder. Change to this folder with the command:

cd /opt/openvidu

For access to openvidu logs use the command:

./openvidu logs

For start, stop and restart openvidu you can use:

./openvidu start
./openvidu stop
./openvidu restart

For show the http(s) logs use the command:

docker-compose logs nginx

All configuration for the Openvidu are in the .env file with the necessaries explications. In order to help you, you must provide me the http(s) logs and tell me what you have in the OPENVIDU_DOMAIN_OR_PUBLIC_IP, CERTIFICATE_TYPE and LETSENCRYPT_EMAIL variables of the .env file.

I apologies you for the problems.

Regards

Thanks for the prompt response.

.env file entries are:

OPENVIDU_DOMAIN_OR_PUBLIC_IP=openvidu.invol.in
CERTIFICATE_TYPE=letsencrypt
LETSENCRYPT_EMAIL=mohsin@ideanub.com

nginx log : https://pastebin.com/upUTP78A

Hi,

Thank you for the information, the proxy settings seem to be correct. I think it’s a Cloudflare dns server thing. You could try changing what it says on their troubleshooting page:

2. Update the Cloudflare SSL option in the SSL/TLS app Overview tab:

If currently set to Flexible, update to Full if you have an SSL certificate configured at your origin web server.
(Not Recommended) If currently set to Full, update to Flexible.

You can see all the information here https://support.cloudflare.com/hc/en-us/articles/115000219871-Troubleshooting-redirect-loop-errors

Regards

It was set to off. Changing it to full did the trick.

Thanks a lot.