lancache-dns not working on windows
rubensamuelJesus opened this issue · comments
Please try the following:
- Remove the alternate DNS server in Windows. If an alternate DNS server is specified then Windows will use it.
- Disable IPv6.
- Run
ipconfig /flushdns
and try again.
That should sort it.
I will test this as soon as possible and say something.
Right now I'm testing it on a ubuntu virtual machine. But previously I tested on raspberry and was having difficulty running the containers. Is it possible to run on a raspberry pi 4?
I did not have much luck trying to run it on raspberry pi. But props to you if you get it working!
I'm borrowing this thread as I'm also having troubles setting up lancache on Windows (Docker). The error.log is filled with:
2023/01/30 09:23:48 [crit] 2804#2804: *1 fstat() "/data/cache/cache/c7/f8/4275239e93491d70f40a2e702491f8c7.0000000024" failed (2: No such file or directory) while reading upstream, client: 172.20.0.1, server: , request: "GET /depot/1097151/chunk/62e08323f7faef19746744040a6df36aa2c28712 HTTP/1.1", upstream: "http://127.0.0.1:3128/depot/1097151/chunk/62e08323f7faef19746744040a6df36aa2c28712", host: "cache4-sto2.steamcontent.com" 2023/01/30 09:23:48 [crit] 2044#2044: *105 fstat() "/data/cache/cache/d8/7c/4d151b04ab016f2085591332572e7cd8.0000000026" failed (2: No such file or directory) while reading upstream, client: 172.20.0.1, server: , request: "GET /depot/1097151/chunk/b8fa32da74410b8b8ada3ee7e4d794c0c34e6166 HTTP/1.1", upstream: "http://127.0.0.1:3128/depot/1097151/chunk/b8fa32da74410b8b8ada3ee7e4d794c0c34e6166", host: "cache3-sto2.steamcontent.com" 2023/01/30 09:23:48 [crit] 2044#2044: *78 fstat() "/data/cache/cache/ed/18/ae3a7231f0ca62e8dba6eb1d086918ed.0000000027" failed (2: No such file or directory) while reading upstream, client: 172.20.0.1, server: , request: "GET /depot/1097151/chunk/2e9bf301f4f0ff6390bc9c0ebaf6e63958d0087f HTTP/1.1", upstream: "http://127.0.0.1:3128/depot/1097151/chunk/2e9bf301f4f0ff6390bc9c0ebaf6e63958d0087f", host: "cache3-sto2.steamcontent.com" 2023/01/30 09:23:48 [crit] 2804#2804: *1 fstat() "/data/cache/cache/8e/2e/1e7b6ba234e90f96224edf14c9c62e8e.0000000029" failed (2: No such file or directory) while reading upstream, client: 172.20.0.1, server: , request: "GET /depot/1097151/chunk/55bc48c99e431abcee26ab5a6e9baa10ce486ada HTTP/1.1", upstream: "http://127.0.0.1:3128/depot/1097151/chunk/55bc48c99e431abcee26ab5a6e9baa10ce486ada", host: "cache3-sto2.steamcontent.com"
This happens when I try to download the same game again (which should be then cached). I can see that for example the file:
data/cache/cache/8e/2e/1e7b6ba234e90f96224edf14c9c62e8e
exists but
data/cache/cache/8e/2e/1e7b6ba234e90f96224edf14c9c62e8e.0000000029 doesn't.
Why does it try to find the extra .0000000029 in the filename?
Or should I define CACHE_ROOT somehow differently in Windows, right now it is just ./data . Storing of the cache seems to work though, somehow it just doesn't find the files afterwards.
Thanks, for help.
I'm borrowing this thread as I'm also having troubles setting up lancache on Windows (Docker). The error.log is filled with:
2023/01/30 09:23:48 [crit] 2804#2804: *1 fstat() "/data/cache/cache/c7/f8/4275239e93491d70f40a2e702491f8c7.0000000024" failed (2: No such file or directory) while reading upstream, client: 172.20.0.1, server: , request: "GET /depot/1097151/chunk/62e08323f7faef19746744040a6df36aa2c28712 HTTP/1.1", upstream: "http://127.0.0.1:3128/depot/1097151/chunk/62e08323f7faef19746744040a6df36aa2c28712", host: "cache4-sto2.steamcontent.com" 2023/01/30 09:23:48 [crit] 2044#2044: *105 fstat() "/data/cache/cache/d8/7c/4d151b04ab016f2085591332572e7cd8.0000000026" failed (2: No such file or directory) while reading upstream, client: 172.20.0.1, server: , request: "GET /depot/1097151/chunk/b8fa32da74410b8b8ada3ee7e4d794c0c34e6166 HTTP/1.1", upstream: "http://127.0.0.1:3128/depot/1097151/chunk/b8fa32da74410b8b8ada3ee7e4d794c0c34e6166", host: "cache3-sto2.steamcontent.com" 2023/01/30 09:23:48 [crit] 2044#2044: *78 fstat() "/data/cache/cache/ed/18/ae3a7231f0ca62e8dba6eb1d086918ed.0000000027" failed (2: No such file or directory) while reading upstream, client: 172.20.0.1, server: , request: "GET /depot/1097151/chunk/2e9bf301f4f0ff6390bc9c0ebaf6e63958d0087f HTTP/1.1", upstream: "http://127.0.0.1:3128/depot/1097151/chunk/2e9bf301f4f0ff6390bc9c0ebaf6e63958d0087f", host: "cache3-sto2.steamcontent.com" 2023/01/30 09:23:48 [crit] 2804#2804: *1 fstat() "/data/cache/cache/8e/2e/1e7b6ba234e90f96224edf14c9c62e8e.0000000029" failed (2: No such file or directory) while reading upstream, client: 172.20.0.1, server: , request: "GET /depot/1097151/chunk/55bc48c99e431abcee26ab5a6e9baa10ce486ada HTTP/1.1", upstream: "http://127.0.0.1:3128/depot/1097151/chunk/55bc48c99e431abcee26ab5a6e9baa10ce486ada", host: "cache3-sto2.steamcontent.com"
This happens when I try to download the same game again (which should be then cached). I can see that for example the file:
data/cache/cache/8e/2e/1e7b6ba234e90f96224edf14c9c62e8e
exists but
data/cache/cache/8e/2e/1e7b6ba234e90f96224edf14c9c62e8e.0000000029 doesn't.
Why does it try to find the extra .0000000029 in the filename?
Or should I define CACHE_ROOT somehow differently in Windows, right now it is just ./data . Storing of the cache seems to work though, somehow it just doesn't find the files afterwards.
Thanks, for help.
I am having this same issue. Did you ever resolve it?
I did not have much luck trying to run it on raspberry pi. But props to you if you get it working!
Heh! Old thread, but a bit of fun news from here:
I managed to launch Monolithic
on my Kubernetes cluster (K3S) that is running on a mixture of Raspberry Pi 4 and 5's!
I am using a 2 TB NVMe harddrive that is mounted on my Raspberry Pi 5 on the PCI Express bus x1, that has been tweaked to run in PCI Express 3.0 mode and I am sharing the drive to my cluster as csi-nfs
volume. I guess it is also possible using Longhorn as storage, although I do not have the money to test it. :-)
What you need to do is basically clone and docker build
the lancache/ubuntu
, lancache/ubuntu-nginx
, lancache/monolithic
and lancache/lancache-dns
projects yourself - in ... that ... order, since lancache/ubuntu
and lancache/ubuntu-nginx
images is only available for Intel/AMD CPUs.
However lancache/ubuntu
is based of ubuntu:bionic
, which does come in a arm64
flavour. Hence the need to recompile the whole project yourself and update image references in all Dockerfiles to point towards your compiled versions.
I have then made ConfigMap for my cluster that is based of the settings in the .env
file from the docker-compose
project.
And with that I was able to make an Ansible task that created a StatefulSet that launched the monolithic
and lancache-dns
containers.
I am currently debugging why lancache-dns
is going into CrashLoopBackOff
mode but, I have to wait to another day, since it is getting late here. :-)
A few wishes from here:
-
Considering how old ubuntu:bionic image is, can we get lancache/ubuntu:latest to use the ubuntu:noble instead? :-)
I know it is not as simple as just replacing tag, since I saw complaints regarding
Python 3
.As far as I can gather it is because of renaming of packages and other structural changes to the distribution.
-
And and you also make a Arm64 release of
lancache/ubuntu
andlancache/ubuntu-nginx
, so we can skip a step or two? :-)