spring / uberserver

uberserver, a matchmaking/chat lobby server for the spring rts project
https://springrts.com/wiki/Uberserver
Other
33 stars 38 forks source link

Cannot login via SpringLobby 0.197 - "Invalid username or password" #109

Closed adamryczkowski closed 9 years ago

adamryczkowski commented 9 years ago

I want to check if I can setup playing spring games without the internet.

I followed the http://springrts.com/wiki/Spring_on_a_LAN. It says that there is no need for password when logging in as a user - unfortunately whatever I do, the lobby server never loggs me in. Here is the stdout from the current git version (325177ba):

Error parsing profanity list: [Errno 2] No such file or directory: 'bad_words.txt' Error parsing shock site list: [Errno 2] No such file or directory: 'bad_sites.txt' Multiple threads are not supported with sqlite, forcing a single thread Please note the server performance will not be optimal You might want to install a real database server or use LAN mode () Logging enabled at: server.log Awaiting UDP messages on port 8201 2014-10-16T14:20:04 ---------------------------------------- 2014-10-16T14:20:04 Starting uberserver... 2014-10-16T14:20:04 2014-10-16T14:20:04 2014-10-16T14:20:04 Detecting local IP: 2014-10-16T14:20:04 127.0.1.1 2014-10-16T14:20:04 Detecting online IP: 2014-10-16T14:20:04 87.205.15.175 2014-10-16T14:20:04 2014-10-16T14:20:04 Listening for clients on port 8200 2014-10-16T14:20:04 Using 1 client handling thread(s). 2014-10-16T14:20:04 Client connected from 87.205.15.175:0, session ID 0. 2014-10-16T14:20:04 Successfully logged in static user on session 0. 2014-10-16T14:20:19 Client connected from 87.205.15.175:48403, session ID 1. 2014-10-16T14:20:19 Handler 0:1 Failed to log in user : Invalid username or password. 2014-10-16T14:20:19 Client disconnected from 87.205.15.175, session ID was 1: Quit: Using http://springlobby.info/

Maybe there is some database with usernames and passwords after all? Where can I find it? Is knowledge of SQL a necessity to add a single user there?

adamryczkowski commented 9 years ago

To reproduce on Ubuntu 14.04 64 bit:

  1. Install springlobby via apt-get
  2. do git clone of the 325177ba86423e.
  3. cd uberserver
  4. ./server.py
  5. On the other terminal launch springlobby and try to log in.
abma commented 9 years ago

you need to register the user account first before you can use it, see the "register" tab on springlobby's login dialog.

adamryczkowski commented 9 years ago

Is it possible to register via springlobby 0.197, or should I research how to compile springlobby (I wasn't able to do that in the past). In the springlobby register (as opposed to the login screen) screen I have no way of entering the IP of the remote spring server: screenshot from 2014-10-16 17 07 27

And entering anything fails.

abma commented 9 years ago

the server from the login tab is used...

adamryczkowski commented 9 years ago

Ok.

The problem are

  1. the counter-intuitive UI: the "server" text box should be also present on the Login tab
  2. misguiding information on the official spring website http://springrts.com/wiki/Spring_on_a_LAN stating, that I should use empty password. In fact empty password is disallowed. I'll try to post bugs on the respective places.
abma commented 9 years ago

FYI: the wiki page was written when uberserver had a "LAN mode" which didn't require a password. this mode was recently removed.