Headless server in Ubuntu not starting

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
twohearted
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Nov 18, 2023 9:32 pm
Contact:

Headless server in Ubuntu not starting

Post by twohearted »

Hi,

I'm relatively new for factorio running the headless server in Ubuntu 20.04 LTS environment.

After upgrading the version from 1.1.91 to 1.1.94 (basically downloaded tar ball, and extracted on the existing factory directory), I'm not able to start factorio anymore.

Here is the log I got from the start up.
There is an error in the log.

user1@Precision-5820-Tower:~$ ./factorio/bin/x64/factorio --start-server ./saves/my-save11182023.zip
0.000 2023-11-18 15:22:50; Factorio 1.1.94 (build 61774, linux64, headless)
0.056 Operating system: Linux (Ubuntu 20.04)
0.057 Program arguments: "./factorio/bin/x64/factorio" "--start-server" "./saves/my-save11182023.zip"
0.057 Config path: /home/user1/factorio/config/config.ini
0.057 Read data path: /home/user1/factorio/data
0.057 Write data path: /home/user1/factorio [174346/230453MB]
0.057 Binaries path: /home/user1/factorio/bin
0.071 System info: [CPU: Intel(R) Xeon(R) W-2223 CPU @ 3.60GHz, 8 cores, RAM: 15668 MB]
0.071 Environment: DISPLAY=:0 WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=ubuntu XDG_SESSION_DESKTOP=ubuntu XDG_CURRENT_DESKTOP=ubuntu:GNOME __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
0.071 Running in headless mode
0.134 Loading mod core 0.0.0 (data.lua)
0.180 Loading mod base 1.1.94 (data.lua)
0.367 Loading mod base 1.1.94 (data-updates.lua)
0.442 Checksum for core: 2152183905
0.442 Checksum of base: 2056641960
0.613 Prototype list checksum: 3034860339
0.662 Info PlayerData.cpp:76: Local player-data.json available, timestamp 1699810786
0.662 Info PlayerData.cpp:83: Cloud player-data.json unavailable
0.663 Factorio initialised
0.663 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
0.663 Info ServerMultiplayerManager.cpp:814: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
0.663 Info ServerMultiplayerManager.cpp:814: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
0.663 Loading map /home/user1./saves/my-save11182023.zip: 734172 bytes.
0.688 Loading level.dat: 1189377 bytes.
0.701 Info Scenario.cpp:204: Map version 1.1.87-0
0.772 Loading script.dat: 1171 bytes.
0.773 Checksum for script /home/user1/factorio/temp/currently-playing/control.lua: 3702463597
0.775 Info UDPSocket.cpp:33: Opening socket at (IP ADDR:({0.0.0.0:34197}))
0.775 Info UDPSocket.cpp:233: Closing socket
0.775 Info UDPSocket.cpp:263: Socket closed
0.775 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: Host address is already in use.
0.775 Info ServerMultiplayerManager.cpp:814: updateTick(0) changing state from(CreatingGame) to(InitializationFailed)
0.775 Info CommandLineMultiplayer.cpp:219: Exit point.
0.778 Info ServerMultiplayerManager.cpp:127: Disconnecting multiplayer connection.
0.778 Info ServerMultiplayerManager.cpp:814: updateTick(4294967295) changing state from(InitializationFailed) to(DisconnectingScheduled)
0.788 Info ServerMultiplayerManager.cpp:154: Quitting multiplayer connection.
0.788 Info ServerMultiplayerManager.cpp:814: updateTick(4294967295) changing state from(DisconnectingScheduled) to(Closed)
0.818 Info UDPSocket.cpp:233: Closing socket
0.819 Goodbye

I thought the service had been running behind (I probably forgot to stop the service when I copied the new factorio over to the old one).

I checked the status with this,
user1@Precision-5820-Tower:~$ systemctl status factorio

but it returned,
Unit factorio.service could not be found.


I checked the process with this command,
user1@Precision-5820-Tower:~$ ps aux | grep factorio

but it returned
snap_da+ 5037 0.0 1.2 591524 193916 ? Ssl Nov12 2:32 /snap/factorio-headless/90/factorio/bin/x64/factorio --verbose --start-server-load-latest
user1 13032 0.0 0.0 9040 2708 pts/1 S+ 15:59 0:00 grep --color=auto factorio


I restarted Ubuntu itself, but no luck.

I searched this issue on the internet, but I was not able to find a similar situation.

Was there any configuration file telling factorio process is running?

I appreciate your help!!
twohearted
Attachments
factorio-current.log
(2.86 KiB) Downloaded 43 times
User avatar
vinzenz
Factorio Staff
Factorio Staff
Posts: 352
Joined: Mon Aug 02, 2021 6:45 pm
Contact:

Re: Headless server in Ubuntu not starting

Post by vinzenz »

This looks like you also installed some factorio script from the snap store? maybe this helps: https://github.com/nubing/factorio-headless
bringing the oops to devops
twohearted
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Nov 18, 2023 9:32 pm
Contact:

Re: Headless server in Ubuntu not starting

Post by twohearted »

Hi vinzenz,

Thank you for your reply!

Yes, you are correct.
I didn't quite remember, but I was trying to automate the factorio update, but was not successful.

I was able to stop factorio-headless service with the following command listed in the page;

$ sudo snap stop factorio-headless.service

Then I was able to start factorio again.

Thanks!
twohearted
Post Reply

Return to “Technical Help”