Page 1 of 1

[0.17.34] Headless not starting: "Host address is already in use."

Posted: Sun Apr 28, 2019 9:16 am
by stormsh
Hello there,
I updated the headless from 0.17.25 to 0.17.34 but cannot get it to start.
It's a Ubuntu 16.04.6 LTS‬ linux and the previous versions worked fine. The only thing I found was "MultiplayerManager failed: Host address is already in use". But I checked via htop that no other game is running, so I don't realy know what to do about that.

Here is the log I get when I start the server. Hope it helps.

Thx 4 F1.

st.

Code: Select all

user@server:~$ sudo -H -u user /var/www/vhosts/mygameserver.de/factorio.mygameserver.de/bin/x64/factorio --start-server /var/www/vhosts/mygameserver.de/factorio.mygameserver.de/saves/_autosave2.zip
   0.000 2019-04-28 11:05:09; Factorio 0.17.34 (build 44642, linux64, headless)
   0.029 Operating system: Linux (Ubuntu 16.04)
   0.029 Program arguments: "/var/www/vhosts/mygameserver.de/factorio.mygameserver.de/bin/x64/factorio" "--start-server" "/var/www/vhosts/mygameserver.de/factorio.mygameserver.de/saves/_autosave2.zip"
   0.029 Read data path: /var/www/vhosts/mygameserver.de/factorio.mygameserver.de/data
   0.029 Write data path: /var/www/vhosts/mygameserver.de/factorio.mygameserver.de [3075305/3750618MB]
   0.029 Binaries path: /var/www/vhosts/mygameserver.de/factorio.mygameserver.de/bin
   0.034 System info: [CPU: Intel(R) Xeon(R) CPU E3-1230 v6 @ 3.50GHz, 8 cores, RAM: 31998 MB]
   0.034 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset>
   0.034 Running in headless mode
   0.037 Loading mod settings AutoDeconstruct 0.1.12 (settings.lua)
   0.038 Loading mod settings Bottleneck 0.10.4 (settings.lua)
   0.038 Loading mod settings far-reach 0.0.11 (settings.lua)
   0.039 Loading mod core 0.0.0 (data.lua)
   0.068 Loading mod base 0.17.34 (data.lua)
   0.192 Loading mod Bottleneck 0.10.4 (data.lua)
   0.247 Loading mod base 0.17.34 (data-updates.lua)
   0.302 Loading mod Squeak Through 1.3.0 (data-updates.lua)
   0.361 Checksum for core: 1564589609
   0.361 Checksum of base: 3635468829
   0.361 Checksum of AutoDeconstruct: 2582707891
   0.361 Checksum of Bottleneck: 3138809866
   0.361 Checksum of far-reach: 1707614877
   0.361 Checksum of Squeak Through: 3677677690
   0.720 Info PlayerData.cpp:67: Local player-data.json available, timestamp 1556442210
   0.720 Info PlayerData.cpp:74: Cloud player-data.json unavailable
   0.721 Custom inputs active: 0
   0.723 Factorio initialised
   0.723 Info HttpSharedState.cpp:54: Downloading https://auth.factorio.com/api-login?api_version=2
   1.944 Info AuthServerConnector.cpp:171: Got token from auth server for username(user).
   1.947 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
   1.947 Info ServerMultiplayerManager.cpp:769: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
   1.947 Info ServerMultiplayerManager.cpp:769: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
   1.947 Loading map /var/www/vhosts/mygameserver.de/factorio.mygameserver.de/saves/_autosave2.zip: 21743176 bytes.
   1.963 Loading level.dat: 52905768 bytes.
   1.969 Info Scenario.cpp:161: Map version 0.17.25-0
   3.874 Loading script.dat: 670710 bytes.
   3.899 Checksum for script /var/www/vhosts/mygameserver.de/factorio.mygameserver.de/temp/currently-playing/control.lua: 1848333929
   3.901 Checksum for script __AutoDeconstruct__/control.lua: 2848553575
   3.902 Checksum for script __Bottleneck__/control.lua: 303320138
   3.902 Checksum for script __far-reach__/control.lua: 105203498
   4.736 Info UDPSocket.cpp:27: Opening socket at (IP ADDR:({0.0.0.0:34201}))
   4.736 Info UDPSocket.cpp:210: Closing socket
   4.736 Info UDPSocket.cpp:240: Socket closed
   4.736 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: Host address is already in use.
   4.736 Info ServerMultiplayerManager.cpp:769: updateTick(14031617) changing state from(CreatingGame) to(InitializationFailed)
   4.737 Info GlobalContext.cpp:683: Waiting for child processes to exit:
   4.868 Info ServerMultiplayerManager.cpp:114: Disconnecting multiplayer connection.
   4.868 Info ServerMultiplayerManager.cpp:769: updateTick(4294967295) changing state from(InitializationFailed) to(DisconnectingScheduled)
   4.877 Info ServerMultiplayerManager.cpp:138: Quitting multiplayer connection.
   4.877 Info ServerMultiplayerManager.cpp:769: updateTick(4294967295) changing state from(DisconnectingScheduled) to(Closed)
   4.924 Info UDPSocket.cpp:210: Closing socket
   4.925 Goodbye
user@server:~$

Re: [0.17.34] Headless not starting: "Host address is already in use."

Posted: Mon Apr 29, 2019 10:54 pm
by TruePikachu
Just to be sure, there's no other Factorio instances currently running?

What happens if you try using a different port number, or force the binding address to the IP assigned on the relevant interface?

Re: [0.17.34] Headless not starting: "Host address is already in use."

Posted: Tue Apr 30, 2019 6:21 pm
by stormsh
Hello there, there are other instances running, but on different domains and on different ports. I didn't know some friends were also running factorio. I just changed the port. They used the same port as I did and started their server inbetween me updating mine. Thanks for the tip.
st.