question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ue4-docker build 4.27.0 --cuda=10.2 --no-engine FAILED!NEED HELP!

See original GitHub issue

Output of the ue4-docker info command:

~$ ue4-docker build 4.27.0 --cuda=10.2 --no-engine
[ue4-docker build] COMMAND-LINE INVOCATION:
[ue4-docker build] ['ue4-docker', '4.27.0', '--cuda=10.2', '--no-engine']

[ue4-docker build] UNREAL ENGINE VERSION SETTINGS:
[ue4-docker build] Custom build:  No
[ue4-docker build] Release:       4.27.0
[ue4-docker build] Repository:    https://github.com/EpicGames/UnrealEngine.git
[ue4-docker build] Branch/tag:    4.27.0-release

[ue4-docker build] ADVANCED CONFIGURATION OPTIONS:
[ue4-docker build] excluded_components: {"ddc": false, "debug": false, "templates": false}

[ue4-docker build] LINUX CONTAINER SETTINGS
[ue4-docker build] Building GPU-enabled images compatible with NVIDIA Docker (CUDA 10.2 + OpenGL support).

[ue4-docker build] GENERAL SETTINGS
[ue4-docker build] Not excluding any Engine components.

Retrieving the Git credentials that will be used to clone the UE4 repo
Username: z657446063
Password:


[ue4-docker build] Image "adamrehn/ue4-build-prerequisites:cudagl10.2" exists and rebuild not requested, skipping build.

[ue4-docker build] Building image "adamrehn/ue4-source:4.27.0-cudagl10.2"...

FULL OUTPUT OF ue4-docker info GOES HERE

[ue4-docker build] Building image "adamrehn/ue4-source:4.27.0-cudagl10.2"...
[+] Building 2815.6s (12/17)
 => [internal] load build definition from Dockerfile                                                                                                                                                                                    0.1s
 => => transferring dockerfile: 4.19kB                                                                                                                                                                                                  0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                       0.1s
 => => transferring context: 53B                                                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/adamrehn/ue4-build-prerequisites:cudagl10.2                                                                                                                                                  0.0s
 => [ 1/13] FROM docker.io/adamrehn/ue4-build-prerequisites:cudagl10.2                                                                                                                                                                  0.0s
 => [internal] load build context                                                                                                                                                                                                       0.1s
 => => transferring context: 4.54kB                                                                                                                                                                                                     0.0s
 => CACHED [ 2/13] COPY --chown=ue4:ue4 git-credential-helper-endpoint.sh /tmp/git-credential-helper-endpoint.sh                                                                                                                        0.0s
 => [ 3/13] RUN chmod +x /tmp/git-credential-helper-endpoint.sh && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this can take quite s  0.7s
 => [ 4/13] RUN git clone --progress --depth=1 -b 4.27.0-release https://github.com/EpicGames/UnrealEngine.git /home/ue4/UnrealEngine && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to di  1625.6s
 => [ 5/13] COPY --chown=ue4:ue4 patch-broken-releases.py /tmp/patch-broken-releases.py                                                                                                                                                 0.0s
 => [ 6/13] RUN python3 /tmp/patch-broken-releases.py /home/ue4/UnrealEngine 0 && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this c  0.5s
 => [ 7/13] WORKDIR /home/ue4/UnrealEngine                                                                                                                                                                                              0.1s
 => ERROR [ 8/13] RUN sudo apt-get update &&  ./Setup.sh -no-cache &&  sudo rm -rf /var/lib/apt/lists/* && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for la  1188.3s
------
 > [ 8/13] RUN sudo apt-get update &&   ./Setup.sh -no-cache &&         sudo rm -rf /var/lib/apt/lists/* && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this can take quite some time.' && echo 'Performing filesystem layer commit...' && echo '':
#12 2.209 Get:3 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
#12 2.400 Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
#12 2.769 Ign:1 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  InRelease
#12 3.265 Get:6 http://security.ubuntu.com/ubuntu bionic-security/restricted i386 Packages [26.7 kB]
#12 3.460 Ign:2 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  InRelease
#12 3.506 Get:5 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  Release [696 B]
#12 3.551 Get:8 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  Release.gpg [836 B]
#12 3.553 Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [26.7 kB]
#12 3.560 Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [1238 kB]
#12 3.597 Get:7 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  Release [564 B]
#12 3.642 Get:11 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  Release.gpg [833 B]
#12 3.694 Get:12 https://developer.download.nvidia.cn/compute/cuda/repos/ubuntu1804/x86_64  Packages [717 kB]
#12 3.931 Get:13 https://developer.download.nvidia.cn/compute/machine-learning/repos/ubuntu1804/x86_64  Packages [73.8 kB]
#12 4.060 Get:14 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
#12 4.707 Get:15 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
#12 5.340 Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1344 kB]
#12 8.828 Get:17 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [7114 B]
#12 8.865 Get:18 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [560 kB]
#12 10.87 Get:19 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [2320 kB]
#12 11.81 Get:20 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
#12 19.44 Get:21 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1428 kB]
#12 25.21 Get:22 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [1293 kB]
#12 77.10 Get:23 http://archive.ubuntu.com/ubuntu bionic/main i386 Packages [1328 kB]
#12 84.73 Get:24 http://archive.ubuntu.com/ubuntu bionic/multiverse i386 Packages [177 kB]
#12 85.60 Get:25 http://archive.ubuntu.com/ubuntu bionic/restricted i386 Packages [13.5 kB]
#12 85.64 Get:26 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
#12 86.57 Get:27 http://archive.ubuntu.com/ubuntu bionic/universe i386 Packages [11.3 MB]
#12 153.9 Get:28 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
#12 154.2 Get:29 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [2202 kB]
#12 156.8 Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1985 kB]
#12 157.3 Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [1684 kB]
#12 157.8 Get:32 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [593 kB]
#12 158.1 Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/restricted i386 Packages [37.2 kB]
#12 158.5 Get:34 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [34.4 kB]
#12 158.9 Get:35 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [13.1 kB]
#12 159.2 Get:36 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2755 kB]
#12 160.6 Get:37 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [11.4 kB]
#12 160.9 Get:38 http://archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages [11.4 kB]
#12 161.2 Get:39 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [11.3 kB]
#12 161.6 Get:40 http://archive.ubuntu.com/ubuntu bionic-backports/main i386 Packages [11.2 kB]
#12 161.6 Fetched 43.2 MB in 2min 41s (269 kB/s)
#12 161.6 Reading package lists...
#12 162.9 Registering git hooks... (this will override existing ones!)
#12 163.0 Fixing inconsistent case in filenames.
#12 163.0 Setting up Mono
#12 163.1 Checking dependencies...
Updating dependencies:  38% (26698/64459), 4676.2/12124.3 MiB | 0.00 MiB/s...
#12 1188.2 Failed to download 'http://cdn.unrealengine.com/dependencies/UnrealEngine-16550678/6983aadc7acc8284345bdf0819e57c9dc158a400': Error: ConnectFailure (Connection refused) (WebException)
#12 1188.2 Result: 1
------
executor failed running [/bin/sh -c sudo apt-get update &&      ./Setup.sh -no-cache &&         sudo rm -rf /var/lib/apt/lists/* && echo '' && echo 'RUN directive complete. Docker will now commit the filesystem layer to disk.' && echo 'Note that for large filesystem layers this can take quite some time.' && echo 'Performing filesystem layer commit...' && echo '']: exit code: 1

Additional details:

  • Are you accessing the network through a proxy server? Yes/No Yes。 (The rest of the issue description goes here. If you’re reporting a problem with building container images, be sure to include the full output of the ue4-docker build command, including the initial output lines that display the command line parameters used to invoke the build. If you’re making a feature request, you can remove the template contents entirely, since the ue4-docker info output and related information is only needed for helping diagnose and reproduce bugs.)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:35 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
TBBlecommented, Sep 11, 2021

That URL (http://cdn.unrealengine.com/dependencies/UnrealEngine-16550678/6983aadc7acc8284345bdf0819e57c9dc158a400) is working okay for me here. Perhaps it was a temporary problem? Have you tried it again?

The downloads from http://archive.ubuntu.com/ were working, so it’s unlikely but possible your proxy server was not operating correctly, but maybe it doesn’t like Epic’s CDN specifically.

1reaction
slonopotamuscommented, Sep 14, 2021

I’m thinking about adding output of uname -a to ue4-docker configuration banner…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Having problem running pixel streaming in docker: failed to ...
I encounter following error (when running with xxx_project.sh ... [Line: 202] CUDA module failed to create a CUDA context on the RHI ...
Read more >
Troubleshooting build issues - Adam Rehn Docs
Building the ue4-build-prerequisites image fails with a network-related error. This indicates an underlying network or proxy server issue outside of ue4-docker ...
Read more >
DLSS Unreal Engine 5.0.0 Engine Plugin failing when runing ...
DLSS is failing to load when NGXTest sample game is run inside the Windows container. The log error message is:.
Read more >
ue4-docker - Unreal Containers
Build Unreal Engine development container images using the ue4-docker project. ... the project has grown to include support for building images compatible ...
Read more >
adamrehn/ue4-runtime - Docker Image
Container images for running packaged Unreal Engine projects via the NVIDIA ... just builds packaged using the container images from the ue4-docker project....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found