Comments (5)
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.
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.
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.
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.
Thanks, I close it as dup then
from podman.
Related Issues (20)
- podman healthcheck + sdnotify: Error: container is stopped HOT 3
- Cannot start service: crun: open executable: Operation not permitted: OCI permission denied HOT 2
- Environment variable to temporarily update container registry resolution HOT 1
- Add configurations section for podmansh HOT 3
- Empty `NetworkSettings` when doing `podman inspect` on container using pasta HOT 5
- Podman "no route to host" when pushing to container registry with sudo, but works without sudo HOT 2
- rootless podman using pasta doesn't allow accessing the host-service ports HOT 2
- Entrypoint script not working even though present.
- podman pull writes to read only additional image store HOT 3
- bootc integration tracker HOT 9
- Increased latency when using bridge network with v5 HOT 5
- Rootless podman in rootless podman running server permission denied HOT 1
- Network using podman in podman HOT 6
- 'partial' directory ownership and permissions
- The command `podman cp` thinks all drives on windows are containers because they end in : (colon) HOT 2
- autoupdate annotation ignored in kube deployment yaml
- Some images result in the error: copying system image from manifest list: writing blob: adding layer with blob: processing tar file(container ID 1000 cannot be mapped to a host ID): exit status 1 HOT 3
- Health check in Quadlet file not working HOT 2
- Can't see containers in WSL podman machine via podman command run in the machine HOT 2
- Cannot resolve container hostnames in internal network HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from podman.