Yaribz / SPADS

SpringRTS Perl Autohost for Dedicated Server
GNU General Public License v3.0
17 stars 16 forks source link

Code to fix : PERL WARNING: Use of uninitialized value $data{"access"} in string eq #36

Closed FabriceFABS closed 7 years ago

FabriceFABS commented 7 years ago

In console, I discover some Perl' Spads warnings in the console :

ERROR    - [SPADS] PERL WARNING: Use of uninitialized value $data{"access"} in string eq at .../SpadsServeur/SpadsConf.pm line 537.
ERROR    - [SPADS] PERL WARNING: Use of uninitialized value $data{"country"} in string eq at .../SpadsServeur/SpadsConf.pm line 537.
ERROR    - [SPADS] PERL WARNING: Use of uninitialized value $data{"cpu"} in string eq at .../SpadsServeur/SpadsConf.pm line 537.
ERROR    - [SPADS] PERL WARNING: Use of uninitialized value $data{"bot"} in string eq at .../SpadsServeur/SpadsConf.pm line 537.
WARNING  - [SPADS] Disconnecting from lobby server (broken connection detected)
NOTICE   - [SPADS] Lobby server default engine is Spring 104, UnitSync is using Spring 103
NOTICE   - [SPADS] TrueSkill service available
WARNING  - [SPADS] Disconnected from lobby server (timeout)
NOTICE   - [SPADS] Lobby server default engine is Spring 104, UnitSync is using Spring 103
NOTICE   - [SPADS] TrueSkill service available
NOTICE   - [SPADS] Spring archives have been modified 1 minute and 19 seconds ago, auto-reloading archives...

- Last lines in spads.log :

20171004033722 - ERROR    - [SPADS] PERL WARNING: Use of uninitialized value $data{"access"} in string eq at .../SpadsServeur/SpadsConf.pm line 537.
20171004033722 - ERROR    - [SPADS] PERL WARNING: Use of uninitialized value $data{"country"} in string eq at .../SpadsServeur/SpadsConf.pm line 537.
20171004033722 - ERROR    - [SPADS] PERL WARNING: Use of uninitialized value $data{"cpu"} in string eq at .../SpadsServeur/SpadsConf.pm line 537.
20171004033722 - ERROR    - [SPADS] PERL WARNING: Use of uninitialized value $data{"bot"} in string eq at .../SpadsServeur/SpadsConf.pm line 537.
20171004033722 - INFO     - [SPADS] Request to join battle denied for user wen001
20171004033723 - WARNING  - [SPADS] Disconnecting from lobby server (broken connection detected)
20171004033723 - NOTICE   - [SpringLobbyInterface] Disconnecting from lobby.springrts.com:8200
20171004033724 - NOTICE   - [SpringLobbyInterface] Connecting to lobby.springrts.com:8200
20171004033724 - NOTICE   - [SPADS] Lobby server default engine is Spring 104, UnitSync is using Spring 103

-

And the line on spads.conf is next if($data{$field} eq '');

Seems that happened because the connexion to lobby were falling down or it's for another reason maybe ? I reported it here because I saw this log on only 1 of the 16 hosts. Some of the others showed broken connexion detected messages, some others with extra message ERROR - [SPADS] Unable to open battle (To few arguments: 4)

FabriceFABS commented 7 years ago

Sorry no worry, can safety close it, it is related to SpringRTS Lobby update or reco for sure.