tpill90 / epic-lancache-prefill

CLI tool to automatically prime a Lancache with Epic Launcher games
https://tpill90.github.io/epic-lancache-prefill/
MIT License
45 stars 4 forks source link

download does not progress #13

Closed cholzer79 closed 1 year ago

cholzer79 commented 1 year ago

Enviroment:

What works:

epic_launcher

What does not work:

While I can completelly configure EpicPrefill in both the Unraid Docker as well as the standanlone windows application, the prefill download does not progress and stays at 0% with no network traffic.

The bandwitdh value shown in the Unraid Docker version is "broken" as it shows several Gbps which my internet connection is not capable of - also there is no progress and no drive activity on my LanCache nvme.

Unraid_docker

The bandwitdh indicator in the windows build is more accurate as there is no traffic.

windows

LanCache Logs: These are the logs from an attempt to prefill City Skylines

upstream-error.log error.log access.log LanCache_access.log

Games tested with Unraid Prefill docker as well as the windows build:

With the Epic Launcher I can download these games, even on the same machine where the EpicPrefill.exe does not produce any download traffic.

Use EpicPrefill on a game that is already in the LanCache

  1. I used the Epic Launcher to download Cities Skylines through the LanCache
  2. then I launched epicprefill.exe selected Cities Skylines and choose Yes to prefill

Result: EpicPrefill.exe "downloads" everything that the EpicLauncher put in the lancache.

cachedGame

cholzer79 commented 1 year ago

This is a firewall/threat detection "problem".

When LanCache prefill is used it connects through "fastly-download.epicgames.com" (as seen in the LanCache prefill logs), this triggers my Firewall and Thread Protection in the UDR Pro SE.

ET USER_AGENTS Suspicious User-Agent (USERAGENT)

When the normal EPIC Client is used to install the exact same game through the LanCache then this does not trigger the Firewall and Threat Detection which I guess is down to the client connecting to a different CDN than "fastly-download.epicgames.com"?

I have now excluded the IP of the LanCache in the Firewall & Threat Detection of my UDM Pro SE and now LanCache prefill works

tpill90 commented 1 year ago

To add to this, it looks like the user agent defined here might be triggering the filter https://github.com/tpill90/epic-lancache-prefill/blob/master/EpicPrefill/Handlers/DownloadHandler.cs#L21

tpill90 commented 1 year ago

Released in v1.1.0