0 votes

I tried to test the export of my project written in C# using Godot headless version with this command:

[email protected]:/home/ubuntu/Godot_v3.4.3-stable_mono_linux_headless_64# godot --path mascot --build-solutions --export-debug "Linux/X11" "/builds/linux/mascot"

But got the errors:

Godot Engine v3.4.3.stable.mono.official.242c05d12 - https://godotengine.org
WARNING: Started the engine as `root`/superuser. This is a security risk, and subsystems like audio may not work correctly.
Set the environment variable `GODOT_SILENCE_ROOT_WARNING` to 1 to silence this warning.
     at: setup2 (main/main.cpp:1301)

Mono: Log file is: '/root/.local/share/godot/mono/mono_logs/2022-03-22_13.12.09_100056.log'
ERROR: Unable to open file: res://.import/CheckboxUncheck64x64.png-cdc774f12f3b1dbc32f03b5db1a54db3.stex.
   at: _load_data (scene/resources/texture.cpp:466)
ERROR: Failed loading resource: res://.import/CheckboxUncheck64x64.png-cdc774f12f3b1dbc32f03b5db1a54db3.stex. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Unable to open file: res://.import/CheckboxCheck64x64.png-e7a479a5c00d73b50e7981adf8b22b11.stex.
   at: _load_data (scene/resources/texture.cpp:466)
ERROR: Failed loading resource: res://.import/CheckboxCheck64x64.png-e7a479a5c00d73b50e7981adf8b22b11.stex. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Unable to open file: res://.import/Radio On64x64.png-1c0eeaab20380382bc440a7c467ad651.stex.
   at: _load_data (scene/resources/texture.cpp:466)
ERROR: Failed loading resource: res://.import/Radio On64x64.png-1c0eeaab20380382bc440a7c467ad651.stex. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Unable to open file: res://.import/Radio Off64x64.png-aa2193a6c5d5ecaad892f90ad20a46c0.stex.
   at: _load_data (scene/resources/texture.cpp:466)
ERROR: Failed loading resource: res://.import/Radio Off64x64.png-aa2193a6c5d5ecaad892f90ad20a46c0.stex. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Unable to open file: res://.import/icon.png-76e0b69d56b253d4bdbfbbba454aaf0c.stex.
   at: _load_data (scene/resources/texture.cpp:466)
ERROR: Failed loading resource: res://.import/icon.png-76e0b69d56b253d4bdbfbbba454aaf0c.stex. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Unable to open file: res://.import/023026.png-7fbf6e7e73b39445d5353f0776247cf5.stex.
   at: _load_data (scene/resources/texture.cpp:466)
ERROR: Failed loading resource: res://.import/023026.png-7fbf6e7e73b39445d5353f0776247cf5.stex. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Cannot open file 'res://.import/character.glb-342edd2179d11a7f1e39d15ecd0cff24.scn'.
   at: load_interactive (core/io/resource_format_binary.cpp:939)
ERROR: Failed loading resource: res://.import/character.glb-342edd2179d11a7f1e39d15ecd0cff24.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Failed loading resource: res://meshes/characters/character/character.glb. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Cannot open file 'res://.import/character.glb-342edd2179d11a7f1e39d15ecd0cff24.scn'.
   at: load_interactive (core/io/resource_format_binary.cpp:939)
ERROR: Failed loading resource: res://.import/character.glb-342edd2179d11a7f1e39d15ecd0cff24.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Failed loading resource: res://meshes/characters/character/character.glb. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
WARNING: Couldn't load external resource: res://meshes/characters/character/character.glb
     at: _parse_ext_resource (scene/resources/resource_format_text.cpp:157)
ERROR: Cannot open file 'res://.import/FireDragon.glb-e2ec48276184ce13e73a4b204a319bd3.scn'.
   at: load_interactive (core/io/resource_format_binary.cpp:939)
ERROR: Failed loading resource: res://.import/FireDragon.glb-e2ec48276184ce13e73a4b204a319bd3.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Failed loading resource: res://meshes/creatures/fire_dragon/FireDragon.glb. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Cannot open file 'res://.import/FireDragon.glb-e2ec48276184ce13e73a4b204a319bd3.scn'.
   at: load_interactive (core/io/resource_format_binary.cpp:939)
ERROR: Failed loading resource: res://.import/FireDragon.glb-e2ec48276184ce13e73a4b204a319bd3.scn. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
ERROR: Failed loading resource: res://meshes/creatures/fire_dragon/FireDragon.glb. Make sure resources have been imported by opening the project in the editor at least once.
   at: _load (core/io/resource_loader.cpp:270)
WARNING: Couldn't load external resource: res://meshes/creatures/fire_dragon/FireDragon.glb
     at: _parse_ext_resource (scene/resources/resource_format_text.cpp:157)
mono_project_debug_build: begin: Building project solution... steps: 1
        mono_project_debug_build: step 0: Building project solution
ERROR: Cannot open file 'res://.import/character.glb-342edd2179d11a7f1e39d15ecd0cff24.scn'.
   at: get_dependencies (core/io/resource_format_binary.cpp:984)
ERROR: Cannot open file 'res://.import/Cat.glb-1cbb1bc190795afbff926c32df6505e9.scn'.
   at: get_dependencies (core/io/resource_format_binary.cpp:984)
ERROR: Cannot open file 'res://.import/FireDragon.glb-e2ec48276184ce13e73a4b204a319bd3.scn'.
   at: get_dependencies (core/io/resource_format_binary.cpp:984)
ERROR: Cannot open file 'res://.import/Peach.glb-566bc342ef77bd3dc9c6e719c7447e04.scn'.
   at: get_dependencies (core/io/resource_format_binary.cpp:984)
ERROR: Cannot open file 'res://.import/CreaturePhoenix.glb-a8e710190ff09e77d4941fc109def7a0.scn'.
   at: get_dependencies (core/io/resource_format_binary.cpp:984)
reimport: begin: (Re)Importing Assets steps: 46
        reimport: step 0: Boy01_diffuse.jpg
Killed

I have no ideal what I should do next, as the error didn't say anything specific.
Any ideal what should I do? or what I do wrong? or Am I missing any step in this path?

in Engine by (67 points)

1 Answer

0 votes

I'm not doing things in Mono/C# and I haven't tested more complicated commands for testing like this, but I think the takeaway is there are a bunch of failed attempts to import graphical things like textures in those errors. Which is not what a headless executable should do; the whole point is you save resources by ignoring the graphical stuff in your export. Make absolutely sure (i.e. maybe rewrite the command or uninstall unnecessary godot things) that you are running the headless-server executable and you've got the right game .pck on the server.

If you are running the correct executable, my understanding is it shouldn't even try to open these graphical imports, but obviously it is and that's an issue.

p.s. If it's an option for you, creating even a tiny linux vm for testing locally and fixing these errors might be beneficial as opposed to on a VPS.

by (170 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.