[SOLVED] ERROR [default][pyplanet.core.instance] 0 bytes read on a total of 15 expected bytes

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Post Reply
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

[SOLVED] ERROR [default][pyplanet.core.instance] 0 bytes read on a total of 15 expected bytes

Post by o0Julia0o »

i am using the tutorial: https://pypla.net/en/latest/intro/configuration.html

In the base.py i edited the following:

Code: Select all

# Dedicated configuration holds the different dedicated servers that the instances will run on including the names of
# the instances.
DEDICATED = {
	'default': {
		'HOST': '127.0.0.1',
		'PORT': '2354',
		'USER': 'SuperAdmin',
		'PASSWORD': 'SuperAdmin',
	}
}
I kept the defaults in the dedicated_cfg from the dedicated server in the SuperAdmin-section. So i filled this into the base.py.

In th dedicated_cfg i changed this:

Code: Select all

		<force_ip_address></force_ip_address>
		<server_port>2354</server_port>
		<client_port>0</client_port>
		<bind_ip_address></bind_ip_address>
		<use_nat_upnp></use_nat_upnp>
So only the server port to 2354. So i filled this port into the PORT 1 line higher then the USER-Line(which is filled in with 'SuperAdmin' as you can see above).

If i start the PyPlanet-Server whilst running the dedicated server i am getting this:
INFO [Main][pyplanet.core.management.commands.start] Initiated configuration and environment...
INFO [Main][pyplanet.core.management.commands.start] -------------------------------[ PyPlanet v0.9.2 ]-------------------------------
INFO [MainThread][pyplanet.god.process] Starting pool process for 'default'...
ERROR [default][pyplanet.core.instance] 0 bytes read on a total of 15 expected bytes
Image

So - what´s the problem? Thank you very much!

Julia :)
User avatar
toffe
Posts: 782
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: ERROR [default][pyplanet.core.instance] 0 bytes read on a total of 15 expected bytes

Post by toffe »

Hi,

You have to use a different port, you are connecting PyPlanet with the P2P/game port, and not the XMLRPC port.
Later in your dedicated_cfg you will find a port close to 5000:
<xmlrpc_port>5000</xmlrpc_port>

Use this port for connecting PyPlanet and you will see progress ;-)
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: ERROR [default][pyplanet.core.instance] 0 bytes read on a total of 15 expected bytes

Post by o0Julia0o »

thank you. If i do so:
# Dedicated configuration holds the different dedicated servers that the instances will run on including the names of
# the instances.
DEDICATED = {
'default': {
'HOST': '127.0.0.1',
'PORT': '5004',
'USER': 'SuperAdmin',
'PASSWORD': 'SuperAdmin',
}
}

i am getting:

Code: Select all

INFO     [Main][pyplanet.core.management.commands.start] Initiated configuration and environment...
INFO     [Main][pyplanet.core.management.commands.start] -------------------------------[  PyPlanet v0.9.2  ]-------------------------------
INFO     [MainThread][pyplanet.god.process] Starting pool process for 'default'...
ERROR    [default][pyplanet.core.instance] <Fault -1000: 'User unknown.'>


The section in the dedicated_cfg is looking like that:
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: ERROR [default][pyplanet.core.instance] 0 bytes read on a total of 15 expected bytes

Post by w1lla »

Set xmlrpc_allowremote to true.
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
o0Julia0o
Posts: 44
Joined: 11 Jul 2020, 15:20

Re: ERROR [default][pyplanet.core.instance] 0 bytes read on a total of 15 expected bytes

Post by o0Julia0o »

O.k., now it´s running(before i set the allowremote to true). It curious. If i use Julia and Julia1 as Superadmin and pw in dedicated_cfg and base.py it´s not working. I have to choose something near SuperAdmin & SuperAdmin. So SuperAdmin (as name) and SuperAdmin1 (as pw) are working. So for now i am leaving it to SuperAdmin & SuperAdmin.
Post Reply

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 2 guests