airdcpp-web / airdcpp-webclient

Communal peer-to-peer file sharing application for file servers/NAS devices
https://airdcpp-web.github.io
171 stars 31 forks source link

AirDC web UI shows "Connecting to the server..." only. - Debian #440

Closed slrslr closed 1 year ago

slrslr commented 1 year ago

AirDC++w 2.11.2 x86_64 Web UI version 2.11.2 Browser Firefox-ESR Linux Debian 11 , kernel 5.10.0-20-amd64

Hello, web UI shows "Connecting to the server..." only.

$ trickle -s -d 500 -u 500 /home/user/airdcpp-webclient/airdcppd

Starting.
.Loading Hash database
Loading Download queue
Loading Shared files
Loading Country information
Loading Connectivity
Loading Web server
/usr/bin/nodejs
/usr/bin/nodejs
.

AirDC++w 2.11.2 running, press ctrl-c to exit...

HTTP port: 5600, HTTPS port: 5601
Config path: /home/user/airdcpp-webclient/config/
Web resources path: /home/user/airdcpp-webclient/web-resources/
[2023-01-19 13:57:01] [connect] WebSocket Connection [::1]:51696 v13 "" /api/v1/ 101
[2023-01-19 13:57:01] [connect] WebSocket Connection [::1]:51698 v13 "" /api/v1/ 101
[2023-01-19 13:57:17] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:57:17] [fail] WebSocket Connection [::ffff:127.0.0.1]:38482 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:57:17] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:57:18] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:57:18] [fail] WebSocket Connection [::ffff:127.0.0.1]:38488 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:57:18] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:57:18] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:57:18] [fail] WebSocket Connection [::ffff:127.0.0.1]:38500 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:57:18] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:57:18] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:57:18] [fail] WebSocket Connection [::ffff:127.0.0.1]:38502 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:57:18] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:57:18] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:57:18] [fail] WebSocket Connection [::ffff:127.0.0.1]:38514 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:57:18] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:57:18] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:57:18] [fail] WebSocket Connection [::ffff:127.0.0.1]:38516 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:57:18] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:57:19] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:57:19] [fail] WebSocket Connection [::ffff:127.0.0.1]:56752 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:57:19] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:57:23] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:57:23] [fail] WebSocket Connection [::ffff:127.0.0.1]:56760 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:57:23] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:58:03] [error] handle_read_handshake error: websocketpp.transport:7 (End of File)
[2023-01-19 13:58:03] [fail] WebSocket Connection [::ffff:127.0.0.1]:40088 - "" - 0 websocketpp.transport:7 End of File
[2023-01-19 13:58:04] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:58:04] [fail] WebSocket Connection [::ffff:127.0.0.1]:41784 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:58:04] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:58:05] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:58:05] [fail] WebSocket Connection [::ffff:127.0.0.1]:41790 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:58:05] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:58:05] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:58:05] [fail] WebSocket Connection [::ffff:127.0.0.1]:41800 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:58:05] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:58:05] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:58:05] [fail] WebSocket Connection [::ffff:127.0.0.1]:41806 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:58:05] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:58:05] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:58:05] [fail] WebSocket Connection [::ffff:127.0.0.1]:41810 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:58:05] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:58:05] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:58:05] [fail] WebSocket Connection [::ffff:127.0.0.1]:41820 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:58:05] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
[2023-01-19 13:58:06] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 13:58:06] [fail] WebSocket Connection [::ffff:127.0.0.1]:41822 - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 13:58:06] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)
^CShutdown requested...
[2023-01-19 13:58:11] [error] handle_read_frame error: websocketpp.transport:7 (End of File)
[2023-01-19 13:58:11] [disconnect] Disconnect close local:[1006,End of File] remote:[1006]
[2023-01-19 13:58:11] [error] handle_read_frame error: websocketpp.transport:7 (End of File)
[2023-01-19 13:58:11] [disconnect] Disconnect close local:[1006,End of File] remote:[1006]
Saving hash data
Saving the share cache
Closing connections
Saving settings
Stopping web server
Shutting down.

Idea what to try?

maksis commented 1 year ago

I assume that you are trying to load the page over HTTPS. Do you have a valid certificate?

slrslr commented 1 year ago

I assume that you are trying to load the page over HTTPS. Do you have a valid certificate?

Thanks, indeed, I have not noticed. It has sec. exception and is Organization: DCPlusPlus (OSS/SelfSigned) But when i use http (http://127.0.0.1:5601) then browser says "The connection was reset" and terminal shows:

[2023-01-19 ..:24:03] [error] handle_transport_init received error: TLS handshake failed
[2023-01-19 ..:24:03] [fail] WebSocket Connection [::ffff:127.0.0.1]:4.... - "" - 0 websocketpp.transport.asio.socket:8 TLS handshake failed
[2023-01-19 ..:24:03] [info] asio async_shutdown error: asio.ssl:336462231 (shutdown while in init)

kind of log lines multiple times..

maksis commented 1 year ago

You need a valid certificate in order to use the app over HTTPS, that is totally normal

slrslr commented 1 year ago

After i have removed the exception (clicking the padlock in browser address bar), Ctrl+click reload then Ctrl+Shift+R - i suppose these shortcuts should cause cache clearing. I was prompted to add exception to SSL cert. i did and now page loaded properly. Is this something to be fixed?

You need a valid certificate in order to use the app over HTTPS

or add exception, which i already had and app failed to work for some reason. (before i applied mentioned shortcuts in web browser)

maksis commented 1 year ago

So it's working now? The app can't control the way how your browser handlers certificates so there's not much that I can do