[ERR] [transports/janus_http.c:janus_http_handler:1316] Invalid session videoroomtest.html

1,192 views
Skip to first unread message

Chris Kim

unread,
Apr 17, 2019, 2:36:08 AM4/17/19
to meetecho-janus
Hello.

I'm trying to set janus media server using apache2 web server on Ubuntu. I have read the documents(Deploying Janus) and followed that documents. I have deployed apache2 web server with SSL at same location. I have issued SSL using "openssl" command instead issuing certificate sites though. cuz I though it wasn't problem for testing media server. of course, I also did set reverse proxy as what documents says.
when I try to access URL(web server) after deploying all of those, I got an error and not to be able to access website.
I couldn't find out how to solve this and I don't know what I have done wrong?

this is what I got errors:

[FATAL] [transports/janus_http.c:janus_http_init:813] Missing certificate/key path
[WARN] Admin/monitor HTTP webserver disabled
[WARN] Admin/monitor HTTPS webserver disabled
JANUS REST (HTTP/HTTPS) transport plugin initialized!
WebSockets thread started
[ERR] [transports/janus_http.c:janus_http_handler:1316] Invalid session videoroomtest.html

I also checked janus_http.c codes. it seems like I couldn't issued session_id. but I don't know why.

plz help me to solve this problem.

Thanks in advance.

Mirko Brankovic

unread,
Apr 17, 2019, 3:24:44 AM4/17/19
to meetecho-janus
This error clearly sates your problem:
[FATAL] [transports/janus_http.c:janus_http_init:813] Missing certificate/key path

So it mean that http transport listener wasn't started (by default on 8088/8089 ports)
Make sure you have at least self-signed certificates on some Janus readable location and point to them with config from janus.jcfg:
# Certificate and key to use for DTLS (and passphrase if needed).
certificates: {
        cert_pem = "@certdir@/mycert.pem"
        cert_key = "@certdir@/mycert.key"
        #cert_pwd = "secretpassphrase"
}



--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Regards,
Mirko

Chris Kim

unread,
Apr 17, 2019, 4:38:53 AM4/17/19
to meetecho-janus
Hi Mirko,

Thanks to reply.
Actually, I missed it. so I wrote a my cerficicate and key in janus.jcfg like this

certificates: {
cert_pem = "/etc/apache2/ssl/servercrt.pem"
cert_key = "/etc/apache2/ssl/server.key"
#cert_pwd = "test"
}

but the thing is that I still have same error messages. don't change anything. is there to write the cert path more? without janus.jcfg and /etc/apache2/sites-available/sitename.com.conf.
the error messages are below :

[FATAL] [transports/janus_websockets.c:janus_websockets_init:613] Missing certificate/key path
[WARN] Admin WebSockets server disabled
[WARN] Secure Admin WebSockets server disabled
JANUS WebSockets transport plugin initialized!
Loading transport plugin 'libjanus_http.so'...
HTTP webserver started (port 8088, /janus path listener)...
[FATAL] [transports/janus_http.c:janus_http_init:813] Missing certificate/key path
[WARN] Admin/monitor HTTP webserver disabled
[WARN] Admin/monitor HTTPS webserver disabled
JANUS REST (HTTP/HTTPS) transport plugin initialized!
WebSockets thread started
[ERR] [transports/janus_http.c:janus_http_handler:1316] Invalid session videoroomtest.html
To unsubscribe from this group and stop receiving emails from it, send an email to meetech...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Regards,
Mirko

lmin...@gmail.com

unread,
Apr 17, 2019, 4:42:32 AM4/17/19
to meetecho-janus
It looks like you're trying to open the demo pages by contacting the Janus integrated web server. The documentation cleary explains the integrated web server is just for the Janus API, and that you have to serve the pages through other means. The Deploy documentation page clarifies that too.

Lorenzo

Mirko Brankovic

unread,
Apr 17, 2019, 5:02:46 AM4/17/19
to meetecho-janus
oh sorry,
you have the certificates section in transports alsoto .

so add the same section 
certificates: {
...
}
janus.transport.http.jcfg
janus.transport.websockets.jcfg

To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Regards,
Mirko

Chris Kim

unread,
Apr 17, 2019, 5:11:55 AM4/17/19
to meetecho-janus
Hi, Lorenzo.

I'm a little bit confused about what you said. what I understood the Deploying Janus Documents is that Janus media server isn't web server so I have to set a web server first and then set a janus media server following this docs(https://github.com/meetecho/janus-gateway). in addition, if i wanna serve your media server to join the room for others, you need to set a reverse proxy from apache2 to janus media server. So I tried to follow it. did I misunderstand what you said or miss something?

I'm sorry to have lack of English skills

Chris Kim

unread,
Apr 17, 2019, 5:22:42 AM4/17/19
to meetecho-janus
Thx to reply, Mirko.

I have changed all of them. but I got different error messages when I try to access web pages. it seems like self-signed certifications have something wrong. what should I do?

the error messages are below :

[FATAL] [transports/janus_websockets.c:janus_websockets_init:645] Error creating vhost for Secure WebSockets server...
[WARN] Admin WebSockets server disabled
[WARN] Secure Admin WebSockets server disabled
JANUS WebSockets transport plugin initialized!
Loading transport plugin 'libjanus_http.so'...
HTTP webserver started (port 8088, /janus path listener)...
[FATAL] [transports/janus_http.c:janus_http_init:830] Couldn't start secure webserver on port 8089...

Mirko Brankovic

unread,
Apr 17, 2019, 5:56:47 AM4/17/19
to meetecho-janus
At lease plain ws and http works and should be listening.
Go trough the config of secure transports part 

--
You received this message because you are subscribed to the Google Groups "meetecho-janus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meetecho-janu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Regards,
Mirko

lmin...@gmail.com

unread,
Apr 17, 2019, 7:24:54 AM4/17/19
to meetecho-janus
Make sure your libmicrohttpd is compiled with HTTPS support, not all are.

Lorenzo
Reply all
Reply to author
Forward
0 new messages