Code: Select all
(ins)~/steam/Factorio$ type doit
doit is a function
doit ()
{
cd ~/steam/Factorio;
rm -rf ~/.factorio/saves/MP;
mkdir ~/.factorio/saves/MP;
diff -u0 data/server-settings.example.json ~/.factorio/server-settings.json;
bin/x64/factorio --create ~/.factorio/saves/MP/1.zip;
bin/x64/factorio --start-server ~/.factorio/saves/MP/1.zip
}
(ins)~/steam/Factorio$ -x doit
+ doit
+ cd /home/quyxkh/steam/Factorio
+ rm -rf /home/quyxkh/.factorio/saves/MP
+ mkdir /home/quyxkh/.factorio/saves/MP
+ diff -u0 data/server-settings.example.json /home/quyxkh/.factorio/server-settings.json
--- data/server-settings.example.json 2016-11-03 07:49:03.882241547 -0700
+++ /home/quyxkh/.factorio/server-settings.json 2017-04-04 12:58:32.617337182 -0700
@@ -13 +13 @@
- "public": true,
+ "public": false,
@@ -18 +18 @@
- "username": "",
+ "username": "quyxkh",
@@ -22 +22 @@
- "token": "",
+ "token": "hunter2",
@@ -33 +33 @@
- "minimum_latency_in_ticks": 0,
+ "minimum_latency_in_ticks": 3,
@@ -59 +59 @@
- "admins": []
+ "admins": ["quyxkh"]
+ bin/x64/factorio --create /home/quyxkh/.factorio/saves/MP/1.zip
0.000 2017-04-04 13:12:57; Factorio 0.14.22 (build 25342, linux64, steam)
0.012 Operating system: Linux (Arch rolling)
0.012 Program arguments: "bin/x64/factorio" "--create" "/home/quyxkh/.factorio/saves/MP/1.zip"
0.012 Read data path: /home/quyxkh/steamapps/steamapps/common/Factorio/data
0.012 Write data path: /home/quyxkh/.factorio
0.012 Binaries path: /home/quyxkh/steamapps/steamapps/common/Factorio/bin
0.024 System info: [CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz, 4 cores, RAM: 16035MB]
0.025 Running in headless mode
0.034 Loading mod core 0.0.0 (data.lua)
0.038 Loading mod base 0.14.22 (data.lua)
0.121 Checksum for core: 1291735968
0.121 Checksum for mod base: 786624017
0.402 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1491335650
0.402 Info PlayerData.cpp:62: Cloud player-data.json unavailable
0.404 Custom inputs active: 0
0.404 Factorio initialised
0.404 Info Main.cpp:613: Creating new map /home/quyxkh/.factorio/saves/MP/1.zip
2.923 Error FileUtil.cpp:284: Can't remove /home/quyxkh/.factorio/temp/currently-playing: No such file or directory
2.961 Info Scenario.cpp:152: Map version 0.14.22-0
2.997 Checksum for script /home/quyxkh/.factorio/temp/currently-playing/control.lua: 1057114497
Done.
+ bin/x64/factorio --start-server /home/quyxkh/.factorio/saves/MP/1.zip
0.000 2017-04-04 13:13:00; Factorio 0.14.22 (build 25342, linux64, steam)
0.011 Operating system: Linux (Arch rolling)
0.011 Program arguments: "bin/x64/factorio" "--start-server" "/home/quyxkh/.factorio/saves/MP/1.zip"
0.011 Read data path: /home/quyxkh/steamapps/steamapps/common/Factorio/data
0.011 Write data path: /home/quyxkh/.factorio
0.011 Binaries path: /home/quyxkh/steamapps/steamapps/common/Factorio/bin
0.022 System info: [CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz, 4 cores, RAM: 16035MB]
0.023 Running in headless mode
0.030 Loading mod core 0.0.0 (data.lua)
0.034 Loading mod base 0.14.22 (data.lua)
0.114 Checksum for core: 1291735968
0.114 Checksum for mod base: 786624017
0.392 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1491335650
0.392 Info PlayerData.cpp:62: Cloud player-data.json unavailable
0.393 Custom inputs active: 0
0.394 Factorio initialised
0.394 Info ServerSynchronizer.cpp:27: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
0.394 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(Ready) to(PreparedToHostGame)
0.394 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(PreparedToHostGame) to(CreatingGame)
0.395 Loading map /home/quyxkh/.factorio/saves/MP/1.zip
0.395 Error FileUtil.cpp:284: Can't remove /home/quyxkh/.factorio/temp/currently-playing: No such file or directory
0.406 Info Scenario.cpp:152: Map version 0.14.22-0
0.431 Checksum for script /home/quyxkh/.factorio/temp/currently-playing/control.lua: 1057114497
0.432 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:34197)
0.432 Hosting game at 0.0.0.0:34197
0.432 Info HttpSharedState.cpp:44: Downloading https://auth.factorio.com/generate-server-padlock
1.129 Info HttpSharedState.cpp:111: Status code: 200
1.129 Info AuthServerConnector.cpp:106: Obtained serverPadlock for serverHash (qqz5NYPhMZWqm9qBkGNuzyPhqfs92bl4) from the auth server.
1.129 Info ServerMultiplayerManager.cpp:658: mapTick(0) changing state from(CreatingGame) to(InGame)
1.129 Info UDPSocket.cpp:39: Opening socket for broadcast
33.965 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(192.168.1.2:41192)
33.965 Refusing connection for address(192.168.1.2:41192). User verification is required for this game.
34.485 ConnectionRequestReplyConfirm (type(ConnectionRequestReplyConfirm) ) from(192.168.1.2:46679)
34.485 Info ServerRouter.cpp:413: Replying to connectionRequest for address(192.168.1.2:46679).
34.485 Info ServerSynchronizer.cpp:524: nextHeartbeatSequenceNumber(995) adding peer(1)
34.502 Info ServerMultiplayerManager.cpp:658: mapTick(0) changing state from(InGame) to(InGameSavingMap)
34.502 Warning WriteFileGuard.cpp:25: Writing /home/quyxkh/.factorio/temp/mp-save-0.zip failed; previous version (if any) should still be available
34.502 Error ParallelScenarioSaver.cpp:82: Saving scenario failed: Error when opening /home/quyxkh/.factorio/temp/currently-playing/replay.dat for reading: No such file or directory
34.518 Info ServerMultiplayerManager.cpp:742: mapTick(0) received stateChang
ed peerID(1) oldState(Ready) newState(ConnectedWaitingForMap)
34.519 Error ServerMultiplayerManager.cpp:93: MultiplayerManager failed: multiplayer.cannot-save-map("Error when opening /home/quyxkh/.factorio/temp/currently-playing/replay.dat for reading: No such file or directory")
34.519 Info ServerMultiplayerManager.cpp:658: mapTick(0) changing state from(InGameSavingMap) to(Failed)
^C 62.933 Received SIGINT, shutting down
62.933 Info MainLoop.cpp:219: Saving map as /home/quyxkh/.factorio/saves/MP/1.zip
62.934 Warning WriteFileGuard.cpp:25: Writing /home/quyxkh/.factorio/saves/MP/1.zip failed; previous version (if any) should still be available
62.934 Error Util.cpp:57: Error when opening /home/quyxkh/.factorio/temp/currently-playing/replay.dat for reading: No such file or directory
63.017 Error FileUtil.cpp:284: Can't remove /home/quyxkh/.factorio/temp/currently-playing: No such file or directory
63.019 Info ServerMultiplayerManager.cpp:139: Quitting multiplayer connection.
63.019 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(Failed) to(Closed)
terminate called after throwing an instance of 'std::system_error'
what(): Invalid argument
63.551 Warning Logger.cpp:369: Symbols.size() == 25, usedSize == 24
Factorio crashed. Generating symbolized stacktrace, please wait ...
64.080 Warning Logger.cpp:369: Symbols.size() == 24, usedSize == 23
#0 0x00000000005c71bb in CrashHandler::writeStackTrace() at /tmp/factorio-X5N2Rm/src/Util/CrashHandler.cpp:105
#1 0x00000000005c7454 in CrashHandler::SignalHandler(int) at /tmp/factorio-X5N2Rm/src/Util/CrashHandler.cpp:235
#2 0x00007f2306c72a90 in ?? at ??:0
#3 0x00007f2306c72a10 in ?? at ??:0
#4 0x00007f2306c7413a in ?? at ??:0
#5 0x000000000117737d in __gnu_cxx::__verbose_terminate_handler() at ??:?
#6 0x000000000116bb26 in __cxxabiv1::__terminate(void (*)()) at ??:?
#7 0x00000000011ce979 in __cxa_call_terminate at ??:?
#8 0x000000000116ccf5 in __gxx_personality_v0 at ??:?
#9 0x00007f2306ff2f43 in ?? at ??:0
#10 0x00007f2306ff32ab in ?? at ??:0
#11 0x0000000001176fcb in __cxa_throw at ??:?
#12 0x00000000011a031f in std::__throw_system_error(int) at ??:?
#13 0x00000000007984bd in TaskManager::removeTask(Task*) at /usr/include/c++/5/mutex:139
#14 0x00000000007985cf in ServerGameUpdater::setLANGame(bool) at /tmp/factorio-X5N2Rm/src/Net/ServerGameUpdater.cpp:55
#15 0x0000000000b87681 in ServerMultiplayerManager::destroy() at /tmp/factorio-X5N2Rm/src/Net/ServerMultiplayerManager.cpp:172
#16 0x0000000000a1fbb6 in ServerMultiplayerManager::quit() at /tmp/factorio-X5N2Rm/src/Net/ServerMultiplayerManager.cpp:147
#17 0x0000000000a26fd5 in ServerMultiplayerManager::~ServerMultiplayerManager() at /tmp/factorio-X5N2Rm/src/Net/ServerMultiplayerManager.cpp:69
#18 0x0000000000a27129 in ServerMultiplayerManager::~ServerMultiplayerManager() at /tmp/factorio-X5N2Rm/src/Net/ServerMultiplayerManager.cpp:77
#19 0x0000000000b8927b in clearResources at /tmp/factorio-X5N2Rm/src/GlobalContext.cpp:526
#20 0x0000000000cfa1d8 in GlobalContext::~GlobalContext() at /tmp/factorio-X5N2Rm/src/GlobalContext.cpp:574
#21 0x00007f2306c5f511 in main at /tmp/factorio-X5N2Rm/src/Main.cpp:532 (discriminator 1)
#22 0x000000000040b1a9 in ?? at ??:0
64.080 Error Util.cpp:77: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
+ set +xv
(ins)~/steam/Factorio$
Code: Select all
doit ()
{
cd ~/steam/Factorio;
rm -rf ~/.factorio/saves/MP;
mkdir ~/.factorio/saves/MP;
sed -si '/auto_pause/s/true/false/' ~/.factorio/server-settings.json;
diff -u0 data/server-settings.example.json ~/.factorio/server-settings.json;
bin/x64/factorio --create ~/.factorio/saves/MP/1.zip;
bin/x64/factorio --start-server ~/.factorio/saves/MP/1.zip <<EOD
/save
/quit
EOD
sed -si '/auto_pause/s/false/true/' ~/.factorio/server-settings.json;
bin/x64/factorio --start-server ~/.factorio/saves/MP/1.zip
}
addendum: but _re_connecting doesn't work, it hangs with the same replay.dat error. I have to quit and restart the server to reconnect .. which loses progress, the logs from trying a /save:
Code: Select all
/save
332.976 Info AppManager.cpp:237: Saving game as /home/quyxkh/.factorio/saves/MP/1.zip
Saving map to /home/quyxkh/.factorio/saves/MP/1.zip
332.976 Warning WriteFileGuard.cpp:25: Writing /home/quyxkh/.factorio/saves/MP/1.zip failed; previous version (if any) should still be available
332.977 Error ParallelScenarioSaver.cpp:82: Saving scenario failed: Error when opening /home/quyxkh/.factorio/temp/currently-playing/replay.dat for reading: No such file or directory
332.993 Error Util.cpp:57: Attempting to create notice box in headless mode. Message: 'Error when opening /home/quyxkh/.factorio/temp/currently-playing/replay.dat for reading: No such file or directory'
333.202 Info ServerMultiplayerManager.cpp:115: Disconnecting multiplayer connection.
333.202 Info ServerMultiplayerManager.cpp:658: mapTick(18920) changing state from(InGame) to(DisconnectingScheduled)
333.202 Error FileUtil.cpp:284: Can't remove /home/quyxkh/.factorio/temp/currently-playing: No such file or directory
333.207 Info ServerMultiplayerManager.cpp:139: Quitting multiplayer connection.
333.207 Info ServerMultiplayerManager.cpp:658: mapTick(-1) changing state from(DisconnectingScheduled) to(Closed)
terminate called after throwing an instance of 'std::system_error'
what(): Invalid argument
333.754 Warning Logger.cpp:369: Symbols.size() == 25, usedSize == 24
Factorio crashed. Generating symbolized stacktrace, please wait ...
334.273 Warning Logger.cpp:369: Symbols.size() == 24, usedSize == 23
#0 0x00000000005c71bb in CrashHandler::writeStackTrace() at /tmp/factorio-X5N2Rm/src/Util/CrashHandler.cpp:105
#1 0x00000000005c7454 in CrashHandler::SignalHandler(int) at /tmp/factorio-X5N2Rm/src/Util/CrashHandler.cpp:235
#2 0x00007fe27a7a3a90 in ?? at ??:0
#3 0x00007fe27a7a3a10 in ?? at ??:0
#4 0x00007fe27a7a513a in ?? at ??:0
#5 0x000000000117737d in __gnu_cxx::__verbose_terminate_handler() at ??:?
#6 0x000000000116bb26 in __cxxabiv1::__terminate(void (*)()) at ??:?
#7 0x00000000011ce979 in __cxa_call_terminate at ??:?
#8 0x000000000116ccf5 in __gxx_personality_v0 at ??:?
#9 0x00007fe27ab23f43 in ?? at ??:0
#10 0x00007fe27ab242ab in ?? at ??:0
#11 0x0000000001176fcb in __cxa_throw at ??:?
#12 0x00000000011a031f in std::__throw_system_error(int) at ??:?
#13 0x00000000007984bd in TaskManager::removeTask(Task*) at /usr/include/c++/5/mutex:139
#14 0x00000000007985cf in ServerGameUpdater::setLANGame(bool) at /tmp/factorio-X5N2Rm/src/Net/ServerGameUpdater.cpp:55
#15 0x0000000000b87681 in ServerMultiplayerManager::destroy() at /tmp/factorio-X5N2Rm/src/Net/ServerMultiplayerManager.cpp:172
#16 0x0000000000a1fbb6 in ServerMultiplayerManager::quit() at /tmp/factorio-X5N2Rm/src/Net/ServerMultiplayerManager.cpp:147
#17 0x0000000000a26fd5 in ServerMultiplayerManager::~ServerMultiplayerManager() at /tmp/factorio-X5N2Rm/src/Net/ServerMultiplayerManager.cpp:69
#18 0x0000000000a27129 in ServerMultiplayerManager::~ServerMultiplayerManager() at /tmp/factorio-X5N2Rm/src/Net/ServerMultiplayerManager.cpp:77
#19 0x0000000000b8927b in clearResources at /tmp/factorio-X5N2Rm/src/GlobalContext.cpp:526
#20 0x0000000000cfa1d8 in GlobalContext::~GlobalContext() at /tmp/factorio-X5N2Rm/src/GlobalContext.cpp:574
#21 0x00007fe27a790511 in main at /tmp/factorio-X5N2Rm/src/Main.cpp:532 (discriminator 1)
#22 0x000000000040b1a9 in ?? at ??:0
334.273 Error Util.cpp:77: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.
This happens on every save file I `--create`, just a plain `bin/x64/factorio --create` as above to get started with should reproduce it.