zeropingheroes / lancache

Automatically cache game files and updates at LAN parties using Nginx as a reverse proxy.
BSD 3-Clause "New" or "Revised" License
61 stars 9 forks source link

Issues with Windows Store app updates #6

Open marcusboon opened 6 years ago

marcusboon commented 6 years ago

Hi there,

It seems like the "windowsupdate" conf file also caches Windows Store apps. The first time it runs it's fine, i.e. the cache is populated and the updates download successfully, however when another computer on the LAN tries to update the same apps, it returns an error instead. The nginx-access logs show this:

[17/Sep/2018:19:45:00 +1000] 10.0.1.103 GET "/filestreamingservice/files/df83d2db-848e-4950-b130-c186a1f1f76d/pieceshash" - - 404 152 - - dl.delivery.mp.microsoft.com - - "Microsoft-Delivery-Optimization/10.0" [17/Sep/2018:19:45:03 +1000] 10.0.1.103 GET "/filestreamingservice/files/df83d2db-848e-4950-b130-c186a1f1f76d/pieceshash" - - 404 152 - - dl.delivery.mp.microsoft.com - - "Microsoft-Delivery-Optimization/10.0" [17/Sep/2018:19:45:06 +1000] 10.0.1.103 GET "/filestreamingservice/files/df83d2db-848e-4950-b130-c186a1f1f76d/pieceshash" - - 404 152 - - dl.delivery.mp.microsoft.com - - "Microsoft-Delivery-Optimization/10.0" [17/Sep/2018:19:45:09 +1000] 10.0.1.103 GET "/filestreamingservice/files/df83d2db-848e-4950-b130-c186a1f1f76d/pieceshash" - - 404 152 - - dl.delivery.mp.microsoft.com - - "Microsoft-Delivery-Optimization/10.0" [17/Sep/2018:19:45:12 +1000] 10.0.1.103 GET "/filestreamingservice/files/df83d2db-848e-4950-b130-c186a1f1f76d/pieceshash" - - 404 152 - - dl.delivery.mp.microsoft.com - - "Microsoft-Delivery-Optimization/10.0" [17/Sep/2018:19:45:12 +1000] 10.0.1.103 GET "/filestreamingservice/files/df83d2db-848e-4950-b130-c186a1f1f76d/pieceshash" - - 404 152 - - dl.delivery.mp.microsoft.com - - "Microsoft-Delivery-Optimization/10.0" [17/Sep/2018:19:45:15 +1000] 10.0.1.103 GET "/filestreamingservice/files/df83d2db-848e-4950-b130-c186a1f1f76d/pieceshash" - - 404 152 - - dl.delivery.mp.microsoft.com - - "Microsoft-Delivery-Optimization/10.0" [17/Sep/2018:19:45:18 +1000] 10.0.1.103 GET "/filestreamingservice/files/df83d2db-848e-4950-b130-c186a1f1f76d/pieceshash" - - 404 152 - - dl.delivery.mp.microsoft.com - - "Microsoft-Delivery-Optimization/10.0" [17/Sep/2018:19:45:21 +1000] 10.0.1.103 GET "/filestreamingservice/files/df83d2db-848e-4950-b130-c186a1f1f76d/pieceshash" - - 404 152 - - dl.delivery.mp.microsoft.com - - "Microsoft-Delivery-Optimization/10.0" [17/Sep/2018:19:45:24 +1000] 10.0.1.103 GET "/filestreamingservice/files/df83d2db-848e-4950-b130-c186a1f1f76d/pieceshash" - - 404 152 - - dl.delivery.mp.microsoft.com - - "Microsoft-Delivery-Optimization/10.0"

I've tried playing around with the proxy_cache_lock_age and tried setting that to 60s to see if that made any difference, but it still returns the same error.

Edit: Thought I should clarify that actual Windows 10 updates seem to work ok.