charmcraft fails to pack sometimes when I am on tailscale VPN
Metadata
Current evaluation
Tailscale blocked the LXD container’s internet access; packing worked after disabling Tailscale, so no Charmcraft code fix was made.
Resolution: closed not a bug
Reason: In the September 1, 2022 maintainer response, Facundo Batista identified a Tailscale/LXD networking conflict outside Charmcraft. The reporter confirmed that containers lost internet access with Tailscale enabled and accepted the suggested traffic-relay configuration.
Evaluated by: mr-cal-bot
No scores available.
Issue body
I think I've isolated the problem, and it's my vpn tailscale... on this macbook air I utilize tailscale and anytime I try to pack.. it seems the container cannot resolve something and just freezes indefinitely..
Original error messages say something about `apt-get update` not resolving : https://discourse.charmhub.io/t/cannot-pack-due-to-being-unable-to-resolve-ubuntu-apt-packages/6949/2
```
charmcraft pack -v
Starting charmcraft version 2.0.0
Logging execution to '/home/emcp/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220827-103544.054965.log'
Packing the charm.
Launching environment to pack for base name='ubuntu' channel='22.04' architectures=['amd64'] (may take a while the first time but it's reusable) \ (1694.9s) ^Launching environment to pack for base name='ubuntu' channel='22.04' architectures=['amd64'] (may take a while the first time but it's reusable)
Interrupted.
Full execution log: '/home/emcp/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220827-103544.054965.log'
$ charmcraft clean
Cleaned project 'meltano'.
$ sudo tailscale down
$ charmcraft pack -v
Starting charmcraft version 2.0.0
Logging execution to '/home/emcp/snap/charmcraft/common/cache/charmcraft/log/charmcraft-20220827-110414.552828.log'
Packing the charm.
Launching environment to pack for base name='ubuntu' channel='22.04' architectures=['amd64'] (may take a while the first time but it's reusable)
Packing the charm
Starting charmcraft version 2.0.0
Logging execution to '/tmp/charmcraft.log'
Packing the charm.
Building charm in '/root' | (11.9s)
```
you can see immediately when I turn off tailscale everything proceeds as normal for charmcraft
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed not a bug | Tailscale blocked the LXD container’s internet access; packing worked after disabling Tailscale, so no Charmcraft code fix was made. | |
| stealth/space-bunny-alpha | — | closed not a bug | Closed as an external networking conflict: Tailscale blocked LXD internet access, and packing succeeded after disabling Tailscale. No Charmcraft code change was needed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as an external conflict. Tailscale VPN blocks LXD container internet access, causing charmcraft to freeze. Maintainers confirmed the networking clash and suggested Tailscale subnet router configuration. No code changes required. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as an external Tailscale and LXD networking conflict. Disabling the VPN or configuring Tailscale subnet routers resolves the container internet access issue. No charmcraft code changes required. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as external issue. Tailscale VPN interferes with LXD networking, causing DNS failures during packing. Developers confirmed the conflict and advised configuring Tailscale subnet routers. No code changes made. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #815 charmcraft pack fails - connection timed out could not connect | charmcraft | closed | User-reported charmcraft pack failure was a local host/network problem (archive.ubuntu.com/security.ubuntu.com unreachable during apt cache update in the LXD build container). Author rebooted their machine and packing worked again, then self-closed the issue. | |
| #560 Charmcraft pack is giving error frequently | charmcraft | closed | The failure was traced to external LXD networking blocking access to archive.ubuntu.com during snapd installation; no Charmcraft fix was merged, and the reported firewall workaround did not help. | |
| #823 more transparency for container build in first charmcraft pack | charmcraft | closed | Firewall-blocked LXD setup hung `charmcraft pack` indefinitely on instance network setup. No charmcraft change needed; maintainer tracked the missing timeout in craft-providers and closed the issue. | |
| #660 `charmcraft pack` fails with error writing to lxd unix socket | charmcraft | closed | A transient LXD socket timeout stopped packing; `charmcraft clean` restored operation, the error did not recur, and the reporter closed the report without a code fix. |