all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Curious issue about guile-ssh, guix deploy, etc
@ 2020-11-22 22:57 Christopher Lemmer Webber
  0 siblings, 0 replies; only message in thread
From: Christopher Lemmer Webber @ 2020-11-22 22:57 UTC (permalink / raw)
  To: help-guix

I'm setting up a "guix deploy" setup across my machines.  A pretty good
experience overall!  However I encountered a weird issue.  I'm uncertain
if it prompts trying to fix anything or not so I'm sending to help-guix
instead... but at the least maybe it'll help others who are bumping into
the same issue.

After getting it to work under "cwebber", I thought I'd make an "admin"
user and figured, this is the user I'll make to ssh into all my machines
and run the system upgrade, because I plan on doing the sudoers NOPASSWD
thing specifically for that user.  Reasonable enough of a plan, except...

For whatever reason, it wouldn't work once I switched it over to the new
"admin" user!  I kept getting errors like:

  guix deploy: error: failed to deploy neodusty: Guile modules not found on remote host 'my-server-here'

Hm, what's going on?  So I log in as admin@my-server-here.  Hm, I
immediately notice one thing is different from cwebber@my-server-here...
my bash prompt looks different:

  -bash-5.0$

So unflavored!  Maybe this is because I initially set up admin as
(system? #t) or etc...  So then I found this old thread:

  https://lists.gnu.org/archive/html/guix-devel/2018-02/msg00482.html

Hm okay, so I installed guix in admin's user profile.  No luck!  Okay
I guess, next I install guile then... okay still no luck.  What the
heck?

Then I think about the bash prompt again... it couldn't be... could it?

I copy over the .bashrc and .bash_profile from cwebber's homedir and...
suddenly everything works!

This seems semi surprising but I guess... maybe it makes sense... I kind
of figured that I wouldn't need to have special files in the user's
homedir in order to find the default environment variables and etc on
guixsd.  Guess I was wrong.

 - Chris


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-22 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-22 22:57 Curious issue about guile-ssh, guix deploy, etc Christopher Lemmer Webber

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.