# org.springframework.boot.SpringApplication (reportFailure) - Application startup failed

**URL:** <https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [April 22, 2020, 3:09pm UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530 "2020-04-22T15:09:25Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurdoc](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@aurdoc](https://openvidu.discourse.group/u/aurdoc)\
**Post date:** [April 22, 2020, 3:09pm UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/1 "2020-04-22T15:09:25Z")

</div>

I can’t find any topic with SpringApplication problem and I apologize if there is already an answer to my problem:

I am trying to deploy OpenVidu 2.0.0 on Ubuntu 18.04 (pretty much uptodate) following instruction for deployment on doc site. All services, COTURN, REDIS and KURENTO are loaded and active and I have downloaded java 8 on my server.

Using the jar:  
java -jar -Dopenvidu.secret=MY\_SECRET -Dopenvidu.publicurl=https://96.xx.xx.xx:4443/ openvidu-server-2.0.0.jar

I get the spring framework.boot error with this detail (from a very verbose pice of text):

“Error creating bean with name ‘tomcatContainerFactory’ defined in org.kurento.jsonrpc.internal.server.config.JsonRpcConfiguration:…”

Any suggestions will be highly appreciated? Thank you!

Aurel

---

<div class="post-metadata">

**Author:** ![aurdoc](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@aurdoc](https://openvidu.discourse.group/u/aurdoc)\
**Post date:** [April 22, 2020, 4:10pm UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/2 "2020-04-22T16:10:37Z")

</div>

Never mind… my embarrassing error… I downloaded the version 2.12.0 and started with sudo… and it worked!

Sorry everybody!

---

<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:** [April 22, 2020, 6:10pm UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/3 "2020-04-22T18:10:04Z")

</div>

No problem!

Happy videoconferencing 😉

---

<div class="post-metadata">

**Author:** ![aurdoc](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@aurdoc](https://openvidu.discourse.group/u/aurdoc)\
**Post date:** [April 22, 2020, 9:36pm UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/4 "2020-04-22T21:36:43Z")

</div>

Thanks Micael! I think that maybe in the next release of documents, which are pretty good, you should mention sudo is required to run the jar

---

<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:** [April 23, 2020, 11:50pm UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/5 "2020-04-23T23:50:53Z")

</div>

We’ve just released OpenVidu 2.13. In this version, the preferred way to deploy OpenVidu for production is using docker.

Hope the new documentation is now much more clear.

---

<div class="post-metadata">

**Author:** ![aurdoc](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@aurdoc](https://openvidu.discourse.group/u/aurdoc)\
**Post date:** [April 27, 2020, 4:28pm UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/6 "2020-04-27T16:28:35Z")

</div>

Hi Micael,

The documentation is very clear until I got bogged down in the certification part.

No matter what I try neither the Safari of Chroma (on Mac) has been able to make a secure connection. OpenVidu appears to be successfully installed using 2.13 instructions on Ubuntu 18.04 server - a clean install - and running with one inconsequential error: “… .env file not found at /./.env”.

I first created a self-signed certificate and key and placed them in the “/opt/openvidu/owncert”… the browser did not like the certificate and was unable to connect. I than selected the LetsEncrypt and I have not been any more successful (how does the letsencrypt place a certificate on my server without my involvement? - I am not familiar to this process). Before I pay for a real certificate would be really nice to understand a little better how Nginx get’s its certificate in the docker environment…

I am a very experienced Mac developer, with some experience using Ubuntu but definitely not an expert so a little more info could clarify a lot… I guess one can say that I don’t know what I should know!

Aurel

---

<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:** [April 27, 2020, 6:28pm UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/7 "2020-04-27T18:28:32Z")

</div>

Hello Aurel,

Are using openviud development docker container (openvidu-server-kms) or are you deploying OpenVidu in a linux box using the script?

openvidu-server-kms has a built in self signed certificate. It cant use lets encrypt.

OpenVidu deployment with the script is only supported in a linux box. It dont work on mac or windows.

---

<div class="post-metadata">

**Author:** ![aurdoc](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@aurdoc](https://openvidu.discourse.group/u/aurdoc)\
**Post date:** [April 27, 2020, 11:04pm UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/8 "2020-04-27T23:04:22Z")

</div>

Deployed using docker container on a Ubuntu 18.04 linux box using 2.13 instructions… clients on iPhones, Android and web apps already exist and need to be enhanced with video conference. The current clients use a centralized cloud services already.

I have tried last summer to use a collider and coturn services but I was not satisfied… right now I am evaluating openVidu.

---

<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:** [April 28, 2020, 8:47am UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/9 "2020-04-28T08:47:24Z")

</div>

How are you deploying OpenVidu?

a) Using these instructions?

[https://docs.openvidu.io/en/2.13.0/deployment/deploying-on-premises/](https://docs.openvidu.io/en/2.13.0/deployment/deploying-on-premises/)

b) Executing this command?

`$ docker run -p 4443:4443 --rm -e OPENVIDU_SECRET=MY_SECRET openvidu/openvidu-server-kms:2.13.0`

If you are using a), do you have a public domain? Can you share with us your current deployment (sending the URL with a private email to [openvidu@gmail.com](mailto:openvidu@gmail.com))? So we can take a look.

Can you please share with us openvidu logs to review configuration?

---

<div class="post-metadata">

**Author:** ![aurdoc](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@aurdoc](https://openvidu.discourse.group/u/aurdoc)\
**Post date:** [April 28, 2020, 3:34pm UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/10 "2020-04-28T15:34:24Z")

</div>

Thanks for trying to help… really appreciate!  
I did sent the domain name and the secret I use in the e-mail

I set the server using the method a) and I had no problems…

## I also attached to log file to my e-mail to you. Let me know if I need do anything else!

Again my problem is trying to understand the certification process given that I am really a novice to docker. Typically I would have configured the Nginx with my own certificated I would have expected to do the same for Kurento… COTURN does not require a certificate as I understand… so I am little confused on the three choice for certification in the configuration file .env

* * *

I this point, using iPad I am able to connect to openVidu via build in Safari with the “letsencrypt" certificate selection…. I do get a warning that it is not a valid certificate and bypassing the warning I get the first page asking for a room name. I provide the room name and next a get a dark page and nothing else…

I also seem to be able to connect to the dashboard using “/dashboard” which require me to enter a user and password. I connect using OPENVIDUAPP and my selected secret, it than shows a page with one button for Start Testing… clicking on it I get to choose the Secret which I assume it is the my selected secret. I do that and then nothing happens although the button becomes grayout…

---

<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:** [April 30, 2020, 12:12am UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/11 "2020-04-30T00:12:59Z")

</div>

Can you test your deployment with a Chrome browser in a PC, please? It is working?

Can you share with use iPad Safari’s console logs?

Thanks

---

<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:** [April 30, 2020, 12:16am UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/12 "2020-04-30T00:16:55Z")

</div>

I’ve just tested your deployment and it works fine.

---

<div class="post-metadata">

**Author:** ![aurdoc](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@aurdoc](https://openvidu.discourse.group/u/aurdoc)\
**Post date:** [April 30, 2020, 1:16am UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/13 "2020-04-30T01:16:12Z")

</div>

Thanks for checking!. Today I have reinstall OpenVidu with the lates version and I used letsencrypt for certification instead of my own self signed certificate… I don’t have a PC, just mac user, but indeed I now can create a session using safari and chroma on a mac, although using Safari on my iPhone and joining the same room does not connect me to the same session with the safari on a mac. (The room name is the same). I have not looked at logs yet… tomorrow.

iPad does not work with Safari, I don’t have Chroma on my iPad. I will send the logs in an e-mail tomorrow…

I also have compiled the ionic iOS version, I downloaded from Demos, which compiled but failed to connect… I have not tested with the latest changes I made today. Eventually I will need to convert the ionic version to native swift in order to embed it in an existing app.

Today we have deployed a second ubuntu 20.04 with OpenVidu in our data center to simplify dealing with our office firewalls.

I am still not very clear how the certification works for covering the Nginx, and Kuranto… eventually I will have to install our certificates. Docker is still a mystery for me but looks like a great way to deploy a complex server solution.

---

<div class="post-metadata">

**Author:** ![aurdoc](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@aurdoc](https://openvidu.discourse.group/u/aurdoc)\
**Post date:** [April 30, 2020, 2:47am UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/14 "2020-04-30T02:47:05Z")

</div>

Good news! Tonight we tested the OpenVidu deployment in out data center and I am glad to announce that using different browser on Mac, PC, and iPhone everything worked like a charm. I will try the ionic -iOS app tomorrow. I used the letsencrypt for now.

But congratulation to OpenVidu team!.. the 2.13.0 deployment and instructions are excellent!

Thanks you!

---

<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:** [April 30, 2020, 3:19am UTC](https://openvidu.discourse.group/t/org-springframework-boot-springapplication-reportfailure-application-startup-failed/530/15 "2020-04-30T03:19:19Z")

</div>

Thank you 😏

We try to make your life as easier as possible
