Page 1 of 1
[2.0.38] headless debian 12 server random crashes
Posted: Sun Jan 12, 2025 4:18 am
by puffpants
Hello,
I am running a headless factorio server on version 2.0.38 (and prior versions) and the factorio server will randomly stop responding. The server is running on a Debian 12 VM on a proxmox host running version 8.3.2.
from systemctl i see:
Code: Select all
factorio@factorio002:~$ sudo systemctl status factorio.service
× factorio.service - Factorio Server
Loaded: loaded (/etc/systemd/system/factorio.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sat 2025-01-11 22:20:15 EST; 49min ago
Duration: 7.694s
Process: 396 ExecStart=/opt/factorio/bin/x64/factorio --start-server /opt/factorio/saves/SpaceAge.zip --server-settings /opt/factorio/data/server-settings.json (code=exited, status=1/FAILURE)
Main PID: 396 (code=exited, status=1/FAILURE)
CPU: 12.227s
Jan 11 22:20:15 factorio002 factorio[396]: 7.310 Info ServerMultiplayerManager.cpp:806: updateTick(18446744073709551615) changing state from(InitializationFailed) to(DisconnectingScheduled)
Jan 11 22:20:15 factorio002 factorio[396]: 7.394 Info ServerMultiplayerManager.cpp:146: Quitting multiplayer connection.
Jan 11 22:20:15 factorio002 factorio[396]: 7.394 Info ServerMultiplayerManager.cpp:806: updateTick(18446744073709551615) changing state from(DisconnectingScheduled) to(Closed)
Jan 11 22:20:15 factorio002 factorio[396]: 7.394 Info ServerMultiplayerManager.cpp:166: Deleting active scenario (global = true).
Jan 11 22:20:15 factorio002 factorio[396]: 7.489 Info UDPSocket.cpp:233: Closing socket
Jan 11 22:20:15 factorio002 factorio[396]: 7.489 Info UDPSocket.cpp:263: Socket closed
Jan 11 22:20:15 factorio002 factorio[396]: 7.491 Goodbye
Jan 11 22:20:15 factorio002 systemd[1]: factorio.service: Main process exited, code=exited, status=1/FAILURE
Jan 11 22:20:15 factorio002 systemd[1]: factorio.service: Failed with result 'exit-code'.
Jan 11 22:20:15 factorio002 systemd[1]: factorio.service: Consumed 12.227s CPU time.
factorio@factorio002:~$
I have another vm, same cloud deploy template that I was using for the space exploration modpack and never had an issue with it crashing.
Where can i look to provide more verbose logs?
Thanks!
Re: [2.0.38] headless debian 12 server random crashes
Posted: Sun Jan 12, 2025 9:12 am
by R060
Can you show the full log?
Re: [2.0.38] headless debian 12 server random crashes
Posted: Sun Jan 12, 2025 6:01 pm
by puffpants
R060 wrote: Sun Jan 12, 2025 9:12 am
Can you show the full log?
Code: Select all
Jan 12 00:04:42 factorio002 systemd[1]: Started factorio.service - Factorio Server.
Jan 12 00:04:42 factorio002 factorio[397]: 0.000 2025-01-12 00:04:42; Factorio 2.0.28 (build 81088, linux64, headless, space-age)
Jan 12 00:04:42 factorio002 factorio[397]: 0.022 Operating system: Linux (Debian 12)
Jan 12 00:04:42 factorio002 factorio[397]: 0.022 Program arguments: "/opt/factorio/bin/x64/factorio" "--start-server" "/opt/factorio/saves/SpaceAge.zip" "--server-settings" "/opt/factorio/data/server-settings.json"
Jan 12 00:04:42 factorio002 factorio[397]: 0.022 Config path: /opt/factorio/config/config.ini
Jan 12 00:04:42 factorio002 factorio[397]: 0.022 Read data path: /opt/factorio/data
Jan 12 00:04:42 factorio002 factorio[397]: 0.022 Write data path: /opt/factorio [20108/32084MB]
Jan 12 00:04:42 factorio002 factorio[397]: 0.022 Binaries path: /opt/factorio/bin
Jan 12 00:04:42 factorio002 factorio[397]: 0.040 System info: [CPU: Intel(R) Core(TM) i7-8700T CPU @ 2.40GHz, 2 cores, RAM: 7941 MB]
Jan 12 00:04:42 factorio002 factorio[397]: 0.040 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> SDL_VIDEODRIVER=<unset> __GL_FSAA_MODE=<unset>
Jan 12 00:04:42 factorio002 factorio[397]: 0.064 Running in headless mode
Jan 12 00:04:42 factorio002 factorio[397]: 0.064 Audio is disabled
Jan 12 00:04:43 factorio002 factorio[397]: 0.094 Info ModManager.cpp:438: FeatureFlag expansion-shaders = true
Jan 12 00:04:43 factorio002 factorio[397]: 0.095 Info ModManager.cpp:438: FeatureFlag freezing = true
Jan 12 00:04:43 factorio002 factorio[397]: 0.095 Info ModManager.cpp:438: FeatureFlag quality = true
Jan 12 00:04:43 factorio002 factorio[397]: 0.095 Info ModManager.cpp:438: FeatureFlag rail-bridges = true
Jan 12 00:04:43 factorio002 factorio[397]: 0.095 Info ModManager.cpp:438: FeatureFlag segmented-units = true
Jan 12 00:04:43 factorio002 factorio[397]: 0.095 Info ModManager.cpp:438: FeatureFlag space-travel = true
Jan 12 00:04:43 factorio002 factorio[397]: 0.095 Info ModManager.cpp:438: FeatureFlag spoiling = true
Jan 12 00:04:43 factorio002 factorio[397]: 0.104 Loading mod settings afraid-of-the-dark 2.1.0 (settings.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.105 Loading mod settings blueprint-sandboxes 2.5.3 (settings.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.107 Loading mod settings Bottleneck 0.12.1 (settings.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.107 Script @__Bottleneck__/settings.lua:191: working - green none
Jan 12 00:04:43 factorio002 factorio[397]: 0.107 Script @__Bottleneck__/settings.lua:191: normal - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.107 Script @__Bottleneck__/settings.lua:191: ghost - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.107 Script @__Bottleneck__/settings.lua:191: broken - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.107 Script @__Bottleneck__/settings.lua:191: no_power - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.107 Script @__Bottleneck__/settings.lua:191: low_power - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.107 Script @__Bottleneck__/settings.lua:191: no_fuel - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: frozen - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: disabled_by_control_behavior - blue pause
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: opened_by_circuit_network - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: closed_by_circuit_network - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: disabled_by_script - blue pause
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: marked_for_deconstruction - red cross
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: paused - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: not_plugged_in_electric_network - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: networks_connected - green none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: networks_disconnected - red none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: charging - green none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: discharging - green none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: fully_charged - yellow pause
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: out_of_logistic_network - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: no_recipe - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: no_ingredients - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: no_input_fluid - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: no_research_in_progress - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: no_minable_resources - red stop
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: not_connected_to_hub_or_pad - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: low_input_fluid - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: fluid_ingredient_shortage - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: full_output - yellow pause
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: not_enough_space_in_output - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: full_burnt_result_output - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: item_ingredient_shortage - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: missing_required_fluid - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: missing_science_packs - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: waiting_for_source_items - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: waiting_for_more_items - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: waiting_for_space_in_destination - yellow pause
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: preparing_rocket_for_launch - green alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: waiting_to_launch_rocket - yellow pause
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: waiting_for_space_in_platform_hub - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: launching_rocket - green alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: thrust_not_required - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: on_the_way - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: waiting_in_orbit - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: waiting_at_stop - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: waiting_for_rockets_to_arrive - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: not_enough_thrust - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: destination_stop_full - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: no_path - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: no_modules_to_transmit - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: recharging_after_power_outage - blue alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: waiting_for_target_to_be_built - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: waiting_for_train - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: no_ammo - red alert
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: low_temperature - red stop
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: disabled - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: turned_off_during_daytime - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: not_connected_to_rail - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: cant_divide_segments - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: no_filter - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: no_spot_seedable_by_inputs - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.108 Script @__Bottleneck__/settings.lua:191: waiting_for_plants_to_grow - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.109 Script @__Bottleneck__/settings.lua:191: computing_navigation - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.109 Script @__Bottleneck__/settings.lua:191: pipeline_overextended - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.109 Script @__Bottleneck__/settings.lua:191: recipe_not_researched - off none
Jan 12 00:04:43 factorio002 factorio[397]: 0.109 Loading mod settings even-distribution 2.0.2 (settings.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.111 Loading mod settings jetpack 0.4.7 (settings.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.112 Loading mod settings visible-planets 1.2.12 (settings.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.114 Loading mod settings blueprint-sandboxes 2.5.3 (settings-final-fixes.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.141 Loading mod core 0.0.0 (data.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.176 Loading mod base 2.0.28 (data.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.415 Loading mod blueprint-sandboxes 2.5.3 (data.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.428 Loading mod Bottleneck 0.12.1 (data.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.438 Loading mod elevated-rails 2.0.28 (data.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.483 Loading mod even-distribution 2.0.2 (data.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.494 Loading mod jetpack 0.4.7 (data.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.506 Loading mod quality 2.0.28 (data.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 0.531 Loading mod space-age 2.0.28 (data.lua)
Jan 12 00:04:43 factorio002 factorio[397]: 1.084 Loading mod hd_planets_renders 1.0.0 (data.lua)
Jan 12 00:04:44 factorio002 factorio[397]: 1.106 Loading mod visible-planets 1.2.12 (data.lua)
Jan 12 00:04:44 factorio002 factorio[397]: 1.127 Loading mod base 2.0.28 (data-updates.lua)
Jan 12 00:04:44 factorio002 factorio[397]: 1.147 Loading mod afraid-of-the-dark 2.1.0 (data-updates.lua)
Jan 12 00:04:44 factorio002 factorio[397]: 1.166 Loading mod blueprint-sandboxes 2.5.3 (data-updates.lua)
Jan 12 00:04:44 factorio002 factorio[397]: 1.185 Loading mod quality 2.0.28 (data-updates.lua)
Jan 12 00:04:44 factorio002 factorio[397]: 1.216 Loading mod space-age 2.0.28 (data-updates.lua)
Jan 12 00:04:44 factorio002 factorio[397]: 1.236 Loading mod blueprint-sandboxes 2.5.3 (data-final-fixes.lua)
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[ammo-turret][se-meteor-defence-container] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[ammo-turret][se-meteor-point-defence-container] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[assembling-machine][se-delivery-cannon] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[assembling-machine][se-delivery-cannon-weapon] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[assembling-machine][se-energy-transmitter-injector] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[assembling-machine][se-energy-transmitter-emitter] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[assembling-machine][se-space-elevator] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[boiler][se-energy-transmitter-chamber] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[container][se-rocket-launch-pad] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[container][se-rocket-landing-pad] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[electric-energy-interface][se-energy-beam-defence] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.239 Script @__blueprint-sandboxes__/prototypes/illusions-final-fixes.lua:45: data[mining-drill][se-core-miner-drill] not found; cannot create Illusion
Jan 12 00:04:44 factorio002 factorio[397]: 1.259 Loading mod jetpack 0.4.7 (data-final-fixes.lua)
Jan 12 00:04:44 factorio002 factorio[397]: 1.282 Loading mod visible-planets 1.2.12 (data-final-fixes.lua)
Jan 12 00:04:44 factorio002 factorio[397]: 1.282 Script @__visible-planets__/data_stuff/sprite_prototypes.lua:28: Adding visible-planets for nauvis
Jan 12 00:04:44 factorio002 factorio[397]: 1.282 Script @__visible-planets__/data_stuff/sprite_prototypes.lua:28: Adding visible-planets for vulcanus
Jan 12 00:04:44 factorio002 factorio[397]: 1.282 Script @__visible-planets__/data_stuff/sprite_prototypes.lua:28: Adding visible-planets for gleba
Jan 12 00:04:44 factorio002 factorio[397]: 1.282 Script @__visible-planets__/data_stuff/sprite_prototypes.lua:28: Adding visible-planets for fulgora
Jan 12 00:04:44 factorio002 factorio[397]: 1.282 Script @__visible-planets__/data_stuff/sprite_prototypes.lua:28: Adding visible-planets for aquilo
Jan 12 00:04:44 factorio002 factorio[397]: 1.282 Script @__visible-planets__/data_stuff/sprite_prototypes.lua:48: Skipping visible-planets for space-location-unknown; Blacklisted.
Jan 12 00:04:44 factorio002 factorio[397]: 1.282 Script @__visible-planets__/data_stuff/sprite_prototypes.lua:24: Skipping visible-planets for solar-system-edge; Starmap icon missing.
Jan 12 00:04:44 factorio002 factorio[397]: 1.282 Script @__visible-planets__/data_stuff/sprite_prototypes.lua:28: Adding visible-planets for shattered-planet
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum for core: 283742623
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of base: 1505520187
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of afraid-of-the-dark: 1983646129
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of blueprint-sandboxes: 442600766
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of Bottleneck: 1340424736
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of chest-auto-sort: 0
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of elevated-rails: 3624276517
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of even-distribution: 281457414
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of jetpack: 3294144380
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of quality: 1945933776
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of space-age: 507955763
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of hd_planets_renders: 1341224152
Jan 12 00:04:44 factorio002 factorio[397]: 1.407 Checksum of visible-planets: 467753133
Jan 12 00:04:44 factorio002 factorio[397]: 1.876 Prototype list checksum: 2799202777
Jan 12 00:04:44 factorio002 factorio[397]: 1.943 Info PlayerData.cpp:66: Local player-data.json available, timestamp 1736657424
Jan 12 00:04:44 factorio002 factorio[397]: 1.943 Info PlayerData.cpp:73: Cloud player-data.json unavailable
Jan 12 00:04:44 factorio002 factorio[397]: 1.956 Factorio initialised
Jan 12 00:04:44 factorio002 factorio[397]: 1.958 Info ServerSynchronizer.cpp:20: nextHeartbeatSequenceNumber(0) initialized Synchronizer nextTickClosureTick(0).
Jan 12 00:04:44 factorio002 factorio[397]: 1.958 Info ServerMultiplayerManager.cpp:806: updateTick(18446744073709551615) changing state from(Ready) to(PreparedToHostGame)
Jan 12 00:04:44 factorio002 factorio[397]: 1.958 Info ServerMultiplayerManager.cpp:806: updateTick(18446744073709551615) changing state from(PreparedToHostGame) to(CreatingGame)
Jan 12 00:04:44 factorio002 factorio[397]: 1.959 Loading map /opt/factorio/saves/SpaceAge.zip: 62173356 bytes.
Jan 12 00:04:44 factorio002 factorio[397]: 1.987 Loading level.dat: 205204632 bytes.
Jan 12 00:04:44 factorio002 factorio[397]: 2.002 Info Scenario.cpp:178: Map version 2.0.28-1
Jan 12 00:04:49 factorio002 factorio[397]: 6.883 Blueprint storage "blueprint-storage-2.dat" was not found, trying to load previous version storage "blueprint-storage.dat"
Jan 12 00:04:49 factorio002 factorio[397]: 6.885 Loading script.dat: 310791 bytes.
Jan 12 00:04:49 factorio002 factorio[397]: 6.888 Checksum for script __level__/control.lua: 2824674896
Jan 12 00:04:49 factorio002 factorio[397]: 6.894 Checksum for script __blueprint-sandboxes__/control.lua: 813459813
Jan 12 00:04:49 factorio002 factorio[397]: 6.895 Checksum for script __Bottleneck__/control.lua: 83028149
Jan 12 00:04:49 factorio002 factorio[397]: 6.895 Checksum for script __chest-auto-sort__/control.lua: 2243956898
Jan 12 00:04:49 factorio002 factorio[397]: 6.903 Script @__even-distribution__/framework.lua:22: 0 [ED] Initializing framework... DEBUG = false
Jan 12 00:04:49 factorio002 factorio[397]: 6.903 Script @__even-distribution__/framework.lua:22: 0 [ED] Registering custom scripts...
Jan 12 00:04:49 factorio002 factorio[397]: 6.903 Script @__even-distribution__/framework.lua:22: 0 [ED] Script: metatables
Jan 12 00:04:49 factorio002 factorio[397]: 6.904 Script @__even-distribution__/framework.lua:22: 0 [ED] Script: util
Jan 12 00:04:49 factorio002 factorio[397]: 6.904 Script @__even-distribution__/framework.lua:22: 0 [ED] Script: helpers
Jan 12 00:04:49 factorio002 factorio[397]: 6.904 Script @__even-distribution__/framework.lua:22: 0 [ED] Script: setup
Jan 12 00:04:49 factorio002 factorio[397]: 6.905 Script @__even-distribution__/framework.lua:22: 0 [ED] Script: remote
Jan 12 00:04:49 factorio002 factorio[397]: 6.905 Script @__even-distribution__/framework.lua:22: 0 [ED] Script: visuals
Jan 12 00:04:49 factorio002 factorio[397]: 6.906 Script @__even-distribution__/framework.lua:22: 0 [ED] Script: gui-tools
Jan 12 00:04:49 factorio002 factorio[397]: 6.906 Script @__even-distribution__/framework.lua:22: 0 [ED] Script: drag
Jan 12 00:04:49 factorio002 factorio[397]: 6.907 Script @__even-distribution__/framework.lua:22: 0 [ED] Script: cleanup
Jan 12 00:04:49 factorio002 factorio[397]: 6.907 Script @__even-distribution__/framework.lua:22: 0 [ED] GUI-Script: settings-gui
Jan 12 00:04:49 factorio002 factorio[397]: 6.908 Script @__even-distribution__/framework.lua:22: 0 [ED] Registering default event handlers...
Jan 12 00:04:49 factorio002 factorio[397]: 6.909 Script @__even-distribution__/framework.lua:22: 0 [ED] Registering custom inputs...
Jan 12 00:04:49 factorio002 factorio[397]: 6.909 Script @__even-distribution__/framework.lua:22: 0 [ED] Input: inventory-cleanup event: on_inventory_cleanup
Jan 12 00:04:49 factorio002 factorio[397]: 6.909 Script @__even-distribution__/framework.lua:22: 0 [ED] Input: fast-entity-transfer-hook event: on_fast_entity_transfer_hook
Jan 12 00:04:49 factorio002 factorio[397]: 6.909 Script @__even-distribution__/framework.lua:22: 0 [ED] Input: fast-entity-split-hook event: on_fast_entity_split_hook
Jan 12 00:04:49 factorio002 factorio[397]: 6.910 Script @__even-distribution__/framework.lua:22: 0 [ED] Successfully initialized
Jan 12 00:04:49 factorio002 factorio[397]: 6.910 Checksum for script __even-distribution__/control.lua: 140605339
Jan 12 00:04:49 factorio002 factorio[397]: 6.915 Checksum for script __jetpack__/control.lua: 1933499020
Jan 12 00:04:49 factorio002 factorio[397]: 6.917 Checksum for script __visible-planets__/control.lua: 3629818870
Jan 12 00:04:49 factorio002 factorio[397]: 6.971 Info UDPSocket.cpp:32: Opening socket at (IP ADDR:({0.0.0.0:34197}))
Jan 12 00:04:49 factorio002 factorio[397]: 6.971 Hosting game at IP ADDR:({0.0.0.0:34197})
Jan 12 00:04:49 factorio002 factorio[397]: 6.971 Info HttpSharedState.cpp:55: Downloading https://auth.factorio.com/generate-server-padlock-2?api_version=6
Jan 12 00:04:49 factorio002 factorio[397]: 6.973 Error HttpSharedState.cpp:175: CURL failed: code:6, 6; Could not resolve host: auth.factorio.com
Jan 12 00:04:49 factorio002 factorio[397]: 6.973 Info HttpSharedState.cpp:184: Downloading https://auth.factorio.com/generate-server-padlock-2?api_version=6
Jan 12 00:04:49 factorio002 factorio[397]: 6.973 Info HttpSharedState.cpp:185: Status code: 0
Jan 12 00:04:49 factorio002 factorio[397]: 6.976 Info AuthServerConnector.cpp:34: Failed to reach auth server: code(520) message(Could not resolve host: auth.factorio.com)
Jan 12 00:04:49 factorio002 factorio[397]: 6.979 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: Failed to reach auth server. Code: 520. Error: Unknown error.
Jan 12 00:04:49 factorio002 factorio[397]: 6.979 Info ServerMultiplayerManager.cpp:806: updateTick(54230777) changing state from(CreatingGame) to(InitializationFailed)
Jan 12 00:04:49 factorio002 factorio[397]: 6.979 Info CommandLineMultiplayer.cpp:211: Exit point.
Jan 12 00:04:49 factorio002 factorio[397]: 6.979 Info GlobalContext.cpp:760: Deleting active scenario.
Jan 12 00:04:50 factorio002 factorio[397]: 7.299 Info ServerMultiplayerManager.cpp:119: Disconnecting multiplayer connection.
Jan 12 00:04:50 factorio002 factorio[397]: 7.299 Info ServerMultiplayerManager.cpp:806: updateTick(18446744073709551615) changing state from(InitializationFailed) to(DisconnectingScheduled)
Jan 12 00:04:50 factorio002 factorio[397]: 7.380 Info ServerMultiplayerManager.cpp:146: Quitting multiplayer connection.
Jan 12 00:04:50 factorio002 factorio[397]: 7.380 Info ServerMultiplayerManager.cpp:806: updateTick(18446744073709551615) changing state from(DisconnectingScheduled) to(Closed)
Jan 12 00:04:50 factorio002 factorio[397]: 7.380 Info ServerMultiplayerManager.cpp:166: Deleting active scenario (global = true).
Jan 12 00:04:50 factorio002 factorio[397]: 7.472 Info UDPSocket.cpp:233: Closing socket
Jan 12 00:04:50 factorio002 factorio[397]: 7.472 Info UDPSocket.cpp:263: Socket closed
Jan 12 00:04:50 factorio002 factorio[397]: 7.474 Goodbye
Jan 12 00:04:50 factorio002 systemd[1]: factorio.service: Main process exited, code=exited, status=1/FAILURE
Jan 12 00:04:50 factorio002 systemd[1]: factorio.service: Failed with result 'exit-code'.
Jan 12 00:04:50 factorio002 systemd[1]: factorio.service: Consumed 12.117s CPU time.
Looking there I see:
Error HttpSharedState.cpp:175: CURL failed: code:6, 6; Could not resolve host: auth.factorio.com
Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: Failed to reach auth server. Code: 520. Error: Unknown error.
An nslookup of auth.factorio.com from the host looks to show proper DNS resolution:
Code: Select all
factorio@factorio002:~$ nslookup auth.factorio.com
Server: 192.168.20.6
Address: 192.168.20.6#53
Non-authoritative answer:
Name: auth.factorio.com
Address: 104.26.15.88
Name: auth.factorio.com
Address: 104.26.14.88
Name: auth.factorio.com
Address: 172.67.71.197
Name: auth.factorio.com
Address: 2606:4700:20::681a:e58
Name: auth.factorio.com
Address: 2606:4700:20::681a:f58
Name: auth.factorio.com
Address: 2606:4700:20::ac43:47c5
Re: [2.0.38] headless debian 12 server random crashes
Posted: Mon Jan 13, 2025 1:34 am
by R060
Yeah, looks like you are trying to run your server publicly available, which is the default configuration. That's why game is trying to connect to the host in the first place. If you did not want that, you can disable it in server configuration file (check what flags you need to provide it at start
and search for an example somewhere in game directory). Your server still will be accessible via direct IP connection.
For the reason why "curl" says it can't resolve the host, I have no clue. Most likely it's a bug in your Debian setup.
Re: [2.0.38] headless debian 12 server random crashes
Posted: Mon Jan 13, 2025 1:39 am
by R060
Found a related post with a solution. Check it out
90221
Re: [2.0.38] headless debian 12 server random crashes
Posted: Mon Jan 13, 2025 5:04 pm
by puffpants
R060 wrote: Mon Jan 13, 2025 1:39 am
Found a related post with a solution. Check it out
90221
unfortunately it was already enabled, running, and functional
Code: Select all
factorio@factorio002:~$ resolvectl query mods.factorio.com
mods.factorio.com: 104.26.14.88 -- link: eth0
172.67.71.197 -- link: eth0
104.26.15.88 -- link: eth0
-- Information acquired via protocol DNS in 1.0ms.
-- Data is authenticated: no; Data was acquired via local or encrypted transport: no
-- Data from: cache
factorio@factorio002:~$
Re: [2.0.38] headless debian 12 server random crashes
Posted: Mon Jan 13, 2025 5:06 pm
by puffpants
R060 wrote: Mon Jan 13, 2025 1:34 am
Yeah, looks like you are trying to run your server publicly available, which is the default configuration. That's why game is trying to connect to the host in the first place. If you did not want that, you can disable it in server configuration file (check what flags you need to provide it at start
and search for an example somewhere in game directory). Your server still will be accessible via direct IP connection.
For the reason why "curl" says it can't resolve the host, I have no clue. Most likely it's a bug in your Debian setup.
This is a server a few friends are playing on for the DLC, so having it public is needed. Thanks!
debain 12 running curl 7.88.1 (x86_64-pc-linux-gnu)
Re: [2.0.38] headless debian 12 server random crashes
Posted: Tue Jan 14, 2025 8:56 pm
by BeBoxer
puffpants wrote: Sun Jan 12, 2025 6:01 pm
R060 wrote: Sun Jan 12, 2025 9:12 am
Can you show the full log?
Looking there I see:
Error HttpSharedState.cpp:175: CURL failed: code:6, 6; Could not resolve host: auth.factorio.com
Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: Failed to reach auth server. Code: 520. Error: Unknown error.
An nslookup of auth.factorio.com from the host looks to show proper DNS resolution:
Code: Select all
factorio@factorio002:~$ nslookup auth.factorio.com
Server: 192.168.20.6
Address: 192.168.20.6#53
Non-authoritative answer:
Name: auth.factorio.com
Address: 104.26.15.88
Name: auth.factorio.com
Address: 104.26.14.88
Name: auth.factorio.com
Address: 172.67.71.197
Name: auth.factorio.com
Address: 2606:4700:20::681a:e58
Name: auth.factorio.com
Address: 2606:4700:20::681a:f58
Name: auth.factorio.com
Address: 2606:4700:20::ac43:47c5
nslookup is a bit of a unique tool. It's part of the BIND package and will pretty much do a DNS query on it's own without relying on the same libraries that most binaries use. What happens if from a CLI you do
or
? Do they work? Or do they give a name resolution error?
Re: [2.0.38] headless debian 12 server random crashes
Posted: Tue Jan 14, 2025 11:15 pm
by Tertius
- use dig to check name resolution. nslookup isn't using the OS resolver libraries, it's using its own internal ones.
- the name resolution inside a systemd unit is not necessarily the same as directly from the shell
- you need to check dns resolution in the vm trying to run Factorio, not on the proxmox host
Re: [2.0.38] headless debian 12 server random crashes
Posted: Tue Jan 14, 2025 11:44 pm
by puffpants
BeBoxer wrote: Tue Jan 14, 2025 8:56 pm
puffpants wrote: Sun Jan 12, 2025 6:01 pm
R060 wrote: Sun Jan 12, 2025 9:12 am
Can you show the full log?
Looking there I see:
Error HttpSharedState.cpp:175: CURL failed: code:6, 6; Could not resolve host: auth.factorio.com
Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: Failed to reach auth server. Code: 520. Error: Unknown error.
An nslookup of auth.factorio.com from the host looks to show proper DNS resolution:
Code: Select all
factorio@factorio002:~$ nslookup auth.factorio.com
Server: 192.168.20.6
Address: 192.168.20.6#53
Non-authoritative answer:
Name: auth.factorio.com
Address: 104.26.15.88
Name: auth.factorio.com
Address: 104.26.14.88
Name: auth.factorio.com
Address: 172.67.71.197
Name: auth.factorio.com
Address: 2606:4700:20::681a:e58
Name: auth.factorio.com
Address: 2606:4700:20::681a:f58
Name: auth.factorio.com
Address: 2606:4700:20::ac43:47c5
nslookup is a bit of a unique tool. It's part of the BIND package and will pretty much do a DNS query on it's own without relying on the same libraries that most binaries use. What happens if from a CLI you do
or
? Do they work? Or do they give a name resolution error?
Code: Select all
factorio@factorio002:~$ curl http://auth.factorio.com
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>cloudflare</center>
</body>
</html>
factorio@factorio002:~$
Code: Select all
factorio@factorio002:~$ ping auth.factorio.com
PING auth.factorio.com (104.26.15.88) 56(84) bytes of data.
64 bytes from 104.26.15.88 (104.26.15.88): icmp_seq=1 ttl=57 time=4.84 ms
64 bytes from 104.26.15.88 (104.26.15.88): icmp_seq=2 ttl=57 time=4.90 ms
^C
--- auth.factorio.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 4.844/4.870/4.896/0.026 ms
factorio@factorio002:~$
Re: [2.0.38] headless debian 12 server random crashes
Posted: Tue Jan 14, 2025 11:45 pm
by puffpants
Tertius wrote: Tue Jan 14, 2025 11:15 pm
- use dig to check name resolution. nslookup isn't using the OS resolver libraries, it's using its own internal ones.
- the name resolution inside a systemd unit is not necessarily the same as directly from the shell
- you need to check dns resolution in the vm trying to run Factorio, not on the proxmox host
Code: Select all
factorio@factorio002:~$ dig auth.factorio.com
; <<>> DiG 9.18.28-1~deb12u2-Debian <<>> auth.factorio.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45669
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;auth.factorio.com. IN A
;; ANSWER SECTION:
auth.factorio.com. 188 IN A 104.26.14.88
auth.factorio.com. 188 IN A 104.26.15.88
auth.factorio.com. 188 IN A 172.67.71.197
;; Query time: 0 msec
;; SERVER: 192.168.20.6#53(192.168.20.6) (UDP)
;; WHEN: Tue Jan 14 18:44:46 EST 2025
;; MSG SIZE rcvd: 94
factorio@factorio002:~$
Re: [2.0.38] headless debian 12 server random crashes
Posted: Thu Jan 16, 2025 4:53 pm
by BeBoxer
This seems like a mystery. Clearly your VM has some level of working DNS and reachability to auth.factorio.com. Where did the systemd service definitions come from? Those aren't part of the official distribution. It seems like you'd almost have to go out of your way to craft a systemd startup file which broke name resolution but I don't know what else to suggest checking.