Headless Server on Ubuntu 23.04 wont start

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.
Post Reply
soulfrenzy
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Apr 20, 2024 9:54 pm
Contact:

Headless Server on Ubuntu 23.04 wont start

Post by soulfrenzy »

Hi there,
im at a loss right now, downloaded the tar, extracted it, copied my previous savefile over, changed stuff in server-settings file
server-settings:

Code: Select all

{
  "name": "SoulFrenzy",
  "description": "Description of the game that will appear in the listing",
  "tags": ["game", "SoulFrenzy", "tags"],

  "_comment_max_players": "Maximum number of players allowed, admins can join even a full server. 0 means unlimited.",
  "max_players": 0,

  "_comment_visibility": ["public: Game will be published on the official Factorio matching server",
                          "lan: Game will be broadcast on LAN"],
  "visibility":
  {
    "public": true,
    "lan": true
  },

  "_comment_credentials": "Your factorio.com login credentials. Required for games with visibility public",
  "username": "SoulFrenzy",
  "password": "",

  "_comment_token": "Authentication token. May be used instead of 'password' above.",
  "token": "insert token here <- i put mine",

  "game_password": "1a2b3c4d5e6f7g",

  "_comment_require_user_verification": "When set to true, the server will only allow clients that have a valid Factorio.com account",
  "require_user_verification": true,

  "_comment_max_upload_in_kilobytes_per_second" : "optional, default value is 0. 0 means unlimited.",
  "max_upload_in_kilobytes_per_second": 0,

  "_comment_max_upload_slots" : "optional, default value is 5. 0 means unlimited.",
  "max_upload_slots": 5,

  "_comment_minimum_latency_in_ticks": "optional one tick is 16ms in default speed, default value is 0. 0 means no minimum.",
  "minimum_latency_in_ticks": 0,

  "_comment_max_heartbeats_per_second": "Network tick rate. Maximum rate game updates packets are sent at before bundling them together. Minimum value is 6, maximum value is 240.",
  "max_heartbeats_per_second": 60,

  "_comment_ignore_player_limit_for_returning_players": "Players that played on this map already can join even when the max player limit was reached.",
  "ignore_player_limit_for_returning_players": false,

  "_comment_allow_commands": "possible values are, true, false and admins-only",
  "allow_commands": "admins-only",

  "_comment_autosave_interval": "Autosave interval in minutes",
  "autosave_interval": 10,

  "_comment_autosave_slots": "server autosave slots, it is cycled through when the server autosaves.",
  "autosave_slots": 5,

  "_comment_afk_autokick_interval": "How many minutes until someone is kicked when doing nothing, 0 for never.",
  "afk_autokick_interval": 0,

  "_comment_auto_pause": "Whether should the server be paused when no players are present.",
  "auto_pause": true,

  "only_admins_can_pause_the_game": true,

  "_comment_autosave_only_on_server": "Whether autosaves should be saved only on server or also on all connected clients. Default is true.",
  "autosave_only_on_server": true,

  "_comment_non_blocking_saving": "Highly experimental feature, enable only at your own risk of losing your saves. On UNIX systems, server will fork itself to create an autosave. Autosaving on connected Windows clients will be disabled regardless of autosave_only_on_server option.",
  "non_blocking_saving": false,

  "_comment_segment_sizes": "Long network messages are split into segments that are sent over multiple ticks. Their size depends on the number of peers currently connected. Increasing the segment size will increase upload bandwidth requirement for the server and download bandwidth requirement for clients. This setting only affects server outbound messages. Changing these settings can have a negative impact on connection stability for some clients.",
  "minimum_segment_size": 25,
  "minimum_segment_size_peer_count": 20,
  "maximum_segment_size": 100,
  "maximum_segment_size_peer_count": 10
}

hit start with:

Code: Select all

./bin/x64/factorio --start-server ./saves/my-save.zip
and only the following happens:

Code: Select all

factorio# ./bin/x64/factorio --start-server ./saves/my-save.zip
   0.000 2024-04-20 21:47:44; Factorio 1.1.107 (build 62234, linux64, headless)
   0.005 Operating system: Linux (Ubuntu 23.04)
   0.005 Program arguments: "./bin/x64/factorio" "--start-server" "./saves/my-save.zip" 
   0.005 Config path: /root/factorio/factorio/config/config.ini
   0.005 Read data path: /root/factorio/factorio/data
   0.005 Write data path: /root/factorio/factorio [74950/80066MB]
   0.005 Binaries path: /root/factorio/factorio/bin
   0.011 System info: [CPU: Intel(R) Xeon(R) CPU E3-1270 v5 @ 3.60GHz, 8 cores, RAM: 64226 MB]
   0.011 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.011 Running in headless mode
   0.019 Loading mod core 0.0.0 (data.lua)
   0.037 Loading mod base 1.1.107 (data.lua)
   0.184 Loading mod base 1.1.107 (data-updates.lua)
   0.254 Checksum for core: 607699937
   0.254 Checksum of base: 1054619811
   0.416 Prototype list checksum: 3034860339
   0.454 Info PlayerData.cpp:76: Local player-data.json available, timestamp 1713649658
   0.454 Info PlayerData.cpp:83: Cloud player-data.json unavailable
   0.455 Factorio initialised
   0.455 Info ServerSynchronizer.cpp:29: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
   0.455 Info ServerMultiplayerManager.cpp:814: updateTick(4294967295) changing state from(Ready) to(PreparedToHostGame)
   0.455 Info ServerMultiplayerManager.cpp:814: updateTick(4294967295) changing state from(PreparedToHostGame) to(CreatingGame)
   0.455 Loading map /root/factorio/factorio/./saves/my-save.zip: 576917 bytes.
   0.465 Loading level.dat: 1039381 bytes.
   0.468 Info Scenario.cpp:204: Map version 1.1.107-0
   0.485 Loading script.dat: 1171 bytes.
   0.488 Checksum for script /root/factorio/factorio/temp/currently-playing/control.lua: 3702463597
   0.489 Info UDPSocket.cpp:33: Opening socket at (IP ADDR:({0.0.0.0:34197}))
   0.489 Hosting game at IP ADDR:({0.0.0.0:34197})
   0.489 Info HttpSharedState.cpp:58: Downloading https://auth.factorio.com/generate-server-padlock-2?api_version=6
   1.025 Info AuthServerConnector.cpp:95: Obtained serverPadlock for serverHash (somerandomnumbers) from the auth server.
   1.025 Info ServerMultiplayerManager.cpp:814: updateTick(0) changing state from(CreatingGame) to(InGame)
The Server wont show up on local nor on public, what am i missing?
I forwarded the 34197 Port via UDP, Port is open according to various Portcheckers.
Im sorry if this is an easy fix, but for the life of me i cant find a solution on the interwebs...

Loewchen
Global Moderator
Global Moderator
Posts: 8336
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Headless Server on Ubuntu 23.04 wont start

Post by Loewchen »

The log shows the server starting, how did you determine that the server is not live?

soulfrenzy
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Apr 20, 2024 9:54 pm
Contact:

Re: Headless Server on Ubuntu 23.04 wont start

Post by soulfrenzy »

how did you determine that the server is not live?
It doesnt show up on LAN and on public Listings.

However joining direktly via IP works.

Loewchen
Global Moderator
Global Moderator
Posts: 8336
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Headless Server on Ubuntu 23.04 wont start

Post by Loewchen »

It starts, goes live and you can connect to it. Check your server browser filters.

soulfrenzy
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Apr 20, 2024 9:54 pm
Contact:

Re: Headless Server on Ubuntu 23.04 wont start

Post by soulfrenzy »

well if thats the solution... glad i have a domain with dyndns set up, so i can give out the domain name for people to join...

Loewchen
Global Moderator
Global Moderator
Posts: 8336
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Headless Server on Ubuntu 23.04 wont start

Post by Loewchen »

soulfrenzy wrote:
Sat Apr 20, 2024 11:58 pm
well if thats the solution...
What is?

soulfrenzy
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Apr 20, 2024 9:54 pm
Contact:

Re: Headless Server on Ubuntu 23.04 wont start

Post by soulfrenzy »

I have all filters set to "any" so all active games should show up, mine isnt. So that's not the Solution to my Problem...

soulfrenzy
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Apr 20, 2024 9:54 pm
Contact:

Re: Headless Server on Ubuntu 23.04 wont start

Post by soulfrenzy »

Ok found out the Solution, the server didnt read my server-settings file so i had to change the start line to this:

Code: Select all

./bin/x64/factorio --start-server-load-latest ./saves/server.zip --server-settings ./data/server-settings.json
Thanks for trying to help me anyways.

Greetings,
SoulFrenzy

Post Reply

Return to “Technical Help”