# Open Vidu AWS Deployment Creation Failed

**URL:** <https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [April 29, 2020, 8:44am UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618 "2020-04-29T08:44:52Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karuppasamy\_N](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/karuppasamy_n/32/319_2.png) [@Karuppasamy\_N](https://openvidu.discourse.group/u/Karuppasamy_N)\
**Post date:** [April 29, 2020, 8:44am UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/1 "2020-04-29T08:44:52Z")

</div>

–2020-04-29 08:08:31-- https://my\_doamin.com/ssl\_cer/generated-csr.crt  
Resolving my\_doamin.com (my\_doamin.com)…  
Connecting to my\_doamin.com (my\_doamin.com) connected.  
ERROR: cannot verify certificate, issued by ‘CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,[O=GoDaddy.com](http://O=GoDaddy.com)\, Inc.,L=S$  
Unable to locally verify the issuer’s authority.  
To connect to my\_doamin.com insecurely, use `–no-check-certificate’.

- wget -O /opt/openvidu/owncert/certificate.key https://my\_doamin.com/ssl\_cer/generated-private-key.key  
–2020-04-29 08:08:31-- https://my\_doamin.com/ssl\_cer/generated-private-key.key  
Resolving my\_doamin.com (my\_doamin.com)  
Connecting to my\_doamin.com (my\_doamin.com)|connected.  
ERROR: cannot verify my\_doamin.com’s certificate, issued by ‘CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,[O=GoDaddy.com](http://O=GoDaddy.com)\, Inc.,L=S$  
Unable to locally verify the issuer’s authority.  
To connect to my\_doamin.com insecurely, use `–no-check-certificate’.
- echo ‘[Openvidu] error with the certificate files’  
[Openvidu] error with the certificate files
- exit 1  
Cloud-init v. 19.4-33-gbb4131a2-0ubuntu1~16.04.1 running ‘modules:final’ at Wed, 29 Apr 2020 08:08:26 +0000. Up 41.78 seconds.  
2020-04-29 08:08:31,277 - util.py[WARNING]: Failed running /var/lib/cloud/instance/scripts/part-001 [1]  
2020-04-29 08:08:31,279 - cc\_scripts\_user.py[WARNING]: Failed to run module scripts-user (scripts in /var/lib/cloud/instance/scripts)  
2020-04-29 08:08:31,280 - util.py[WARNING]: Running module scripts-user (\<module ‘cloudinit.config.cc\_scripts\_user’ from '/usr/lib/python3/dist-packages/cloudinit/confi$  
Cloud-init v. 19.4-33-gbb4131a2-0ubuntu1~16.04.1 finished at Wed, 29 Apr 2020 08:08:31 +0000. Datasource DataSourceEc2Local. Up 46.48 seconds

This is my Log What i do ?!

---

<div class="post-metadata">

**Author:** ![Oscar.Soto](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/oscar.soto/32/292_2.png) [@Oscar.Soto](https://openvidu.discourse.group/u/Oscar.Soto)\
**Post date:** [April 29, 2020, 9:36am UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/2 "2020-04-29T09:36:25Z")

</div>

Hi @Karuppasamy_N,

Openvidu is not able to download the files you have on `https://my_doamin.com/ssl_cer/generated-csr.crt` and `https://my_doamin.com/ssl_cer/generated-private-key.key` because of a certificate problem with my\_doamin.com. Could you upload them to another site and try again?

Regards

---

<div class="post-metadata">

**Author:** ![Karuppasamy\_N](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/karuppasamy_n/32/319_2.png) [@Karuppasamy\_N](https://openvidu.discourse.group/u/Karuppasamy_N)\
**Post date:** [April 29, 2020, 9:39am UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/3 "2020-04-29T09:39:08Z")

</div>

Hi @Oscar.Soto

I mention the sample domain this is my Original Domain [zohrx.com](http://zohrx.com) this domain have these files… Still it’s not working

---

<div class="post-metadata">

**Author:** ![Oscar.Soto](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/oscar.soto/32/292_2.png) [@Oscar.Soto](https://openvidu.discourse.group/u/Oscar.Soto)\
**Post date:** [April 29, 2020, 10:09am UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/4 "2020-04-29T10:09:07Z")

</div>

Hi, @Karuppasamy_N

You have and error with the SSL certificated in you page [http://zohrx.com/](http://zohrx.com/) for this reason the command wget is not able to download your .key and .cert files. Try this in your PC using the command: `wget https://zohrx.com/ssl_cer/generated-private-key.key`

```auto
$ wget https://zohrx.com/ssl_cer/generated-private-key.key
    --2020-04-29 11:41:00-- https://zohrx.com/ssl_cer/generated-private-key.key
    Resolving zohrx.com (zohrx.com)... 3.101.34.23
    Connecting to zohrx.com (zohrx.com)|3.101.34.23|:443... connected.
    ERROR: cannot verify zohrx.com's certificate, issued by ‘CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\\, Inc.,L=Scottsdale,ST=Arizona,C=US’:
      Unable to locally verify the issuer's authority.
    To connect to zohrx.com insecurely, use `--no-check-certificate'.

```

You have two options, repaired this or deploy Openvidu using Selfsigned certificated and when you have completed the installation, connect for SSH in the Openvidu Server Instance. Change to root user with the command `sudo su` and go to the folder `/opt/openvidu`. Edit the `.env` file and change the variables:

```auto
OPENVIDU_DOMAIN_OR_PUBLIC_IP=YOUR_DOMAIN_NAME
CERTIFICATE_TYPE=owncert

```

Finally upload the files `generated-private-key.key` and `generated-csr.crt` to the `/opt/openvidu/owncert` folder with the names `certificate.key` and `certificate.cert` and restart openvidu with the command `./openvidu restart`

Regards

---

<div class="post-metadata">

**Author:** ![Karuppasamy\_N](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/karuppasamy_n/32/319_2.png) [@Karuppasamy\_N](https://openvidu.discourse.group/u/Karuppasamy_N)\
**Post date:** [April 29, 2020, 12:00pm UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/5 "2020-04-29T12:00:45Z")

</div>

hi @Oscar.Soto  
ERROR: Couldn’t connect to Docker daemon at http+docker://localhost - is it running?

If it’s at a non-standard location, specify the URL with the DOCKER\_HOST environment variable.

i configure all things but u try to restart openvidu i get this error

---

<div class="post-metadata">

**Author:** ![Oscar.Soto](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/oscar.soto/32/292_2.png) [@Oscar.Soto](https://openvidu.discourse.group/u/Oscar.Soto)\
**Post date:** [April 29, 2020, 12:21pm UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/6 "2020-04-29T12:21:46Z")

</div>

This error is because not a root user. Try changed to root with `sudo su`

Regards

---

<div class="post-metadata">

**Author:** ![Karuppasamy\_N](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/karuppasamy_n/32/319_2.png) [@Karuppasamy\_N](https://openvidu.discourse.group/u/Karuppasamy_N)\
**Post date:** [April 29, 2020, 1:30pm UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/7 "2020-04-29T13:30:05Z")

</div>

Hi @Oscar.Soto  
Yeah i am running this but how much time i wait for this server restart more than 1 hour passed still restarting

---

<div class="post-metadata">

**Author:** ![Oscar.Soto](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/oscar.soto/32/292_2.png) [@Oscar.Soto](https://openvidu.discourse.group/u/Oscar.Soto)\
**Post date:** [April 29, 2020, 3:15pm UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/8 "2020-04-29T15:15:10Z")

</div>

That’s definitely not normal. Please show me the openvidu logs with this command:

```auto
docker-compose logs openvidu-server

```

and the proxy logs with this command:

```auto
docker-compose logs nginx

```

These commands must be executed in the `/opt/openvidu` folder. And the content of the variable `OPENVIDU_DOMAIN_OR_PUBLIC_IP` in the `.env` file.

---

<div class="post-metadata">

**Author:** ![Karuppasamy\_N](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/karuppasamy_n/32/319_2.png) [@Karuppasamy\_N](https://openvidu.discourse.group/u/Karuppasamy_N)\
**Post date:** [April 30, 2020, 5:05am UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/9 "2020-04-30T05:05:43Z")

</div>

HI @Oscar.Soto  
[ERROR] 2020-04-30 05:03:32,477 [main] io.openvidu.server.config.OpenviduConfig - .env file not found at /./.env

i got this error i am running /opt/openvidu folder

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [May 1, 2020, 2:51pm UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/10 "2020-05-01T14:51:31Z")

</div>

Please execute the following commands and share with us the results:

```auto
sudo su
cd /opt/openvidu
docker-compose logs openvidu-server
docker-compose logs nginx
cat .env

```

Thanks

---

<div class="post-metadata">

**Author:** ![alindzon](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@alindzon](https://openvidu.discourse.group/u/alindzon)\
**Post date:** [July 21, 2020, 7:38pm UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/11 "2020-07-21T19:38:18Z")

</div>

Someone should fix the instructions to add this one line.

---

<div class="post-metadata">

**Author:** ![micael.gallego](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/micael.gallego/32/2_2.png) [@micael.gallego](https://openvidu.discourse.group/u/micael.gallego)\
**Post date:** [July 21, 2020, 8:34pm UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/12 "2020-07-21T20:34:20Z")

</div>

What instructions are you looking for?

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [August 5, 2020, 9:25am UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/13 "2020-08-05T09:25:38Z")

</div>



---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [August 5, 2020, 9:25am UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/14 "2020-08-05T09:25:58Z")

</div>



---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [August 5, 2020, 9:26am UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/15 "2020-08-05T09:26:20Z")

</div>

Closed due to inactivity

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [August 5, 2020, 9:26am UTC](https://openvidu.discourse.group/t/open-vidu-aws-deployment-creation-failed/618/16 "2020-08-05T09:26:23Z")

</div>


