fiveserver icon indicating copy to clipboard operation
fiveserver copied to clipboard

'Connection to server lost' after in-game login form.

Open stley opened this issue 3 years ago • 5 comments

Hello, i recently cloned this repo on my VPS and i managed to set it up. The thing is, after creating my account, i went in-game and tried to log-in. Moments after filling the log-in form with my serial, and username-password and pressing connect, the game returns with a 'Connection to server lost' error.

image

Here I drop you the last 30 lines of the log:

2022-07-18T15:37:44-0300` [NewsProtocol,2,179.39.180.172] Unhandled Error
	Traceback (most recent call last):
	  File "/home/fiveserver/.local/lib/python3.7/site-packages/twisted/python/log.py", line 96, in callWithLogger
	    return callWithContext({"system": lp}, func, *args, **kw)
	  File "/home/fiveserver/.local/lib/python3.7/site-packages/twisted/python/log.py", line 80, in callWithContext
	    return context.call({ILogContext: newCtx}, func, *args, **kw)
	  File "/home/fiveserver/.local/lib/python3.7/site-packages/twisted/python/context.py", line 117, in callWithContext
	    return self.currentContext().callWithContext(ctx, func, *args, **kw)
	  File "/home/fiveserver/.local/lib/python3.7/site-packages/twisted/python/context.py", line 82, in callWithContext
	    return func(*args, **kw)
	--- <exception caught here> ---
	  File "/home/fiveserver/.local/lib/python3.7/site-packages/twisted/internet/posixbase.py", line 683, in _doReadOrWrite
	    why = selectable.doRead()
	  File "/home/fiveserver/.local/lib/python3.7/site-packages/twisted/internet/tcp.py", line 248, in doRead
	    return self._dataReceived(data)
	  File "/home/fiveserver/.local/lib/python3.7/site-packages/twisted/internet/tcp.py", line 253, in _dataReceived
	    rval = self.protocol.dataReceived(data)
	  File "/home/fiveserver/lib/fiveserver/protocol/__init__.py", line 55, in dataReceived
	    self._packetReceived(pkt)
	  File "/home/fiveserver/lib/fiveserver/protocol/__init__.py", line 88, in _packetReceived
	    self.packetReceived(pkt)
	  File "/home/fiveserver/lib/fiveserver/protocol/__init__.py", line 141, in packetReceived
	    return handler(pkt)
	  File "/home/fiveserver/lib/fiveserver/protocol/pes6.py", line 100, in getServerList_2005
	    struct.pack('!H',d)) for a,b,name,ip,port,c,d in servers])
	  File "/home/fiveserver/lib/fiveserver/protocol/pes6.py", line 100, in <listcomp>
	    struct.pack('!H',d)) for a,b,name,ip,port,c,d in servers])
	builtins.AttributeError: 'NoneType' object has no attribute 'encode'
	
2022-07-18T15:37:44-0300 [NewsProtocol,2,179.39.180.172] Connection lost: 'NoneType' object has no attribute 'encode'

Do you have any clue about how do I fix this error? Thank you.

stley avatar Jul 18 '22 18:07 stley

Imput you IP in sixserver.yml

ToniFabri avatar Jul 29 '22 08:07 ToniFabri

Its not working for me 2

arnon001 avatar Oct 16 '22 11:10 arnon001

I had the same problem

windflash-cloud avatar Dec 23 '22 14:12 windflash-cloud