GNU bug report logs - #63546
nix-channel error: opening pseudoterminal master: No such device

Previous Next

Package: guix;

Reported by: Nathan Dehnel <ncdehnel <at> gmail.com>

Date: Wed, 17 May 2023 04:45:02 UTC

Severity: normal

To reply to this bug, email your comments to 63546 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#63546; Package guix. (Wed, 17 May 2023 04:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nathan Dehnel <ncdehnel <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 17 May 2023 04:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nathan Dehnel <ncdehnel <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: nix-channel error: opening pseudoterminal master: No such device
Date: Tue, 16 May 2023 23:44:25 -0500
I recently started getting this error:

$ nix-channel --update
unpacking channels...
error: opening pseudoterminal master: No such device
error: program '/gnu/store/77sxsc9awh98pg4y1iab195adls6bbm8-nix-2.5.1/bin/nix-env'
failed with exit code 1

should I report this to nix instead?

tried running it in xfce-terminal and in a TTY
using the nix shepherd service
guix version c8e599b




Information forwarded to bug-guix <at> gnu.org:
bug#63546; Package guix. (Mon, 05 Jun 2023 04:57:04 GMT) Full text and rfc822 format available.

Message #8 received at 63546 <at> debbugs.gnu.org (full text, mbox):

From: Haider <paralle1epiped <at> outlook.com>
To: 63546 <at> debbugs.gnu.org
Subject: Re: nix-channel error: opening pseudoterminal master: No such device
Date: Sun, 04 Jun 2023 16:50:43 +0100
[Message part 1 (text/plain, inline)]
Just here to state that I am also getting this error whilst using the
nix shepherd service. (I'm on an up-to-date guix system).
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#63546; Package guix. (Tue, 06 Jun 2023 16:10:01 GMT) Full text and rfc822 format available.

Message #11 received at 63546 <at> debbugs.gnu.org (full text, mbox):

From: Zhu Zihao <all_but_last <at> 163.com>
To: 63546 <at> debbugs.gnu.org
Subject: Re: nix-channel error: opening pseudoterminal master: No such device
Date: Wed, 07 Jun 2023 00:09:00 +0800
[Message part 1 (text/plain, inline)]
You can have a look at
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63893

which solves the problem.
-- 
Retrieve my PGP public key:

  gpg --recv-keys B3EBC086AB0EBC0F45E0B4D433DB374BCEE4D9DC

Zihao
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#63546; Package guix. (Wed, 07 Jun 2023 20:04:01 GMT) Full text and rfc822 format available.

Message #14 received at 63546 <at> debbugs.gnu.org (full text, mbox):

From: Haider <paralle1epiped <at> outlook.com>
To: 63546 <at> debbugs.gnu.org
Subject: Re: Nix-channel error
Date: Wed, 07 Jun 2023 21:03:27 +0100
[Message part 1 (text/plain, inline)]
Thank you Zihao, I did notice the patch at the time but I didn't assume
that it had fixed the issue. 

I will stay patient for when it will be pushed upstream. Thank you for
your efforts.

Regards,
Haider Mirza
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#63546; Package guix. (Fri, 23 Jun 2023 15:32:01 GMT) Full text and rfc822 format available.

Message #17 received at 63546 <at> debbugs.gnu.org (full text, mbox):

From: worldofgeese <worldofgeese <at> proton.me>
To: "63546 <at> debbugs.gnu.org" <63546 <at> debbugs.gnu.org>
Subject: (No Subject)
Date: Fri, 23 Jun 2023 07:55:19 +0000
I'm still receiving the same error. I tested a variant of Zhu's patch by defining my own custom Nix package that sticks very closely to Zhu's, just with manpages and docs generation disabled. I can confirm Nix is running latest: nix (Nix) 2.16.0.

This is the first time I've done any kind of Guix hacking so it's a bit rough. Here's my custom Nix package.

(define-public my-nix
  (package
    (inherit nix)
    (name "nix")
    (version "2.16.0")
    (inputs (modify-inputs (package-inputs nix)
              (append rapidcheck nlohmann-json)))
    (source
      (origin
        (method git-fetch)
        (uri (git-reference
              (url "https://github.com/NixOS/nix")
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
         (base32 "0jizpci4zspqpqqy3n780m4wh8dzhfywaiz953xv70c7in810dra"))))
    (arguments
     `(#:configure-flags '("--disable-doc-gen")
       #:phases
       (modify-phases %standard-phases
         (replace 'check
            (lambda args
              ;; Some tests expect environment variable NIX_STORE to be
              ;; "/nix/store"
              (let ((original-NIX_STORE (getenv "NIX_STORE")))
                (dynamic-wind
                  (lambda ()
                    (setenv "NIX_STORE" "/nix/store"))
                  (lambda ()
                    (apply (assoc-ref %standard-phases 'check) args))
                  (lambda ()
                    (setenv "NIX_STORE" original-NIX_STORE)))))))))))

Attempting to run devbox shell returns 

Error: Command: /run/current-system/profile/bin/nix print-dev-env /home/worldofgeese/Downloads/projects/little_bits_of_buddha/.devbox/gen/flake/flake.nix --extra-experimental-features ca-derivations --option experimental-features nix-command flakes --json: exit status 1

[DEBUG] 2023/06/23 09:38:50 go.jetpack.io/devbox/internal/boxcli/midcobra/debug.go:72: Command stderr: path '/home/worldofgeese/Downloads/projects/little_bits_of_buddha/.devbox/gen/flake/flake.nix' does not contain a 'flake.nix', searching up
warning: Git tree '/home/worldofgeese/Downloads/projects/little_bits_of_buddha/.devbox/gen/flake' is dirty
error: opening pseudoterminal master: No such device. 

Devbox is a Nix package available from the Nixpkgs repositories intended for local development using Nix flakes.





Information forwarded to bug-guix <at> gnu.org:
bug#63546; Package guix. (Sat, 24 Jun 2023 15:38:02 GMT) Full text and rfc822 format available.

Message #20 received at 63546 <at> debbugs.gnu.org (full text, mbox):

From: Jonas Schneider-Bensch <taffinaround <at> gmail.com>
To: 63546 <at> debbugs.gnu.org
Subject: nix-channel error: opening pseudoterminal master: No such device
Date: Sat, 24 Jun 2023 08:54:14 +0200
[Message part 1 (text/plain, inline)]
Perhaps this is a permissions issue with the nix shepherd service? I
haven't tried the patch linked above, but found that I could run

$ sudo nix-channel --update

without running into the issue. Then, I got the same error again when
trying to install any package with nix-env. Once again, I could run

$ sudo nix-env -i <some-package>

which would successfully install it to the root profile. After doing
this, however, I found that I now could run

$ nix-env -i <some-package>

to install the package to my user profile, presumably because the nix
store was populated by the run with sudo.
[Message part 2 (text/html, inline)]

Added blocking bug(s) 63893 Request was from "jgart" <jgart <at> dismail.de> to control <at> debbugs.gnu.org. (Sat, 24 Jun 2023 17:28:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#63546; Package guix. (Tue, 27 Jun 2023 15:03:02 GMT) Full text and rfc822 format available.

Message #25 received at 63546 <at> debbugs.gnu.org (full text, mbox):

From: "Collin J. Doering" <collin <at> rekahsoft.ca>
To: 63546 <at> debbugs.gnu.org
Subject: nix-channel error: opening pseudoterminal master: No such device
Date: Tue, 27 Jun 2023 11:00:30 -0400
[Message part 1 (text/plain, inline)]
For What Its Worth (fwiw): I found that restarting the nix-daemon shepherd service makes this issue go away for me.

Not sure what is the underlying cause, but thought I'd mention it for others.

Kind regards,

-- 
Collin J. Doering

http://rekahsoft.ca
http://blog.rekahsoft.ca
http://git.rekahsoft.ca
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#63546; Package guix. (Sat, 01 Jul 2023 09:55:02 GMT) Full text and rfc822 format available.

Message #28 received at 63546 <at> debbugs.gnu.org (full text, mbox):

From: Haider <paralle1epiped <at> outlook.com>
To: 63546 <at> debbugs.gnu.org
Subject: /gnu/store/6wv8x4115jykg58fdgcjfka12vp2vms6-glibc-for-fhs-2.35/lib
Date: Sat, 01 Jul 2023 10:54:00 +0100
[Message part 1 (text/plain, inline)]
Wow, thank you for the tempoary workaround.

It's quite obscure that it works though.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.