lancachenet / monolithic

A monolithic lancache service capable of caching all CDNs in a single instance
https://hub.docker.com/r/lancachenet/monolithic
Other
728 stars 73 forks source link

Status code 301 on Office 365 install #65

Closed gmtandi closed 4 years ago

gmtandi commented 4 years ago

Describe the issue you are having

Slow speed while installing Office 365, Unexpected status code 301 on headers...

How are you running the container(s)?

docker run \
--restart unless-stopped \
--name lancache-dns \
--detach \
-p 10.100.10.253:53:53/udp \
-e STEAMCACHE_IP="10.100.10.251 10.100.10.252 10.100.10.253" \
-e UPSTREAM_DNS=8.8.8.8 \
lancachenet/lancache-dns:latest

docker run \
--restart unless-stopped \
--name lancache \
--detach \
-v /cache/data:/data/cache \
-v /cache/logs:/data/logs \
-p 10.100.10.251:80:80 \
-p 10.100.10.252:80:80 \
-p 10.100.10.253:80:80 \
lancachenet/monolithic:latest

docker run \
--restart unless-stopped \
--name sniproxy \
--detach \
-p 10.100.10.251:443:443 \
-p 10.100.10.252:443:443 \
-p 10.100.10.253:443:443 \
lancachenet/sniproxy:latest

DNS Configuration

DHCP serves container's IP address as name server

Output of container(s)

2019/10/16 18:54:38 [error] 1344#1344: *6282 unexpected status code 301 in slice response while reading response header from upstream, client: 10.100.10.143, server: , request: "GET /PR/7ffbc6bf-bc32-4f92-8982-f9dd17fd3114/Office/Data/16.0.11328.20420/stream.x64.x-none.dat HTTP/1.1", subrequest: "/PR/7ffbc6bf-bc32-4f92-8982-f9dd17fd3114/Office/Data/16.0.11328.20420/stream.x64.x-none.dat", upstream: "http://173.222.196.67:80/PR/7ffbc6bf-bc32-4f92-8982-f9dd17fd3114/Office/Data/16.0.11328.20420/stream.x64.x-none.dat", host: "officecdn.microsoft.com"
KsuCraig commented 4 years ago

Also getting this.

csamsel commented 4 years ago

Microsoft - both Windows and Office updates never worked for me. I disabled it.

unspec commented 4 years ago

Seem related to https://github.com/lancachenet/monolithic/issues/37 - further testing on Windows/Office caching required

unspec commented 4 years ago

There does seem to be an issue with office downloads generating a slice error, confirmed by @Lepidopterist

MathewBurnett commented 4 years ago

https://gist.github.com/MathewBurnett/0dd1c6503e008e9aa3de02027097e853 Here are is attempt to download a cab that errors.

Lepidopterist commented 4 years ago

Hopefully, merged fix into cache-domains in https://github.com/uklans/cache-domains/pull/131. Please can we retest?

unspec commented 4 years ago

Closing this issue due to inactivity, feel free to reopen if needed

marcquark commented 3 years ago

just to leave some feedback, that change seems to have fixed the issue. at least i was able to successfully download an office update today. going to test windows udpate aswell and report in #37