1.14.3/4 MP server login error && Add-ons repo access error

Having trouble with the game? Report issues and get help here. Read this first!

Moderators: Forum Moderators, Developers

Forum rules
Before reporting issues in this section, you must read the following topic:
User avatar
chol
Posts: 33
Joined: September 9th, 2015, 11:19 am

Re: 1.14 MP server login requirement

Post by chol » July 25th, 2018, 11:25 am

>>"Whether you are currently logged into the forums or not has nothing to do with being able to connect to the MP server or add-ons server."
Yes! Whether I am already logged in, or click '[register]' button in MP server and log in, or I am not logged in makes absolutely no difference (versions 1.14.3 and 1.14.4)

Anti-virus? On GNU/Linux?
Minutes before the upgrade from 1.14.2 to 1.14.3 I was able to access MP server and Add-Ons repository flawlessly?
I can ping Wesnoth server IP ... no error on my machine.

Now that I upgraded to 1.14.4 (via steam) - same behavior: First start of game and successive first trial to get into MP server or add-ons repo results in a c. 10 second long search (for credentials I suppose). Every following new starts of game and trials to access MP server/add-ons repo result in split second error response :"connection refused" ..

What is going wrong? Can I tweak one of my config files to repair this awkward behavior?

P.S.: I posted in Tech Support.
Last edited by chol on July 25th, 2018, 12:18 pm, edited 1 time in total.

Tad_Carlucci
Developer
Posts: 309
Joined: April 24th, 2016, 4:18 pm

Re: 1.14 MP server login requirement

Post by Tad_Carlucci » July 25th, 2018, 11:50 am

The long pause sounds more like a TCP timeout.

The behavior you're describing sounds most like a bad DNS, router, firewall or proxy. Given no other information, I'd vote for you trying to play from work and running afoul of the company firewall/proxy, but that's just a wild-assed guess.
I forked real life and now I'm getting merge conflicts.

User avatar
chol
Posts: 33
Joined: September 9th, 2015, 11:19 am

1.14.3/4 MP server login error && Add-ons repo access error

Post by chol » July 25th, 2018, 12:13 pm

Hi!

# PROBLEM DESCRIPTION
# ================================================
# My Problem
# -----------------------------
Yesterday, I updated Wesnoth 1.14.2 to 1.14.3 (cmake from tar-ball on Linux, running fine) and set up a GitHub for my UMCs, eventually -- only to now being unable to:

#1 get on MP server and
#2 get access to add-ons server (error msg.: "connection refused")

The server rejections are so fast that I suspect some detail in one of my local config files that shuts me off?

Minutes before the upgrade from 1.14.2 to 1.14.3, yesterday, I was able to access MP server and Add-Ons repository flawlessly?
I can ping Wesnoth server IP.

What is going wrong? Can I tweak one of my config files to repair this awkward behavior?

# step-by-step walkthrough
# -----------------------------
Now that I upgraded to 1.14.4 (via steam) - same behavior: First start of game and successive first trial to get into MP server or add-ons repo results in a c. 10 second long search (for credentials I suppose). Every following new starts of game and trials to access MP server/add-ons repo result in split second error response :"connection refused".

Whether I am already logged in, or click '[register]' button in MP server and log in, or I am not logged in makes absolutely no difference (versions 1.14.3 and 1.14.4).

# error log (console)
# ---------------------------

Code: Select all

~$ wesnoth
Battle for Wesnoth v1.14.3
Started on Wed Jul 25 13:59:23 2018


Data directory:               /usr/local/share/wesnoth
User configuration directory: /home/USER/.config/wesnoth
User data directory:          /home/USER/.local/share/wesnoth/1.14
Cache directory:              /home/USER/.cache/wesnoth

Setting mode to 1440x852
Checking lua scripts... ok


20180725 14:03:42 warning network: Failed to connect to 144.76.5.6: Connection refused
20180725 14:03:42 error network: Tried all IPs. Giving up
20180725 14:03:42 warning network: poll Rethrowing: system:111
20180725 14:03:42 error network: caught network error: Connection refused
20180725 14:03:42 error general: Connection failed: Connection refused


20180725 14:03:50 warning network: Failed to connect to 144.76.5.6: Connection refused
20180725 14:03:50 error network: Tried all IPs. Giving up
20180725 14:03:50 error network: network_asio::error thrown during transaction with add-on server; "Connection refused"
20180725 14:03:50 error general: Remote host disconnected.
# lets "round up the usual suspects"
# --------------------------------------

Code: Select all

20180725 14:19:48 warning network: Failed to connect to 144.76.5.6: Connection refused

~$ ping 144.76.5.6
PING 144.76.5.6 (144.76.5.6) 56(84) bytes of data.
64 bytes from 144.76.5.6: icmp_seq=1 ttl=55 time=31.9 ms
64 bytes from 144.76.5.6: icmp_seq=2 ttl=55 time=32.1 ms
64 bytes from 144.76.5.6: icmp_seq=3 ttl=55 time=31.8 ms
64 bytes from 144.76.5.6: icmp_seq=4 ttl=55 time=31.6 ms
^C
--- 144.76.5.6 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 31.638/31.907/32.122/0.281 ms

Code: Select all

20180725 14:20:04 error network: Tried all IPs. Giving up
20180725 14:20:04 error network: network_asio::error thrown during transaction with add-on server; "Connection refused"
20180725 14:20:04 error general: Remote host disconnected.

~$ ping add-ons.wesnoth.org
PING add-ons.wesnoth.org (144.76.5.6) 56(84) bytes of data.
64 bytes from baldras.wesnoth.org (144.76.5.6): icmp_seq=1 ttl=55 time=32.2 ms
64 bytes from baldras.wesnoth.org (144.76.5.6): icmp_seq=2 ttl=55 time=32.0 ms
64 bytes from baldras.wesnoth.org (144.76.5.6): icmp_seq=3 ttl=55 time=32.1 ms
64 bytes from baldras.wesnoth.org (144.76.5.6): icmp_seq=4 ttl=55 time=32.1 ms
64 bytes from baldras.wesnoth.org (144.76.5.6): icmp_seq=5 ttl=55 time=31.9 ms
^C
--- add-ons.wesnoth.org ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 31.994/32.128/32.284/0.220 ms

# OS
# ================================================
# Ubuntu
# ------------------------------

Code: Select all

Ubuntu  18.04 LTS (Bionic Beaver) 
Kernel  GNU/Linux 4.15.0-29-generic x86_64
MATE    1.20.1
RAM     15,6 GiB
CPU     Intel Core i5-3570K 
Language en (us)
# WESNOTH
# ================================================
# Wesnoth v1.14.3 (tarball install, cmake):
# -----------------------------------------------

Code: Select all

Battle for Wesnoth v1.14.3 (console)
Started on Wed Jul 25 13:38:12 2018
Data directory:               /usr/local/share/wesnoth
User configuration directory: /home/USER/.config/wesnoth
User data directory:          /home/USER/.local/share/wesnoth/1.14
Cache directory:              /home/USER/.cache/wesnoth
Setting mode to 1440x852
Checking lua scripts... ok

The Battle for Wesnoth version 1.14.3
Running on Ubuntu 18.04 LTS
Game paths
==========
Data dir:        /usr/local/share/wesnoth
User config dir: /home/USER/.config/wesnoth
User data dir:   /home/USER/.local/share/wesnoth/1.14-devel
Saves dir:       /home/USER/.local/share/wesnoth/1.14-devel/saves
Add-ons dir:     /home/USER/.local/share/wesnoth/1.14-devel/data/add-ons
Cache dir:       /home/USER/.cache/wesnoth
Libraries
=========
Boost:             1.65.1
OpenSSL/libcrypto: 1.1.0g  (runtime 1.1.0g)
Cairo:             1.15.10 (runtime 1.15.10)
Pango:             1.40.14 (runtime 1.40.14)
SDL:               2.0.8   (runtime 2.0.8)
SDL_image:         2.0.3   (runtime 2.0.3)
SDL_mixer:         2.0.2   (runtime 2.0.2)
SDL_ttf:           2.0.14  (runtime 2.0.14)
Features
========
OpenMP Unterstützung (experimentell):      no
JPG Bildschirmfotos:                        yes
Tab-Vervollständigung in der Lua Konsole:  yes
Unterstützung für Right-to-Left Sprachen: yes
Benachrichtigungen mittels D-Bus:           yes
# My tarball install receipt
#----------------------------

Code: Select all

https://forums.wesnoth.org/viewtopic.php?f=5&t=47054&start=45#p621390

https://linuxconfig.org/installation-of-wesnoth-strategy-game-from-source-on-ubuntu-14-04-linux

$ sudo aptitude update

$ sudo aptitude install -y apt-utils libboost-all-dev git scons gcc g++ make cmake clang openssl gdb xvfb libbz2-1.0 libbz2-dev bzip2 zlib1g zlib1g-dev libpangocairo-1.0-0 libssl-dev libsdl2-2.0-0 libsdl2-dev libsdl2-image-2.0-0 libsdl2-image-dev libsdl2-mixer-2.0-0 libsdl2-mixer-dev libsdl2-ttf-2.0-0 libsdl2-ttf-dev libreadline6-dev libvorbis-dev libcairo2 libcairo2-dev libpango-1.0-0 libpango1.0-dev libfribidi0 libfribidi-dev

$ sudo aptitude install cmake libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libpango1.0-dev libsdl-net1.2-dev wget

$ cd /home/user/Software

$ wget -c https://sourceforge.net/projects/wesnoth/files/wesnoth-1.14/wesnoth-1.14.3/wesnoth-1.14.3.tar.bz2

$ tar xjf wesnoth-1.14.3.tar.bz2

At this stage we are ready for the actual compilation. Navigate to Wesnoth's extracted directory and create a build directory called build to be used for the actual compilation:

$ cd /home/user/Software/wesnoth-1.14.3 && mkdir build && cd build

$ sudo cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/ ../
[alternative for development:]

$ sudo cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/user/Software/wesnoth-1.14-devel ../

# Wesnoth v1.14.4 on Steam:
# --------------------------------

Code: Select all

Wesnoth 1.14.4 (steam) 
The Battle for Wesnoth version 1.14.4 (4cf379b-Modified)
Running on Ubuntu 18.04 LTS
Game paths
==========
Data dir:        /home/USER/.steam/steam/steamapps/common/wesnoth
User config dir: /home/USER/.config/wesnoth
User data dir:   /home/USER/.local/share/wesnoth/1.14
Saves dir:       /home/USER/.local/share/wesnoth/1.14/saves
Add-ons dir:     /home/USER/.local/share/wesnoth/1.14/data/add-ons
Cache dir:       /home/USER/.cache/wesnoth
Libraries
=========
Boost:             1.66
OpenSSL/libcrypto: 1.0.1  (runtime 1.0.2n)
Cairo:             1.10.2 (runtime 1.15.10)
Pango:             1.30.0 (runtime 1.40.14)
SDL:               2.0.4  (runtime 2.0.8)
SDL_image:         2.0.1  (runtime 2.0.3)
SDL_mixer:         2.0.1  (runtime 2.0.2)
SDL_ttf:           2.0.14 (runtime 2.0.14)
Features
========
OpenMP Unterstützung (experimentell):      no
JPG Bildschirmfotos:                        no
Tab-Vervollständigung in der Lua Konsole:  yes
Unterstützung für Right-to-Left Sprachen: no
Benachrichtigungen mittels D-Bus:           yes
Last edited by chol on July 25th, 2018, 12:33 pm, edited 1 time in total.

User avatar
chol
Posts: 33
Joined: September 9th, 2015, 11:19 am

Re: 1.14 MP server login requirement

Post by chol » July 25th, 2018, 12:30 pm

O.k. thank you!

Maybe its the "DNS, router, firewall or proxy"?
O.k. lets "round up the usual suspects."

Code: Select all

20180725 14:19:48 warning network: Failed to connect to 144.76.5.6: Connection refused

~$ ping 144.76.5.6
PING 144.76.5.6 (144.76.5.6) 56(84) bytes of data.
64 bytes from 144.76.5.6: icmp_seq=1 ttl=55 time=31.9 ms
64 bytes from 144.76.5.6: icmp_seq=2 ttl=55 time=32.1 ms
64 bytes from 144.76.5.6: icmp_seq=3 ttl=55 time=31.8 ms
64 bytes from 144.76.5.6: icmp_seq=4 ttl=55 time=31.6 ms
^C
--- 144.76.5.6 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 31.638/31.907/32.122/0.281 ms

Code: Select all

20180725 14:20:04 error network: Tried all IPs. Giving up
20180725 14:20:04 error network: network_asio::error thrown during transaction with add-on server; "Connection refused"
20180725 14:20:04 error general: Remote host disconnected.

~$ ping add-ons.wesnoth.org
PING add-ons.wesnoth.org (144.76.5.6) 56(84) bytes of data.
64 bytes from baldras.wesnoth.org (144.76.5.6): icmp_seq=1 ttl=55 time=32.2 ms
64 bytes from baldras.wesnoth.org (144.76.5.6): icmp_seq=2 ttl=55 time=32.0 ms
64 bytes from baldras.wesnoth.org (144.76.5.6): icmp_seq=3 ttl=55 time=32.1 ms
64 bytes from baldras.wesnoth.org (144.76.5.6): icmp_seq=4 ttl=55 time=32.1 ms
64 bytes from baldras.wesnoth.org (144.76.5.6): icmp_seq=5 ttl=55 time=31.9 ms
^C
--- add-ons.wesnoth.org ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4004ms
rtt min/avg/max/mdev = 31.994/32.128/32.284/0.220 ms
http://add-ons.wesnoth.org/ is working, too

See, my network is fine : )
It's an issue in the game's client or on game's server side.
Last edited by chol on August 1st, 2018, 9:31 am, edited 1 time in total.

Tad_Carlucci
Developer
Posts: 309
Joined: April 24th, 2016, 4:18 pm

Re: 1.14.3/4 MP server login error && Add-ons repo access error

Post by Tad_Carlucci » July 25th, 2018, 3:31 pm

Pinging only says you can get a packet from here to there. A proxy can still step in the way on the actual transfers and a firewall can still block access to the required ports.

I tested here on Arch and cannot reproduce a similar issue.
I forked real life and now I'm getting merge conflicts.

User avatar
chol
Posts: 33
Joined: September 9th, 2015, 11:19 am

Re: 1.14.3/4 MP server login error && Add-ons repo access error

Post by chol » July 25th, 2018, 6:16 pm

Tad_Carlucci wrote:
July 25th, 2018, 3:31 pm
Pinging only says you can get a packet from here to there. A proxy can still step in the way on the actual transfers and a firewall can still block access to the required ports.
Sure, provided there was a proxy in the way and a FW was actually blocking ports. Not so in my setup.
I set up a brand new install on a spare laptop: same issue on 1.14.3 and 1.14.4 :(
Tad_Carlucci wrote:
July 25th, 2018, 3:31 pm
I tested here on Arch and cannot reproduce a similar issue.
Can the newly introduced registration process be in the way? How is the forum login talked back to little brother wesnoth client? Can there be hazzles?

User avatar
Ravana
Moderator
Posts: 1854
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: 1.14.3/4 MP server login error && Add-ons repo access error

Post by Ravana » July 25th, 2018, 6:19 pm

Registration has not changed during that time.

Tad_Carlucci
Developer
Posts: 309
Joined: April 24th, 2016, 4:18 pm

Re: 1.14.3/4 MP server login error && Add-ons repo access error

Post by Tad_Carlucci » July 25th, 2018, 9:23 pm

The client software on your computer does NOT communicate with the Forums to authenticate on the Multiplayer server.

The requirement is that you have a Forum account, and that you provide the MP server (via your client) with the username and password for that Forum account. The MP server verifies the password against the Forum SQL database.

The way it works is the client provides the username. The MP server gets the hashed password from the SQL database. This consists of a salt value, and your password, encrypted with that salt value. The MP server generates a random value ('nonce') then encrypts the salt and hashed password with that nonce. The MP server sends the nonce and salt to your client. The client encrypts your password with the salt, then encrypts the result with the nonce, and send the result back to the MP server. If the encrypted, hashed, password your client sent does not match the encrypted, hashed, password the MP server generated, it denies access.

Note there is no network transaction between the MP server and the Forum SQL database; they are on the same host. The only network transactions are between your client and the MP server.

Note there is no authentication needed for the addons server.

You built from source. The cryptographic functions used are part of the Wesnoth source kit. So it's not a version incompatibility.

You can ping the machines. So you have connectivity.

We know the addon and MP servers are up and talking.

You get an 'connection refused' error when attempting to speak to the MP server and the addons server. There are two possible reasons I can think of: somewhere along the way a firewall or proxy is either blocking the TCP ports, or mapping them to other ports; or your client has been told to use different port numbers.

The MP server is on port 15000. I don't remember the addons port number but I'm willing to bet when we fix the issue with the MP server, if the addon server does not also start working, the fix will be apparent.

So, one more test:

Code: Select all

$ telnet wesnoth.org 15000
Trying 144.79.5.6...
Connected to wesnoth.org.
Escape character is '^]'.
^]
telnet> close
Connection closed.
$
If get a connection refused, the problem is a firewall or proxy.

If you get a connection, as I did, above, the problem is your Wesnoth game client is not using the correct port number.
I forked real life and now I'm getting merge conflicts.

Tad_Carlucci
Developer
Posts: 309
Joined: April 24th, 2016, 4:18 pm

Re: 1.14.3/4 MP server login error && Add-ons repo access error

Post by Tad_Carlucci » July 25th, 2018, 9:29 pm

The other possibility, which I discounted because you said you're using 1.14.3 and 1.14.4, is that you're using an ancient version.

The MP server actually uses a number of ports. Which one is based upon the specific version of Wesnoth you're running. When you connect with an old version, the MP server will, in effect, say "You're too old for me, the server you need is on port XXX." and your client will automatically reconnect on that new port number.

So, it's possible your Wesnoth client is old, or not sending the proper version indicator, and the MP server is sending it to a non-working TCP port which is causing the refusal. I discount that since you built from source.
I forked real life and now I'm getting merge conflicts.

User avatar
chol
Posts: 33
Joined: September 9th, 2015, 11:19 am

Re: 1.14.3/4 MP server login error && Add-ons repo access error

Post by chol » July 26th, 2018, 12:16 pm

Tad_Carlucci wrote:
July 25th, 2018, 9:23 pm
(..) The requirement is that you have a Forum account, and that you provide the MP server (via your client) with the username and password for that Forum account. The MP server verifies the password against the Forum SQL database. (..)
Ah! - Yesterday I never received a sign-in window with a logon prompt whenever I tried to access the MP server on different installs and on different computers (PC & laptop). Today a logon window prompts and I can give my credentials after I click into Wesnoth's MP server.
Tad_Carlucci wrote:
July 25th, 2018, 9:23 pm
The MP server is on port 15000. I don't remember the addons port number but I'm willing to bet when we fix the issue with the MP server, if the addon server does not also start working, the fix will be apparent.

So, one more test:

Code: Select all

$ telnet wesnoth.org 15000
Trying 144.79.5.6...
Connected to wesnoth.org.
Escape character is '^]'.
^]
telnet> close
Connection closed.
$
If get a connection refused, the problem is a firewall or proxy.
If you get a connection, as I did, above, the problem is your Wesnoth game client is not using the correct port number.
O.k. I get a connect.

Code: Select all

~$ telnet wesnoth.org 15000
Trying 144.76.5.6...
Connected to wesnoth.org.
Escape character is '^]'.

User avatar
chol
Posts: 33
Joined: September 9th, 2015, 11:19 am

Re: 1.14.3/4 MP server login error && Add-ons repo access error

Post by chol » July 26th, 2018, 12:20 pm

Thank you for the great help. I hope it also would help other guys in future. ^_^
Tad_Carlucci wrote:
July 25th, 2018, 9:29 pm
(..) So, it's possible your Wesnoth client is old, or not sending the proper version indicator, and the MP server is sending it to a non-working TCP port which is causing the refusal. I discount that since you built from source.
A possible cause of trouble could be the local config file. Let's say an old version was used by new build (in case it searches and finds old one? Or multiple versions write into the same config and distort it somehow. I wonder why I hadn't got one logon window with credentials prompts, but today I got one. Maybe some admin tossed a flag or a credentials file serverside to help me? Would be great if I could initiate this behavior, that is to override auto log-on and get a log-in window, again, locally clientside if I encounter problems? Could be helpful.

Another thing the makes me wonder is the speed by which the client rejected my access attempts to the MP server yesterday. Might it be that some info is written clientside in case server rejected access from user with certain credentials (pw & username) so that new access attemps are rejected clientside for speed and attenuation of network load of MP server?

User avatar
Pentarctagon
Forum Administrator
Posts: 3547
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: 1.14.3/4 MP server login error && Add-ons repo access error

Post by Pentarctagon » July 26th, 2018, 12:43 pm

To enter your username and password manually, you would unselect the option in Preferences > Multiplayer > Save password locally (encrypted). If that option was already not selected, then the connection error was happening before the server requested your username+password.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code

User avatar
shadowm
Site Administrator
Posts: 6486
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: 1.14.3/4 MP server login error && Add-ons repo access error

Post by shadowm » July 26th, 2018, 12:44 pm

chol wrote:
July 26th, 2018, 12:20 pm
Another thing the makes me wonder is the speed by which the client rejected my access attempts to the MP server yesterday. Might it be that some info is written clientside in case server rejected access from user with certain credentials (pw & username) so that new access attemps are rejected clientside for speed and attenuation of network load of MP server?
It is not.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Elsewhere: shadowmBlogFollow me on Twitter

User avatar
chol
Posts: 33
Joined: September 9th, 2015, 11:19 am

Re: 1.14.3/4 MP server login error && Add-ons repo access error

Post by chol » July 31st, 2018, 8:51 am

shadowm wrote:
July 26th, 2018, 12:44 pm
It is not.
O.k. so - a flag/info is set/written serverside, then? Is there the option of a manually initiated override?

User avatar
shadowm
Site Administrator
Posts: 6486
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: 1.14.3/4 MP server login error && Add-ons repo access error

Post by shadowm » July 31st, 2018, 9:40 am

chol wrote:
July 31st, 2018, 8:51 am
O.k. so - a flag/info is set/written serverside, then? Is there the option of a manually initiated override?
No such a thing on the server side either, at least not something that would cause a transport layer error (“Connection refused” is not an application layer error, it’s a generic networking error resulting from a failure to connect). The only thing we have is an automatic IP ban on a certain number of repeated login attempts within a small amount of time, but that expires after 60 minutes and results in a very visible message stating you’re temporarily banned from the server when you successfully connect to it.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.
Elsewhere: shadowmBlogFollow me on Twitter

Post Reply