-
Notifications
You must be signed in to change notification settings - Fork 266
[upstream issue] Warnings with nix on Manjaro Archlinux warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
#1789
Comments
The build is failing for another user as of yesterday: https://aur.archlinux.org/packages/nix. |
If I run:
Or pipe with |
Mostly sorted via NixOS/nix#3154. |
I am reopening this as the root issue hasn't really been solved. I have been able to consistently run |
This seems to work in one terminal session:
|
OK, fixed by uninstalling and reinstalling:
|
nix-shell https://holochain.love
on Manjaro Archlinux without warning: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:9; will use bash from your environment
I've spent too much time trying to figure out how to fix this, so I'll just ignore the warning. |
nix-shell https://holochain.love
on Manjaro Archlinux without warning: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:9; will use bash from your environmentnix-shell https://holochain.love
on Manjaro Archlinux without warning: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:9; will use bash from your environment
It seems like it would be better on (Manjaro) Archlinux to follow these instructions, rather than installing via So the quick start doc should be updated with that. |
@jamesray1 does this help? https://forum.holochain.org/t/ubuntu-and-debian-troubleshooting-brain-dump/1007 specifically this bit:
|
@thedavidmeister thanks for that, but unfortunately I still get warnings:
Worse than that, I got errors on my desktop. But good news, I now have internet working with NBN on my desktop, and it's fast!
What I ran before that and the outputs:
|
I tried again with |
Ah, I haven't merged upstream, only origin. 🤦♂️ |
I've also been getting this error, including after uninstalling with
|
I found this: I have boost-libs installed already, running
|
OK I fixed the above error by uninstalling and reinstalling as detailed on the Nix forum here and ran the two commands you suggested above, but still got warnings:
|
I tried these from https://wiki.archlinux.org/index.php/Nix#Configuration:
I'll revisit |
I got rid of
via Specifically, by running
I installed again
I forgot to add Change of tack based on https://forum.manjaro.org/t/error-while-loading-shared-libraries-libboost-context-so-1-69-0-cannot-open-shared-object-file-no-such-file-or-directory/115811/2?u=jamesray
I tried to compile the AUR nix package from the package build as per https://forum.manjaro.org/t/error-while-loading-shared-libraries-libboost-context-so-1-69-0-cannot-open-shared-object-file-no-such-file-or-directory/115811/3, but didn't succeed. |
The original issue has been resolved but there are ongoing issues with nix. |
@jamesray1 also in the troubleshooting guide https://forum.holochain.org/t/ubuntu-and-debian-troubleshooting-brain-dump/1007 |
this is the dockerfile that sets up ubuntu from a fresh build: https://github.com/holochain/holonix/blob/develop/docker/Dockerfile.ubuntu @jamesray1 if you have problems with a specific distro it helps a lot if you can demonstrate with a Dockerfile :) |
nix-shell https://holochain.love
on Manjaro Archlinux without warning: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:9; will use bash from your environment
Sorry I forgot to mention that I had tried those:
I asked to find out what the equivalent way to do this for Manjaro / Archlinux is: See also comments in https://forum.manjaro.org/t/error-while-loading-shared-libraries-libboost-context-so-1-69-0-cannot-open-shared-object-file-no-such-file-or-directory/115811/6?u=jamesray.
The following is notes on looking into a solution: I found this: From the linked https://hub.docker.com/r/jonathonf/manjaro/ I installed docker, started it and ran There's also a Dockerfile for Manjaro for a specific use case here: https://github.com/ftalbrecht/manjaro-aur-base/blob/master/Dockerfile, but could be helpful for setting one up. Then ran
this is just commands to run for demonstrative purposes to show that installing nix from the yay package manager (rather than the nix recommended
I followed the instructions for this Docker image here: https://github.com/ftalbrecht/manjaro-aur-base, pasted below without explanations
Additionally, this is also different results to what I get locally (needing boost1.69 rather than editline), which leads me to assume that the provided AUR is out-of-date. I assume that the AUR also might needs to be updated from the
Some checks:
|
@jamesray1 could you post your WIP dockerfile as a PR against the holonix repo so that we can see it on CI? |
These warnings are misleading as suggested here on the Discourse forum and can be ignored.
They are the warnings that appear after uninstalling and reinstalling and entering the nix-shell (including by running
So it seems unnecessary with trying to fix the warnings by doing things like those listed in https://forum.holochain.org/t/ubuntu-and-debian-troubleshooting-brain-dump/1007. If they cause CI issues down the track that would be problematic, but that could be handled if the issue arises. Disregard all of the below. I really should be more careful with waiting for direction from experts before plunging headlong into things, in order to save a great deal of hassle! I don't know why I bothered to spend so long trying to fix them—they're only warnings! How silly of me. I don't have a dockerfile as of yet, just the above commands. Was just writing this up as you commented: To clarify, trying to fix these warnings is more of a hassle at the moment than just ignoring them, so I'll just do the latter but I may make a dockerfile as suggested. That said, this is what I've done:
The above error seems likely to be due to an outage with the nix database:
However, I can't see an official announcement for that from DDG search or from https://discourse.nixos.org/c/announcements/8
|
I can still get a dockerfile if needed to see if it will trip up the CI, but not now, it's midnight on a Sunday! |
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
It looks like I should just remove |
https://discourse.nixos.org/t/how-to-change-nix-path/4864 A possible change for where the NIX_PATH can be configured is
|
I made a draft at holochain/holonix#124. |
@jamesray1 great, i'll close this here and we can chase up over there as it's much easier to debug this kind of thing from a clean, repeatable baseline (e.g. docker) |
These warnings are misleading as suggested here on the Discourse forum and can be ignored.
They are the warnings that appear after uninstalling and reinstalling and entering the nix-shell (including by running
nh
):So it seems unnecessary with trying to fix the warnings by doing things like those listed in https://forum.holochain.org/t/ubuntu-and-debian-troubleshooting-brain-dump/1007. If they cause CI issues down the track that would be problematic, but that could be handled if the issue arises.
Outdated:
Tasks:
curl https://nixos.org/nix/install | sh
on (Manjaro) Archlinux rather than installing nix from Link directly to local libraries NixOS/nix#3154.curl https://nixos.org/nix/instal
tocurl https://nixos.org/nix/install | sh
.To install nix, recently and just today I tried using
curl https://nixos.org/nix/install
from https://developer.holochain.org/docs/install/, however, that just outputted the script. So I then tried piping with zsh and sh:curl https://nixos.org/nix/install | zsh
. I was then able to runnix-shell
, however I found that on logging out and in I was no longer able to run it—the command wasn't found. So I ranyay -a nix 2>&1 | tee nix-install-yay.txt
. The command appears to be stuck in a loop, with cycling between different errors:nix-install-yay.txt
The text was updated successfully, but these errors were encountered: