Bugless #50
//tools:secretstore fails on NixOS
Description
Running on current hscloud master aef13358c8456a16ce65eb97e876ba1b56b8ced8
, NixOS 21.05.2001.d4590d21006
atuin\informatic hscloud (master) $ nix-shell INFO: Analyzed 8 targets (0 packages loaded, 0 targets configured). INFO: Found 8 targets... INFO: From BazelWorkspaceStatusAction stable-status.txt: hostname: symbol lookup error: /usr/lib/libc.so.6: undefined symbol: _dl_catch_error_ptr, version GLIBC_PRIVATE INFO: Elapsed time: 0.517s, Critical Path: 0.11s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action INFO: Analyzed 4 targets (0 packages loaded, 0 targets configured). INFO: Found 4 targets... INFO: From BazelWorkspaceStatusAction stable-status.txt: hostname: symbol lookup error: /usr/lib/libc.so.6: undefined symbol: _dl_catch_error_ptr, version GLIBC_PRIVATE INFO: Elapsed time: 4.472s, Critical Path: 4.23s INFO: 5 processes: 1 internal, 4 linux-sandbox. INFO: Build completed successfully, 5 total actions hostname: symbol lookup error: /usr/lib/libc.so.6: undefined symbol: _dl_catch_error_ptr, version GLIBC_PRIVATE bash: hostname_colors: bad array subscript atuin\informatic hscloud (master) $ secretstore sync Error occurred while attempting to use the default Python toolchain (@rules_python//python:autodetecting_toolchain). Neither 'python3' nor 'python' were found on the target platform's PATH, which is: /home/informatic/.local/bin:/home/informatic/.dotfiles/tools:/home/informatic/Projects/hscloud/bazel-bin/tools:/home/informatic/Projects/hscloud/bazel-bin/cluster/tools:/run/wrappers/bin:/usr/bin:/usr/sbin:/run/wrappers/bin:/usr/bin:/usr/sbin:/nix/store/zdk63pzvb0qgs5wy1rji3qj4h4kcl5hg-bash-interactive-4.4-p23/bin:/nix/store/wl5vdx1g9wkjgsjb8z1g9gxp5dwr8dfx-patchelf-0.12/bin:/nix/store/jj6z78skpdcya84iqbn9cf59sxjy5msv-coreutils-8.32/bin:/nix/store/2nrji9a3q54bnbf6bh2i01pv7hnb4320-findutils-4.8.0/bin:/nix/store/n0s100cc8q4y31cwik65p497m4y1xrlj-diffutils-3.7/bin:/nix/store/pp6q8mh5ilgsf67cciggkqcrrw8z2hip-gnused-4.8/bin:/nix/store/azjjb2azlva4ifsiyazrl8ajck5njfxn-gnugrep-3.6/bin:/nix/store/1838raw4b33pbry9m3c4mwrfigzbkf6r-gawk-5.1.0/bin:/nix/store/87l7j4jcsl6x50nzpii751cdbsa26b0f-gnutar-1.34/bin:/nix/store/zab716kfmd0h8iy49dldm8x1b695p7sk-gzip-1.10/bin:/nix/store/yr4rc4w2fcf96grwliqr1kgypi47q6j0-bzip2-1.0.6.0.2-bin/bin:/nix/store/pyv3351wlsa5r8sa8bbjpici3ksbvcqc-gnumake-4.3/bin:/nix/store/can473ld4dc8izcjlm4i5daxsh1yl5d8-bash-4.4-p23/bin:/nix/store/ral4i7kjhmxzq2kdg11ymx2bshgxk76m-patch-2.7.6/bin:/nix/store/jjfwszja3l4l4a6rrs2fi4im5hw0cjzc-xz-5.2.5-bin/bin:/home/informatic/.local/bin:/home/informatic/.dotfiles/tools:/home/informatic/bin:/home/informatic/.local/bin:/home/informatic/.dotfiles/tools:/home/informatic/.local/bin:/home/informatic/.dotfiles/tools:/nix/store/casn818j3w1rh4axkawj71zrxivmzdgz-kitty-0.20.3/bin:/nix/store/rb9gj8hfmhzprlslsa4088wc51y33rgp-imagemagick-7.1.0-4/bin:/nix/store/n4dgh5ishnd62bxvgww45wafsfazsk01-xsel-unstable-2020-05-27/bin:/nix/store/rx0hx12wwawpmqgvqq26h5lkjy55dp8x-ncurses-6.2-dev/bin:/home/informatic/.local/bin:/home/informatic/.dotfiles/tools:/home/informatic/.local/bin:/home/informatic/.dotfiles/tools:/run/wrappers/bin:/home/informatic/.dotfiles/tools:/home/informatic/.local/bin:/home/informatic/bin:/home/informatic/.nix-profile/bin:/etc/profiles/per-user/informatic/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin Please ensure an interpreter is available on this platform (and marked executable), or else register an appropriate Python toolchain as per the documentation for py_runtime_pair (https://github.com/bazelbuild/rules_python/blob/master/docs/python.md#py_runtime_pair). atuin\informatic hscloud (master) $ exit atuin\informatic hscloud (master) $ nixos-version 21.05.2001.d4590d21006 (Okapi)
Updated by q3k over 2 years ago
Hm, does running python
in the nix-shell actually work? I see some curious errors like
hostname: symbol lookup error: /usr/lib/libc.so.6: undefined symbol: _dl_catch_error_ptr, version GLIBC_PRIVATE
which hint at something being thoroughly borked. I was something like this a while ago when the hscloud nixpkgs was very out of date with my system nixpkgs (!). In that case I wasn't able to run things from the system (like system vim) in the nix-shell, but maybe your case the opposite is true, and for some reason you can't run some things in the shell?
Updated by q3k over 2 years ago
(I should add that when I encountered it, the problem was that my system nixpkgs was much newer than the shell nixpkgs.)
Updated by informatic over 2 years ago
Python itself seems to work fine in our nix-shell.
atuin\informatic hscloud (master) $ python --version Python 3.8.11 atuin\informatic hscloud (master) $ type python python is hashed (/usr/bin/python)a atuin\informatic hscloud (master) $ ls -lah /usr/bin/python lrwxrwxrwx 1 nobody nogroup 79 Jan 1 1970 /usr/bin/python -> /nix/store/rlpgv7dca7mm4fzfh5c0xxas6vpqz4dz-hscloud-build-usr-target/bin/python
Let me bump my local nixpkgs for now...
Updated by q3k over 2 years ago
The python here in my nix-shell is the same:
q3k/hscloud ~/hscloud $ which python /usr/bin/python q3k/hscloud ~/hscloud $ ls -la /usr/bin/python lrwxrwxrwx 1 nobody nogroup 79 Jan 1 1970 /usr/bin/python -> /nix/store/rlpgv7dca7mm4fzfh5c0xxas6vpqz4dz-hscloud-build-usr-target/bin/python
So whatever is happening, we end up with the same python.
Could you also do the following?
$ ls -la / total 116 drwxrwxrwt 17 q3k users 480 Sep 13 17:04 . drwxrwxrwt 17 q3k users 480 Sep 13 17:04 .. lrwxrwxrwx 1 q3k users 65 Sep 13 17:04 bin -> /nix/store/hvp19ksz4bzd7iabz0m39gwqd6k91zmx-hscloud-build-fhs/bin drwxr-xr-x 8 nobody nogroup 4096 Jan 1 1970 boot drwxr-xr-x 20 nobody nogroup 3760 Sep 13 17:03 dev lrwxrwxrwx 1 q3k users 65 Sep 13 17:04 etc -> /nix/store/hvp19ksz4bzd7iabz0m39gwqd6k91zmx-hscloud-build-fhs/etc drwxr-xr-x 4 nobody nogroup 4096 Oct 4 2020 home drwxr-xr-x 19 nobody nogroup 4096 Oct 30 2020 host lrwxrwxrwx 1 q3k users 65 Sep 13 17:04 lib -> /nix/store/hvp19ksz4bzd7iabz0m39gwqd6k91zmx-hscloud-build-fhs/lib lrwxrwxrwx 1 q3k users 67 Sep 13 17:04 lib32 -> /nix/store/hvp19ksz4bzd7iabz0m39gwqd6k91zmx-hscloud-build-fhs/lib32 lrwxrwxrwx 1 q3k users 67 Sep 13 17:04 lib64 -> /nix/store/hvp19ksz4bzd7iabz0m39gwqd6k91zmx-hscloud-build-fhs/lib64 drwx------ 2 nobody nogroup 16384 Jul 27 2020 lost+found drwxr-xr-x 10 nobody nogroup 4096 Aug 21 10:54 mnt drwxr-xr-x 4 nobody nogroup 4096 Jul 27 2020 nix drwx--xr-x 5 nobody nogroup 4096 Oct 4 2020 opt dr-xr-xr-x 493 nobody nogroup 0 Sep 5 12:05 proc drwx------ 10 nobody nogroup 4096 Sep 9 17:42 root drwxr-xr-x 30 nobody nogroup 1000 Sep 13 17:03 run lrwxrwxrwx 1 q3k users 66 Sep 13 17:04 sbin -> /nix/store/hvp19ksz4bzd7iabz0m39gwqd6k91zmx-hscloud-build-fhs/sbin drwxr-xr-x 2 nobody nogroup 4096 Jul 27 2020 srv dr-xr-xr-x 13 nobody nogroup 0 Sep 5 12:05 sys drwxrwxrwt 68 nobody nogroup 61440 Sep 13 17:04 tmp lrwxrwxrwx 1 q3k users 65 Sep 13 17:04 usr -> /nix/store/hvp19ksz4bzd7iabz0m39gwqd6k91zmx-hscloud-build-fhs/usr drwxr-xr-x 9 nobody nogroup 4096 Sep 5 12:06 var
Updated by informatic over 2 years ago
- Status changed from New to Assigned
- Assignee set to informatic