From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 52533@debbugs.gnu.org
Subject: bug#52533: guix deploy breaks SSH access with a PAM error
Date: Wed, 15 Dec 2021 23:45:24 -0500 [thread overview]
Message-ID: <87czlx88ez.fsf@gmail.com> (raw)
Hello Guix!
Following the big merge of the core-updates-frozen branch into master,
I've noticed now on two counts the following: running 'guix deploy'
leaves the remote machine unreachable by SSH. The connection passes
authentication but then gets closed immediately. /var/log/messages
reveals the following error:
--8<---------------cut here---------------start------------->8---
sshd[29578]: error: PAM: pam_open_session(): Module is unknown
--8<---------------cut here---------------end--------------->8---
The machines updated were running Guix System revisions predating the
core-updates-frozen merge.
The 'guix deploy' command doesn't succeed due to SSH starting to fail at
99% completion or similar; the bootloader configuration is not updated
so rebooting boots into the same old system generation (and SSH works
again):
--8<---------------cut here---------------start------------->8---
guix deploy: deploying to x200...
guix deploy: sending 0 store items (0 MiB) to 'x200.local'...
guix deploy: sending 0 store items (0 MiB) to 'x200.local'...
substitute: updating substitutes from 'http://127.0.0.1:8181'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
/gnu/store/049wr939gjpgl3471wrk8b1waqgswrdi-remote-exp.scm.drv
/gnu/store/y1mgddpa2qkrmc01knpdam917b60yxlq-switch-to-system.scm.drv
/gnu/store/vgadszcfklbhr7d8yl8jprzipjy6b0vj-system.drv
/gnu/store/ypyaf6ib1w5nc4kr0xgjm4par407cnzk-provenance.drv
building /gnu/store/ypyaf6ib1w5nc4kr0xgjm4par407cnzk-provenance.drv...
building /gnu/store/vgadszcfklbhr7d8yl8jprzipjy6b0vj-system.drv...
building /gnu/store/y1mgddpa2qkrmc01knpdam917b60yxlq-switch-to-system.scm.drv...
building /gnu/store/049wr939gjpgl3471wrk8b1waqgswrdi-remote-exp.scm.drv...
guix deploy: sending 5 store items (0 MiB) to 'x200.local'...
guix deploy: error: failed to deploy x200: failed to start 'guix repl' on 'x200.local'
$ guix deploy ~/stow/guix/machines/x200.scm --no-offload
The following 1 machine will be deployed:
x200
guix deploy: deploying to x200...
guix deploy: error: failed to deploy x200: remote command
'/run/setuid-programs/sudo -n -- guix repl -t machine' failed with
status 254
$ ssh x200
Last login: Wed Dec 15 23:28:02 2021 from 192.168.10.15
Connection to x200.local closed.
--8<---------------cut here---------------end--------------->8---
This is obviously embarrassing in scenarios where the SSH connection is
the main way to reach to the remote machine.
Ideas?
Thank you,
Maxim
next reply other threads:[~2021-12-16 4:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-16 4:45 Maxim Cournoyer [this message]
2021-12-16 5:27 ` bug#52533: [PATCH] bug#52533: guix deploy breaks SSH access with a PAM error Maxim Cournoyer
2021-12-16 15:02 ` Ludovic Courtès
2022-01-13 12:31 ` Mathieu Othacehe
2022-01-13 12:38 ` Mathieu Othacehe
2022-01-13 15:04 ` Ludovic Courtès
2022-01-13 16:45 ` Maxim Cournoyer
2022-01-17 13:25 ` Ludovic Courtès
2022-01-17 15:19 ` Maxim Cournoyer
2022-01-17 16:13 ` Ludovic Courtès
2022-01-18 4:33 ` Maxim Cournoyer
2022-01-18 11:27 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87czlx88ez.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=52533@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.