all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#63546: nix-channel error: opening pseudoterminal master: No such device
@ 2023-05-17  4:44 Nathan Dehnel
  2023-06-04 15:50 ` Haider
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Nathan Dehnel @ 2023-05-17  4:44 UTC (permalink / raw)
  To: 63546

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




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#63546: nix-channel error: opening pseudoterminal master: No such device
  2023-05-17  4:44 bug#63546: nix-channel error: opening pseudoterminal master: No such device Nathan Dehnel
@ 2023-06-04 15:50 ` Haider
  2023-06-06 16:09 ` Zhu Zihao
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Haider @ 2023-06-04 15:50 UTC (permalink / raw)
  To: 63546

[-- Attachment #1: Type: text/plain, Size: 128 bytes --]

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).

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 870 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#63546: nix-channel error: opening pseudoterminal master: No such device
  2023-05-17  4:44 bug#63546: nix-channel error: opening pseudoterminal master: No such device Nathan Dehnel
  2023-06-04 15:50 ` Haider
@ 2023-06-06 16:09 ` Zhu Zihao
  2023-06-07 20:03 ` bug#63546: Nix-channel error Haider
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Zhu Zihao @ 2023-06-06 16:09 UTC (permalink / raw)
  To: 63546

[-- Attachment #1: Type: text/plain, Size: 213 bytes --]


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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 255 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#63546: Nix-channel error
  2023-05-17  4:44 bug#63546: nix-channel error: opening pseudoterminal master: No such device Nathan Dehnel
  2023-06-04 15:50 ` Haider
  2023-06-06 16:09 ` Zhu Zihao
@ 2023-06-07 20:03 ` Haider
  2023-06-23  7:55 ` bug#63546: (No Subject) worldofgeese via Bug reports for GNU Guix
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Haider @ 2023-06-07 20:03 UTC (permalink / raw)
  To: 63546

[-- Attachment #1: Type: text/plain, Size: 221 bytes --]


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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 870 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#63546: (No Subject)
  2023-05-17  4:44 bug#63546: nix-channel error: opening pseudoterminal master: No such device Nathan Dehnel
                   ` (2 preceding siblings ...)
  2023-06-07 20:03 ` bug#63546: Nix-channel error Haider
@ 2023-06-23  7:55 ` worldofgeese via Bug reports for GNU Guix
  2023-06-24  6:54 ` bug#63546: nix-channel error: opening pseudoterminal master: No such device Jonas Schneider-Bensch
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: worldofgeese via Bug reports for GNU Guix @ 2023-06-23  7:55 UTC (permalink / raw)
  To: 63546@debbugs.gnu.org

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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#63546: nix-channel error: opening pseudoterminal master: No such device
  2023-05-17  4:44 bug#63546: nix-channel error: opening pseudoterminal master: No such device Nathan Dehnel
                   ` (3 preceding siblings ...)
  2023-06-23  7:55 ` bug#63546: (No Subject) worldofgeese via Bug reports for GNU Guix
@ 2023-06-24  6:54 ` Jonas Schneider-Bensch
  2023-06-27 15:00 ` Collin J. Doering via Bug reports for GNU Guix
  2023-07-01  9:54 ` bug#63546: /gnu/store/6wv8x4115jykg58fdgcjfka12vp2vms6-glibc-for-fhs-2.35/lib Haider
  6 siblings, 0 replies; 8+ messages in thread
From: Jonas Schneider-Bensch @ 2023-06-24  6:54 UTC (permalink / raw)
  To: 63546

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 835 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#63546: nix-channel error: opening pseudoterminal master: No such device
  2023-05-17  4:44 bug#63546: nix-channel error: opening pseudoterminal master: No such device Nathan Dehnel
                   ` (4 preceding siblings ...)
  2023-06-24  6:54 ` bug#63546: nix-channel error: opening pseudoterminal master: No such device Jonas Schneider-Bensch
@ 2023-06-27 15:00 ` Collin J. Doering via Bug reports for GNU Guix
  2023-07-01  9:54 ` bug#63546: /gnu/store/6wv8x4115jykg58fdgcjfka12vp2vms6-glibc-for-fhs-2.35/lib Haider
  6 siblings, 0 replies; 8+ messages in thread
From: Collin J. Doering via Bug reports for GNU Guix @ 2023-06-27 15:00 UTC (permalink / raw)
  To: 63546

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 515 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#63546: /gnu/store/6wv8x4115jykg58fdgcjfka12vp2vms6-glibc-for-fhs-2.35/lib
  2023-05-17  4:44 bug#63546: nix-channel error: opening pseudoterminal master: No such device Nathan Dehnel
                   ` (5 preceding siblings ...)
  2023-06-27 15:00 ` Collin J. Doering via Bug reports for GNU Guix
@ 2023-07-01  9:54 ` Haider
  6 siblings, 0 replies; 8+ messages in thread
From: Haider @ 2023-07-01  9:54 UTC (permalink / raw)
  To: 63546

[-- Attachment #1: Type: text/plain, Size: 86 bytes --]

Wow, thank you for the tempoary workaround.

It's quite obscure that it works though.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 870 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-07-01  9:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-17  4:44 bug#63546: nix-channel error: opening pseudoterminal master: No such device Nathan Dehnel
2023-06-04 15:50 ` Haider
2023-06-06 16:09 ` Zhu Zihao
2023-06-07 20:03 ` bug#63546: Nix-channel error Haider
2023-06-23  7:55 ` bug#63546: (No Subject) worldofgeese via Bug reports for GNU Guix
2023-06-24  6:54 ` bug#63546: nix-channel error: opening pseudoterminal master: No such device Jonas Schneider-Bensch
2023-06-27 15:00 ` Collin J. Doering via Bug reports for GNU Guix
2023-07-01  9:54 ` bug#63546: /gnu/store/6wv8x4115jykg58fdgcjfka12vp2vms6-glibc-for-fhs-2.35/lib Haider

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.