NGINX crash and container remains EXITED
gtunon opened this issue · comments
Describe the bug
The NGINX crashes provoking the openvidu-proxy (openvidu_nginx_1
) to EXIT and then it never restarts automatically.
Expected behavior
While the crash might not be caused by OpenVidu, it would be nice for the openvidu_nginx_1 to be automatically restarted.
Wrong current behavior
The original log trace of the critical error of the nginx is:
2021/12/14 14:56:53 [crit] 92#92: *21761 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: <clientIP> server: 0.0.0.0:4443
OpenVidu tutorial where to replicate the error
The error is difficult to reproduce as a nginx failure.
OpenVidu deployment info
How is your OpenVidu Server instance deployed when you get the bug. A couple of possible examples are listed below:
- Docker container as explained in OpenVidu tutorials, run with command
docker run ...
on centos-release-7-9.2009.1.el7.centos.x86_64
This issue is fixed from now with these commits: edfbe31 and 46a6176.
This will be available from version 2.21.0
1. Apply on running OpenVidu deployment
Change in the nginx section of `/opt/openvidu/docker-compose.yml:
image
toopenvidu/openvidu-proxy:8.0.0-beta1
restart
fromon-failure
toalways
2. Test if bug is fixed
Just kill the nginx process:
docker exec -it openvidu_nginx_1 pkill nginx
A new container will be started after the force kill.
Regards