Timeout when connecting to localhost:7443/jazz (RTC extension workshop on 6.0.1)
I'm setting up the RTC extension workshop on RTC 6.0.1 and following the workshop instructions. At the step Testing the Jetty Based Server Launch, when I launch the jetty server, I get following on the console:
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #ffa4ff}
</style>
2017-04-08 13:45:20.787 java[87678:1849419] WARNING: nextEventMatchingMask should only be called from the Main Thread! This will throw an exception in the future.
Then, trying to connect to https://localhost:7443/jazz/admin in the browser (tried Chrome and Eclipse internal browser), I get connection timeout (ERR_TIMED_OUT).
No new messages issued on the console.
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #839496; background-color: #022b36} span.s1 {font-variant-ligatures: no-common-ligatures}
</style>
lsof -i -P | grep 7443 returns:I'm doing this on MacOS.
I searched around the net quite a bit without success. Restarting eclipse did not help.
Any suggestions on what could be the problem?
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #839496; background-color: #022b36} span.s1 {font-variant-ligatures: no-common-ligatures}
</style>
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #839496; background-color: #022b36} span.s1 {font-variant-ligatures: no-common-ligatures}
</style>
<style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #839496; background-color: #022b36} span.s1 {font-variant-ligatures: no-common-ligatures} </style> <style type="text/css"> p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Monaco; color: #839496; background-color: #022b36} span.s1 {font-variant-ligatures: no-common-ligatures} </style> |
2 answers
I suspect that it has something to do with IPv6. You can try to force IPv4 and see how it goes.
Comments
Andrei Lurie
commented Apr 10 '17, 12:39 p.m.
Thank you. I've tried the settings for IPv4 but still same timeout (verified that it is now using IPv4). |
Ralph Schoon (63.4k●3●36●46)
| answered Apr 10 '17, 4:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Apr 10 '17, 4:14 a.m. My experiences with the workshop with 6.0.x are here: https://rsjazz.wordpress.com/2016/02/04/running-the-rtc-extensions-workshop-with-rtc-6-0-x/
I have no experience with MacOS.
Comments
Andrei Lurie
commented Apr 10 '17, 12:46 p.m.
Thank you Ralph, I was using your instructions from that post. It was quite helpful, especially the link to how configure server for debug. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
Update: I tried doing this on Windows and it works ok. Doing the same steps on Mac does not work for me. Even with IPv4, still timeout.
Google 566 IPv4 TCP localhost:57590->localhost:7443 (ESTABLISHED)
Google 566 IPv4 TCP localhost:57591->localhost:7443 (ESTABLISHED)
java 14418 IPv4 TCP localhost:7443->localhost:57590 (ESTABLISHED)
java 14418 IPv4 TCP *:7443 (LISTEN)
I've tried a few things on a Mac and got the exact same issue. I switch between Java 6, 7 and 8 but it makes no differences. After enabling debugging, I can see that Jetty claims that security port 7443 is open, and the correct SSL certificate is associated. But when trying to establish an SSL connection at port 7443, the Jetty server does not send the "Server Hello" packet to the client after the client initiates a connection and sends a "Client Hello". The client (openssl, or any browsers) then closes the connection after a couple of seconds. It seems that whatever the code handling the incoming connection is not working on a Mac.