ue4-docker: Dependency download fails on Linux: (403) Forbidden

Hi, I’ve generated a Dockerfile to build a custom version 4.27.2 on Linux in Gitlab CI with the following settings:

# This file was generated by ue4-docker version 0.0.106 with the following options:
# 
# - combine: true
# - credential_mode: "secrets"
# - excluded_components: {"ddc": false, "debug": true, "templates": true}
# - gitdependencies_args: "--exclude=Android --exclude=Mac --exclude=Win32 --exclude=Win64"
# - source_mode: "copy"
# 
# This Dockerfile combines the steps for the following images:
#
# - ue4-build-prerequisites
# - ue4-source
# - ue4-minimal

Running the Setup.sh causes the following error, even when running it without any excludes:

Failed to download 'http://cdn.unrealengine.com/dependencies/UnrealEngine-16546836/01aeef9d6f354d0b789fe0f90786078b0395495f': The remote server returned an error: (403) Forbidden. (WebException)

I’ve never had any problems downloading the dependencies on Windows or MacOS. Is this a known issue on Linux?

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 2
  • Comments: 17 (1 by maintainers)

Most upvoted comments

On the note of the Carla fork actually, if anyone has recently linked their Epic Games account to their GitHub account and can’t access that or any other forks of the Unreal Engine, it’s due to Epic’s ongoing GitHub organisation maintenance. Fortunately it looks like Epic are aware of the issue and are working to address it.

@slonopotamus @TBBle just a heads-up, in case we see any issues filed against ue4-docker from users who are trying to build images for a fork they don’t have access to.

As mentioned before, the thread describes the fix: Manually update the Engine/Build/Commit.gitdeps.xml in your custom Engine. There is currently no automatic fix for this issue.

You should be able to build containers for UE 4.25 or later by doing a “custom” build against the relevant Epic release branch, e.g., https://github.com/EpicGames/UnrealEngine/tree/4.25, rather than using the tag. Any releases from 5.2 onwards should work by tag as usual.

For anything older versions or releases, you’ll need to create a custom branch of your own, apply Epic’s fix and then build from that custom branch.

If Carla depends on a specific version of UE, it might make sense for them to maintain a fork of UE 4 with that version plus the patched CommitDeps, and point their users at that fork when using ue4-docker. That would also make it easier for them to maintain any local patches that turn out to be needed. Edit: Turns out they do this already: https://github.com/CarlaUnreal/UnrealEngine, but for some reason aren’t using this in their ue4-docker instructions. I’d suggest raising this with them directly, since they’re already maintaining a custom UE4 fork. In fact, looking at their instructions, I’m not sure why they’re using ue4-docker, since they seem to ignore its output and directly build their own containers with ue4 inside? So yeah, for Carla-specific situation, I’d suggest opening a ticket with Carla to clarify.

Hello, thanks for the information. I have replaced this file on my local windows UE repo and it worked. Do you know where should I replace this file to in the Ubuntu machine where I run ‘ue4-docker build’? Should I first clone the repo of Unreal Engine mannually first and replace this file and then run ‘ue4-docker build’? Thanks a lot!