WebRTC 服务器停止工作
WebRTC server stopped working
我的 webRTC 服务器已停止工作。 Chrome 突出显示此错误:
VM238:164 WebSocket connection to 'wss://*******.com/rtc/' failed: Error during
WebSocket handshake: Unexpected response code: 502
重新启动服务器后发生错误(正如我所想)。服务器信息 - ubuntu, nginx+uwsgi, webrtc 部分 - python.
nginx 错误日志:
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 文件:
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/*;
}
很遗憾,我对 WebRTS 了解不多。项目的这一部分是在我之前完成的。如果您需要更多信息,我可以提供。
所以很可能有一个 NodeJS 程序也 运行 处理 WebRTC 服务器,但它没有作为服务添加。
重启导致服务消失
这意味着您需要找到 WebRTC 节点服务器代码所在的位置并启动它。如果服务器没有太多节点项目,我会使用 locate package.json
或 grep -r "/rtc" <dir>
搜索项目。启动服务器后,错误应该消失了。
我还会 运行 history
命令找出以前 运行 服务器使用的命令
这只是服务器配置不当
我的 webRTC 服务器已停止工作。 Chrome 突出显示此错误:
VM238:164 WebSocket connection to 'wss://*******.com/rtc/' failed: Error during
WebSocket handshake: Unexpected response code: 502
重新启动服务器后发生错误(正如我所想)。服务器信息 - ubuntu, nginx+uwsgi, webrtc 部分 - python.
nginx 错误日志:
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 文件:
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/*;
}
很遗憾,我对 WebRTS 了解不多。项目的这一部分是在我之前完成的。如果您需要更多信息,我可以提供。
所以很可能有一个 NodeJS 程序也 运行 处理 WebRTC 服务器,但它没有作为服务添加。
重启导致服务消失
这意味着您需要找到 WebRTC 节点服务器代码所在的位置并启动它。如果服务器没有太多节点项目,我会使用 locate package.json
或 grep -r "/rtc" <dir>
搜索项目。启动服务器后,错误应该消失了。
我还会 运行 history
命令找出以前 运行 服务器使用的命令
这只是服务器配置不当