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

Unexpected status code 301 - officecdn.microsoft.com #44

Closed tomastomb closed 4 years ago

tomastomb commented 5 years ago

Describe the issue you are having

Query for Microsoft Office return error in /cache/logs/error.log:

# /cache/logs/error.log:
2019/06/26` 17:32:08 [error] 1324#1324: *2337 unexpected status code 301 in slice response while reading response header from upstream, client: 192.168.11.213, server: , request: "GET /DB/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/Office/Data/16.0.11727.20210/stream.x64.x-none.dat HTTP/1.1", subrequest: "/DB/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/Office/Data/16.0.11727.20210/stream.x64.x-none.dat", upstream: "http://2.17.13.140:80/DB/492350f6-3a01-4f97-b9c0-c7c6ddf67d60/Office/Data/16.0.11727.20210/stream.x64.x-none.dat", host: "officecdn.microsoft.com"

This occurs when installing Office 2019 by online installer.

How are you running the container(s)?

export HOST_IP=`hostname -I | cut -d' ' -f1`
docker run --restart unless-stopped --name lancache-dns --detach -p 53:53/udp -e USE_GENERIC_CACHE=true -e LANCACHE_IP=$HOST_IP lancachenet/lancache-dns:latest
docker run --restart unless-stopped --name lancache --detach -v /cache/data:/data/cache -v /cache/logs:/data/logs -p 80:80 -e CACHE_DISK_SIZE=70g -e CACHE_MAX_AGE=180d  lancachenet/monolithic:latest
docker run --restart unless-stopped --name sniproxy --detach -p 443:443 lancachenet/sniproxy:latest

DNS Configuration

# /etc/resolv.conf:
nameserver 8.8.8.8
nameserver 1.1.1.1
unspec commented 4 years ago

Are you still having this issue @tomastomb ?

Possibly related to https://github.com/lancachenet/monolithic/issues/37

unspec commented 4 years ago

Office downloads in particular will be investigated as part of https://github.com/lancachenet/monolithic/issues/65