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

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.)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 35 (5 by maintainers)

Most upvoted comments

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.

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

Yes, you are absolutly right,i didn’t even say i am running a Docker Desktop on Windows 10 and a WSL2 Ubuntu 20.04.3 LTS but you have see it ! And ,indeed i have a VPN on Windows。 I think that is the key point as you said,and i have learned a new subject about the net speed on the WSL through you 👍! I will have a try at microsoft/WSL#4901. Thanks again!

Are you running this against a remote Docker instance? ue4-docker info is trying to check the free space on the file system where Docker Root Dir in your docker info output lives, i.e. /var/lib/docker; but it apparently doesn’t exist where ue4-docker info is running.

I guess it’s possible that if that directory exists but the user running ue4-docker info doesn’t have access to it, then we’d see this failure, but I’d have expected a different error message in this case.


Oh, this is Docker Desktop with WSL2, I see. So in-effect it’s remote. Interesting no one’s raised this before now.

And that might also explain your network problems, I’ve seen a lot of reports of issues and speed problems with containers running under Docker Desktop with WSL2, particularly if you have VPN connection or firewalls/virus scanners interfering. See for example https://github.com/microsoft/WSL/issues/4901.

Speeds on WSL seem to be about 10-20 kb/s wheras windows download speed seem to be correlating to my ISP spec of 100/10 Mbps or above.