Jump to content

Lobby Server error.


gameboy
 Share

Recommended Posts

The operating system I use is ubuntu14.04 64bit.

Today, when I set up my own Lobby Server, these errors occurred:  

   

2017-05-27 22:39:55        INFO     Negotiating TLS
2017-05-27 22:39:55        INFO     Using SSL version: TLS 1.0
2017-05-27 22:39:55        ERROR    CERT: Invalid certificate trust chain.
2017-05-27 22:39:55        ERROR    Can not read from closed socket.
2017-05-27 22:40:02        INFO     Negotiating TLS
2017-05-27 22:40:02        INFO     Using SSL version: TLS 1.0
2017-05-27 22:40:03        ERROR    CERT: Invalid certificate trust chain.
2017-05-27 22:40:03        ERROR    Can not read from closed socket.
2017-05-27 22:40:24        INFO     Negotiating TLS
2017-05-27 22:40:24        INFO     Using SSL version: TLS 1.0
2017-05-27 22:40:25        ERROR    CERT: Invalid certificate trust chain.
2017-05-27 22:40:25        ERROR    Can not read from closed socket.
 

     

 

Link to comment
Share on other sites

5 hours ago, gameboy said:

My command is: $python3 XpartaMuPP.py ,I didn't execute the command: "--domain localhost.""

With default options it will try to connect to lobby.wildfiregames.com, so you have to specify the "domain" argument (and most likely other options too), see README

2 hours ago, FeXoR said:

@fcxSanya Is python 3.x correct in the first place?

Python 3 was specified as the interpreter since the initial lobby bot implementation (see #1504) (and I'm able to run it locally with python3).

2 hours ago, FeXoR said:

(I usually use python 2 with Python 3 compatible syntax. At least in the scientific communities that's still the default.)

This may be caused by some legacy libraries (which no one bothered to port to python 3 yet) or maybe the scientific communities are somewhat conservative.
In any case there should be no issues due to python 3 in this case (I'm not even sure whether XpartaMuPP is working with python 2).

  • Like 1
Link to comment
Share on other sites

@fcxSanya :A new problem has occurred:

root@ben:/home/tom/source/tools/XpartaMuPP# python3 XpartaMuPP.py --domain 192.168.3.10 --login wfgbot --password 12345678 --nickname WFGbot --room 22
2017-06-01 13:21:46        INFO     Negotiating TLS
2017-06-01 13:21:46        INFO     Using SSL version: 3
2017-06-01 13:21:46        INFO     Authentication failed.
root@ben:/home/tom/source/tools/XpartaMuPP#
 
 
BTW: Do I need to change anything? Would you please tell me how to solve the problem? Thank you.
Edited by gameboy
Link to comment
Share on other sites

On 5/29/2017 at 4:53 PM, gameboy said:

2017-06-01 13:21:46        INFO     Authentication failed

Are the credentials you specified corresponding to the ones you set for the bot on the "Ejabberd configuration" step?

If you installed / configured ejabberd properly you should be able to connect to it with a regular XMPP client.

  • Like 2
Link to comment
Share on other sites

The service has started, but the problem still arises:

root@ben:/home/tom/source/tools/XpartaMuPP# python3 XpartaMuPP.py --domain 192.168.3.10 --login wfgbot --password 12345678 --nickname WFGbot --room 22
2017-06-01 15:21:37        INFO     Negotiating TLS
2017-06-10 15:21:37        INFO     Using SSL version: 3
2017-06-10 15:21:37        INFO     XpartaMuPP started
root@ben:/home/tom/source/tools/XpartaMuPP#

Service unavailable

 

Edited by gameboy
Link to comment
Share on other sites

@gameboy when XpartaMuPP is running with the proper arguments, you should see it in the lobby (and it's not present on your screenshot).

You can check this via XMPP client too:
* start XpartaMuPP (and keep it running)
* join the lobby server via XMPP client with another account
* get the chat room list, you should see the room joined by the bot
* join the room, you should see the bot in it

xpartamupp_muc.png

Link to comment
Share on other sites

I run it again, but I didn't get the  chat room list .
root@ben:/home/tom/tools/XpartaMuPP# python3 XpartaMuPP.py --domain localhost --login wfgbot21 --password 123456 --nickname WFGbot --room arena21
2017-06-11 20:26:52        INFO     Negotiating TLS
2017-06-11 20:26:52        INFO     Using SSL version: 3
2017-06-11 20:26:52        INFO     Node set to: wfgbot21@localhost/CC
2017-06-11 20:26:52        INFO     XpartaMuPP started
 
BTW:The operating system I'm using is ubuntu14.04 64bit.
 
 
 
 
Edited by gameboy
Link to comment
Share on other sites

15 minutes ago, gameboy said:
I run it again, but I didn't get the  chat room list

1. install some XMPP client if you don't have one yet (I used Pidgin on the screenshot)

2. login via XMPP client with some other account (either the one you are using in game ("boytom", the password should be in ~/.config/0ad/config/user.cfg) or create a new one via ejabberdctl)

3. get the room list (in Pidgin it's something like menu -> tools -> room list) 

Link to comment
Share on other sites

I have successfully entered the room list, but when I enter the game hall and click the player name on the left mouse button, that problem still exists.           I set these up in the configuration file default.cfg:

[lobby]
history = 0                         ; Number of past messages to display on join
room = "arena22"                    ; Default MUC room to join
server = "192.168.3.10"             ; Address of lobby server
xpartamupp = "WFGbot"             ; Name of the server-side xmpp client that manage games
buddies = ","                       ; Comma separated list of playernames that the current user has marked as buddies

root@ben:/home/tom/tools/XpartaMuPP# python3 XpartaMuPP.py --domain 192.168.3.10  --login wfgbot21 --password 123456 --nickname WFGbot --room arena21

2017-06-12 2:26:52        INFO     Negotiating TLS
2017-06-12 20:29:50        INFO     Using SSL version: 3
2017-06-12 20:29:50        INFO     Node set to: wfgbot21@192.168.3.10/CC
2017-06-12 20:29:50        INFO     XpartaMuPP started
 

26.png

Link to comment
Share on other sites

39 minutes ago, gameboy said:

[lobby]
<...>
room = "arena22"                    ; Default MUC room to join
xpartamupp = "WFGbot"             ; Name of the server-side xmpp client that manage games

root@ben:/home/tom/tools/XpartaMuPP# python3 XpartaMuPP.py --domain 192.168.3.10  --login wfgbot21 --password 123456 --nickname WFGbot --room arena21

"lobby.xpartamupp" setting should match the "login" argument of XpartaMuPP.py, i. e. "wfgbot21" in your example

And "room" should be the same too (either "arena21" or "arena22" in both places)

Link to comment
Share on other sites

@gameboy try this:

[lobby]
server = "localhost"             ; Address of lobby server
room = "arena21"                    ; Default MUC room to join
xpartamupp = "wfgbot21"             ; Name of the server-side xmpp client that manage games
root@ben:/home/tom/tools/XpartaMuPP# python3 XpartaMuPP.py --domain localhost  --login wfgbot21 --password 123456 --nickname WFGbot --room arena21

 

Link to comment
Share on other sites

@fcxSanya

When I created the game in multiplayer hall, my friend joined my game (my friend and I were in the LAN), and the XpartaMuPP server went wrong

root@ben:/home/tom/tools/XpartaMuPP# python3 XpartaMuPP.py --domain 192.168.3.10 --login wfgbot22 --password 123456 --nickname WFGbot --room arena22
2017-06-13 13:27:26        INFO     Negotiating TLS
2017-06-13 13:27:26        INFO     Using SSL version: 3
2017-06-13 13:27:26        INFO     Node set to: wfgbot22@192.168.3.10/CC
2017-06-13 13:27:27        INFO     XpartaMuPP started
2017-06-13 13:28:19        WARNING  Ratings bot 'disabled@192.168.3.10/CC' is offline
 
Traceback (most recent call last):
  File "XpartaMuPP.py", line 328, in iqhandler
    self.gameList.removeGame(iq['from'])
  File "XpartaMuPP.py", line 45, in removeGame
    del self.gameList[str(JID)]
KeyError: 'tomboy@192.168.3.10/WFG'
2017-06-12 21:20:06        ERROR    Failed to process game unregistration data
 

 

Edited by gameboy
Link to comment
Share on other sites

On 12.06.2017 at 4:40 PM, gameboy said:

2017-06-13 13:28:19        WARNING  Ratings bot 'disabled@192.168.3.10/CC' is offline

This is displayed if you use some rating-related functionality (viewing the leaderboard for example) and the rating bot (EcheLOn) is offline. See README if you want to run it.

On 12.06.2017 at 4:40 PM, gameboy said:

Traceback (most recent call last):

  File "XpartaMuPP.py", line 328, in iqhandler
    self.gameList.removeGame(iq['from'])
  File "XpartaMuPP.py", line 45, in removeGame
    del self.gameList[str(JID)]
KeyError: 'tomboy@192.168.3.10/WFG'
2017-06-12 21:20:06        ERROR    Failed to process game unregistration data

Can you reproduce it? Also any idea why you have "WFG" resource in JID: 'tomboy@192.168.3.10/WFG'? (I believe "0ad" resource is hardcoded when you join the lobby via the game; and "CC" for bots)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...