Socket error when starting the server up

ManiaControl, the completely new designed and easy to use controller managing all your Maniaplanet server.

Moderators: kremsy, Jocy, Wabbitface, steeffeen, NADEO

Post Reply
Teelry
Posts: 3
Joined: 25 Jul 2019, 15:53

Socket error when starting the server up

Post by Teelry » 25 Jul 2019, 16:01

Hi,

I am having trouble starting up the server. I think I did the setup correctly but I still get this socket error. I don't know what to do since I have specified the correct port and the IP is local.

Code: Select all

[25-Jul-2019 14:51:10 UTC] [PHP WARNING]: socket_last_error(): supplied resource is not a valid Socket resource
File&Line: /opt/ManiaPlanet/ManiaControl/libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php: 88
Trace:
#0: socket_last_error(resource(Resource id #123)) in File libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php on Line 88
#1: Maniaplanet\DedicatedServer\Xmlrpc\GbxRemote->connect(string(127.0.0.1), string(2350), integer(40)) in File libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php on Line 34
#2: Maniaplanet\DedicatedServer\Xmlrpc\GbxRemote->__construct(string(127.0.0.1), string(2350), integer(40)) in File libs/Maniaplanet/DedicatedServer/Connection.php on Line 103
#3: Maniaplanet\DedicatedServer\Connection->__construct(string(127.0.0.1), string(2350), integer(40)) in File libs/Maniaplanet/DedicatedServer/Connection.php on Line 51
#4: Maniaplanet\DedicatedServer\Connection::factory(string(127.0.0.1), string(2350), integer(40), string(SuperAdmin), string(password), string(2013-04-16)) in File core/ManiaControl.php on Line 627
#5: ManiaControl\ManiaControl->connect() in File core/ManiaControl.php on Line 565
#6: ManiaControl\ManiaControl->run() in File ManiaControl.php on Line 56

[25-Jul-2019 14:51:10 UTC] PHP Warning:  socket_last_error(): supplied resource is not a valid Socket resource in /opt/ManiaPlanet/ManiaControl/libs/Maniaplanet/DedicatedServer/Xmlrpc/GbxRemote.php on line 88
[25-Jul-2019 14:51:10 UTC] [ERROR] Couldn't connect to the server: 'Connection interrupted during handshake (Success)'
[25-Jul-2019 14:51:10 UTC] Quitting ManiaControl!
My server.xml :

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<maniacontrol>

        <!-- Configure Your ManiaPlanet Server -->
        <server>

                <!-- Server Connection Details -->
                <host>127.0.0.1</host>
                <port>2350</port>

                <!-- XmlRpc Login Details -->
                <user>SuperAdmin</user>
                <pass>password</pass>

        </server>

        <!-- Configure the MySQL Database used by ManiaControl -->
        <database>

                <!-- MySQL Server -->
                <host>localhost</host>
                <port>3306</port>

                <!-- MySQL User -->
                <user>root</user>
                <pass></pass>

                <!-- Database Name -->
                <name>trackmania</name>

        </database>

        <!-- Configure Server Master-Administrators -->
        <masteradmins>
                <login>admin_login</login>
        </masteradmins>

        <!-- You can add Admins and Moderators ingame -->

</maniacontrol>
Here is my dedicated_cfg.txt :

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
<dedicated>
        <authorization_levels>
                <level>
                        <name>SuperAdmin</name>
                        <password>SuperAdmin</password>
                </level>
                <level>
                        <name>Admin</name>
                        <password>Admin</password>
                </level>
                <level>
                        <name>User</name>
                        <password>User</password>
                </level>
        </authorization_levels>

        <masterserver_account>
                <login>teelry</login>
                <password>thereisnourflevel</password>
                <validation_key></validation_key>
        </masterserver_account>

        <server_options>
                <name>TipzManiaCup</name>
                <comment>Serveur des zinzins</comment>
                <hide_server>0</hide_server>                                    <!-- value is 0 (always shown), 1 (alw
ays hidden), 2 (hidden from nations) -->

                <max_players>32</max_players>
                <password>tipz</password>

                <max_spectators>32</max_spectators>
                <password_spectator></password_spectator>

                <keep_player_slots>False</keep_player_slots>                    <!-- when a player changes to spectator, hould the server keep if player slots/scores etc.. or not. -->
                <ladder_mode>0</ladder_mode>                            <!-- value between 'inactive', 'forced' (or '0', '1') -->

                <enable_p2p_upload>True</enable_p2p_upload>
                <enable_p2p_download>False</enable_p2p_download>

                <callvote_timeout>60000</callvote_timeout>
                <callvote_ratio>0.5</callvote_ratio>                            <!-- default ratio. value in [0..1], o
r -1 to forbid. -->
                <callvote_ratios>
                        <voteratio command="Ban" ratio="-1"/>
                        <!-- commands can be "Ban", "Kick", "RestartMap", "NextMap", "SetModeScriptSettingsAndCommands" ...  -->
                </callvote_ratios>

                <allow_map_download>True</allow_map_download>
                <autosave_replays>False</autosave_replays>
                <autosave_validation_replays>False</autosave_validation_replays>

                <referee_password></referee_password>
                <referee_validation_mode>0</referee_validation_mode>            <!-- value is 0 (only validate top3 pl
ayers),  1 (validate all players) -->

                <use_changing_validation_seed>False</use_changing_validation_seed>

                <disable_horns>False</disable_horns>
                <clientinputs_maxlatency>0</clientinputs_maxlatency>            <!-- 0 mean automatic adjustement -->
        </server_options>

        <system_config>
                <connection_uploadrate>8000</connection_uploadrate>             <!-- Kbits per second -->
                <connection_downloadrate>8000</connection_downloadrate>         <!-- Kbits per second -->
                <packetassembly_threadcount>1</packetassembly_threadcount>     <!-- Number of threads used when assemb
ling packets. Defaults to 1. -->

                <allow_spectator_relays>False</allow_spectator_relays>

                <p2p_cache_size>600</p2p_cache_size>

                <force_ip_address></force_ip_address>
                <server_port>2350</server_port>
                <server_p2p_port>3450</server_p2p_port>
                <client_port>0</client_port>
                <bind_ip_address></bind_ip_address>
                <use_nat_upnp></use_nat_upnp>

                <gsp_name></gsp_name>                                           <!-- Game Server Provider name and inf
o url -->
                <gsp_url></gsp_url>                                             <!-- If you're a server hoster, you ca
n use this to advertise your services -->

                <xmlrpc_port>5000</xmlrpc_port>
                <xmlrpc_allowremote>True</xmlrpc_allowremote>                   <!-- If you specify an ip adress here,
 it'll be the only accepted adress. this will improve security. -->

                <scriptcloud_source>nadeocloud</scriptcloud_source>             <!-- Specify the cloud storage mode fo
r Titles that use it. Can be "localdebug" or "xmlrpc" or "nadeocloud" (default). "nadeocloud" will work only if the cr
eator of the title subscribed to the cloud service. -->


                <blacklist_url></blacklist_url>
                <guestlist_filename></guestlist_filename>
                <blacklist_filename></blacklist_filename>


                <minimum_client_build></minimum_client_build>                   <!-- Only accept updated client to a s
pecific version. ex: 2011-10-06 -->

                <disable_coherence_checks>True</disable_coherence_checks>       <!-- disable internal checks to detect
 issues/cheats, and reject race times -->

                <disable_replay_recording>False</disable_replay_recording>      <!-- disable replay recording in memor
y during the game to lower memory usage. -->
                <save_all_individual_runs>False</save_all_individual_runs>      <!-- Save all the ghosts from the matc
h replay to individual ghost.gbx files, in folder {servername}/Autosaves/Runs_{mapname}/  -->

                <use_proxy>False</use_proxy>
                <proxy_url></proxy_url>
        </system_config>
</dedicated>
Thanks in advance for your help, I really do not know what to do.

Have a nice day

User avatar
Miss
Posts: 1871
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: Socket error when starting the server up

Post by Miss » 25 Jul 2019, 16:24

I think you need to use port 5000 (XMLRPC), not 2350.
1070 GTX, Ryzen 3700X, 16GB RAM, Windows 10
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream on Twitch and tweet on Twitter.

Teelry
Posts: 3
Joined: 25 Jul 2019, 15:53

Re: Socket error when starting the server up

Post by Teelry » 25 Jul 2019, 17:37

Hi Miss,

Thanks for your reply. I changed the port and now, I have another error: 'cannot open socket'.

Any ideas?

Thank you very much for your help.

Teelry
Posts: 3
Joined: 25 Jul 2019, 15:53

Re: Socket error when starting the server up

Post by Teelry » 25 Jul 2019, 19:45

I fixed my error! The port used by the Trackmania server was actually different than the one I set in the settings when I went to look at the listening ports. I changed it to that and now it works!

User avatar
TMarc
Posts: 15003
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Socket error when starting the server up

Post by TMarc » 25 Jul 2019, 19:46

great, thanks for having shared your solution :thumbsup:
maniaplanet forum global moderator

Link list with FAQ, Support, Wiki, Tutorials, Community activities, and much more.

System specs: Intel i7-970 12GB RAM, nVidia RTX 2060 6GB, Creative SB X-Fi, 2xSSD 1xHDD

Post Reply

Return to “ManiaControl”

Who is online

Users browsing this forum: No registered users and 0 guests