lancachenet / lancache-dns

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

Upstream-error #136

Closed marioqqq closed 1 year ago

marioqqq commented 1 year ago

upstream-error.log

2023/01/22 11:28:34 [error] 1818#1818: *7437 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/cb198cc321c2cad1d9b3024e0c36176293761cbc HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/cb198cc321c2cad1d9b3024e0c36176293761cbc", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1818#1818: *7438 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/8e928e1769862fe0981a389f91713976d06d0af9 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/8e928e1769862fe0981a389f91713976d06d0af9", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1953#1953: *7456 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/3f0a22b17bfa180f9b3bc6807637650baada2df6 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/3f0a22b17bfa180f9b3bc6807637650baada2df6", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1817#1817: *7459 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/e1d0c8c12438e3c88c34d1908e3808ef00749463 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/e1d0c8c12438e3c88c34d1908e3808ef00749463", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1818#1818: *7485 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/0b0cb02842bf32b83e101c066415b27f2e34be88 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/0b0cb02842bf32b83e101c066415b27f2e34be88", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1817#1817: *7477 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/b1ebb3afb3444c7a1498e01543c1c0e814944701 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/b1ebb3afb3444c7a1498e01543c1c0e814944701", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1909#1909: *7480 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/0420c9a7f16833e3031620e1ff4a0dbf3572486c HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/0420c9a7f16833e3031620e1ff4a0dbf3572486c", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1817#1817: *7479 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/140f7f131e44ff3ca7bdd2acba738171e88a4840 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/140f7f131e44ff3ca7bdd2acba738171e88a4840", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1909#1909: *7481 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/faf11ad2b6efda6ceb8f14b23449c79482531647 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/faf11ad2b6efda6ceb8f14b23449c79482531647", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1909#1909: *7495 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/3b78653a054794e9e544a7b3d56cf0c443b76e14 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/3b78653a054794e9e544a7b3d56cf0c443b76e14", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1824#1824: *7490 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/e90142441a887498c012e65b9ff08d8e97a4812f HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/e90142441a887498c012e65b9ff08d8e97a4812f", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1824#1824: *7491 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/a91c2c88abee20c8345d58fa1727fabdd16566bf HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/a91c2c88abee20c8345d58fa1727fabdd16566bf", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1824#1824: *7493 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/032b609fd508e78c6346d969ee5e21cd29e99aa8 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/032b609fd508e78c6346d969ee5e21cd29e99aa8", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:34 [error] 1953#1953: *7505 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/2d6f90879a267100038f025826d7965e22f51d9b HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/2d6f90879a267100038f025826d7965e22f51d9b", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:28:40 [error] 1953#1953: *7648 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/113bfab91f3e0aa3f7545e68f3d07de97059a15d HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/113bfab91f3e0aa3f7545e68f3d07de97059a15d", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:29:34 [error] 1861#1861: *8554 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/3c1ca62f428997a2bbec5d363667c46c9a73be54 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/3c1ca62f428997a2bbec5d363667c46c9a73be54", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:29:34 [error] 1817#1817: *8555 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/47196fd4cc39fbca6ada7e4627f10dc9c86cc137 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/47196fd4cc39fbca6ada7e4627f10dc9c86cc137", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:29:34 [error] 1819#1819: *8565 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/ee5e55993e33e813bf8e3fd755c880fc60579342 HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/ee5e55993e33e813bf8e3fd755c880fc60579342", host: "cache6-ams1.steamcontent.com"
2023/01/22 11:29:34 [error] 1824#1824: *8564 upstream timed out (110: Connection timed out) while connecting to upstream, client: 127.0.0.1, server: , request: "GET /depot/394361/chunk/4b64ca3998b3257c3d59056303b568a4e1445f3f HTTP/1.0", upstream: "http://155.133.248.17:80/depot/394361/chunk/4b64ca3998b3257c3d59056303b568a4e1445f3f", host: "cache6-ams1.steamcontent.com"

This errors makes lancache work sometimes. But mostly it doesn't work. Most of the time it starts normal, then speed drops down and this errors shows in log files.

Install

For install I used this Quick-Start Instructions

.env file

image

DNS Configuration

I set my PC to the server IP adress 192.168.0.202

Output of container(s)

monolithic

proxy_pass http://$host$request_uri;
}
# Finished including /etc/nginx/sites-available/cache.conf.d/22_wsus_cabs.conf
# Including /etc/nginx/sites-available/cache.conf.d/23_steam_server_status.conf
location = /server-status {
proxy_no_cache 1;
proxy_cache_bypass 1;
# Finished including /etc/nginx/sites-available/cache.conf.d/23_steam_server_status.conf
# Including /etc/nginx/sites-available/cache.conf.d/90_lancache_heartbeat.conf
location = /lancache-heartbeat {
add_header X-LanCache-Processed-By $hostname;
# Including /etc/nginx/sites-available/cache.conf.d/root/99_gnu.conf
#In loving memory of Zoey "Crabbey" Lough. May she live on in the code
add_header X-Clacks-Overhead "GNU Terry Pratchett, GNU Zoey -Crabbey- Lough";
proxy_set_header X-Clacks-Overhead "GNU Terry Pratchett, GNU Zoey -Crabbey- Lough";
# Finished including /etc/nginx/sites-available/cache.conf.d/root/99_gnu.conf
add_header 'Access-Control-Expose-Headers' '*';
add_header 'Access-Control-Allow-Origin' '*';
return 204;
}
# Finished including /etc/nginx/sites-available/cache.conf.d/90_lancache_heartbeat.conf
}
# Finished including /etc/nginx/sites-enabled/10_generic.conf
# Including /etc/nginx/sites-enabled/20_upstream.conf
# Upstream server to proxy and handle inconsistent 302 redirects
# All cache traffic is passed through this proxy to allow rewriting of redirects without caching
# This is particularly important for sony / ps5 as upstreams redirect between them which confuses slice map on caching
server {
# Internal bind on 3128, this should not be externally mapped
listen localhost:3128 reuseport;
# No access_log tracking as all requests to this instance are already logged through monolithic
# access_log /data/logs/upstream-access.log cachelog;
error_log /data/logs/upstream-error.log;
# Including /etc/nginx/sites-available/upstream.conf.d/10_resolver.conf
resolver 192.168.0.1 ipv6=off;
# Finished including /etc/nginx/sites-available/upstream.conf.d/10_resolver.conf
# Including /etc/nginx/sites-available/upstream.conf.d/20_tracking.conf
# Header to track if resolved from upstream or 302 redirect
set $orig_loc 'upstream';
# Finished including /etc/nginx/sites-available/upstream.conf.d/20_tracking.conf
# Including /etc/nginx/sites-available/upstream.conf.d/30_primary_proxy.conf
# Proxy all requests to upstream

location / {
# Simple proxy the request
proxy_pass http://$host$request_uri;
# Catch the errors to process the redirects
proxy_intercept_errors on;
error_page 301 302 307 = @upstream_redirect;
}
# Finished including /etc/nginx/sites-available/upstream.conf.d/30_primary_proxy.conf
# Including /etc/nginx/sites-available/upstream.conf.d/40_redirect_proxy.conf
# Special location block to handle 302 redirects
location @upstream_redirect {
# Upstream_http_location contains the Location: redirection from the upstream server
set $saved_upstream_location '$upstream_http_location';
# Set debug header
set $orig_loc 'upstream-302';
# Pass to proxy and reproxy the request
proxy_pass $saved_upstream_location;
}
# Finished including /etc/nginx/sites-available/upstream.conf.d/40_redirect_proxy.conf
}
# Finished including /etc/nginx/sites-enabled/20_upstream.conf
}
stream {
# Including /etc/nginx/stream.d/log_format.conf
log_format stream_basic '$remote_addr [$time_local] $protocol $status $ssl_preread_server_name $bytes_sent $bytes_received $session_time';
# Finished including /etc/nginx/stream.d/log_format.conf
# Including /etc/nginx/stream-enabled/10_sni.conf
server {
listen 443;
resolver 192.168.0.1 ipv6=off;
proxy_pass $ssl_preread_server_name:443;
ssl_preread on;
access_log /data/logs/stream-access.log stream_basic;
error_log /data/logs/stream-error.log;
}
# Finished including /etc/nginx/stream-enabled/10_sni.conf
}
# Finished including /etc/nginx/nginx.conf
Checking nginx config
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
Config check successful
Starting Supervisord

lancache-dns

Executing hook /hooks/entrypoint-pre.d/00_asciilogo.sh
  _                  _____           _                       _    
 | |                / ____|         | |                     | |   
 | |     __ _ _ __ | |     __ _  ___| |__   ___   _ __   ___| |_  
 | |    / _` | '_ \| |    / _` |/ __| '_ \ / _ \ | '_ \ / _ \ __| 
 | |___| (_| | | | | |___| (_| | (__| | | |  __/_| | | |  __/ |_  
 |______\__,_|_| |_|\_____\__,_|\___|_| |_|\___(_)_| |_|\___|\__| 
Executing hook /hooks/entrypoint-pre.d/10_generate_config.sh
configuring /etc/resolv.conf to stop from looping to ourself
Bootstrapping Lancache-DNS from https://github.com/uklans/cache-domains.git
HEAD is now at 257f009 Merge pull request #197 from uklans/feature/reduce-steam-domains
----------------------------------------------------------------------
Using Generic Server: 192.168.0.202
Make sure you are using a monolithic cache or load balancer at 192.168.0.202
----------------------------------------------------------------------
Processing service: arenanet
Enabling service with ip(s): 192.168.0.202
Processing service: blizzard
Enabling service with ip(s): 192.168.0.202
Processing service: bsg
Enabling service with ip(s): 192.168.0.202
Processing service: cityofheroes
Enabling service with ip(s): 192.168.0.202
Processing service: daybreak
Enabling service with ip(s): 192.168.0.202
Processing service: epicgames
Enabling service with ip(s): 192.168.0.202
Processing service: frontier
Enabling service with ip(s): 192.168.0.202
Processing service: nexusmods
Enabling service with ip(s): 192.168.0.202
Processing service: neverwinter
Enabling service with ip(s): 192.168.0.202
Processing service: nintendo
Enabling service with ip(s): 192.168.0.202
Processing service: origin
Enabling service with ip(s): 192.168.0.202
Processing service: pathofexile
Enabling service with ip(s): 192.168.0.202
Processing service: renegadex
Enabling service with ip(s): 192.168.0.202
Processing service: riot
Enabling service with ip(s): 192.168.0.202
Processing service: rockstar
Enabling service with ip(s): 192.168.0.202
Processing service: sony
Enabling service with ip(s): 192.168.0.202
Processing service: square
Enabling service with ip(s): 192.168.0.202
Processing service: steam
Enabling service with ip(s): 192.168.0.202
Processing service: uplay
Enabling service with ip(s): 192.168.0.202
Processing service: teso
Enabling service with ip(s): 192.168.0.202
Processing service: warframe
Enabling service with ip(s): 192.168.0.202
Processing service: wargaming
Enabling service with ip(s): 192.168.0.202
Processing service: wsus
Enabling service with ip(s): 192.168.0.202
Processing service: xboxlive
Enabling service with ip(s): 192.168.0.202
 --- 
finished bootstrapping.
Executing hook /hooks/supervisord-pre.d/10_config_check.sh
checking Bind9 config
Starting Supervisord

sudo nano /etc/systemd/resolved.conf

I also tried make changes here, but it didn't help image

System

Mac mini late 2012 OS: Ubuntu 22.04.1 Docker version 20.10.23, build 7155243

stale[bot] commented 1 year ago

This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically closed after being inactive for 30 days. If you require further assistance please reopen the issue with more details or talk to us on discord

AranVink commented 8 months ago

Where you able to solve this issue in the end? I'm running into the same error, and I'm using the same Steam Cache servers

marioqqq commented 8 months ago

Unfortunately no :(