# There is no available Media Node where to initialize session

**URL:** <https://openvidu.discourse.group/t/there-is-no-available-media-node-where-to-initialize-session/1372>\
**Category:** Issues with deployment\
**Tags:** v2\
**Created:** [July 5, 2020, 8:17pm UTC](https://openvidu.discourse.group/t/there-is-no-available-media-node-where-to-initialize-session/1372 "2020-07-05T20:17:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergio\_sanchez](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/sergio_sanchez/32/700_2.png) [@sergio\_sanchez](https://openvidu.discourse.group/u/sergio_sanchez)\
**Post date:** [July 5, 2020, 8:17pm UTC](https://openvidu.discourse.group/t/there-is-no-available-media-node-where-to-initialize-session/1372/1 "2020-07-05T20:17:21Z")

</div>

ERROR:There is no available Media Node where to initialize session ‘ses\_Y57bimurIi’. Code: 204 in Request: method:joinRoom params

---

<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:** [July 6, 2020, 8:25am UTC](https://openvidu.discourse.group/t/there-is-no-available-media-node-where-to-initialize-session/1372/2 "2020-07-06T08:25:15Z")

</div>

Did this happenned after some time with OpenVidu Running without problems? Try to restart KMS, maybe it crashed

---

<div class="post-metadata">

**Author:** ![sergio\_sanchez](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/sergio_sanchez/32/700_2.png) [@sergio\_sanchez](https://openvidu.discourse.group/u/sergio_sanchez)\
**Post date:** [July 6, 2020, 10:20am UTC](https://openvidu.discourse.group/t/there-is-no-available-media-node-where-to-initialize-session/1372/3 "2020-07-06T10:20:56Z")

</div>

I have been using 3 months openvidu without problem, and on Saturday I pass, I have it in an instance of ec2 in aws, I do not know how to restart kms?, another thing is that before I failed, the video call jammed and I get blocked the video, but I do not know how to restart kms, could tell me the steps to restart since I have it in an instance of ec2 in thanks

---

<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:** [July 6, 2020, 10:51am UTC](https://openvidu.discourse.group/t/there-is-no-available-media-node-where-to-initialize-session/1372/4 "2020-07-06T10:51:25Z")

</div>

Ok. Before restarting, please get the logs of KMS. Try to don’t restart before launching it

# KMS Logs

```auto
docker-compose logs -f kms

```

If you’ve enabled KMS crash reporting or you’re in AWS with Cloudformation, please follow this instructions:  
[https://docs.openvidu.io/en/2.14.0/deployment/deploying-on-premises/#3-collect-the-kms-crash-report](https://docs.openvidu.io/en/2.14.0/deployment/deploying-on-premises/#3-collect-the-kms-crash-report)

# Restart KMS

Go to `cd /opt/openvidu`  
Then

```auto
./openvidu restart

```

Regards
