Config doesn't wanna work #8

Closed
opened 2025-12-29 09:21:36 +01:00 by adam · 4 comments
Owner

Originally created by @zQueal on GitHub (Sep 16, 2024).

INFO[09-15 19:09:17] renewed certificate                           ?=autocert
INFO[09-15 19:09:17] certificate "dev.local": expire on 2024-12-14 22:10:46 +0000 UTC  ?=autocert
INFO[09-15 19:09:17] starting http proxy server on :80
INFO[09-15 19:09:17] starting https proxy server on :443
INFO[09-15 19:09:17] starting http panel server on :8080
INFO[09-15 19:09:17] starting https panel server on :8443
INFO[09-15 19:09:17] loaded 2 proxy configurations                 provider=dev
INFO[09-15 19:09:17] next renewal in 1439h1m28s                    ?=autocert

Used a bogus hostname for privacy sake, but as you can see the cloudflare proxy is correctly configured. I'm able to run the proxy and get no real errors, but when I attempt to load the domain the server kinda hangs and I eventually get a load of errors;

ERRO[09-15 19:10:44] http: proxy error: context canceled           ?=http
ERRO[09-15 19:10:44] http: proxy error: context canceled           ?=http
ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 5ms
ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 10ms
ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 20ms
ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 40ms
ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 80ms
ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 160ms
ERRO[09-15 19:10:56] http: proxy error: dial tcp 127.0.0.1:80: socket: too many open files  ?=http
ERRO[09-15 19:10:56] http: proxy error: dial tcp 127.0.0.1:80: socket: too many open files  ?=http
ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 5ms
ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 10ms
ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 20ms
ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 40ms
ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 80ms
ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 160ms
ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 320ms
ERRO[09-15 19:11:22] http: proxy error: context canceled           ?=http
ERRO[09-15 19:11:22] http: proxy error: context canceled           ?=http
ERRO[09-15 19:11:22] http: proxy error: context canceled           ?=http
ERRO[09-15 19:11:22] http: proxy error: context canceled           ?=http
ERRO[09-15 19:11:23] http: proxy error: context canceled           ?=http
ERRO[09-15 19:11:24] http: proxy error: context canceled           ?=http
ERRO[09-15 19:11:24] http: proxy error: context canceled           ?=http
ERRO[09-15 19:11:24] http: proxy error: context canceled           ?=http
ERRO[09-15 19:11:24] http: proxy error: context canceled           ?=http
ERRO[09-15 19:11:24] http: proxy error: context canceled           ?=http

The errors persist several times per second until I manually kill the proxy.

===========================

My config.yml:

autocert:
  email: "admin@dev.local"
  domains:
    - "dev.local"
    - "*.dev.local"
  provider: cloudflare
  options:
    auth_token: {token}
providers:
  dev:
    kind: file
    value: dev.yml

And then dev.yml:

dev:
  scheme: http
  host: 127.0.0.1
  port: "80"
config:
  scheme: http
  host: 127.0.0.1
  port: "8080"
  path: /config

Am I missing something stupid?

Originally created by @zQueal on GitHub (Sep 16, 2024). ```cli INFO[09-15 19:09:17] renewed certificate ?=autocert INFO[09-15 19:09:17] certificate "dev.local": expire on 2024-12-14 22:10:46 +0000 UTC ?=autocert INFO[09-15 19:09:17] starting http proxy server on :80 INFO[09-15 19:09:17] starting https proxy server on :443 INFO[09-15 19:09:17] starting http panel server on :8080 INFO[09-15 19:09:17] starting https panel server on :8443 INFO[09-15 19:09:17] loaded 2 proxy configurations provider=dev INFO[09-15 19:09:17] next renewal in 1439h1m28s ?=autocert ``` Used a bogus hostname for privacy sake, but as you can see the cloudflare proxy is correctly configured. I'm able to run the proxy and get no real errors, but when I attempt to load the domain the server kinda hangs and I eventually get a load of errors; ```cli ERRO[09-15 19:10:44] http: proxy error: context canceled ?=http ERRO[09-15 19:10:44] http: proxy error: context canceled ?=http ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 5ms ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 10ms ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 20ms ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 40ms ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 80ms ERRO[09-15 19:10:52] 2024/09/15 19:10:52 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 160ms ERRO[09-15 19:10:56] http: proxy error: dial tcp 127.0.0.1:80: socket: too many open files ?=http ERRO[09-15 19:10:56] http: proxy error: dial tcp 127.0.0.1:80: socket: too many open files ?=http ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 5ms ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 10ms ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 20ms ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 40ms ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 80ms ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 160ms ERRO[09-15 19:10:56] 2024/09/15 19:10:56 http: Accept error: accept tcp [::]:80: accept4: too many open files; retrying in 320ms ERRO[09-15 19:11:22] http: proxy error: context canceled ?=http ERRO[09-15 19:11:22] http: proxy error: context canceled ?=http ERRO[09-15 19:11:22] http: proxy error: context canceled ?=http ERRO[09-15 19:11:22] http: proxy error: context canceled ?=http ERRO[09-15 19:11:23] http: proxy error: context canceled ?=http ERRO[09-15 19:11:24] http: proxy error: context canceled ?=http ERRO[09-15 19:11:24] http: proxy error: context canceled ?=http ERRO[09-15 19:11:24] http: proxy error: context canceled ?=http ERRO[09-15 19:11:24] http: proxy error: context canceled ?=http ERRO[09-15 19:11:24] http: proxy error: context canceled ?=http ``` The errors persist several times per second until I manually kill the proxy. =========================== My `config.yml`: ```yml autocert: email: "admin@dev.local" domains: - "dev.local" - "*.dev.local" provider: cloudflare options: auth_token: {token} providers: dev: kind: file value: dev.yml ``` And then `dev.yml`: ```yml dev: scheme: http host: 127.0.0.1 port: "80" config: scheme: http host: 127.0.0.1 port: "8080" path: /config ``` Am I missing something stupid?
adam closed this issue 2025-12-29 09:21:36 +01:00
Author
Owner

@yusing commented on GitHub (Sep 16, 2024):

Hi, please provide your docker compose file as well.

@yusing commented on GitHub (Sep 16, 2024): Hi, please provide your docker compose file as well.
Author
Owner

@zQueal commented on GitHub (Sep 16, 2024):

I'm not using docker--I build with go and I'm just running it as a compostable server.

@zQueal commented on GitHub (Sep 16, 2024): I'm not using docker--I build with go and I'm just running it as a compostable server.
Author
Owner

@zQueal commented on GitHub (Sep 16, 2024):

Looks like perhaps caddy didn't gracefully terminate which left a hanging process that occupied :80.

@zQueal commented on GitHub (Sep 16, 2024): Looks like perhaps caddy didn't gracefully terminate which left a hanging process that occupied `:80`.
Author
Owner

@yusing commented on GitHub (Sep 16, 2024):

Great to hear your issue is resolved.

@yusing commented on GitHub (Sep 16, 2024): Great to hear your issue is resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/godoxy#8