[2.0.14] command in shell file cant launch the server

Arrange meetings with other people to play MP, announce your servers.
EnderAvaritia
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Nov 04, 2024 12:08 pm
Contact:

[2.0.14] command in shell file cant launch the server

Post by EnderAvaritia »

command in shell file cant launch the server ,this problem have occured cover 2.0.7 to 2.0.14
i type the command

Code: Select all

./bin/x64/factorio --port 34197 --start-server ./saves/factor.zip --server-settings ./data/server-settings.json
to the file boot.sh ,but it cant launched by running

Code: Select all

sudo ./boot.sh
Snipaste_2024-11-04_20-22-30.png
Snipaste_2024-11-04_20-22-30.png (124.47 KiB) Viewed 233 times
but it can run directly if i type the command in terminal:
Snipaste_2024-11-04_20-22-30.png
Snipaste_2024-11-04_20-22-30.png (124.47 KiB) Viewed 233 times
i use the headless server dawnload from offical website without any change except server-settings.json.

additonal with crash log:

Code: Select all

./boot.sh 
   0.000 2024-11-04 12:27:17; Factorio 2.0.14 (build 79988, linux64, headless, space-age)
   0.007 Operating system: Linux (Ubuntu 24.04)
"  0.007 Program arguments: "./bin/x64/factorio" "--port" "34197" "--start-server" "./saves/factor.zip" "--server-settings" "./data/server-settings.json
   0.007 Config path: /home/stephen-feng/servers/factorio/config/config.ini
   0.007 Read data path: /home/stephen-feng/servers/factorio/data
   0.007 Write data path: /home/stephen-feng/servers/factorio [193345/224256MB]
   0.007 Binaries path: /home/stephen-feng/servers/factorio/bin
   0.024 System info: [CPU: Intel(R) Core(TM) i7-7700T CPU @ 2.90GHz, 8 cores, RAM: 15901 MB]
   0.024 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> SDL_VIDEODRIVER=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.025 Running in headless mode
   0.025 Audio is disabled
   0.034 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
   0.034 Info ModManager.cpp:434: FeatureFlag freezing = true
   0.034 Info ModManager.cpp:434: FeatureFlag quality = true
   0.034 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
   0.034 Info ModManager.cpp:434: FeatureFlag segmented-units = true
   0.034 Info ModManager.cpp:434: FeatureFlag space-travel = true
   0.034 Info ModManager.cpp:434: FeatureFlag spoiling = true
   0.035 Loading mod settings squeak-through-2 0.1.1 (settings.lua)
   0.038 Loading mod core 0.0.0 (data.lua)
   0.051 Loading mod base 2.0.14 (data.lua)
   0.178 Loading mod elevated-rails 2.0.14 (data.lua)
   0.198 Loading mod quality 2.0.14 (data.lua)
   0.207 Loading mod Teleporters 2.0.0 (data.lua)
   0.216 Loading mod space-age 2.0.14 (data.lua)
   0.387 Loading mod Waterfill_v17 2.0.2 (data.lua)
   0.398 Loading mod base 2.0.14 (data-updates.lua)
   0.410 Loading mod quality 2.0.14 (data-updates.lua)
   0.428 Loading mod space-age 2.0.14 (data-updates.lua)
   0.440 Loading mod squeak-through-2 0.1.1 (data-final-fixes.lua)
   0.551 Checksum for core: 3504056361
   0.551 Checksum of base: 48730768
   0.551 Checksum of squeak-through-2: 4067808410
   0.551 Checksum of elevated-rails: 971617432
   0.551 Checksum of quality: 3898255384
   0.551 Checksum of Teleporters: 3058323444
   0.551 Checksum of space-age: 1545753807
   0.551 Checksum of Waterfill_v17: 3387676269
   0.946 Prototype list checksum: 3749597505
   1.004 Info PlayerData.cpp:66: Local player-data.json available, timestamp 1730723224
   1.004 Info PlayerData.cpp:73: Cloud player-data.json unavailable
   1.005 Factorio initialised
]  1.005 Error CommandLineMultiplayer.cpp:355: Hosting multiplayer game failed: filesystem error: file_size(p): unknown error: No such file or directory [./data/server-settings.json
   1.009 Info ServerMultiplayerManager.cpp:146: Quitting multiplayer connection.
   1.009 Info ServerMultiplayerManager.cpp:803: updateTick(18446744073709551615) changing state from(Ready) to(Closed)
   1.056 Goodbye
User avatar
BraveCaperCat
Fast Inserter
Fast Inserter
Posts: 240
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

Re: [2.0.14] command in shell file cant launch the server

Post by BraveCaperCat »

EnderAvaritia wrote: Mon Nov 04, 2024 12:28 pm command in shell file cant launch the server ,this problem have occured cover 2.0.7 to 2.0.14
i type the command

Code: Select all

./bin/x64/factorio --port 34197 --start-server ./saves/factor.zip --server-settings ./data/server-settings.json
to the file boot.sh ,but it cant launched by running

Code: Select all

sudo ./boot.sh
Snipaste_2024-11-04_20-19-51.png
but it can run directly if i type the command in terminal:
Snipaste_2024-11-04_20-22-30.png
i use the headless server dawnload from offical website without any change except server-settings.json.

additonal with crash log:

Code: Select all

./boot.sh 
   0.000 2024-11-04 12:27:17; Factorio 2.0.14 (build 79988, linux64, headless, space-age)
   0.007 Operating system: Linux (Ubuntu 24.04)
"  0.007 Program arguments: "./bin/x64/factorio" "--port" "34197" "--start-server" "./saves/factor.zip" "--server-settings" "./data/server-settings.json
   0.007 Config path: /home/stephen-feng/servers/factorio/config/config.ini
   0.007 Read data path: /home/stephen-feng/servers/factorio/data
   0.007 Write data path: /home/stephen-feng/servers/factorio [193345/224256MB]
   0.007 Binaries path: /home/stephen-feng/servers/factorio/bin
   0.024 System info: [CPU: Intel(R) Core(TM) i7-7700T CPU @ 2.90GHz, 8 cores, RAM: 15901 MB]
   0.024 Environment: DISPLAY=<unset> WAYLAND_DISPLAY=<unset> DESKTOP_SESSION=<unset> XDG_SESSION_DESKTOP=<unset> XDG_CURRENT_DESKTOP=<unset> SDL_VIDEODRIVER=<unset> __GL_FSAA_MODE=<unset> __GL_LOG_MAX_ANISO=<unset> __GL_SYNC_TO_VBLANK=<unset> __GL_SORT_FBCONFIGS=<unset> __GL_YIELD=<unset>
   0.025 Running in headless mode
   0.025 Audio is disabled
   0.034 Info ModManager.cpp:434: FeatureFlag expansion-shaders = true
   0.034 Info ModManager.cpp:434: FeatureFlag freezing = true
   0.034 Info ModManager.cpp:434: FeatureFlag quality = true
   0.034 Info ModManager.cpp:434: FeatureFlag rail-bridges = true
   0.034 Info ModManager.cpp:434: FeatureFlag segmented-units = true
   0.034 Info ModManager.cpp:434: FeatureFlag space-travel = true
   0.034 Info ModManager.cpp:434: FeatureFlag spoiling = true
   0.035 Loading mod settings squeak-through-2 0.1.1 (settings.lua)
   0.038 Loading mod core 0.0.0 (data.lua)
   0.051 Loading mod base 2.0.14 (data.lua)
   0.178 Loading mod elevated-rails 2.0.14 (data.lua)
   0.198 Loading mod quality 2.0.14 (data.lua)
   0.207 Loading mod Teleporters 2.0.0 (data.lua)
   0.216 Loading mod space-age 2.0.14 (data.lua)
   0.387 Loading mod Waterfill_v17 2.0.2 (data.lua)
   0.398 Loading mod base 2.0.14 (data-updates.lua)
   0.410 Loading mod quality 2.0.14 (data-updates.lua)
   0.428 Loading mod space-age 2.0.14 (data-updates.lua)
   0.440 Loading mod squeak-through-2 0.1.1 (data-final-fixes.lua)
   0.551 Checksum for core: 3504056361
   0.551 Checksum of base: 48730768
   0.551 Checksum of squeak-through-2: 4067808410
   0.551 Checksum of elevated-rails: 971617432
   0.551 Checksum of quality: 3898255384
   0.551 Checksum of Teleporters: 3058323444
   0.551 Checksum of space-age: 1545753807
   0.551 Checksum of Waterfill_v17: 3387676269
   0.946 Prototype list checksum: 3749597505
   1.004 Info PlayerData.cpp:66: Local player-data.json available, timestamp 1730723224
   1.004 Info PlayerData.cpp:73: Cloud player-data.json unavailable
   1.005 Factorio initialised
]  1.005 Error CommandLineMultiplayer.cpp:355: Hosting multiplayer game failed: filesystem error: file_size(p): unknown error: No such file or directory [./data/server-settings.json
   1.009 Info ServerMultiplayerManager.cpp:146: Quitting multiplayer connection.
   1.009 Info ServerMultiplayerManager.cpp:803: updateTick(18446744073709551615) changing state from(Ready) to(Closed)
   1.056 Goodbye
Does it work with the default server-settings.json? The error is because the game cannot find the file.
Creator of multiple mods, including Quality Assurance - My most popular one. Expect multiple modding-related questions, answers and other posts.
vadcx
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Fri Apr 19, 2024 4:12 pm
Contact:

Re: [2.0.14] command in shell file cant launch the server

Post by vadcx »

viewtopic.php?f=53&t=6406
For questions about server setup and troubleshooting see the Mulitplayer-wiki and Technical Help instead.
Did you notice the weird characters in the beginning that replaced spaces?

Code: Select all

"  0.007 Program arguments: "./bin/x64/factorio" "--port" "34197" "--start-server" "./saves/factor.zip" "--server-settings" "./data/server-settings.json
and

Code: Select all

]  1.005 Error CommandLineMultiplayer.cpp:355: Hosting multiplayer game failed: filesystem error: file_size(p): unknown error: No such file or directory [./data/server-settings.json
You must have edited the file on Windows and introduced the \r carriage return character at the end. Bash will usually complain about that itself. Change the end-of-line to \n aka Unix-style.

Also DO NOT run a game server under sudo/root.
Post Reply

Return to “Multiplayer”