NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.36k stars 14.31k forks source link

mullvad service provides different (incompatible) versions for daemon and cli #336101

Open stevenroose opened 3 months ago

stevenroose commented 3 months ago

I have this in my configuration.nix:

services.mullvad-vpn.enable = true;

Somehow, the mullvad cli provided in PATH is the 2023.5 one and not the 2024.3 one, so there is a grpc interface incompatibility and i get errors on some commands:

$ mullvad version
Current version       : 2023.5
mullvad-daemon version: 2024.3
Is supported          : true
Suggested upgrade     : 2024.4
Latest stable version : 2024.4
Error: Failed to obtain settings

Caused by:
    0: Failed to parse gRPC response
    1: Invalid argument for type conversion: failed to parse peer address

These are the mullvad-related stuff in my store (after update and gc):

/nix/store/g0x9r96klfw2qij7dn4cvq6dlxs80676-unit-mullvad-daemon.service/
/nix/store/fdi48fni0ag7y10bipnvdydfglhiizck-openvpn-mullvad-2.6.0/
/nix/store/5m4k3va8jdznppzg4ygp8a4aqf3la7ij-mullvad-2023.5/
/nix/store/3rc7d0pfaaggrv0drq8j2lwqjv5yk2n0-openvpn-mullvad-2.6.0/
/nix/store/3c2zscdl8bldlypm5k8v5hfd0bcnb9hq-unit-mullvad-daemon.service/
/nix/store/b3wg6hm2qkxiwx59zqwi6bksp03m7yvi-security-wrapper-mullvad-exclude-x86_64-unknown-linux-musl/
/nix/store/sn35vm78if7sg46yv1iqp5l6v8za787a-openvpn-mullvad-2.6.0/
/nix/store/s261q2irhgjj9jkv4031fi37k04r9z3n-openvpn-mullvad-2.6.0/
/nix/store/n5i0wcyrk1clg656rscsja57i575lc5d-openvpn-mullvad-2.6.0/
/nix/store/s0xxx9m5x1fx0m378wr948kas3xmrvvg-unit-mullvad-daemon.service/
/nix/store/2kbmv54sghi672dwih76qiv4wx158hf7-mullvad-2024.3/
/nix/store/h8sdv3dfgyybgrr9ks5y4ng529a9rbyz-mullvad-2024.3/
/nix/store/im9cjx1zi1xs0znqhskw5368cijdvd2y-security-wrapper-mullvad-exclude-x86_64-unknown-linux-musl/
/nix/store/2wnmnkrjw0z2b50q32f33wvqb3kfcvrd-mullvad-2024.3/
/nix/store/6slql03nd34qf3xbdyswdfnqb0iwc218-unit-mullvad-daemon.service/
/nix/store/q1v7hp8l666cxgb37v8bkwzhx5yj76gb-unit-mullvad-daemon.service/
/nix/store/q50mx7likqn596fzasx58fy41zdqflxc-unit-mullvad-daemon.service/
/nix/store/mp0ms5l3hnv5232dfdmgkqgp7yqlp2nv-openvpn-mullvad-2.6.0/
/nix/store/6vpgcyyx44c7pziwjyx5sw5nyfm2wxw2-security-wrapper-mullvad-exclude-x86_64-unknown-linux-musl/
/nix/store/7731m9c0z2fs9nrbx8fm62xh02pf87w4-mullvad-2023.5/
/nix/store/qv1a3585l7jhnwj5cq3aynjkjw9w7arj-unit-mullvad-daemon.service/
/nix/store/fnal5qz4jvzd5dgyyj7ic2iwyclhi5f6-mullvad-2023.5/
$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.59, NixOS, 24.05 (Uakari), 24.05.6258.dba414932936`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.8`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/home/steven/.nix-defexpr/channels/nixpkgs`
$ sudo nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.59, NixOS, 24.05 (Uakari), 24.05.6258.dba414932936`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.8`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
donovanglover commented 3 months ago

Please follow the bug report template to make debugging the issue easier

eclairevoyant commented 3 months ago

Yeah we really need the nixpkgs rev for this one. Listing stuff in your store doesn't tell us too much. FYI on nixos-24.05, both mullvad and mullvad-vpn are on version 2024.3, so it's hard to see where you're getting 2023.5 from.

stevenroose commented 3 weeks ago

I updated the issue description. I'm not well-versed in nix cli lingo to debug why I have that version either.