godot 3.0.6 headless export err

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kyla

I tried to export the project with headless error at the time
[root@VM_0_7_centos friends_world_server]# godot-server --export “Linux/X11” /friends_world_server/server
ERROR: initialize: AudioDriverManager: all drivers failed, falling back to dummy driver
At: servers/audio_server.cpp:165.
ERROR: copy: Failed to open
At: core/os/dir_access.cpp:304.
ERROR: _fs_changed: Project export failed with error code 12.
At: editor/editor_node.cpp:471.
ERROR: ~List: Condition ’ _first != __null ’ is true.
At: core/self_list.h:100.
ERROR: cleanup: There are still MemoryPool allocs in use at exit!

I have no problem exporting with cli on window

:bust_in_silhouette: Reply From: Calinou

As of Godot 3.0.6, the server binary no longer includes editor functionality, which means it cannot be used to export projects anymore. Instead, you need to download an headless binary which can be used to export projects. (The server binary is intended to be used for running dedicated servers.)

Also, make sure the destination folder exists — the command mkdir -p path/to/destination/folder can be used to ensure this. See this issue on GitHub for more information.