alinmear / docker-conanexiles

A docker container to easily provision and manage a conanexiles dedicated server using wine
MIT License
105 stars 74 forks source link

No RCON warning on update #22

Closed Andargor closed 5 years ago

Andargor commented 6 years ago

The readme indicates that a broadcast message is sent via RCON to warn about incoming updates, but today we were dropped without warning for the update. Is it enabled by default?

docker run command:

docker run -d -p 7777-7778:7777-7778 -p 7777-7778:7777-7778/udp -p 27000-27015:27000-27015 -p 27000-27015:27000-27015/udp -p 32330:32330 \
-e TZ="America/Montreal" \
-e "CONANEXILES_ServerSettings_ServerSettings_AdminPassword"="XXXX" \
-e "CONANEXILES_ServerSettings_ServerSettings_ServerPassword"="XXXX" \
-e "CONANEXILES_ServerSettings_ServerSettings_HarvestAmountMultiplier"=2 \
-e "CONANEXILES_ServerSettings_ServerSettings_PlayerXPRateMultiplier"=1 \
-e "CONANEXILES_ServerSettings_ServerSettings_ThrallConversionMultiplier"=0.1 \
-e "CONANEXILES_ServerSettings_ServerSettings_ItemConvertionMultiplier"=0.1 \
-e "CONANEXILES_ServerSettings_ServerSettings_PlayerIdleThirstMultiplier"=0.25 \
-e "CONANEXILES_ServerSettings_ServerSettings_PlayerActiveThirstMultiplier"=0.5 \
-e "CONANEXILES_ServerSettings_ServerSettings_PlayerIdleHungerMultiplier"=0.25 \
-e "CONANEXILES_ServerSettings_ServerSettings_PlayerActiveHungerMultiplier"=0.5 \
-e "CONANEXILES_ServerSettings_ServerSettings_DayCycleSpeedScale"=0.25 \
-e "CONANEXILES_ServerSettings_ServerSettings_DayTimeSpeedScale"=0.5 \
-e "CONANEXILES_ServerSettings_ServerSettings_NightTimeSpeedScale"=4.0 \
-e "CONANEXILES_ServerSettings_ServerSettings_LogoutCharactersRemainInTheWorld"="False" \
-e "CONANEXILES_ServerSettings_ServerSettings_DurabilityMultiplier"=2 \
-e "CONANEXILES_ServerSettings_ServerSettings_DropEquipmentOnDeath"="True" \
-e "CONANEXILES_ServerSettings_ServerSettings_EverybodyCanLootCorpse"="True" \
-e "CONANEXILES_ServerSettings_ServerSettings_ItemSpoilRateScale"=1.0 \
-e "CONANEXILES_ServerSettings_ServerSettings_ResourceRespawnSpeedMultiplier"=0.5 \
-e "CONANEXILES_ServerSettings_ServerSettings_ThrallExclusionRadius"=100 \
-e "CONANEXILES_ServerSettings_ServerSettings_UnconsciousTimeSeconds"=3600 \
-e "CONANEXILES_ServerSettings_ServerSettings_DisableBuildingAbandonment"="True" \
-e "CONANEXILES_ServerSettings_ServerSettings_EnablePurge"="True" \
-e "CONANEXILES_Engine_OnlineSubSystemSteam_ServerName"="AndargorPlayground" \
-e "CONANEXILES_Engine_OnlineSubSystemSteam_ServerPassword"="XXXX" \
-e "CONANEXILES_Game_RconPlugin_RconPassword"="XXXX" \
-e "CONANEXILES_Game_RconPlugin_RconPort"=32330 \
-e "CONANEXILES_SERVER_TYPE"="pvp" \
-v /local2/conanexiles:/conanexiles --name conanexiles --security-opt apparmor=docker-ptrace --restart=always alinmear/docker-conanexiles
Andargor commented 6 years ago

More info: This part is in the logs, seems the script could not connect by RCON to the server. I can remotely connect to RCON, and I did specify the port, so I am unsure what the problem is.

>> INFO: New build available. Updating 2919329 -> 2927160
>> WARN: Failed to connect to redis instance - redis:6379. Skipping redis call: redis_set_update_running_start
>> DEBUG: Shutdown Server in 15 minutes
[Errno 111] Connection refused
Andargor commented 6 years ago

I looked at rcon/rconcli.py and it seems the port is hardcoded to 25575, and it ignores the environment variable.

Andargor commented 6 years ago

Pull request submitted #23

alinmear commented 6 years ago

I merged your pr. We have to check whether this issue has been resolved or not.

alinmear commented 6 years ago

@Andargor can we close this issue?