meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.25k stars 2.48k forks source link

[FATAL] [transports/janus_http.c:janus_http_init:854] Couldn't start secure webserver on port 8089... #3192

Closed Mangomm closed 1 year ago

Mangomm commented 1 year ago

my janus version: v1.1.3

When I ran janus, the audio and video call was OK, but there was a title error, which I could not accept. I studied the janus source code, it may be MHD_start_daemon() problem.

my janus.transport.http.jcfg: image image

janus debug info: image

lminiero commented 1 year ago

Your MHD library was probably compiled without encryption support.

lminiero commented 1 year ago

You can set mhd_debug = true in the transport config to see if it prints more precise info.

Mangomm commented 1 year ago

yes, i run /opt/janus/bin/janus --debug-level=5 --log-file=$HOME/janus-log

lminiero commented 1 year ago

That's not the debug level I'm talking about. The MHD transport plugin has a different logging configuration.

Mangomm commented 1 year ago

Hi, I had some time to look into this error today and I am sure libmicrohttpd is https supported and can be seen by running ./configure. And then I got libmicrohttp example verification (libmicrohttpd 0.9.71/src/examples/benchmark_https.c), call MHD_start_daemon () is a success, But I don't know why janus failed. image image

I thought it was the certificate problem, but I applied the successful certificate to janus, but it still failed.

One more thing, janus in "sudo vim janus. transport. http. jcfg" configuration, the mhd_debug = true doesn't work, image