Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Io(Custom { kind: Other, error: "handshake error" }) #167

Open
F3nryll opened this issue Mar 28, 2021 · 2 comments
Open

Io(Custom { kind: Other, error: "handshake error" }) #167

F3nryll opened this issue Mar 28, 2021 · 2 comments

Comments

@F3nryll
Copy link

F3nryll commented Mar 28, 2021

I am on Centos 7.9, I run murmur 1.3.4 with the same Let's Encrypt certificates that I use on the Apache 2.4.46 virtual host serving the mumble-web client.
I have no error in the mumur.log, but here is what I have in the terminal where I run the mumble-web-proxy when I try to login with a mumble-web client:

MSG Authenticate: username: "root" password: "{{snip}}" opus: false webrtc: true
Local ice candidate: 1 1 UDP 2015363327 2001:41d0:203:5c92:: 60900 typ host
Local ice candidate: 2 1 TCP 1015021823 2001:41d0:203:5c92:: 0 typ host tcptype active
Local ice candidate: 3 1 TCP 1010827519 2001:41d0:203:5c92:: 46443 typ host tcptype passive
Local ice candidate: 4 1 UDP 2015363583 51.91.212.146 33703 typ host
Local ice candidate: 5 1 TCP 1015022079 51.91.212.146 0 typ host tcptype active
Local ice candidate: 6 1 TCP 1010827775 51.91.212.146 49369 typ host tcptype passive
Local ice candidate: 7 1 UDP 2015363839 fe80::ae1f:6bff:fed2:922a 60353 typ host
Local ice candidate: 8 1 TCP 1015022335 fe80::ae1f:6bff:fed2:922a 0 typ host tcptype active
Local ice candidate: 9 1 TCP 1010828031 fe80::ae1f:6bff:fed2:922a 38663 typ host tcptype passive
Got WebRTC: ice_pwd: "CtMtQFwI+f3BzfE2hq6vjyS1" ice_ufrag: "VAME" dtls_fingerprint: "F2:27:E9:59:0C:B2:B3:8E:20:91:FC:B5:EC:B8:A2:0D:B7:2B:A0:8A:EA:61:61:2B:7A:59:E5:6C:E3:F9:C1:13"
Got ice candidate: "candidate:827971567 1 udp 2122260223 192.168.0.234 60486 typ host generation 0 ufrag VAME network-id 1 network-cost 10"
Error on connection [::ffff:127.0.0.1]:44420: Io(Custom { kind: Other, error: "handshake error" })

I tried to google different parts of this message, without any luck..

In case, here is my apache config:

<VirtualHost 51.91.212.146:443>
        ServerAdmin webmaster@localhost
        DocumentRoot "/var/www/mumble-web"
        ServerName voice.chibre.ch
        <Directory "/var/www/muble-web">
                allow from all
                Options None
                Require all granted
        </Directory>
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/voice.chibre.ch/fullchain.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/voice.chibre.ch/privkey.pem
        RewriteEngine On
        #ProxyPass /.wellknown !
#MUMBLE
        RewriteCond %{HTTP:Connection} Upgrade [NC]
        RewriteCond %{HTTP:Upgrade} websocket [NC]
        RewriteRule / ws://127.0.0.1:64737/ [P,L]
    ProxyPass / http://127.0.0.1:64737/
    ProxyPassReverse / http://127.0.0.1:64737
</VirtualHost>
</IfModule>

(updated log/config snippets formatting with apologies from a github noob ;)

@Skgland

This comment has been minimized.

@F3nryll F3nryll closed this as completed Mar 28, 2021
@F3nryll F3nryll reopened this Mar 28, 2021
@F3nryll
Copy link
Author

F3nryll commented Apr 16, 2021

So, I went for a simplified apache conf:

<VirtualHost 51.91.212.146:443>
	ServerName voice.chibre.ch

	DocumentRoot /var/www/mumble-web

	SSLEngine on
	SSLCertificateFile /etc/letsencrypt/live/voice.chibre.ch/cert.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/voice.chibre.ch/privkey.pem
	SSLCertificateChainFile /etc/letsencrypt/live/voice.chibre.ch/chain.pem

	<Location /_voice>
		ProxyPass ws://127.0.0.1:64737/
		ProxyPassReverse ws://127.0.0.1:64737/
	</Location>
</VirtualHost>
</IfModule>

And tried to build murmur 1.4.0, as the static linux server of the 1.3.4 is using an outdated version of OpenSSL.
I set the same certificates in murmur.ini than in my apache config.

But no luck, still:

Error on connection [::ffff:127.0.0.1]:57124: Io(Custom { kind: Other, error: "handshake error" })

Not sure where to go from there, if I have to investigate on SSL parameters such as ''sslCiphers''..

this is the js console output if that can help..

Connecting to server voice.chibre.ch
client.js:477 Unhandled data packet: {name: "CryptSetup", payload: Message}
client.js:477 Unhandled data packet: {name: "CodecVersion", payload: Message}
client.js:477 Unhandled data packet: {name: "PermissionQuery", payload: Message}
index.js:1367 Connected!
client.js:477 Unhandled data packet: {name: "ServerConfig", payload: Message}
voice.js:201 vad: stop
voice.js:197 vad: start
index.js:1367 Connection error: Error: write after end
    at writeAfterEnd (_stream_writable.js:144)
    at ReaDuplexer../node_modules/reduplexer/node_modules/readable-stream/lib/_stream_writable.js.Writable.write (_stream_writable.js:192)
    at MumbleClient._send (client.js:297)
    at MumbleClient.createVoiceStream (client.js:387)
    at VADVoiceHandler._getOrCreateOutbound (voice.js:74)
    at VADVoiceHandler._write (voice.js:236)
    at doWrite (_stream_writable.js:428)
    at writeOrBuffer (_stream_writable.js:417)
    at VADVoiceHandler../node_modules/readable-stream/lib/_stream_writable.js.Writable.write (_stream_writable.js:334)
    at index.js:1622

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants