-
Notifications
You must be signed in to change notification settings - Fork 187
Closed
Description
Hi,
Very happy with edgevpn for a while now. But I stumbled upon the Dockerfile and thought it would be better for my use case.
And well besides #908 , I was never able to make it work.
I tried disabling dht, dhcp, using the host network mode and a bunch of other things, to no avail.
Then I noticed that if I ran edgevpn api/start/service-add/etc it seemed to work. Only without those would it crash. Also adding --dhcp seemed to not make it crash.
Here is the reproduction code:
sudo docker run -it --env "EDGEVPNTOKEN=$(edgevpn -g -b)" --rm quay.io/mudler/edgevpn:latest
{"level":"INFO","time":"2025-05-26T13:40:34.348Z","caller":"config/config.go:300","message":"connmanager disabled\n"}
{"level":"INFO","time":"2025-05-26T13:40:34.349Z","caller":"config/config.go:304","message":" go-libp2p resource manager protection disabled"}
{"level":"INFO","time":"2025-05-26T13:40:34.349Z","caller":"cmd/util.go:386","message":" \tedgevpn Copyright (C) 2021-2022 Ettore Di Giacinto\nThis program comes with ABSOLUTELY NO WARRANTY.\nThis is free software, and you are welcome to redistribute it\nunder certain conditions."}
{"level":"INFO","time":"2025-05-26T13:40:34.349Z","caller":"cmd/util.go:388","message":"Version: commit: \n"}
{"level":"INFO","time":"2025-05-26T13:40:34.349Z","caller":"node/node.go:118","message":" Starting EdgeVPN network"}
2025/05/26 13:40:34 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 7168 kiB, got: 4882 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.
{"level":"INFO","time":"2025-05-26T13:40:34.368Z","caller":"node/node.go:172","message":" Node ID: 12D3KooWQLPUFCSYsgKLDfVSVMz1RBnDW6CYkixUjcxTQfnbeCx7"}
{"level":"INFO","time":"2025-05-26T13:40:34.368Z","caller":"node/node.go:173","message":" Node Addresses: [/ip4/127.0.0.1/tcp/46121 /ip4/127.0.0.1/udp/36550/quic-v1 /ip4/127.0.0.1/udp/43288/webrtc-direct/certhash/uEiD77SNQc-OtwX7xrCKb21pJnrWs2bFuP9Dw9dSlGYD6eA /ip4/127.0.0.1/udp/58574/quic-v1/webtransport/certhash/uEiBGcyH-TYIQBqYpqByzcvNBnOe4S4Tfm_gMl2EYaDk5og/certhash/uEiD_NhbPz1VL5jdETwedFbckLJzMYlCX_PkG0nSAupTfCQ /ip4/172.17.0.2/tcp/46121 /ip4/172.17.0.2/udp/36550/quic-v1 /ip4/172.17.0.2/udp/43288/webrtc-direct/certhash/uEiD77SNQc-OtwX7xrCKb21pJnrWs2bFuP9Dw9dSlGYD6eA /ip4/172.17.0.2/udp/58574/quic-v1/webtransport/certhash/uEiBGcyH-TYIQBqYpqByzcvNBnOe4S4Tfm_gMl2EYaDk5og/certhash/uEiD_NhbPz1VL5jdETwedFbckLJzMYlCX_PkG0nSAupTfCQ /ip6/::1/tcp/36425 /ip6/::1/udp/33650/quic-v1/webtransport/certhash/uEiBGcyH-TYIQBqYpqByzcvNBnOe4S4Tfm_gMl2EYaDk5og/certhash/uEiD_NhbPz1VL5jdETwedFbckLJzMYlCX_PkG0nSAupTfCQ /ip6/::1/udp/45821/quic-v1 /ip6/::1/udp/60365/webrtc-direct/certhash/uEiD77SNQc-OtwX7xrCKb21pJnrWs2bFuP9Dw9dSlGYD6eA]"}
{"level":"INFO","time":"2025-05-26T13:40:34.368Z","caller":"discovery/dht.go:115","message":" Bootstrapping DHT"}
error while starting network service: 'no such file or directory'
This seems to be the same bug as #44
Edit: I was able to fix it: I needed to expose a device to docker compose:
devices:
- /dev/net/tun:/dev/net/tunI will make a PR to explain how to use docker compose to setup edgevpn
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels