Giter Club home page Giter Club logo

Comments (5)

Luap99 avatar Luap99 commented on May 28, 2024

Is only dns not working or no networking at all? Do you have a aadvark-dns process running?
Please provide the full logs of the unit(s).

from podman.

flacks avatar flacks commented on May 28, 2024

Correct, no networking until removal of /run/user/1000/containers/networks/rootless-netns. Amending title.

❯ podman exec -u root caddy ping -c 1 9.9.9.9
PING 9.9.9.9 (9.9.9.9): 56 data bytes
^C

aardvark-dns is running:

❯ procs | rg aardva
 2901  jean            │        0.0 0.0 00:00:00 │ /usr/libexec/podman/aardvark-dns --config /run/user/1000/containers/networks/aardvark-dns -p 53 run

Unit logs don't reveal much apart from connection errors to external networks.

May 08 08:44:08 cafo systemd[2229]: Starting caddy.service - Caddy Quadlet...
May 08 08:44:08 cafo podman[2623]: 2024-05-08 08:44:08.58275941 -0400 EDT m=+0.157671920 image pull 33797e62aca553ceb7712eb6d77a8c926f144b8508e5f88d8654226c990a4a4d localhost/caddy-cloudflare:latest
May 08 08:44:08 cafo podman[2623]: 2024-05-08 08:44:08.705054997 -0400 EDT m=+0.279967502 container create 31c4fd686e7ceb6dadbc281a914cd0e02e2570df72af9c7880b1b07cb8b7e930 (image=localhost/caddy-cloudflare:latest, name=caddy, org.opencontainers.image.vendor=Light Code Labs, io.containers.autoupdate=registry, org.opencontainers.image.url=https://caddyserver.com, org.opencontainers.image.title=Caddy, org.opencontainers.image.version=v2.7.6, PODMAN_SYSTEMD_UNIT=caddy.service, org.opencontainers.image.licenses=Apache-2.0, org.opencontainers.image.description=a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go, io.buildah.version=1.35.3, org.opencontainers.image.documentation=https://caddyserver.com/docs, org.opencontainers.image.source=https://github.com/caddyserver/caddy-docker)
May 08 08:44:10 cafo podman[2623]: 2024-05-08 08:44:10.658988869 -0400 EDT m=+2.233901386 container init 31c4fd686e7ceb6dadbc281a914cd0e02e2570df72af9c7880b1b07cb8b7e930 (image=localhost/caddy-cloudflare:latest, name=caddy, io.containers.autoupdate=registry, org.opencontainers.image.vendor=Light Code Labs, org.opencontainers.image.title=Caddy, org.opencontainers.image.version=v2.7.6, PODMAN_SYSTEMD_UNIT=caddy.service, org.opencontainers.image.description=a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go, org.opencontainers.image.source=https://github.com/caddyserver/caddy-docker, org.opencontainers.image.documentation=https://caddyserver.com/docs, org.opencontainers.image.licenses=Apache-2.0, org.opencontainers.image.url=https://caddyserver.com, io.buildah.version=1.35.3)
May 08 08:44:10 cafo podman[2623]: 2024-05-08 08:44:10.663834263 -0400 EDT m=+2.238746767 container start 31c4fd686e7ceb6dadbc281a914cd0e02e2570df72af9c7880b1b07cb8b7e930 (image=localhost/caddy-cloudflare:latest, name=caddy, org.opencontainers.image.title=Caddy, org.opencontainers.image.url=https://caddyserver.com, io.containers.autoupdate=registry, org.opencontainers.image.version=v2.7.6, org.opencontainers.image.documentation=https://caddyserver.com/docs, org.opencontainers.image.description=a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go, org.opencontainers.image.source=https://github.com/caddyserver/caddy-docker, io.buildah.version=1.35.3, PODMAN_SYSTEMD_UNIT=caddy.service, org.opencontainers.image.licenses=Apache-2.0, org.opencontainers.image.vendor=Light Code Labs)
May 08 08:44:10 cafo caddy[2623]: 31c4fd686e7ceb6dadbc281a914cd0e02e2570df72af9c7880b1b07cb8b7e930
May 08 08:44:10 cafo systemd[2229]: Started caddy.service - Caddy Quadlet.
May 08 08:44:10 cafo caddy[4315]: {"level":"info","ts":1715172250.8058825,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
[...]
May 08 08:44:29 cafo caddy[4315]: {"level":"error","ts":1715172269.6472433,"logger":"http.log.error","msg":"dial tcp 192.168.1.110:8123: i/o timeout","request":{"remote_ip":"10.89.4.3","remote_port":"44706","client_ip":"10.89.4.3","proto":"HTTP/1.1","method":"GET","host":"[snip]","uri":"/api/websocket","headers":{"Connection":["Upgrade"],"Pragma":["no-cache"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"],"Sec-Websocket-Key":["BYDI1TwAOAe/AhBOIx5ZLg=="],"Cookie":[],"Sec-Websocket-Extensions":["permessage-deflate; client_max_window_bits"],"Upgrade":["websocket"],"Sec-Websocket-Version":["13"],"Origin":["https://[snip]"],"Accept-Encoding":["gzip, deflate, br, zstd"],"Accept-Language":["en-US,en;q=0.9,es;q=0.8"],"Cache-Control":["no-cache"]},"tls":{"resumed":true,"version":772,"cipher_suite":4865,"proto":"http/1.1","server_name":"[snip]"}},"duration":3.001148368,"status":502,"err_id":"xdft51fww","err_trace":"reverseproxy.statusError (reverseproxy.go:1267)"}

Please let me know what other logs I can provide.

from podman.

Luap99 avatar Luap99 commented on May 28, 2024

If the issue is networking then I strongly suspect this to be a duplicate of #22197, I suggest you try one of the workarounds there

from podman.

flacks avatar flacks commented on May 28, 2024

Ok, as per #22197, I've added my own user network-online.service:

❯ cat .config/systemd/user/network-online.service 
[Unit]
Description=Wait for Network to be Configured

[Service]
Type=oneshot
ExecStart=/usr/lib/systemd/systemd-networkd-wait-online
RemainAfterExit=yes

[Install]
WantedBy=default.target

And configured all my quadlets to Wants=network-online.service and After=network-online.service, and they seem to startup correctly at system boot with functional networking.

This is definitely a workaround, and not a true solution, so up to you @Luap99 whether to close this issue and track a solution in #22197 or otherwise.

Nevertheless, thank you for pointing to that issue, because a workaround is better than having no way around functional services except manual intervention, especially when my server auto-updates and restarts.

from podman.

Luap99 avatar Luap99 commented on May 28, 2024

Thanks, I close it as dup then

from podman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.