adamrehn / ue4-docker

Windows and Linux containers for Unreal Engine 4
https://docs.adamrehn.com/ue4-docker/
MIT License
787 stars 172 forks source link

[ue4-docker build] Error: failed to build image "adamrehn/ue4-source:4.25.0-opengl-ubuntu22.04". #353

Closed eunseon02 closed 7 months ago

eunseon02 commented 7 months ago

Output of the ue4-docker build 4.25 command:


[ue4-docker build] COMMAND-LINE INVOCATION:
[ue4-docker build] ['ue4-docker', '4.25']

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

[ue4-docker build] ADVANCED CONFIGURATION OPTIONS:
[ue4-docker build] credential_mode: "secrets"
[ue4-docker build] excluded_components: {"ddc": false, "debug": false, "templates": false}
[ue4-docker build] gitdependencies_args: "--exclude=Android --exclude=Mac --exclude=Win32 --exclude=Win64"

[ue4-docker build] LINUX CONTAINER SETTINGS
[ue4-docker build] Base OS image: nvidia/opengl:1.0-glvnd-devel-ubuntu22.04

[ue4-docker build] GENERAL SETTINGS
[ue4-docker build] Build targets: build-prerequisites minimal source
[ue4-docker build] Changelist override: 13144385
[ue4-docker build] Not excluding any Engine components.

Retrieving the Git credentials that will be used to clone the UE4 repo
Username: eunseon02
Access token or password: 

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

[ue4-docker build] Building image "adamrehn/ue4-source:4.25.0-opengl-ubuntu22.04"...
#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 4.92kB done
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/adamrehn/ue4-build-prerequisites:opengl-ubuntu22.04
#2 DONE 0.0s

#3 [internal] load .dockerignore
#3 transferring context: 53B done
#3 DONE 0.0s

#4 [stage-0  1/14] FROM docker.io/adamrehn/ue4-build-prerequisites:opengl-ubuntu22.04
#4 DONE 0.0s

#5 [internal] settings cache mount permissions
#5 CACHED

#6 [internal] load build context
#6 transferring context: 4.51kB done
#6 DONE 0.0s

#7 [stage-0  2/14] COPY --chown=ue4:ue4 git-credential-helper-secrets.sh /tmp/git-credential-helper-secrets.sh
#7 CACHED

#8 [stage-0  3/14] RUN chmod +x /tmp/git-credential-helper-secrets.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 some time.' && echo 'Performing filesystem layer commit...' && echo ''
#8 0.269 
#8 0.269 RUN directive complete. Docker will now commit the filesystem layer to disk.
#8 0.269 Note that for large filesystem layers this can take quite some time.
#8 0.269 Performing filesystem layer commit...
#8 0.269 
#8 DONE 0.3s

#9 [stage-0  4/14] RUN --mount=type=secret,id=username,uid=1000,required    --mount=type=secret,id=password,uid=1000,required   CHANGELIST="$CHANGELIST" mkdir /home/ue4/UnrealEngine &&    cd /home/ue4/UnrealEngine &&    git init &&     git remote add origin "https://github.com/EpicGames/UnrealEngine.git" && git fetch --progress --depth 1 origin "4.25.0-release" &&  git checkout FETCH_HEAD && 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 ''
#9 0.449 hint: Using 'master' as the name for the initial branch. This default branch name
#9 0.449 hint: is subject to change. To configure the initial branch name to use in all
#9 0.449 hint: of your new repositories, which will suppress this warning, call:
#9 0.449 hint: 
#9 0.449 hint:  git config --global init.defaultBranch <name>
#9 0.449 hint: 
#9 0.449 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
#9 0.449 hint: 'development'. The just-created branch can be renamed via this command:
#9 0.449 hint: 
#9 0.449 hint:  git branch -m <name>
#9 0.449 Initialized empty Git repository in /home/ue4/UnrealEngine/.git/
#9 2.597 remote: Enumerating objects: 102693, done.        
remote: Counting objects: 100% (102693/102693), done.        
remote: Compressing objects: 100% (84147/84147), done.        
remote: Total 102693 (delta 15898), reused 102631 (delta 15867), pack-reused 0        
Receiving objects: 100% (102693/102693), 234.18 MiB | 18.46 MiB/s, done./s
Resolving deltas: 100% (15898/15898), done.
#9 15.60 From https://github.com/EpicGames/UnrealEngine
#9 15.60  * tag                   4.25.0-release -> FETCH_HEAD
#9 21.86 Note: switching to 'FETCH_HEAD'.
#9 21.86 
#9 21.86 You are in 'detached HEAD' state. You can look around, make experimental
#9 21.86 changes and commit them, and you can discard any commits you make in this
#9 21.86 state without impacting any branches by switching back to a branch.
#9 21.86 
#9 21.86 If you want to create a new branch to retain commits you create, you may
#9 21.86 do so (now or later) by using -c with the switch command. Example:
#9 21.86 
#9 21.86   git switch -c <new-branch-name>
#9 21.86 
#9 21.86 Or undo this operation with:
#9 21.86 
#9 21.86   git switch -
#9 21.86 
#9 21.86 Turn off this advice by setting config variable advice.detachedHead to false
#9 21.86 
#9 21.86 HEAD is now at f8f4b403e Merging final 4.25.0 release
#9 21.87 
#9 21.87 RUN directive complete. Docker will now commit the filesystem layer to disk.
#9 21.87 Note that for large filesystem layers this can take quite some time.
#9 21.87 Performing filesystem layer commit...
#9 21.87 
#9 DONE 22.5s

#10 [stage-0  5/14] COPY --chown=ue4:ue4 patch-broken-releases.py /tmp/patch-broken-releases.py
#10 DONE 0.0s

#11 [stage-0  6/14] 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 can take quite some time.' && echo 'Performing filesystem layer commit...' && echo ''
#11 0.211 
#11 0.211 RUN directive complete. Docker will now commit the filesystem layer to disk.
#11 0.211 Note that for large filesystem layers this can take quite some time.
#11 0.211 Performing filesystem layer commit...
#11 0.211 
#11 DONE 0.2s

#12 [stage-0  7/14] RUN mkdir "/home/ue4/gitdeps" && 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 0.367 
#12 0.367 RUN directive complete. Docker will now commit the filesystem layer to disk.
#12 0.367 Note that for large filesystem layers this can take quite some time.
#12 0.367 Performing filesystem layer commit...
#12 0.367 
#12 DONE 0.4s

#13 [stage-0  8/14] WORKDIR /home/ue4/UnrealEngine
#13 DONE 0.1s

#14 [stage-0  9/14] RUN --mount=type=cache,target=/home/ue4/gitdeps,uid=1000,gid=1000 sudo apt-get update &&    ./Setup.sh --exclude=Android --exclude=Mac --exclude=Win32 --exclude=Win64 &&   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 ''
#14 0.790 Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
#14 0.831 Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
#14 2.045 Get:3 http://security.ubuntu.com/ubuntu jammy-security/universe i386 Packages [745 kB]
#14 2.218 Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
#14 2.509 Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [109 kB]
#14 2.803 Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
#14 3.143 Get:7 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1080 kB]
#14 3.522 Get:8 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2048 kB]
#14 3.546 Get:9 http://archive.ubuntu.com/ubuntu jammy/multiverse i386 Packages [134 kB]
#14 3.562 Get:10 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
#14 3.594 Get:11 http://archive.ubuntu.com/ubuntu jammy/main i386 Packages [1324 kB]
#14 3.875 Get:12 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
#14 3.895 Get:13 http://archive.ubuntu.com/ubuntu jammy/universe i386 Packages [9385 kB]
#14 3.988 Get:14 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1624 kB]
#14 4.272 Get:15 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages [532 kB]
#14 4.333 Get:16 http://security.ubuntu.com/ubuntu jammy-security/restricted i386 Packages [41.0 kB]
#14 4.337 Get:17 http://security.ubuntu.com/ubuntu jammy-security/multiverse i386 Packages [1338 B]
#14 4.337 Get:18 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [44.6 kB]
#14 5.479 Get:19 http://archive.ubuntu.com/ubuntu jammy/restricted i386 Packages [36.7 kB]
#14 5.483 Get:20 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
#14 8.390 Get:21 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [50.4 kB]
#14 8.391 Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [2085 kB]
#14 8.709 Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/restricted i386 Packages [42.7 kB]
#14 8.711 Get:24 http://archive.ubuntu.com/ubuntu jammy-updates/universe i386 Packages [870 kB]
#14 8.877 Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1356 kB]
#14 9.089 Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1903 kB]
#14 9.381 Get:27 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse i386 Packages [4402 B]
#14 9.381 Get:28 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [743 kB]
#14 9.529 Get:29 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [33.3 kB]
#14 9.531 Get:30 http://archive.ubuntu.com/ubuntu jammy-backports/universe i386 Packages [19.8 kB]
#14 9.534 Get:31 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [80.9 kB]
#14 9.547 Get:32 http://archive.ubuntu.com/ubuntu jammy-backports/main i386 Packages [71.1 kB]
#14 9.575 Fetched 44.6 MB in 9s (4800 kB/s)
#14 9.575 Reading package lists...
#14 10.18 Registering git hooks... (this will override existing ones!)
#14 10.27 Fixing inconsistent case in filenames.
#14 10.28 Setting up Mono
#14 10.34 Checking dependencies (excluding Android, Mac, Win32, Win64)...
Updating dependencies:   0% (0/53303)...
#14 15.78 Failed to download 'http://cdn.unrealengine.com/dependencies/UnrealEngine-3794511-fdda41a8b03d4909b2eb7e47d3317d2b/02659e39c1dbc41b98e65cba6eb918e4c5ccf35d': The remote server returned an error: (403) Forbidden. (WebException)
#14 15.81 Result: 1
#14 ERROR: process "/bin/sh -c sudo apt-get update && \t./Setup.sh --exclude=Android --exclude=Mac --exclude=Win32 --exclude=Win64 && \tsudo 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 ''" did not complete successfully: exit code: 1
------
 > [stage-0  9/14] RUN --mount=type=cache,target=/home/ue4/gitdeps,uid=1000,gid=1000 sudo apt-get update &&     ./Setup.sh --exclude=Android --exclude=Mac --exclude=Win32 --exclude=Win64 &&   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 '':
9.381 Get:28 http://archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages [743 kB]
9.529 Get:29 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [33.3 kB]

10.18 Registering git hooks... (this will override existing ones!)
10.27 Fixing inconsistent case in filenames.
10.28 Setting up Mono
10.34 Checking dependencies (excluding Android, Mac, Win32, Win64)...
Updating dependencies:   0% (0/53303)...
15.78 Failed to download 'http://cdn.unrealengine.com/dependencies/UnrealEngine-3794511-fdda41a8b03d4909b2eb7e47d3317d2b/02659e39c1dbc41b98e65cba6eb918e4c5ccf35d': The remote server returned an error: (403) Forbidden. (WebException)
15.81 Result: 1
------
Dockerfile:47
--------------------
  46 |     WORKDIR /home/ue4/UnrealEngine
  47 | >>> RUN --mount=type=cache,target=/home/ue4/gitdeps,uid=1000,gid=1000 sudo apt-get update && \
  48 | >>>  ./Setup.sh --exclude=Android --exclude=Mac --exclude=Win32 --exclude=Win64 && \
  49 | >>>  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 ''
  50 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c sudo apt-get update && \t./Setup.sh --exclude=Android --exclude=Mac --exclude=Win32 --exclude=Win64 && \tsudo 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 ''" did not complete successfully: exit code: 1
[ue4-docker build] Error: failed to build image "adamrehn/ue4-source:4.25.0-opengl-ubuntu22.04".
slonopotamus commented 7 months ago

Duplicate of #319