Trouble getting Steamcache to find host (Host is unreachable)
Trouble geting SteamCache to work, I am using the docker images from
Setup:
I am using Fedora 27 in a VMWare VM that is connected to the internet via a router (that is using DHCP) as the steam cache server.
The VM's IPv4 Address is 192.168.8.101 with the VMWare network set to bridged.
I am then using the host(Win8)'s Steam instance to download/install a game.
The host has an IPv4 address of 192.168.8.100
The routers IPv4 address is 192.168.8.1
This is the how I am using to start the generic cache:
docker run \
--restart unless-stopped \
--name cache-steam \
-v /cache/steam/data:/data/cache \
-v /cache/steam/logs:/data/logs \
-p 80:80 \
steamcache/generic:latest
This is the how I am using to start the DNS:
docker run --name steamcache-dns -p 53:53/udp -e STEAMCACHE_IP=192.168.8.101 -e USE_GENERIC_CACHE=true -e LANCACHE_IP=192.168.8.101 steamcache/steamcache-dns:latest
Error log says:
2018/04/28 09:44:58 [error] 11#11: *1 connect() failed (113: Host is unreachable) while connecting to upstream, client: 192.168.8.100, server: , request: "OPTIONS / HTTP/1.1", upstream: "http://192.168.8.101:80/", host: "192.168.8.101"
2018/04/28 09:54:16 [error] 11#11: *3 connect() failed (113: Host is unreachable) while connecting to upstream, client: 192.168.8.100, server: , request: "OPTIONS / HTTP/1.1", upstream: "http://192.168.8.101:80/", host: "192.168.8.101"
Access log says:
192.168.8.100 / - - - [28/Apr/2018:09:44:58 +0000] "OPTIONS / HTTP/1.1" 502 174 "-" "DavClnt" "-" "192.168.8.101" "-"
192.168.8.100 / - - - [28/Apr/2018:09:54:16 +0000] "OPTIONS / HTTP/1.1" 502 174 "-" "DavClnt" "-" "192.168.8.101" "-"
What did I miss or am doing wrong?
(Reddit formatting is not nice, Unable to add newlines wherever I want)
Help? u/upcboy
---edit---
I set the hosts DNS to point to the VM with Google as the backup address
Posted Apr 28, 2018, 10:12 AM UTC · edited
It looks like it's trying to connect upstream to the cache's own IP. On your PC, what does valve1.cs.steampowered.com resolve to?
The next thing to try would be to exec into the cache container. Use docker ps to get the container ID then use
docker exec -it <id> /bin/shand try to ping a content server address.Result for "valve1.cs.steampowered.com" is Host not found, For Host, VM & Cache container.
I can ping "steampowered.com" from Host, VM & Cache container. Resolves to 23.42.10.185
ifconfig in VM returns: [ryan@localhost ~]$ ifconfig
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255
inet6 fe80::42:3cff:fe63:2fd9 prefixlen 64 scopeid 0x20<link>
ether 02:42:3c:63:2f:d9 txqueuelen 0 (Ethernet)
RX packets 850 bytes 58124 (56.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 725 bytes 186322 (181.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.101 netmask 255.255.255.0 broadcast 192.168.8.255
inet6 fe80::60ce:4812:a85b:a419 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:88:43:10 txqueuelen 1000 (Ethernet)
RX packets 85962 bytes 120353118 (114.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 24103 bytes 1726694 (1.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 52 bytes 3298 (3.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0
TX packets 52 bytes 3298 (3.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth1a5208d: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::d469:b8ff:fe17:bee0 prefixlen 64 scopeid 0x20<link>
ether d6:69:b8:17:be:e0 txqueuelen 0 (Ethernet)
RX packets 19 bytes 1678 (1.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 85 bytes 8516 (8.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
veth2c39375: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::aca8:63ff:fe29:f209 prefixlen 64 scopeid 0x20<link>
ether ae:a8:63:29:f2:09 txqueuelen 0 (Ethernet)
RX packets 831 bytes 68346 (66.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 701 bytes 183990 (179.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
How do other people start the Docker containers?
The documentation for the containers does not say what are example values and what to replace them with.