Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't download file: from local hosted txt from a gitea host. #1652

Open
huseyinkogo opened this issue Dec 3, 2024 · 1 comment
Open

Can't download file: from local hosted txt from a gitea host. #1652

huseyinkogo opened this issue Dec 3, 2024 · 1 comment

Comments

@huseyinkogo
Copy link

I can't a gitea self-hosted allowlist downloaded

snippet from the config.yml

blocking:
  denylists:
    general:
      - https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/wildcard/pro.txt
      - https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/wildcard/fake.txt
      - https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/wildcard/popupads.txt
      - https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/wildcard/tif.txt
  allowlists:
    general:
      - https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt
  clientGroupsBlock:
    default:
      - general
  blockType: zeroIp
  blockTTL: 2h
  loading:
    refreshPeriod: 2h
    downloads:
      timeout: 60s
      attempts: 5
      cooldown: 10s
    concurrency: 16
    maxErrorsPerSource: 5
[2024-12-04 08:38:17] ERROR bootstrap: resolve error: no such host gitea.domain.ltd addr=gitea.domain.ltd:443 network=tcp
[2024-12-04 08:38:17]  WARN list_cache: Can't download file: Get "https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt": no such host gitea.domain.ltd attempt=1/5 link=https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt
[2024-12-04 08:38:27] ERROR bootstrap: resolve error: no such host gitea.domain.ltd addr=gitea.domain.ltd:443 network=tcp
[2024-12-04 08:38:27]  WARN list_cache: Can't download file: Get "https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt": no such host gitea.domain.ltd attempt=2/5 link=https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt
[2024-12-04 08:38:37] ERROR bootstrap: resolve error: no such host gitea.domain.ltd addr=gitea.domain.ltd:443 network=tcp
[2024-12-04 08:38:37]  WARN list_cache: Can't download file: Get "https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt": no such host gitea.domain.ltd attempt=3/5 link=https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt
[2024-12-04 08:38:47] ERROR bootstrap: resolve error: no such host gitea.domain.ltd addr=gitea.domain.ltd:443 network=tcp
[2024-12-04 08:38:47]  WARN list_cache: Can't download file: Get "https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt": no such host gitea.domain.ltd attempt=4/5 link=https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt
[2024-12-04 08:38:57] ERROR bootstrap: resolve error: no such host gitea.domain.ltd addr=gitea.domain.ltd:443 network=tcp
[2024-12-04 08:38:57]  WARN list_cache: Can't download file: Get "https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt": no such host gitea.domain.ltd attempt=5/5 link=https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt
[2024-12-04 08:38:57] ERROR list_cache: cannot open source: Get "https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt": no such host gitea.domain.ltd count=0 source=https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt
[2024-12-04 08:38:57]  WARN list_cache: Populating of group cache failed, cache will be empty until refresh succeeds group=general total_count=0
[2024-12-04 08:38:57] ERROR list_cache: could not init allowlist error=producer error(s): Get "https://gitea.domain.ltd/huseyin/blocky/raw/branch/main/allowlist.txt": no such host gitea.domain.ltd
root@blocky:~# ping gitea.domain.ltd
PING gitea.domain.ltd (192.162.12.40) 56(84) bytes of data.
64 bytes from 192.162.12.40 (192.162.12.40): icmp_seq=1 ttl=64 time=0.091 ms
64 bytes from 192.162.12.40 (192.162.12.40): icmp_seq=2 ttl=64 time=0.048 ms
64 bytes from 192.162.12.40 (192.162.12.40): icmp_seq=3 ttl=64 time=0.046 ms
64 bytes from 192.162.12.40 (192.162.12.40): icmp_seq=4 ttl=64 time=0.066 ms
64 bytes from 192.162.12.40 (192.162.12.40): icmp_seq=5 ttl=64 time=0.040 ms
64 bytes from 192.162.12.40 (192.162.12.40): icmp_seq=6 ttl=64 time=0.031 ms
64 bytes from 192.162.12.40 (192.162.12.40): icmp_seq=7 ttl=64 time=0.067 ms
64 bytes from 192.162.12.40 (192.162.12.40): icmp_seq=8 ttl=64 time=0.041 ms

But it works if change it to http url eg. http://192.162.12.50:3553/huseyin/blocky/raw/branch/main/allowlist.txt

@shizunge
Copy link
Contributor

shizunge commented Feb 1, 2025

Maybe you need to setup Bootstrap DNS configuration in the Blocky configuration file to resolve the domain gitea.domain.ltd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants