CloudFormation Stack creation fails - Lets Encrypt SSL

Hi,

I am trying to deploy openVidu on AWS, on CloudFormation.

I associated an ElasticIP to my domain (via DNS A record)

The deployment always fails at a Wait Condition step

I.
CloudFormation Configuration parameters

openVidu-letsencrypt-synergisertechnologies

**Template**
Template URL
https://s3-eu-west-1.amazonaws.com/aws.openvidu.io/CF-OpenVidu-latest.yaml
Stack description
Deploying OpenVidu Server over AWS

**Parameters**(22)
Key
Value
FreeHTTPAccesToRecordingVideos	false
InstanceType	t2.xlarge
KeyName	openvidu-key-3
LetsEncryptEmail	d*******@gmail.com
MyDomainName	synergisertechnologies.com
OpenViduSecret	*********
OpenViduVersion	2.11.0
OpenViduWebhook	true
OpenViduWebhookEndpoint	http://my.endpoint.com
OpenViduWebhookEvents	sessionCreated,sessionDestroyed,participantJoined,participantLeft,webrtcConnectionCreated,webrtcConnectionDestroyed,recordingStatusChanged
OpenViduWebhookHeaders	-
OpenviduRecordingNotification	publisher_moderator
OpenviduStreamsVideoMaxRecvBandwidth	1000
OpenviduStreamsVideoMaxSendBandwidth	1000
OpenviduStreamsVideoMinRecvBandwidth	300
OpenviduStreamsVideoMinSendBandwidth	300
OwnCertCRT	-
OwnCertKEY	-
PublicElasticIP	3.12.130.13
WantToDeployDemos	true
WantToSendInfo	true
WhichCert	letsencrypt

II
Deployment file
Here are the last lines if the Deployment file:

Cloud-init v. 19.1-1-gbaa47854-0ubuntu1~16.04.1 running 'modules:final' at Sun, 08 Mar 2020 01:29:21 +0000. Up 33.84 seconds.
2020-03-08 01:35:12,874 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [2]
2020-03-08 01:35:12,877 - cc_scripts_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)
2020-03-08 01:35:12,877 - util.py[WARNING]: Running module scripts-user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.py'>) failed
Cloud-init v. 19.1-1-gbaa47854-0ubuntu1~16.04.1 finished at Sun, 08 Mar 2020 01:35:12 +0000. Datasource DataSourceEc2Local.  Up 383.95 seconds

III
OpenVidu logs
There was no openVidu log created.

The deployment works with the self signed SSL option.

Thanks

Hi, just checking if I asked the question wrong, more information is needed or there’s a mistake in my settings? Thanks.

Hello Dimitri:
Try to deploy again, but this time disable option Rollback on failure (Configure stack options -> Advanced Options -> Stack creation options). This will prevent the instance to be terminated in case of failure so we can gather logs. Once you re-deploy with this option, the stack will still fail but you’ll be able to access instances through SSH and recover some files.

After SSH, could you attach logs from:

  • /var/log/cloud-init.log
  • /var/log/cloud-init-output.log

Best Regards,
Carlos

Hi Carlos,

I cannot upload file types other than image.

I have uploaded the log files at the links below:

Thanks,
Dimitri

Hi, I think what the problem is. There was an error with ddeb ubuntu repositories days ago, maybe now is working… We’ve updated deprecated repos in 2.12.0. You have a new release of OpenVidu if you want to try. Check: https://openvidu.io/docs/deployment/deploying-aws/

Regards,
Carlos

Fantastic. It works now. Thank you Carlos!