WebRTC server stopped working

My webRTC server stops working. Chrome highlighted this error:

VM238:164 WebSocket connection to 'wss://*******.com/rtc/' failed: Error during 
WebSocket handshake: Unexpected response code: 502

Error after server reboot (as I think). Server information - ubuntu, nginx + uwsgi, webrtc part - python.

Nginx error log:

2018/03/15 15:05:17 [error] 597#0: *1058 connect() failed (111: Connection refused) 
while connecting to upstream, client: ***.***.***.***, server: ********.com, request: 
"GET /rtc/ HTTP/1.1", upstream: "http://127.0.0.1:3333/rtc/", host: "********.com"

Nginx.conf file:

user ****;
worker_processes 4;
pid /run/nginx.pid;

events {
        worker_connections 768;
}

http {
        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;
        server_tokens off;

        include /etc/nginx/mime.types;
        default_type application/octet-stream;

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
        ssl_prefer_server_ciphers on;

        access_log /var/log/nginx/access.log;
        error_log /var/log/nginx/error.log;

        gzip on;
        gzip_disable "msie6";

        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
}

Unfortunately, I know little about WebRTS. This part of the project was done in front of me. If you need more information, I can provide it.

+4
source share
1 answer

Thus, most likely, the NodeJS program was launched to process the WebRTC server, and it was not added as a service.

Restarting forced the service to leave

, , WebRTC node . node, , locate package.json grep -r "/rtc" <dir>. .

history, ,

0

Source: https://habr.com/ru/post/1695873/


All Articles