Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reinstalling Nix on MacOS (error: failed to configure synthetic.conf) #8771

Closed
1 of 3 tasks
mig4ng opened this issue Aug 2, 2023 · 9 comments
Closed
1 of 3 tasks

Comments

@mig4ng
Copy link

mig4ng commented Aug 2, 2023

Platform

  • Linux:
  • macOS
  • WSL

Additional information

Installed Nix using DeterminateSystems installer first (0.8.0), but this error also have happened in the past with the Nix oficial installer.
After this, uninstalled it using /nix/nix-installer uninstall and then following the remaning steps at https://nixos.org/manual/nix/stable/installation/uninstall.html#macos

Trying to reinstall due to an error to which I cannot find a solution or more information on. (https://discourse.nixos.org/t/ssl-ca-cert-error-on-macos/31171)

OS: MacOS Ventura 13.4.1 (c) (22F770820d)
M2 Air

Output

Output

~~> Configuring /etc/synthetic.conf to make a mount-point at /nix

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/bin/ex -u NONE -n /etc/synthetic.conf

to add Nix to /etc/synthetic.conf

Password:

---- oh no! --------------------------------------------------------------------
error: failed to configure synthetic.conf

We'd love to help if you need it.

You can open an issue at
https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md

Or get in touch with the community: https://nixos.org/community

Priorities

Add 👍 to issues you find important.

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/ssl-ca-cert-error-on-macos/31171/2

@abathur
Copy link
Member

abathur commented Aug 2, 2023

Can you follow the uninstall instructions again and then report back on whether synthetic.conf still exists, and if so what it contains and what it's permissions are?

@mig4ng
Copy link
Author

mig4ng commented Aug 2, 2023

@abathur here it goes, the uninstall log:

Uninstall commands and log
---- oh no! --------------------------------------------------------------------
error: failed to configure synthetic.conf

We'd love to help if you need it.

You can open an issue at
https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md

Or get in touch with the community: https://nixos.org/community

% cat /etc/bashrc
cat: /etc/bashrc: No such file or directory
% cat /etc/zshrc
cat: /etc/zshrc: No such file or directory
% cat /etc/bash.bashrc
cat: /etc/bash.bashrc: No such file or directory
% cat /etc/bashrc_Apple_Terminal | grep nix

% sudo launchctl unload /Library/LaunchDaemons/org.nixos.nix-daemon.plist
Password:
run     private/var/run
/Library/LaunchDaemons/org.nixos.nix-daemon.plist: No such file or directory
Unload failed: 2: No such file or directory
% sudo rm /Library/LaunchDaemons/org.nixos.nix-daemon.plist
rm: /Library/LaunchDaemons/org.nixos.nix-daemon.plist: No such file or directory
% sudo launchctl unload /Library/LaunchDaemons/org.nixos.darwin-store.plist
/Library/LaunchDaemons/org.nixos.darwin-store.plist: No such file or directory
Unload failed: 2: No such file or directory
% sudo rm /Library/LaunchDaemons/org.nixos.darwin-store.plist
rm: /Library/LaunchDaemons/org.nixos.darwin-store.plist: No such file or directory
% sudo dscl . -delete /Groups/nixbld
delete: Invalid Path
<dscl_cmd> DS Error: -14009 (eDSUnknownNodeName)
% for u in $(sudo dscl . -list /Users | grep _nixbld); do sudo dscl . -delete /Users/$u; done
% sudo vifs
% cat /etc/fstab





% vim /etc/synthetic.conf
% sudo vim /etc/synthetic.conf
% cat /etc/synthetic.conf
cat: /etc/synthetic.conf: Permission denied
% sudo cat /etc/synthetic.conf
run	private/var/run
% sudo rm -rf /etc/nix /var/root/.nix-profile /var/root/.nix-defexpr /var/root/.nix-channels ~/.nix-profile ~/.nix-defexpr ~/.nix-channels
% sudo diskutil apfs deleteVolume /nix
Could not find APFS Volume /nix
% diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:             Apple_APFS_ISC Container disk1         524.3 MB   disk0s1
   2:                 Apple_APFS Container disk3         494.4 GB   disk0s2
   3:        Apple_APFS_Recovery Container disk2         5.4 GB     disk0s3

/dev/disk3 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +494.4 GB   disk3
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            9.1 GB     disk3s1
   2:              APFS Snapshot com.apple.os.update-... 9.1 GB     disk3s1s1
   3:                APFS Volume Preboot                 4.7 GB     disk3s2
   4:                APFS Volume Recovery                799.4 MB   disk3s3
   5:                APFS Volume Macintosh HD - Data     30.8 GB    disk3s5
   6:                APFS Volume VM                      20.5 KB    disk3s6

%

File content and permissions:

% ls -la /etc/synthetic.conf
-rw-------  1 root  wheel  20 Aug  2 15:02 /etc/synthetic.conf
% cat /etc/synthetic.conf
cat: /etc/synthetic.conf: Permission denied
% sudo cat /etc/synthetic.conf
Password:
run	private/var/run
%

@abathur
Copy link
Member

abathur commented Aug 2, 2023

I've also responded to your discourse thread with a note that this sounds like you have leftover artifacts of a nix-darwin install, and run private/var/run is definitely one of those.

I recommend removing /etc/synthetic.conf at minimum (but I don't know if that'll be sufficient, or if any other nix-darwin changes are likely to be interfering).

@mig4ng
Copy link
Author

mig4ng commented Aug 2, 2023

Will give it a go, and then update both discourse and here with the results.

@mig4ng
Copy link
Author

mig4ng commented Aug 2, 2023

@abathur it worked, as in, Nix is reinstalled. However, the error persists.

Not sure if I should close this ticket and open a new one (or update the title).

The errors:

% nix --version
nix (Nix) 2.17.0
% nix-shell
error: unable to download 'https://cache.nixos.org/d9l4i5phhrwy8f0yjp5yj4ri65z9cxzb.narinfo': Problem with the SSL CA cert (path? access rights?) (77)
% nix run nixpkgs#kubevpn --extra-experimental-features 'nix-command flakes'

error: unable to download 'https://cache.nixos.org/nar/1np0r60lc1c1xddr31h23zdvfk14f0apphlxjsq4vlmls623k8x7.nar.xz': Problem with the SSL CA cert (path? access rights?) (77)
error: some substitutes for the outputs of derivation '/nix/store/nj0ikc2makqyd128z43vmr0iy61lxsn4-kubevpn-1.1.34.drv' failed (usually happens due to networking issues); try '--fallback' to build derivation from source
%

I also tried the --fallback option but the extra information is not that relevant:

With `--fallback`
% nix run nixpkgs#kubevpn --extra-experimental-features 'nix-command flakes'
 --fallback
disabling binary cache 'https://cache.nixos.org' for 60 seconds
error: unable to download 'https://cache.nixos.org/nar/0214x8na3jxnc9d8xyyrmh7rgbk3sigi93pwjvb5kgg9mi7xxv7x.nar.xz': Problem with the SSL CA cert (path? access rights?) (77)
error: substituter 'https://cache.nixos.org' is disabled
error: substituter 'https://cache.nixos.org' is disabled
error: substituter 'https://cache.nixos.org' is disabled
error: substituter 'https://cache.nixos.org' is disabled
error: substituter 'https://cache.nixos.org' is disabled
error: substituter 'https://cache.nixos.org' is disabled
error: substituter 'https://cache.nixos.org' is disabled
error: builder for '/nix/store/7kcayxwk8khycxw1agmcyfm9vpsqpw4s-bootstrap-tools.drv' failed with exit code 71;
       last 1 log lines:
       > sandbox-exec: execvp() of '/nix/store/0ihnd9fxych0030mxhg50pz0fivzpmmq-sh' failed: Bad CPU type in executable
       For full logs, run 'nix-store -l /nix/store/7kcayxwk8khycxw1agmcyfm9vpsqpw4s-bootstrap-tools.drv'.
error: 1 dependencies of derivation '/nix/store/4jfabbl1g8w6ynxm9yw0xbnl8w2rg2da-025899b7b3593dedb0c681e689e57c0e7bbd9b80.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/k952wjiafmc97bkj2jg204x0yp7cmbzb-025899b7b3593dedb0c681e689e57c0e7bbd9b80.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0gsz414xpz3ih2ayhybbhr9d8f58dgf1-19bc9ea480b60b607a3e303f20c7a3a2ea553369.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/k08idylk0ks2r3k2lsv4xypf38k9n4fq-2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wlmrv39jyvb06n950i8r7wdnaifs10a1-2f52b4b2ff113fe6c33cebe14ed4fd4388bb1742.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/an6s46k7fgm2i3xz0zsc330i5dgwsrcl-5cd554303ead0f8891eee3cd6d25cb07f5a7bf67.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i4m22kzbcn8k8s12h9rqy6765pjr0ldi-5cd554303ead0f8891eee3cd6d25cb07f5a7bf67.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/iwff3qha0lmm80px9g5w41mrx7gnpswi-9c7d865e17ec16a847090a3e0d1498b698b99756.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hwylj89qrvwgq0wp26ic3fsvsscl3384-Babel-2.12.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qjirp648pfmx0kznhjmrv3cpic6kccra-CLTools_macOSNMOS_SDK.pkg.drv' failed to build
error: 1 dependencies of derivation '/nix/store/88g7jg8kak5m31mkk7lrl5d1wbhqnw7s-Cython-0.29.36.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/q40x9q2761gvh87jnxd8n1wn99yni9mn-Jinja2-3.1.2.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ishgf3ai01sgm024k68v381ccp98kkj7-MarkupSafe-2.1.3.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3mci9npr99a1wcmdl3frmpwrwz3fkyv9-PySocks-1.7.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0l8psq8gzd8va1ay4dvvl4wxfwl2jj43-Pygments-2.14.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qhq3hf0s26cm2bp8wz4sdyyi8fwbm34b-Python-3.10.12.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/z4w1pfxmqv3mqw2snifyl763hfg4v7dg-adv_cmds-119.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/q8q6jjr8mpbxl37n4gn5b3rw3ix21b6w-alabaster-0.7.13.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6dpynj3hjc12qn053kdvypcv0l7y24lz-apple-framework-SystemConfiguration-11.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/m22nkznjrhaasf9521qc8dbqk5wli1mx-attrs-22.2.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/j69vi04avsk4bfyyvbad9rv8iq860sxn-autoconf-2.69.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jqw7g68k0xzjrq58yz2blw772zdxdaqg-autoconf-2.71.drv' failed to build
error: 1 dependencies of derivation '/nix/store/m6451aqv7642q7h8j3581vs28asgrqvy-automake-1.16.5.drv' failed to build
error: 1 dependencies of derivation '/nix/store/anlkx36ipv3gzqzbzhg7qlzbcxr8rh5s-bash-5.2-p15.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ysf1qi601kbyw7ykrn3r09l4ybhaxxkg-bd02e1b122612baa74a126e428bacebc7889e897.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/m3wn3wdyb63hb0ibxb6x6lzk7a6a61ac-binutils-2.40.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ihn1vh67k6wq1f2q5k8sbcdzdsvbji9h-binutils-2.40.tar.bz2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wbqk1zbda2l8vgp55kmn0wgxd4m8pdxb-bison-3.8.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9mhw893g446wzfc33gmjh0mk3ggwrrnb-bootstrap-stage-xclang-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/cnjyx07zkdvjb1pfcs53yr1cdll4yqkm-bootstrap-stage-xclang-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ci84x50c8g5sd7sp0jfffq6kqnf0l769-bootstrap-stage1-sysctl-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/f8n5a4s9fcq421s0m6n4801g1qwg8h11-bootstrap-stage1-sysctl-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/20rb34q6kqij11j5wcn191daqjlm7lmc-bootstrap-stage2-CF-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/f7rqn3rl890rfwwassnmnfi5j5zirxpk-bootstrap-stage2-CF-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/naqxsy2hh6yw26idf40j8clzrqd37175-bootstrap-stage2-CF-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1ci9fa35f54mjvic181d7ap61rh6n5mi-bootstrap-stage2-Libsystem-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/5jfgbcsdm4py4958ja93nbfm9kysxgpd-bootstrap-stage2-Libsystem-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/83mrjkygpmicv00qhxdxxwipmmjx9gsc-bootstrap-stage3-clang-wrapper-11.1.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1ir8j7waj7iml54870kzvpsnq0rv7g8f-bootstrap-stage3-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yyw1m8mcvpqjk6jxfy996mngpcd5wjjd-bootstrap-stage3-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/51xnhzfr4izcwmw4r50b3qni4rankab8-bootstrap-stage4-clang-wrapper-11.1.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3pyvdd0xiks8y7s37c4kfsagnbn77dif-bootstrap-stage4-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kfk0cv89ra9icklw50hchinrnmk2gifz-bootstrap-stage4-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/n7q65a2xmhnpnrzk3bqw4w9r83ahrijy-bootstrap_cmds-121.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fjhzhfdx5wz8g5ydp0d77ssgwcqfylkl-brotli-1.0.9.drv' failed to build
error: 1 dependencies of derivation '/nix/store/iywyqmvpx1sdimcqv1gwyh3la11ns1h9-bsdmake-24.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2rwx22izry6drl7w58bg3hrfhnw0qwv0-buildcatrust-0.1.3.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/q3qml30w4gd15s8jyjnpymjsmlfclw97-bzip2-1.0.6.2-autoconfiscated.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vghhcd5psagdcqmk0hfzhgw9i1val0b7-bzip2-1.0.8.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8hppl2dn1687f7djkr7h1ggdz2j7m1zc-c-ares-1.19.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3m9n75brsjs1bv65xn39n68s2kvsk89v-c0459b92bc4a42b08281e69b8802d24c5d3415d4.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/sv6mzxr4bbszhydyficbwmsymjqmfxkd-cffi-1.15.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xy99avxjcbgwqg70shkviwpd6xd3mkqp-clang-11.1.0.src.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7qr09zgxq0nq8qbh8shdgsv0w6rzky0k-clang-tools-extra-11.1.0.src.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/59z52laly0zsjanyfvvjkgvcn7hgyxrv-cmake-boot-3.26.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zfhv8nw26sgylixm8jpz7rvawyja05p3-commonmark-0.9.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/saq40krira0i7pc7zwm70qrfhvq5vazn-coreutils-9.3.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2lcmyl37hgyyfs9p265sq76hggl8cv1h-cpio-2.14.drv' failed to build
error: 1 dependencies of derivation '/nix/store/x87hrxqd5qaprng541hvp7s8ls9jmrwq-curl-8.1.2.tar.bz2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/h2z64x8lwdfmi42mdnspbzxma2a1zl9x-disable-trashcan.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wrapg79mhkp429jkdig0kyk9879ir6ia-docutils-0.19.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/46p1x36clhbba6db1g6v9qbrsyxfnil4-e2016928db1147a2a46de6ee9fa878ca0e9d8fc8.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/00wk139r4hkcakbdbz34p38w9alg6rl2-e63874ce75a74a1159390914045fe8e7955b24c4.patch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/z4gqsykrs689i55byd3ghzailx7gqksr-editables-0.3.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4ddw8r78n0g2l2dy9addf98r3chhagzz-execnet-1.9.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/f5dvpl06vna5804mmvips7imrwrxsrm7-expat-2.5.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/grmiah740zln1b32hlkdv38hd9bipiw0-filelock-3.12.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6a92rhdqk3p1mk6jdi8xfb4vqm293gc2-findutils-4.9.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/02319h307z8g73k441amfwb5gahijpx7-findutils-4.9.0.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fvk14cz8v5gv36358psx01sxj8l7j4i4-flex-2.6.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/c3kskgw3lamfwfjv8qq4nza3qp9ihy7c-freezegun-1.2.2.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7a498nrx6yyx87zixk3h2b7cx8ga7g91-future-0.18.3.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3v80jm552bni5b0zd28z4lcz50bdrdl3-gawk-5.2.2.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gkf4c95l4m7f7py13i09iw0xyp31bbx1-gdbm-1.23.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/myafg6224igklcc3l2msn96a8gxa533r-gettext-0.21.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/z9kr38lx04wb2kr6z0jfy37fy01iwym8-gettext-1.07.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6f9lf2szfy12369pf1prfxb68jll9k3n-git-2.41.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xrr65i4fw4dq6558lbc294pvawfkjdq2-git-minimal-2.41.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/w18fmwfvzc1096gxrna3mz98360ifqqc-gmp-with-cxx-6.2.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gb7wr2r2ks5axarvz82islda71pih5jr-gnum4-1.4.19.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a8ha4cd0za1hwndkzcw3nkjf2cm99nyv-grep-3.11.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/iwdnjv94ssx8y077l6v1vyrqbmbcvf32-gzip-1.12.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8s9606rhyvaspl8c64nbi2sgdnskkn8m-hatch_vcs-0.3.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qg5v83mzlsbqfpyaf184aj6i8ii6hdvv-hatchling-1.13.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kd97cablw154h9cf9fhvdz5ka8v4fjdy-help2man-1.49.3.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gf1424a55ss3qlsbbq91xks1h2vcjfmr-idna-3.4.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xcqc0jkk3130ln2cns0zb2czn633fv25-imagesize-1.4.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ni6kgnv6cncwz3yzdj3cbkn4gv9773yl-iniconfig-2.0.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0p5ajcpnav31id2ydrkcgnlc48qnzpf3-krb5-1.20.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/v77gwjqxkrr6qvfzilx852nxjzkn0rr9-libSystem-11.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/n7nf0fzfllmc10wn90aa63bhy413k7m3-libev-4.33.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/niz8j4vc847s0gdaww217njbcpvsnkdp-libffi-3.4.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ign2id1kc7l85g1dyny0pvz10fm424x8-libiconv-50.drv' failed to build
error: 1 dependencies of derivation '/nix/store/fbf7lvyak3i6m7crhcawv7dwimdfir6h-libobjc-11.0.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vxbzdvkqkrdym0q9z5khfh43q5zzzrza-libssh2-1.11.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/prkz5bpdwifi5b1arsz7m4rmprmxlrff-libtool-2.4.7.drv' failed to build
error: 1 dependencies of derivation '/nix/store/b1f7f2cq4m7drabqd5bhsvm5c06g2m7j-libunistring-1.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bs58gb5zxjq6sgddycrgjy08vbai17a7-libxcrypt-4.4.36.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gfdi1f6gkrldvsrl20jslc7i5yznlxqf-libxml2-2.10.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1fd1azq1z3q42jz6mh593axrf552jihb-lld-11.1.0.src.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2pa627d49s262s15z4y2bjv4njhpi134-mailcap-2.1.53.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/shjx4xcc285a8knf63kjlm6k58w71khm-ncurses-6.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jnnb2bsq2r7zm65n80agh968fmm4bijd-nghttp2-1.51.0.tar.bz2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/w7wsr223csbylk0wdhccq3f6jjyyff9f-nss-3.90.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/04fqiydipqlzb1s3n5yni1z0va7srp82-openssl-3.0.9.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yrykhyyrilcbpqvp6si3snrg7zqm1kxf-packaging-23.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/d3wxsblnarkvb7sizifxakadw33m2vi7-pathspec-0.11.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4sz2pi4r0l0y4l2q7x9b4226wj3wsx92-pbr-5.11.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/134izlz056a5y9qljzmisiib6dv2yc59-pbzx-1.0.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/frhbd4s1x1kcdrx645vvm6cjigvck8qh-pcre2-10.42.tar.bz2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/l1da2qs3fc4h3mdrhv5viaairfngjlmk-perl-5.36.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nylr3qvybxqcigya6smrvr2vfqpn2qk3-perl-5.36.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s6pmcrpgy3rpzmy26l9210jank2hnzqv-perl-5.36.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ih3rrfjq6vq5dh4dgy3fxpwa473gyz01-pip-23.0.1-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/h2lcnlg5xm8cfqr64m58g28ycavhp6zj-pkg-config-0.29.2.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/lrs3p16xh31hqcsn14r24jn4h559rwn6-pkg-config-wrapper-0.29.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4pk71zzrnibcssdc5armzgqm1s5dcgl7-pluggy-1.0.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/svqwl78ix3hd14vfk4vkd03yy4672lda-post-link-sign-hook.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1b6gqqxiqxjdpmxmi5mwmndp5z7gyz2w-py-1.11.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/g90ki7vd8cjyvb5759jpc3l9k388b1y0-pycparser-2.21.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hlm4f6nv1ajj0il24kyzgrq2ri3rl8fh-pytest-7.2.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rc4i8dn8jlz8v8v86j1lq49xaqgvgmsm-pytest-mock-3.10.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vgrffyqnwc4q2xadvnq52wkyfr32fz4a-pytest-xdist-3.2.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s9hrfhsj9iy05c69fvi1b2q11ch1syfg-python-dateutil-2.8.2.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kmlyzvn1z0gl5ci29w53rib7n57fdnmy-pytz-2023.3.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hfxaidmqdxb7qpl6i3k4r9s7g5dm41lc-readline-8.2.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0g7k9qkz5i61nh50ym0anivrhclpjlqg-readline82-001.drv' failed to build
error: 1 dependencies of derivation '/nix/store/19bz99al4njhld3haasma67c6hn6csif-requests-2.31.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/90m0ndap2cp47q43l3xi2z6f3cahj1nj-rewrite-tbd-unstable-2023-03-27.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i01x40h2n4afp0xh120x2jdrp807r9av-sed-4.9.tar.xz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kgysgv13kj9n99lr3av9lxjvfap6hrcf-setuptools-67.4.0-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/dmmvrj7r8a2jp8afpy1nl07p61k0d4wr-setuptools_scm-7.1.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1n6dxs2dvqk98vbqpy5cddbz5fz2zk88-signing-utils.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0ck2f247g2c33x18bcr74pg22mw0whr3-six-1.16.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/acjcxsbd7b8351m3dqbvwiffqdj40ygz-snowballstemmer-2.2.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/00r21jlp7g795vqc0p23wipds0byxzwq-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1nyfi35mxxyjlq1m9va4spbg92qargic-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1sg7ffps0fyz160x71pzfj8s2xmj6chi-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7jhyjbhcdw16jam0c3fpicw8mz7pf21b-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7lci7i80k750s9046id2fb94b4v7vrci-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/89sg6rq9s7xwc9nd9rfnw34d40z1xlgm-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/h4g634xi69nakqw5m6riqcba97y0hvl7-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/iaijmjigr64pjxy40zyb0iibj33kjdq2-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kg3q90gp94nkcrmcdn1inrb33xfkhwja-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/pirp5ly1bp6qfp5894n62d54kzhp1q06-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/q4cyrj64dyv8vvbanxfqkd61sr1cbj7m-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/q99fqzx172lb637xbnixqpyg6msrgbzz-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/r9vhbiag1mbj77kxbmwq4f97x8jb523r-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s8a9pddn0nd7nkdl4wzszin7k5lrjdks-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vkjv13fgqixdwlp2rgvjp9322wj6da1m-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vlbv7zhkpnvixnygzhayiwqn4x7mzlgw-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/x8kg25mz50gwbvpp8a3dk540iq3vcc1l-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ihlz82cjmmk47rkxziiys4vmp9xwfha0-sphinxcontrib-apidoc-0.3.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hgpk5az1vxh3fyw9dqj5rac54x03q42i-sphinxcontrib-applehelp-1.0.2.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hy6qiiczrfr7h7vxdkjwrkkf6x252rq2-sphinxcontrib-devhelp-1.0.2.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hg46c8yx2fla3wk1qfmrx33vfhmmdx66-sphinxcontrib-htmlhelp-2.0.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gzn93cjz13kkdmpzkidf10pj0dcwmi2b-sphinxcontrib-jsmath-1.0.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bfv0w24iz9pb0mnvxm2jjr7rqlm219wr-sphinxcontrib-qthelp-1.0.3.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kqil9ba516iwaccr5bjibpci292lpdr4-sphinxcontrib-serializinghtml-1.1.5.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/39az9vl4ix3rzylasaqvwzq87g79dyx1-sphinxcontrib-websupport-1.2.4.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/l633nhbapgvm15a7xxz5kv8499qwcjlm-sqlite-3.42.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ihnmbrva6nkzifgj0p7lrgvp9pm9dx29-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/z3xmi5j1gxnv356yh6hhi5bv7a5b4fzs-stdenv-darwin.drv' failed to build
error: 1 dependencies of derivation '/nix/store/f03mb7zrhd2v0nh974m0s0jbnn3ym0z1-texinfo-7.0.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/v67rc5s115lfzm149nklydkvaz4m4c5r-typing_extensions-4.5.0.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/n0js4nb3fsjyx20z596pgim5870r2918-tzcode2023c.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/glqqca1sr52v9czcn867f0sb43360cgf-tzdata2023c.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/7kbnvm2bqvkbdszmnkwsd8psqai7m73r-unzip-6.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/d4zl94ir4ygn1rppmqgrhjap5fqz1x7i-urllib3-1.26.14.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/hpd46ph9zljslzgddb2z2jw0k9282xy0-webencodings-0.5.1.tar.gz.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1l87s8rnl383qk8w43hcdyad1hm41jwa-wheel-0.38.4-source.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zv9x78myzwx4v4waq0zw1gcn6fchy06d-xz-5.4.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qc68xvpyfydfxzzsykbapc61z7fm2n9d-zlib-1.2.13.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nj0ikc2makqyd128z43vmr0iy61lxsn4-kubevpn-1.1.34.drv' failed to build

@mig4ng
Copy link
Author

mig4ng commented Aug 2, 2023

This fixes the problem: #3261 (comment)

I had to remove the old link first, you can check if it exists by:

ls -la /etc/ssl/certs/ca-certificates.crt

Mine was pointing to /etc/static/ssl/certs/ca-certificates.crt.

I removed it using, and then created the new one as specified here #3261 (comment) :

sudo rm /etc/ssl/certs/ca-certificates.crt
sudo ln -s /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt /etc/ssl/certs/ca-certificates.crt

Thank you so much for the help @abathur, and everyone else that commented on other issues.

@mig4ng mig4ng closed this as completed Aug 2, 2023
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/ssl-ca-cert-error-on-macos/31171/5

@BernhardRode
Copy link

Shouldn't this go into the installer script?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants