lancachenet / lancache-dns

DNS Docker service for a lancache.
https://hub.docker.com/r/lancachenet/lancache-dns/
MIT License
282 stars 74 forks source link

*.steamcontent.com not cached #38

Closed Climbatize closed 6 years ago

Climbatize commented 6 years ago

Issue Description: I updated sources a couple hours ago and built docker image (I'm on a machine with ARM processor and the official built image runs on x86 machines). It appears that steam downloads an update from an url like http://valve2506.steamcontent.com, but nothing is cached. I traceroute valve2506.steamcontent.com and it ends up here :

$ traceroute valve2507.steamcontent.com
traceroute to valve2507.steamcontent.com (185.25.182.37), 64 hops max, 52 byte packets
 1  bbox.lan (192.168.1.254)  3.353 ms  4.190 ms  4.631 ms
 2  * * *
 3  be64.cbr01.lyo.net.bbox.fr (212.194.171.152)  32.246 ms  29.482 ms  36.508 ms
 4  be5.cbr01-cro.net.bbox.fr (212.194.171.141)  36.156 ms  38.704 ms  32.451 ms
 5  la12.rpt02-ix2.net.bbox.fr (212.194.171.88)  35.273 ms  31.859 ms  31.217 ms
 6  valve.par.franceix.net (37.49.237.57)  31.246 ms  27.776 ms  31.398 ms
 7  * * *
 8  * * *
 9  * * *
10  * * *
11  * * *

when I traceroute steamcontent.com it's ok, it ends up on my steamcache machine.

$ traceroute steamcontent.com
traceroute to steamcontent.com (192.168.1.6), 64 hops max, 52 byte packets
 1  192.168.1.6 (192.168.1.6)  4.284 ms  4.690 ms  4.850 ms

I looked at uklans/cache-domains and *.steamcontent.com is listed for Steam, so I think the problem is not on their side.

Docker Run Command:

sudo docker run --name steamcache-dns --restart=always -d -p 53:53/udp -e STEAMCACHE_IP=192.168.1.6 -e ORIGINCACHE_IP=192.168.1.6 -e UPLAYCACHE_IP=192.168.1.6 steamcache-dns:latest

Here are some excerpt from error.log :

2018/08/14 18:00:40 [crit] 11#11: *1003 mkdir() "/data/cache/depot/386362" failed (2: No such file or directory) while reading upstream, client: 192.168.1.32, server: *.cs.steampowered.com, request: "GET /depot/386362/chunk/8388981bd01a4b5d0e3eacbe992ceef98be4bf02?l=14&e=1534867254&sid=86862769&h=942eeed3137660f96c06ce9e5c43406d959bdf29 HTTP/1.1", upstream: "http://185.25.182.6:80/depot/386362/chunk/8388981bd01a4b5d0e3eacbe992ceef98be4bf02?l=14&e=1534867254&sid=86862769&h=942eeed3137660f96c06ce9e5c43406d959bdf29", host: "valve2508.steamcontent.com"
2018/08/14 18:00:40 [crit] 10#10: *987 mkdir() "/data/cache/depot/386362" failed (2: No such file or directory) while reading upstream, client: 192.168.1.32, server: *.cs.steampowered.com, request: "GET /depot/386362/chunk/805549a70313fccecc9e475de836fab464a858be?l=14&e=1534867254&sid=86862769&h=942eeed3137660f96c06ce9e5c43406d959bdf29 HTTP/1.1", upstream: "http://185.25.182.5:80/depot/386362/chunk/805549a70313fccecc9e475de836fab464a858be?l=14&e=1534867254&sid=86862769&h=942eeed3137660f96c06ce9e5c43406d959bdf29", host: "valve2506.steamcontent.com"
2018/08/14 18:00:40 [crit] 10#10: *973 mkdir() "/data/cache/depot/386362" failed (2: No such file or directory) while reading upstream, client: 192.168.1.32, server: *.cs.steampowered.com, request: "GET /depot/386362/chunk/121199b97875661a81e3a54c9cc1da457af0fbc7?l=14&e=1534867254&sid=86862769&h=942eeed3137660f96c06ce9e5c43406d959bdf29 HTTP/1.1", upstream: "http://185.25.182.38:80/depot/386362/chunk/121199b97875661a81e3a54c9cc1da457af0fbc7?l=14&e=1534867254&sid=86862769&h=942eeed3137660f96c06ce9e5c43406d959bdf29", host: "valve2509.steamcontent.com"
Climbatize commented 6 years ago

oh, reading the error log again I saw that I had a right issue... My bad, sorry for this !