# Build Lighting from command line

**URL:** <https://forums.unrealengine.com/t/build-lighting-from-command-line/490252>\
**Category:** Platform & Builds\
**Tags:** building-lighting, vulkan, Linux, light-build, unreal-engine, Automation, question\
**Created:** [October 30, 2021, 11:46am UTC](https://forums.unrealengine.com/t/build-lighting-from-command-line/490252 "2021-10-30T11:46:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wurrego](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wurrego/32/88719_2.png) [@wurrego](https://forums.unrealengine.com/u/wurrego)\
**Post date:** [October 26, 2021, 3:48pm UTC](https://forums.unrealengine.com/t/build-lighting-from-command-line/490252/1 "2021-10-26T15:48:11Z")

</div>

Follow up, tried to run the same command on the host (without ssh). and it appears to run but crashes with the following errors:

- LogInit: Error: Timed out waiting for the recipient (TimeWaitingSec = 60.011565) Assertion failed: CurrentThread == GetCurrentThread(  
[File:/home/wurrego/develop/github/UnrealEngine/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp] [Line: 1470]

- Assertion failed: CurrentThread == GetCurrentThread() [File:/home/wurrego/develop/github/UnrealEngine/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp] [Line: 1470]

- Assertion failed: CurrentThread == GetCurrentThread() [File:/home/wurrego/develop/github/UnrealEngine/Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp] [Line: 1470]

- LogContentCommandlet: Error: [REPORT] Failed building lighting for /Game/Maps/MyMap

- LogContentCommandlet: Error: [REPORT] Failed building lighting for /Game/Maps/MyMap

- LogStaticLightingSystem: Warning: Failed to build lighting!!! Lighting build failed.

- LogStaticLightingSystem: Warning: Failed to build lighting!!! Lighting build failed.

- STUBBED: FUnixPlatformProcess::TerminateProc() : Killing a subtree is not implemented yet at /home/wurrego/develop/github/UnrealEngine/Engine/Source/Runtime/Core/Private/Unix/UnixPlatformProcess.cpp:1278 (TerminateProc)

---

<div class="post-metadata">

**Author:** ![wurrego](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wurrego/32/88719_2.png) [@wurrego](https://forums.unrealengine.com/u/wurrego)\
**Post date:** [October 26, 2021, 4:21pm UTC](https://forums.unrealengine.com/t/build-lighting-from-command-line/490252/2 "2021-10-26T16:21:13Z")

</div>

The above error, timeout when building static lighting seems related to this post:  
[lightmass-static-lightning-timed-out-asserts](https://answers.unrealengine.com/questions/930684/lightmass-static-lightning-timed-out-asserts-misma.html?sort=oldesthtml?sort=oldest)

i did try disabling ufw and enabling multicast with the following commands:

- sudo route add -net 230.0.0.0 netmask 255.255.255.0 dev lo
- sudo ifconfig lo multicast

neither of these fixed the problem.

---

<div class="post-metadata">

**Author:** ![wurrego](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/wurrego/32/88719_2.png) [@wurrego](https://forums.unrealengine.com/u/wurrego)\
**Post date:** [October 30, 2021, 11:46am UTC](https://forums.unrealengine.com/t/build-lighting-from-command-line/490252/3 "2021-10-30T11:46:38Z")

</div>

I am trying to build lighting for my map from the command line, on a remote Ubuntu 20.04 server that I am ssh’d into. Not having any luck…

(Side Note: this server also succesfully runs my packaged game instances, which I access via PixelStreaming).

```
cmd%> ./UE4Editor-Cmd -run=resavepackages -buildlighting -quality=Production -AllowCommandletRendering -Map=<MyMap> -unattended

```

The warnings i receive:

- LogRHI: Warning: Could not detect DISPLAY or WAYLAND\_DISPLAY environment variables

- Message dialog closed, result: Cancel, title: Message, text: Failed to load Vulkan Driver which is required to run the engine.

- The engine no longer fallbacks to OpenGL4 which has been deprecated

Configuration

- UE 4.27.1 compiled from source
- Linux: 5.8.0-43-generic #49~20.04.1-Ubuntu
- NVIDIA-SMI 465.19.01 Driver Version: 465.19.01 CUDA Version: 11.3
- Vulkan Instance Version: 1.2.131
- and vulkan utils is installed.
- echo $DISPLAY returns

Thanks in advance, happy to post any logs if it helps.

---

<div class="post-metadata">

**Author:** ![karlbuhr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@karlbuhr](https://forums.unrealengine.com/u/karlbuhr)\
**Post date:** [September 21, 2023, 10:09pm UTC](https://forums.unrealengine.com/t/build-lighting-from-command-line/490252/4 "2023-09-21T22:09:27Z")

</div>

Did you find a solution to this problem?
