factoriotools / factorio-docker

Factorio headless server in a Docker container
https://hub.docker.com/r/factoriotools/factorio/
MIT License
1.04k stars 233 forks source link

Auto mod update loads wrong version after update #517

Open bogatkaj opened 1 week ago

bogatkaj commented 1 week ago

After update of the Game to the Space Age version, the server loads the 1.X Version of the mods when restarting the server with auto mod update set to true.

Example Mod: Better-Power-Armor-Grid -> Current V2 Version: 7.0.1
-> Downloaded Version: 6.3.1

Possibly related to #468

Fank commented 1 week ago

I started up the latest docker image and ran the command myself, it updated to 7.0.2:

root@ca5daa591920:/# ./docker-update-mods.sh 
Checking for update of mod Better-Power-Armor-Grid...
Downloading...
  Download complete.
root@ca5daa591920:/# ls /factorio/mods/
Better-Power-Armor-Grid_7.0.2.zip  mod-list.json
Fank commented 1 week ago

Can you try to use the latest build image and share the log, i added some crucial information for debugging?

Foodel-01 commented 1 day ago

@Fank

I believe I've ran into the a similar issue today. I seem to get a 403 error when it tries to download an update:

+++ readlink -f /docker-entrypoint.sh
++ dirname /docker-entrypoint.sh
+ INSTALLED_DIRECTORY=/
+ FACTORIO_VOL=/factorio
+ LOAD_LATEST_SAVE=true
+ GENERATE_NEW_SAVE=false
+ PRESET=
+ SAVE_NAME=
+ BIND=
+ CONSOLE_LOG_LOCATION=
+ mkdir -p /factorio
+ mkdir -p /factorio/saves
+ mkdir -p /factorio/config
+ mkdir -p /factorio/mods
+ mkdir -p /factorio/scenarios
+ mkdir -p /factorio/script-output
+ [[ ! -f /factorio/config/rconpw ]]
+ [[ ! -f /factorio/config/server-settings.json ]]
+ [[ ! -f /factorio/config/map-gen-settings.json ]]
+ [[ ! -f /factorio/config/map-settings.json ]]
++ find -L /factorio/saves -iname '*.tmp.zip' -mindepth 1
++ wc -l
+ NRTMPSAVES=0
+ [[ 0 -gt 0 ]]
+ [[ true == \t\r\u\e ]]
+ //docker-update-mods.sh
Checking for update of mod elevated-rails for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod quality for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod space-age for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod alien-biomes-graphics for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod BottleneckLite for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod bullet-trails for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod even-distribution for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod factoryplanner for factorio 2.0.12 ...
  Downloading factoryplanner_2.0.4.zip
  Download failed: Code 403.
+++ readlink -f /docker-entrypoint.sh
++ dirname /docker-entrypoint.sh
+ INSTALLED_DIRECTORY=/
+ FACTORIO_VOL=/factorio
+ LOAD_LATEST_SAVE=true
+ GENERATE_NEW_SAVE=false
+ PRESET=
+ SAVE_NAME=
+ BIND=
+ CONSOLE_LOG_LOCATION=
+ mkdir -p /factorio
+ mkdir -p /factorio/saves
+ mkdir -p /factorio/config
+ mkdir -p /factorio/mods
+ mkdir -p /factorio/scenarios
+ mkdir -p /factorio/script-output
+ [[ ! -f /factorio/config/rconpw ]]
+ [[ ! -f /factorio/config/server-settings.json ]]
+ [[ ! -f /factorio/config/map-gen-settings.json ]]
+ [[ ! -f /factorio/config/map-settings.json ]]
++ find -L /factorio/saves -iname '*.tmp.zip' -mindepth 1
++ wc -l
+ NRTMPSAVES=0
+ [[ 0 -gt 0 ]]
+ [[ true == \t\r\u\e ]]
+ //docker-update-mods.sh
Checking for update of mod elevated-rails for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod quality for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod space-age for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod alien-biomes-graphics for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod BottleneckLite for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod bullet-trails for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod even-distribution for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod factoryplanner for factorio 2.0.12 ...
  Downloading factoryplanner_2.0.4.zip
  Download failed: Code 403.
+++ readlink -f /docker-entrypoint.sh
++ dirname /docker-entrypoint.sh
+ INSTALLED_DIRECTORY=/
+ FACTORIO_VOL=/factorio
+ LOAD_LATEST_SAVE=true
+ GENERATE_NEW_SAVE=false
+ PRESET=
+ SAVE_NAME=
+ BIND=
+ CONSOLE_LOG_LOCATION=
+ mkdir -p /factorio
+ mkdir -p /factorio/saves
+ mkdir -p /factorio/config
+ mkdir -p /factorio/mods
+ mkdir -p /factorio/scenarios
+ mkdir -p /factorio/script-output
+ [[ ! -f /factorio/config/rconpw ]]
+ [[ ! -f /factorio/config/server-settings.json ]]
+ [[ ! -f /factorio/config/map-gen-settings.json ]]
+ [[ ! -f /factorio/config/map-settings.json ]]
++ find -L /factorio/saves -iname '*.tmp.zip' -mindepth 1
++ wc -l
+ NRTMPSAVES=0
+ [[ 0 -gt 0 ]]
+ [[ true == \t\r\u\e ]]
+ //docker-update-mods.sh
Checking for update of mod elevated-rails for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod quality for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod space-age for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod alien-biomes-graphics for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod BottleneckLite for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod bullet-trails for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod even-distribution for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod factoryplanner for factorio 2.0.12 ...
  Downloading factoryplanner_2.0.4.zip
  Download failed: Code 403.
+++ readlink -f /docker-entrypoint.sh
++ dirname /docker-entrypoint.sh
+ INSTALLED_DIRECTORY=/
+ FACTORIO_VOL=/factorio
+ LOAD_LATEST_SAVE=true
+ GENERATE_NEW_SAVE=false
+ PRESET=
+ SAVE_NAME=
+ BIND=
+ CONSOLE_LOG_LOCATION=
+ mkdir -p /factorio
+ mkdir -p /factorio/saves
+ mkdir -p /factorio/config
+ mkdir -p /factorio/mods
+ mkdir -p /factorio/scenarios
+ mkdir -p /factorio/script-output
+ [[ ! -f /factorio/config/rconpw ]]
+ [[ ! -f /factorio/config/server-settings.json ]]
+ [[ ! -f /factorio/config/map-gen-settings.json ]]
+ [[ ! -f /factorio/config/map-settings.json ]]
++ find -L /factorio/saves -iname '*.tmp.zip' -mindepth 1
++ wc -l
+ NRTMPSAVES=0
+ [[ 0 -gt 0 ]]
+ [[ true == \t\r\u\e ]]
+ //docker-update-mods.sh
Checking for update of mod elevated-rails for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod quality for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod space-age for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod alien-biomes-graphics for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod BottleneckLite for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod bullet-trails for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod even-distribution for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod factoryplanner for factorio 2.0.12 ...
  Downloading factoryplanner_2.0.4.zip
  Download failed: Code 403.
+++ readlink -f /docker-entrypoint.sh
++ dirname /docker-entrypoint.sh
+ INSTALLED_DIRECTORY=/
+ FACTORIO_VOL=/factorio
+ LOAD_LATEST_SAVE=true
+ GENERATE_NEW_SAVE=false
+ PRESET=
+ SAVE_NAME=
+ BIND=
+ CONSOLE_LOG_LOCATION=
+ mkdir -p /factorio
+ mkdir -p /factorio/saves
+ mkdir -p /factorio/config
+ mkdir -p /factorio/mods
+ mkdir -p /factorio/scenarios
+ mkdir -p /factorio/script-output
+ [[ ! -f /factorio/config/rconpw ]]
+ [[ ! -f /factorio/config/server-settings.json ]]
+ [[ ! -f /factorio/config/map-gen-settings.json ]]
+ [[ ! -f /factorio/config/map-settings.json ]]
++ find -L /factorio/saves -iname '*.tmp.zip' -mindepth 1
++ wc -l
+ NRTMPSAVES=0
+ [[ 0 -gt 0 ]]
+ [[ true == \t\r\u\e ]]
+ //docker-update-mods.sh
Checking for update of mod elevated-rails for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod quality for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod space-age for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod alien-biomes-graphics for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod BottleneckLite for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod bullet-trails for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod even-distribution for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod factoryplanner for factorio 2.0.12 ...
  Downloading factoryplanner_2.0.4.zip
  Download failed: Code 403.
+++ readlink -f /docker-entrypoint.sh
++ dirname /docker-entrypoint.sh
+ INSTALLED_DIRECTORY=/
+ FACTORIO_VOL=/factorio
+ LOAD_LATEST_SAVE=true
+ GENERATE_NEW_SAVE=false
+ PRESET=
+ SAVE_NAME=
+ BIND=
+ CONSOLE_LOG_LOCATION=
+ mkdir -p /factorio
+ mkdir -p /factorio/saves
+ mkdir -p /factorio/config
+ mkdir -p /factorio/mods
+ mkdir -p /factorio/scenarios
+ mkdir -p /factorio/script-output
+ [[ ! -f /factorio/config/rconpw ]]
+ [[ ! -f /factorio/config/server-settings.json ]]
+ [[ ! -f /factorio/config/map-gen-settings.json ]]
+ [[ ! -f /factorio/config/map-settings.json ]]
++ find -L /factorio/saves -iname '*.tmp.zip' -mindepth 1
++ wc -l
+ NRTMPSAVES=0
+ [[ 0 -gt 0 ]]
+ [[ true == \t\r\u\e ]]
+ //docker-update-mods.sh
Checking for update of mod elevated-rails for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod quality for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod space-age for factorio 2.0.12 ...
  Not compatible with version
Checking for update of mod alien-biomes-graphics for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod BottleneckLite for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod bullet-trails for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod even-distribution for factorio 2.0.12 ...
  Already up-to-date.
Checking for update of mod factoryplanner for factorio 2.0.12 ...
  Downloading factoryplanner_2.0.4.zip
  Download failed: Code 403