Downloading on Setup.sh Linux Debian 12 fails to download dependecies Error

Downloading from git :+1:
Downloading from Setup.sh downloads to 89% then stalls stays at 0mbps for an unlimited amount of time
I closed the setup .sh ran it again this time the amount of dependencies needed are alot lower 0/6, Stays there for a bit then gives me this error

Failed to download ‘http://cdn.unrealengine.com/dependencies/UnrealEngine-25357016/b645fcb8d128dfacf83e05c83d05cc377a1db7f8’: SocketException: Connection reset by peer
Wrapped by IOException: Unable to read data from the transport connection: Connection reset by peer.
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource<System.Int32>.GetResult(Int16 token)
at System.Net.Http.HttpConnection.FillAsync(Boolean async)
at System.Net.Http.HttpConnection.CopyToContentLengthAsync(Stream destination, Boolean async, UInt64 length, Int32 bufferSize, CancellationToken cancellationToken)
at System.Net.Http.HttpConnection.ContentLengthReadStream.CompleteCopyToAsync(Task copyTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionResponseContent.SerializeToStreamAsync(Stream stream, TransportContext context, CancellationToken cancellationToken)
at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)Wrapped by HttpRequestException: Error while copying content to a stream.
at System.Net.Http.HttpContent.LoadIntoBufferAsyncCore(Task serializeToStreamTask, MemoryStream tempBuffer)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at GitDependencies.Program.DownloadAndExtractFiles(String Url, String CacheFileName, Int64 CompressedSize, String ExpectedHash, IncomingFile Files, NotifyReadDelegate NotifyRead)Wrapped by AggregateException: One or more errors occurred. (Error while copying content to a stream.)
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at GitDependencies.Program.DownloadWorker(ConcurrentQueue`1 DownloadQueue, AsyncDownloadState State, Int32 MaxRetries, CancellationToken CancellationToken)

I go the link it tried to download via browser and it downloads in the browser just fine.

1 Like

mmm what do you mean has to many characters, I moved Unreal Engine from Documents/Programs/Unreal Engine to the Home Folder if that’s what you ment, and I just left the name for the Folder as UnrealEngine.

your right it does say security risk 0-0, How would I allow it then to be able to download via the Setup.sh. I don’t believe I ever got this issue when I downloaded unreal on arch linux. Though someone could of reported it recently

This amended line works in Google Chrome

Looks like a mess up somewhere they are using http not https.
Google Chrome say not a secure link and in the help says replace http by https and its downloaded to 1GB file which when opened with WinRAR decompressor ends up with the blob file seen in Commit.gitdeps.xml

    <Pack Hash="b645fcb8d128dfacf83e05c83d05cc377a1db7f8" Size="2622873696" CompressedSize="1126040830" RemotePath="UnrealEngine-25357016" />

in Setup.sh

# Select the preferred architecture for the current system
ARCH=x64
[ $(uname -m) == "arm64" ] && ARCH=arm64 

if [ ! -f Engine/Binaries/DotNET/GitDependencies/linux-x64/GitDependencies ] && [ ! -f Engine/Binaries/DotNET/GitDependencies/osx-$ARCH/GitDependencies ] ; then
	echo "GitSetup ERROR: This script does not appear to be located \
	   in the root UE directory and must be run from there."
	exit 1
fi

This uses a different GitDependencies file depending on “the preferred architecture for the current system” the other GitDependencies may have a problem with https.
This explains why downloaded unreal on arch linux went ok .

So, what would we do to fix this. Throw Debian out the window or hope to God that whoever is incharge with the Git repository fixes the ssh

Am I able to download it and manually put the files in the required spot?

Hi @GodOfConquestt ,
Yes looks like thats what you will need to do

I had to cd each directory one at a time
download with Chrome

https://cdn.unrealengine.com/dependencies/UnrealEngine-25357016/b645fcb8d128dfacf83e05c83d05cc377a1db7f8

unpack with gzip
to get file the copy or mv to the correct path UnrealEngineRoot/.git/ue-gitdeps/b6

b645fcb8d128dfacf83e05c83d05cc377a1db7f8

GitDependencies checks file cache for files already in place.
So hopefully will go to the end.

You could try loading binary from Epic Games Launcher to see if that works as an alternative
No other ideas really

Solution:
When it gives an error copy the link and download the file through your browser replace http with https, Go to your unreal folder Unreal Engine/.git/ue-gitdeps/ Look at the first 2 characters to determine the correct folder placement (Example
b645fcb8d128dfacf83e05c83d05cc377a1db7f8 would be Folder b6)
. Do not extract the file drop the zip file directly into folder b6. Restart Setup.sh. Will check for dependencies again and give another error rinse and repeat, put all downloaded files into correct folder( like b6) until all dependencies are finally downloaded. If stuck on Downloading dependencies for a stupid long time with no error restart setup.sh should hopefully try again and be shorter the next time.

After everything is downloaded I did GenerateProjectFiles with no Issue and Make worked flawlessly.

1 Like

Hi @GodOfConquestt ,
Great news that you have found solution. I suggest you zip/tar the resulting build and put on an external USB stick as this problem is similar for a lot of downloads, not just Linux.
Thanks

Bump. My GenerateProgramFiles.sh didnt succed.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.