[0.17.2] Server cannot start due to bad migration

This subforum contains all the issues which we already resolved.
Post Reply
ElGaucho
Burner Inserter
Burner Inserter
Posts: 19
Joined: Mon Mar 27, 2017 9:27 pm
Contact:

[0.17.2] Server cannot start due to bad migration

Post by ElGaucho »

Started a server locally - everything works fine. Transferred this file to the hoster of my server (nitrado), and server logs report this issue:

Code: Select all

0.000 2019-02-28 19:08:34; Factorio 0.17.2 (build 43076, linux64, steam)
   0.092 Operating system: Linux (Ubuntu 14.04)
   0.092 Program arguments: "/mnt/bin/x64/factorio" "--server-settings" "/mnt/data/server-settings.json" "--port" "34197" "--rcon-port" "34207" "--rcon-password" <private> "--start-server" "saves/newMap.zip" 
   0.092 Read data path: /mnt/data
   0.092 Write data path: /mnt [811598/1812731MB]
   0.092 Binaries path: /mnt/bin
   0.108 System info: [CPU: Intel(R) Xeon(R) CPU E5-2667 v4 @ 3.20GHz, 32 cores, RAM: 128884 MB]
   0.108 Environment: DISPLAY=<unset>, WAYLAND_DISPLAY=<unset>
   0.108 Running in headless mode
   0.243 Loading mod core 0.0.0 (data.lua)
   0.289 Loading mod base 0.17.2 (data.lua)
   0.533 Loading mod base 0.17.2 (data-updates.lua)
   0.613 Checksum for core: 3928040144
   0.613 Checksum of base: 1471520011
   1.105 Info PlayerData.cpp:69: Local player-data.json unavailable
   1.105 Info PlayerData.cpp:74: Cloud player-data.json unavailable
   1.111 Custom inputs active: 0
   1.114 Factorio initialised
   1.116 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
   1.116 Info ServerMultiplayerManager.cpp:714: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
   1.116 Info ServerMultiplayerManager.cpp:714: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
   1.116 Loading map /mnt/saves/newMap.zip: 1917460 bytes.
   1.139 Loading Level.dat: 2832672 bytes.
   1.147 Info Scenario.cpp:147: Map version 0.17.2-4
   1.151 Info PrototypeMigrationList.cpp:60: Activating migration base/2015-10-16_Factorio_0.13.0.json
   1.151 Info PrototypeMigrationList.cpp:60: Activating migration base/2016-04-22_Factorio_0.13.0.json
   1.151 Info PrototypeMigrationList.cpp:60: Activating migration base/2016-06-14_Factorio_0.13.0.json
   1.151 Info PrototypeMigrationList.cpp:60: Activating migration base/2016-06-21_Factorio_0.13.0.json
   1.151 Info PrototypeMigrationList.cpp:60: Activating migration base/2016-06-25_Factorio_0.13.0.json
   1.151 Info PrototypeMigrationList.cpp:60: Activating migration base/2016-06-27_Factorio_0.13.0.json
   1.151 Info PrototypeMigrationList.cpp:60: Activating migration base/2016-11-24_Factorio_0.15.0.json
   1.151 Info PrototypeMigrationList.cpp:60: Activating migration base/2017-01-17_Factorio_0.15.0.json
   1.151 Info PrototypeMigrationList.cpp:60: Activating migration base/2017-01-18_Factorio_0.15.0.json
   1.151 Info PrototypeMigrationList.cpp:60: Activating migration base/2017-02-08_Factorio_0.15.0.json
   1.151 Info PrototypeMigrationList.cpp:60: Activating migration base/2017-03-03_Factorio_0.15.0.json
   1.228 Loading script.dat: 965 bytes.
   1.231 Checksum for script /mnt/temp/currently-playing/control.lua: 2366710471
   1.231 Applying migration: Base Mod: 2016-04-22_Factorio_0.13.0.lua
   1.232 Applying migration: Base Mod: 2016-06-26_Factorio_0.13.0.lua
   1.233 Applying migration: Base Mod: 2016-06-27_Factorio_0.13.0.lua
   1.234 Applying migration: Base Mod: 2016-06-28_Factorio_0.13.0.lua
   1.235 Applying migration: Base Mod: 2016-10-24_Factorio_0.15.0.lua
   1.237 Applying migration: Base Mod: 2016-10-25_Factorio_0.15.0.lua
   1.238 Applying migration: Base Mod: 2016-10-27_Factorio_0.15.0.lua
   1.262 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "Error while applying migration: Base Mod: 2016-10-27_Factorio_0.15.0.lua

__base__/migrations/2016-10-27_Factorio_0.15.0.lua:20: attempt to index field 'high-tech-science-pack' (a nil value)
stack traceback:
	__base__/migrations/2016-10-27_Factorio_0.15.0.lua:20: in main chunk"
   1.262 Info ServerMultiplayerManager.cpp:714: updateTick(4294967295) changing state from(CreatingGame) to(InitializationFailed)
   1.263 Info GlobalContext.cpp:677: Waiting for child processes to exit: 
   1.265 Info ServerMultiplayerManager.cpp:138: Quitting multiplayer connection.
   1.265 Info ServerMultiplayerManager.cpp:714: updateTick(4294967295) changing state from(InitializationFailed) to(Closed)
   1.301 Info UDPSocket.cpp:210: Closing socket
   1.301 Goodbye
Have created this map locally with 0.17.2 update and uploaded the map to the server. Any clues whats going on here?

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [0.17.2] Server cannot start due to bad migration

Post by orzelek »

Please make sure that server that errors out has no leftover migrations from previous versions of Factorio.
(Updater is a lazy af and doesn't delete files apaprently).

wakelicious
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Mar 01, 2019 1:27 pm
Contact:

Re: [0.17.2] Server cannot start due to bad migration

Post by wakelicious »

I've got the same issue at Nitrado and logged a ticket there. Have you managed to fix it?

wakelicious
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Mar 01, 2019 1:27 pm
Contact:

Re: [0.17.2] Server cannot start due to bad migration

Post by wakelicious »

Okay, fixed it myself. On the server, go to /factorioexperimental/base/migrations and delete everything that isn't 0.17 related.
Do the same on your own computer /steamapps/factorio/data/base/migrations (otherwise you can't join the server itself)

That fixed it for me. (so not only Nitrado is lazy, Factorio's updater apparently keeps older files somehow)

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.17.2] Server cannot start due to bad migration

Post by kovarex »

This is weird, because migrations older than 0.16 aren't in the install package anymore. I suspect a problem in the manual transferring of the files somehow.

You can safely remove any migrations of 0.15 and older. (0.16 should still be kept as long as you want to load older 0.16 saves properly.)

ElGaucho
Burner Inserter
Burner Inserter
Posts: 19
Joined: Mon Mar 27, 2017 9:27 pm
Contact:

Re: [0.17.2] Server cannot start due to bad migration

Post by ElGaucho »

Thanks, will try later and post back if that resolved my issue.

ElGaucho
Burner Inserter
Burner Inserter
Posts: 19
Joined: Mon Mar 27, 2017 9:27 pm
Contact:

Re: [0.17.2] Server cannot start due to bad migration

Post by ElGaucho »

Worked, removed all migrations of 0.15 and below, restarted server and it came back up. Thanks for you assistance!

enoh
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Apr 09, 2019 8:30 am
Contact:

Re: [0.17.2] Server cannot start due to bad migration

Post by enoh »

Hello,

I have the same issue.

Indeed, after deleting every files in migration directory, everything is fine.

However, the migration scripts come back every single update.
So my server won't start itself after updates.

I use LinuxGSM to keep the server updated.

Any ideas ?

Post Reply

Return to “Resolved Problems and Bugs”