# OpenVidu server are die often

**URL:** <https://openvidu.discourse.group/t/openvidu-server-are-die-often/611>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [April 29, 2020, 1:13am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611 "2020-04-29T01:13:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![lihuapeng](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/lihuapeng/32/357_2.png) [@lihuapeng](https://openvidu.discourse.group/u/lihuapeng)\
**Post date:** [April 29, 2020, 1:13am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/1 "2020-04-29T01:13:14Z")

</div>

Hi.  
I developed the video dating site [https://wematcher.com](https://wematcher.com).  
Openvidu server url -\> [https://applet.wematcher.com:4443](https://applet.wematcher.com:4443)

This is running on Ubuntu 18.04 (vps server)

I used this command.

nohup java -jar -Dopenvidu.secret=xxxxx -Dopenvidu.publicurl=https://applet.wematcher.com:4443/ -Dserver.ssl.key-store=wematcher.jks -Dserver.ssl.key-store-password=xxxxx -Dserver.ssl.key-alias=WeMatcher openvidu-server-2.12.0.jar &

But this is died often.  
Can you help me please?  
Is it related with overcrowd?  
Thank 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 29, 2020, 6:57am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/3 "2020-04-29T06:57:17Z")

</div>

Please update OpenVidu to latest version. We have fixed some important bugs related to stability.

In case it die again, please share with us OpenVidu server logs so we can know the origin of the issue.

---

<div class="post-metadata">

**Author:** ![lihuapeng](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/lihuapeng/32/357_2.png) [@lihuapeng](https://openvidu.discourse.group/u/lihuapeng)\
**Post date:** [April 29, 2020, 2:15pm UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/4 "2020-04-29T14:15:53Z")

</div>

Thanks, Let me try to update

---

<div class="post-metadata">

**Author:** ![lihuapeng](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/lihuapeng/32/357_2.png) [@lihuapeng](https://openvidu.discourse.group/u/lihuapeng)\
**Post date:** [May 2, 2020, 8:20am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/5 "2020-05-02T08:20:56Z")

</div>

![cpu](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/c2d9bdd3d04f5888c896e258b6d6a6cc6b8351ca.jpeg)  
Hi.  
Here is our server performance.  
How many maximum sessions can be handled in same time?

---

<div class="post-metadata">

**Author:** ![lihuapeng](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/lihuapeng/32/357_2.png) [@lihuapeng](https://openvidu.discourse.group/u/lihuapeng)\
**Post date:** [May 3, 2020, 5:31pm UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/6 "2020-05-03T17:31:16Z")

</div>

Hi Michael!  
I built the openvidu service with docker.  
Its running well, but cant reach.

Should i open the port 5443?  
So I added the 5443 port rule ( ufw )  
But still cant reach.  
[http://openvidu.wematcher.com/](http://openvidu.wematcher.com/)

 ![image](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/59273f4053406697af0ceb8cb2381222aff1c94c.png)

Looking forward to your advise.  
Greeting!

---

<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 4, 2020, 1:47am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/7 "2020-05-04T01:47:24Z")

</div>

You must open all ports described in doc. 5443 has to be closed.

Please show the output of the following commands to take a look if nginx is starting correctly

```auto
cd /opt/openvidu
docker-compose logs nginx

```

---

<div class="post-metadata">

**Author:** ![lihuapeng](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/lihuapeng/32/357_2.png) [@lihuapeng](https://openvidu.discourse.group/u/lihuapeng)\
**Post date:** [May 4, 2020, 9:41am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/8 "2020-05-04T09:41:31Z")

</div>

Hi, Micael  
The nginx was failed to start  
The reason was ssl certificate.  
And the important problem is what the apache is already listening the port 80, 443 on my server.  
So the nginx is failed to bind 80, 443.

 ![image](https://global.discourse-cdn.com/free1/uploads/openvidu/original/1X/b3306b88f5d49a19b83a2f950671cc601d8b8fa0.png)  
What’s the solution?

---

<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:** [May 4, 2020, 10:28am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/9 "2020-05-04T10:28:49Z")

</div>

Hi @lihuapeng,

The domain that you use for the Openvidu APP must point to the IP of the machine on which you are deploying openvidu.

Since i am observing that in the domain [https://openvidu.wematcher.com/](https://openvidu.wematcher.com/) there is something deployed.

---

<div class="post-metadata">

**Author:** ![lihuapeng](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/lihuapeng/32/357_2.png) [@lihuapeng](https://openvidu.discourse.group/u/lihuapeng)\
**Post date:** [May 4, 2020, 10:49am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/10 "2020-05-04T10:49:10Z")

</div>

Well.  
The base domain is [wematcher.com](http://wematcher.com).  
And there are several subdomains.  
But I didn’t deployed to the [openvidu.wematcher.com](http://openvidu.wematcher.com)  
By the way, the apache is listening the pointed IP’s 80 & 443.  
So it redirect to the [admin.wematcher.com](http://admin.wematcher.com).

---

<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 4, 2020, 2:06pm UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/11 "2020-05-04T14:06:07Z")

</div>

You have to unistall apache server or configure it to listen to other ports. Nginx has to listen in 443 and 80 ports.

In the next version (2.14), you will be able to change these ports, but in 2.13 is not possible.

Regards

---

<div class="post-metadata">

**Author:** ![lihuapeng](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/lihuapeng/32/357_2.png) [@lihuapeng](https://openvidu.discourse.group/u/lihuapeng)\
**Post date:** [May 4, 2020, 2:19pm UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/12 "2020-05-04T14:19:52Z")

</div>

Thanks for your reply.  
Btw, once i remove the apache, the other websites cant be deployed on the subdomains.  
Let me search other method.

---

<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 4, 2020, 6:37pm UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/13 "2020-05-04T18:37:28Z")

</div>

2.14 is planned to be released in a few days. If you can wait, is your best alternative.

---

<div class="post-metadata">

**Author:** ![lihuapeng](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/lihuapeng/32/357_2.png) [@lihuapeng](https://openvidu.discourse.group/u/lihuapeng)\
**Post date:** [May 5, 2020, 4:24am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/14 "2020-05-05T04:24:50Z")

</div>

Ok,Let me wait  
Regards

---

<div class="post-metadata">

**Author:** ![lihuapeng](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/lihuapeng/32/357_2.png) [@lihuapeng](https://openvidu.discourse.group/u/lihuapeng)\
**Post date:** [May 9, 2020, 6:05pm UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/15 "2020-05-09T18:05:51Z")

</div>

Any news about the new version release?

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [May 10, 2020, 10:34am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/16 "2020-05-10T10:34:25Z")

</div>

Follow us on Twitter: [https://twitter.com/openvidu/status/1258682487309557761?s=19](https://twitter.com/openvidu/status/1258682487309557761?s=19)

---

<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 10, 2020, 10:48am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/17 "2020-05-10T10:48:54Z")

</div>

We are with the final bits. It will be released tomorrow Monday or in Tuesday.

---

<div class="post-metadata">

**Author:** ![Tolga\_Kaprol](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/tolga_kaprol/32/224_2.png) [@Tolga\_Kaprol](https://openvidu.discourse.group/u/Tolga_Kaprol)\
**Post date:** [May 12, 2020, 2:14am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/18 "2020-05-12T02:14:55Z")

</div>

Hello, we have 2.13 too.

Openvidu server always dies after approximately a day. When I try to test from dashboard it returns following error:

Error connecting to session: 504

As I find from logs, api requests were failing:

[error] 41#41: \*1319 upstream timed out (110: Connection timed out) while reading response header from upstream, client: IP, server: domain, request: “POST /api/tokens HTTP/1.1”, upstream: “[http://127.0.0.1:5443/api/tokens](http://127.0.0.1:5443/api/tokens)”, host: “domain”, referrer: “[https://domain/dashboard/](https://domain/dashboard/)”

When I run **docker-compose restart** everything is fine.

---

<div class="post-metadata">

**Author:** ![lihuapeng](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/lihuapeng/32/357_2.png) [@lihuapeng](https://openvidu.discourse.group/u/lihuapeng)\
**Post date:** [May 14, 2020, 1:28am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/19 "2020-05-14T01:28:56Z")

</div>

Thanks for the new version release.  
I deployed the 2.14 just ago.  
Let me observe for 1~2 days.  
I hope it not to die.

[https://openvidu.wematcher.com:4443/dashboard](https://openvidu.wematcher.com:4443/dashboard)

---

<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 14, 2020, 8:48am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/20 "2020-05-14T08:48:59Z")

</div>

Can you please share the OpenVidu logs when the platform shows the problems?

---

<div class="post-metadata">

**Author:** ![pabloFuente](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/pablofuente/32/2536_2.png) [@pabloFuente](https://openvidu.discourse.group/u/pabloFuente)\
**Post date:** [May 14, 2020, 9:37am UTC](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611/21 "2020-05-14T09:37:47Z")

</div>

Yes, we are currently working in a possible error with exhausting threads and we need all the available information when OpenVidu Server unexpectedly dies, in case this is the reason. So, if you see that OpenVidu Server stops responding, please, share the logs with us before restarting it so we can confirm the problem.

Thank you!

[Next page](https://openvidu.discourse.group/t/openvidu-server-are-die-often/611.md?page=2)
