Page 1 of 1

Cannot see servers. Cannot join servers. Cannot even chat via IRC.

Posted: Tue Jul 05, 2022 1:07 am
by Pinocchio
I'm at a total loss as to what's going on. I've not played in a few months, so maybe something got past me that's important.

I build the latest download, version 2.4.24.20220705-MAINT-linux-gnu-SDL2 (gcc 8.3.0) on Devuan (Debian) Linux. I tried to search for servers and it just says, "Searching" without giving any names (I can normally call up a list in about 10s or less. I waited at least 30s). I tried to connect to the last server I went to, Platent-MoFo.com . I connected and was kicked because I needed a "global registration". As you can see, I have a username here and I did fill out the password section.

--I thought I'd ask on librechat, but the server was not listed in hexchat's GUI (at least that I saw,) so I entered it and tried to join only to be disconnected.-- This has been solved. Librechat requires SSL/TLS support.

I cannot even imagine what I should be googling to find a fix.

Any ideas?

Thanks!

Re: Cannot see servers. Cannot join servers. Cannot even chat via IRC.

Posted: Tue Jul 05, 2022 1:49 am
by blast
Are you seeing our three "Message of the day" messages in the chat box right after starting the client? Currently you'd see these three lines:

Code: Select all

Having issues with the server list? Try upgrading your OS and check the forums
BZFlag 2.4.24 is now available. Download now!
Due to recent turmoil at Freenode, we have moved our IRC chat channels to Libera.Chat
For the server list, pull up a terminal and see if "curl -vI https://my.bzflag.org/db/?action=LIST" works. You should see an "HTTP/1.1 200 OK" in there and it should look like this:

Code: Select all

$ curl -vI https://my.bzflag.org/db/?action=LIST
*   Trying 144.217.83.100:443...
* Connected to my.bzflag.org (144.217.83.100) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: CN=www.bzflag.org
*  start date: May 31 20:45:31 2022 GMT
*  expire date: Aug 29 20:45:30 2022 GMT
*  subjectAltName: host "my.bzflag.org" matched cert's "my.bzflag.org"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
> HEAD /db/?action=LIST HTTP/1.1
> Host: my.bzflag.org
> User-Agent: curl/7.74.0
> Accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Tue, 05 Jul 2022 01:40:08 GMT
Date: Tue, 05 Jul 2022 01:40:08 GMT
< Server: Apache
Server: Apache
< Cache-Control: no-cache
Cache-Control: no-cache
< Pragma: no-cache
Pragma: no-cache
< Content-Type: text/plain;charset=UTF-8
Content-Type: text/plain;charset=UTF-8
< X-Frame-Options: SAMEORIGIN
X-Frame-Options: SAMEORIGIN
< X-Xss-Protection: 1; mode=block
X-Xss-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
X-Content-Type-Options: nosniff

< 
* Connection #0 to host my.bzflag.org left intact
For the IRC connection, make sure you've told hexchat that you're connecting using TLS.

Re: Cannot see servers. Cannot join servers. Cannot even chat via IRC.

Posted: Tue Jul 05, 2022 2:11 am
by Pinocchio
"Message of the day not available" is what I see. I just did a full dist-upgrade. I'll see if it's possible to do another...

The curl connection works. The output is just like yours above.
libcurl is version 7.74.X.

Hexchat now connects just fine, thanks!

Re: Cannot see servers. Cannot join servers. Cannot even chat via IRC.

Posted: Tue Jul 05, 2022 10:45 pm
by blast
I tried with Devuan 4.0 (with the default Xfce environment) and compiled 2.4.24 from a git clone. It worked fine with all three of the libcurl4-*-dev packages. Try running the game client with debug level 4. That will write out detailed information about the curl connections being made. Just the MOTD request attempt should be enough since it's all going to the same web server.

From a terminal

Code: Select all

blast@devuan40:~/bzflag$ src/bzflag/bzflag -dddd 2> log.txt
Then post the log here. Mine looks like this. Some of the output might look different for you since this was after I tried building with libcurl4-nss-dev (which isn't the default).

Code: Select all

*   Trying 158.69.0.41:443...
* Connected to www.bzflag.org (158.69.0.41) port 443 (#0)
* Initializing NSS with certpath: none
* WARNING: failed to load NSS PEM library libnsspem.so. Using OpenSSL PEM certificates will not work.
*  CAfile: none
*  CApath: none
* loaded libnssckbi.so
* ALPN/NPN, server did not agree to a protocol
* SSL connection using TLS_AES_256_GCM_SHA384
* Server certificate:
*       subject: CN=www.bzflag.org
*       start date: May 31 20:45:31 2022 GMT
*       expire date: Aug 29 20:45:30 2022 GMT
*       common name: www.bzflag.org
*       issuer: CN=R3,O=Let's Encrypt,C=US
> GET /motd.php HTTP/1.1
Host: www.bzflag.org
Accept: */*

* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Tue, 05 Jul 2022 22:44:31 GMT
< Server: Apache
< Last-Modified: Sun, 27 Mar 2022 13:20:04 GMT
< ETag: "216-5db330dc75963"
< Accept-Ranges: bytes
< Content-Length: 534
< Cache-Control: max-age=604800
< Expires: Tue, 12 Jul 2022 22:44:31 GMT
< Vary: Accept-Encoding
< Content-Type: text/plain
< X-Frame-Options: SAMEORIGIN
< X-Xss-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< 
* Closing connection 0

Re: Cannot see servers. Cannot join servers. Cannot even chat via IRC.

Posted: Wed Jul 06, 2022 3:33 am
by Pinocchio
Here's the error:

Code: Select all

* ALPN, server did not agree to a protocol
* Failed sending HTTP request
* Closing connection 0
Addendum, I'm on Devaun 3.1 currently. I attempted to switch to 4.0, but there's been some changes (in the dependencies) and I'll need time to figure out what's up with them.

Re: Cannot see servers. Cannot join servers. Cannot even chat via IRC.

Posted: Wed Jul 06, 2022 10:51 am
by blast
Hmm, are you saying the system is partially upgraded to 4.0? I do notice that curl in Devuan 3.1 is only 7.64.0, but you have 7.74.0 which is from Devuan 4.0. That partial upgrade is likely the source of your problems.

Re: Cannot see servers. Cannot join servers. Cannot even chat via IRC.

Posted: Wed Jul 06, 2022 12:47 pm
by Pinocchio
blast wrote: Wed Jul 06, 2022 10:51 am Hmm, are you saying the system is partially upgraded to 4.0? I do notice that curl in Devuan 3.1 is only 7.64.0, but you have 7.74.0 which is from Devuan 4.0. That partial upgrade is likely the source of your problems.
It was in the backports repo.
What I did is change my sources.list to 4.0 and then run apt in download (-d) mode only until I could sort out the problems it's having with the dist-upgrade.

Re: Cannot see servers. Cannot join servers. Cannot even chat via IRC.

Posted: Wed Jul 06, 2022 12:50 pm
by Pinocchio
I decided to re-build bzflag just in case. I'm still experiencing the problems described above.

Re: Cannot see servers. Cannot join servers. Cannot even chat via IRC.

Posted: Thu Jul 07, 2022 10:19 am
by blast
Dunno. It all worked fine for me when I built 2.4.24 on Devuan 4.0, 3.1, and 3.1 w/ curl from backports. Maybe just use our flatpak version of the game for now.