From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QdSsFRftul9pHwAA0tVLHw (envelope-from ) for ; Sun, 22 Nov 2020 22:58:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IAj5EBftul8sLAAAbx9fmQ (envelope-from ) for ; Sun, 22 Nov 2020 22:58:31 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CC34A94006E for ; Sun, 22 Nov 2020 22:58:30 +0000 (UTC) Received: from localhost ([::1]:59500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kgyJR-0002z6-OF for larch@yhetil.org; Sun, 22 Nov 2020 17:58:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgyJI-0002xs-OW for help-guix@gnu.org; Sun, 22 Nov 2020 17:58:20 -0500 Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:60874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kgyJG-0006mN-W0 for help-guix@gnu.org; Sun, 22 Nov 2020 17:58:20 -0500 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id ADCC826650 for ; Sun, 22 Nov 2020 17:57:36 -0500 (EST) User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Lemmer Webber To: help-guix@gnu.org Subject: Curious issue about guile-ssh, guix deploy, etc Date: Sun, 22 Nov 2020 17:57:08 -0500 Message-ID: <875z5x57az.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2600:3c02::f03c:91ff:feae:cb51; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: X0kGlZiAV3qZ 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