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 fails on download chocolatey

See original GitHub issue

Output of the ue4-docker info command:

ue4-docker version:         0.0.71 (latest available version is 0.0.71)
Operating system:           Windows 10 Enterprise N LTSC 2019 Version 1809 (OS Build 17763.1518)
Docker daemon version:      19.03.13
NVIDIA Docker supported:    No
Maximum image size:         200GB
Available disk space:       287.14 GiB
Total system memory:        15.94 GiB physical, 18.31 GiB virtual
Number of processors:       4 physical, 8 logical

Problem output:

PS C:\BuildTools> ue4-docker build 4.25.3 --no-engine
[ue4-docker build] COMMAND-LINE INVOCATION:
[ue4-docker build] ['ue4-docker', '4.25.3', '--no-engine']

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

[ue4-docker build] WINDOWS CONTAINER SETTINGS
[ue4-docker build] Isolation mode:               process
[ue4-docker build] Base OS image tag:            ltsc2019 (host OS is Windows 10 version 1809)
[ue4-docker build] Memory limit:                 No limit
[ue4-docker build] Detected max image size:      200GB
[ue4-docker build] Directory to copy DLLs from:  C:\Windows\System32

[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:
Password:


[ue4-docker build] Building image "adamrehn/ue4-build-prerequisites:ltsc2019"...
Sending build context to Docker daemon   1.85MB
Step 1/27 : ARG BASEIMAGE
Step 2/27 : FROM ${BASEIMAGE} AS dlls
 ---> 474ba6caf60d
Step 3/27 : SHELL ["cmd", "/S", "/C"]
 ---> Using cache
 ---> e2fa66994071
Step 4/27 : LABEL com.adamrehn.ue4-docker.sentinel="1"
 ---> Using cache
 ---> 7e2a77d241d2
Step 5/27 : RUN mkdir C:\GatheredDlls && 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.
 ---> Using cache
 ---> b782ce3117b5
Step 6/27 : RUN powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && 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.
 ---> Running in caae0e194335
Exception calling "DownloadString" with "1" argument(s): "The underlying
connection was closed: An unexpected error occurred on a receive."
At line:1 char:1
+ iex ((New-Object System.Net.WebClient).DownloadString('https://chocol ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

The command 'cmd /S /C powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && 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.' returned a non-zero code: 1
[ue4-docker build] Error: failed to build image "adamrehn/ue4-build-prerequisites:ltsc2019".

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
adamrehncommented, Dec 18, 2020

The new ue4-docker diagnostics network diagnostic is now live in ue4-docker version 0.0.74.

4reactions
dkmartovcommented, Oct 30, 2020

Hey! I am still having trouble getting through the build, but I did solve this issue. Try adding “dns”: [“8.8.8.8”] to your docker json file. That fixed it for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chocolatey fails to install windbg #109 - GitHub
This error ends the build process. It could be that the download location for windbg has changed. Attempting a separate install on my...
Read more >
Running chocolatey in docker container fails - Stack Overflow
It fails every time when I am trying to build image from mentioned Dockerfile. The chocolatey tool is not running in container.
Read more >
Troubleshooting build issues - Adam Rehn Docs
This is typically caused by the download of the Unreal Engine's toolchain archive from the Epic Games CDN becoming corrupted and failing to...
Read more >
Writing Dockerfiles - Unreal Containers
This page aims to provide general guidance for developers who wish to write their own Dockerfiles for building Unreal Engine development container images...
Read more >
MSBUILD : error MSB1009: Project file does not exist
I am trying to build an asp.net using Jenkins and Nuget tool and but I got the error" MSBUILD : error MSB1009: 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