unable to register clients with pioneers-server in jaunty

Bug #375745 reported by laan
56
This bug affects 10 people
Affects Status Importance Assigned to Milestone
pioneers (Ubuntu)
Fix Released
Undecided
Roland Clobus
Nominated for Jaunty by laan

Bug Description

This problem seems to only appear in a fresh installed ubuntu 9.4:
After having started pioneers server clients cannot connect to the server.
Here is the Terminal output:

~$ pioneers-server-gtk --debug01:34:38 [INFO] Bereite Spiel vor #1242171278.G.556\n
ai port is 5556
01:34:45 - Computerspieler-Typ: greedy
01:34:45 - Verbinde zu localhost Port 5556
01:34:45 *FEHLER* Fehler beim Verbinden zum Rechner 'localhost': Connection refused

The client's status is marked as not connected.

After a discussion on ubuntuusers.de I decided to report this bug.

It seems that only new installs of the final version of ubuntu 09.04 are affected.

description: updated
Revision history for this message
drink (martin-espinoza) wrote :

This is what it looks like here. I confirm that pioneers works fine on my system that I installed from the RC and updated to final, and doesn't work on this system which was installed from final. I start server, add client, stop server.

drink@alexander:~$ pioneers-server-gtk --debug
16:38:38 [INFO] Preparing game #1243985918.G.635\n
ai port is 5557
16:38:39 - Type of computer player: greedy
16:38:39 - Connecting to localhost, port 5557
16:38:39 *ERROR* Error connecting to host 'localhost': Connection refused
16:38:42 [INFO] Player Joan of Arc from not connected left\n

Revision history for this message
Catalin Francu (cata) wrote :

I am getting the same error, both with the default Ubuntu 9.04 install of pioneers 0.12.2-4 (sudo apt-get install pioneers) or with a build from source.

To reproduce this error:
1) Start the client
2) Press "Create game"
3) Press "Start server"
4) Press "Join private game"
5) Make sure the fields are set to "localhost" and "5556"
6) Press "OK"

The messages frame now displays:
17:04:59 Connecting to localhost, port 5556
17:04:59 Error connecting to host 'localhost': Connection refused

Workaround:
1) Instead of "localhost" type 127.0.0.1

In addition, the "Add Computer Player" in the button does not appear to work. It does add the players, but none of them are really connected to the game.

Revision history for this message
Catalin Francu (cata) wrote :

I played with the pioneersai and pioneers-server-console a little and I've managed to start a single-player game against 3 computer players, as follows:

1) Start the server GUI as usual
2) In 3 different terminals, type

pioneersai -s 127.0.0.1 -n "Peter"
pioneersai -s 127.0.0.1 -n "Paul"
pioneersai -s 127.0.0.1 -n "Mary"

3) Start the client and join a private game with hostname 127.0.0.1 and port 5556

Revision history for this message
Roland Clobus (rclobus) wrote :

I'm able to reproduce this bug.
A possible work around: remove 'localhost' from the IPv6 address in /etc/hosts

Changed in pioneers (Ubuntu):
status: New → Confirmed
assignee: nobody → Roland Clobus (rclobus)
Revision history for this message
Roland Clobus (rclobus) wrote :

A fix was committed upstream. A release will follow soon

Changed in pioneers (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Jochen Kemnade (jochenkemnade) wrote :

Will there also be a fix for karmic? The version in the same as on jaunty and I just experienced the same behavior.

Revision history for this message
muszek (muszek) wrote :

workaround: connect to 127.0.0.1 instead of localhost.

01:06:50 Connecting to localhost, port 5556
01:06:50 Error connecting to host 'localhost': Connection refused
01:06:56 Connecting to 127.0.0.1, port 5556
01:06:56 Player 1 is now muszek.

Revision history for this message
Roland Clobus (rclobus) wrote :

Pioneers 0.12.3 was released some time ago. It fixes this bug.
I'm not sure who will backport the package to all versions of Ubuntu that carry 0.12.2

Changed in pioneers (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.