Page 1 of 1

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

Posted: 12 Jul 2020, 13:33
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 :)

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

Posted: 14 Jul 2020, 09:03
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 ;-)

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

Posted: 14 Jul 2020, 20:26
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:

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

Posted: 14 Jul 2020, 22:01
by w1lla
Set xmlrpc_allowremote to true.

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

Posted: 14 Jul 2020, 22:12
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.