Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ue4-docker build] Error: failed to build image "adamrehn/ue4-source:4.27.2-opengl-ubuntu18.04". #324

Closed
tongwenbo opened this issue Jun 5, 2023 · 3 comments
Labels

Comments

@tongwenbo
Copy link

tongwenbo commented Jun 5, 2023

I was trying to run ue4-docker build 4.27.2 and met the following issue. I would like to ask if someone has met the similar problems before.

#8 [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.27.2-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 ''
#8 sha256:f9596c6ad30e70991f6283db371526aea2414bfe218594b47ec0f4c8beb375b4
#8 0.672 Initialized empty Git repository in /home/ue4/UnrealEngine/.git/
#8 0.985 remote: Support for password authentication was removed on August 13, 2021.
#8 0.985 remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
#8 0.985 fatal: Authentication failed for 'https://github.com/EpicGames/UnrealEngine.git/'
#8 ERROR: executor failed running [/bin/sh -c CHANGELIST="$CHANGELIST"  mkdir /home/ue4/UnrealEngine &&         cd /home/ue4/UnrealEngine &&    git init &&     git remote add origin "$GIT_REPO" &&    git fetch --progress --depth 1 origin "$GIT_BRANCH" &&  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 '']: exit code: 128
------
 > [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.27.2-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 '':
------
executor failed running [/bin/sh -c CHANGELIST="$CHANGELIST"    mkdir /home/ue4/UnrealEngine &&         cd /home/ue4/UnrealEngine &&    git init &&     git remote add origin "$GIT_REPO" &&    git fetch --progress --depth 1 origin "$GIT_BRANCH" &&  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 '']: exit code: 128
[ue4-docker build] Error: failed to build image "adamrehn/ue4-source:4.27.2-opengl-ubuntu18.04".
@slonopotamus
Copy link
Collaborator

You need to use personal access token with repo scope with instead of password.

@tongwenbo
Copy link
Author

tongwenbo commented Jun 6, 2023

Thanks a lot! I have gone to the next steps.

And now I met a new problem with downloading dependencies. I have seen a blog from UE about it but I still face the same problem. https://forums.unrealengine.com/t/upcoming-disruption-of-service-impacting-unreal-engine-users-on-github/1155880/32. They say the file Engine/Build/Commit.gitdeps.xml should be updated. How could we solve this for this repo? Thanks a lot for your help!

Updating dependencies:   0% (0/55374)...
#14 10.26 Failed to download 'http://cdn.unrealengine.com/dependencies/UnrealEngine-16730285/014a6159f95c30c0eb93dd8943abf97d743e6174': The remote server returned an error: (403) Forbidden. (WebException)
#14 10.29 Result: 1
#14 ERROR: executor failed running [/bin/sh -c 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 '']: 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 '':
------
executor failed running [/bin/sh -c 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 '']: exit code: 1
[ue4-docker build] Error: failed to build image "adamrehn/ue4-source:4.27.0-opengl-ubuntu18.04".

@slonopotamus
Copy link
Collaborator

That's discussed in #319.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants