From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IKelJLniHmHsVAAAgWs5BA (envelope-from ) for ; Fri, 20 Aug 2021 01:01:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 6D1aILniHmFpBAAAB5/wlQ (envelope-from ) for ; Thu, 19 Aug 2021 23:01:13 +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 092C91B5F for ; Fri, 20 Aug 2021 01:01:13 +0200 (CEST) Received: from localhost ([::1]:51516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mGr28-00028o-1d for larch@yhetil.org; Thu, 19 Aug 2021 19:01:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGr1z-00028a-9P for help-guix@gnu.org; Thu, 19 Aug 2021 19:01:03 -0400 Received: from chimborazo.ee.ethz.ch ([129.132.2.15]:38603) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mGr1x-0005lD-JY for help-guix@gnu.org; Thu, 19 Aug 2021 19:01:03 -0400 Received: from silvi (212-51-128-14.fiber7.init7.net [212.51.128.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gabriel) by chimborazo.ee.ethz.ch (Postfix) with ESMTPSA id A00AC40208 for ; Fri, 20 Aug 2021 01:00:59 +0200 (CEST) Date: Fri, 20 Aug 2021 01:00:56 +0200 From: Gabriel Wicki To: help-guix@gnu.org Subject: Re: `guix pull` fails after fresh install Message-ID: <20210819230056.qxvniv7vmg4lgb3u@silvi> References: <20210718211348.xbrcvjzzou77m3g4@knurd> <20210819225650.c7oswgzt7uov7kmv@silvi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210819225650.c7oswgzt7uov7kmv@silvi> Received-SPF: none client-ip=129.132.2.15; envelope-from=gabriel@erlikon.ch; helo=chimborazo.ee.ethz.ch X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=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-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1629414073; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=g456IES7n+NpR4pASIBNLwrl+eMilhTTKnjp9Q/VaR0=; b=j4hh15jyNuioLzPDBr/EkWvXOwrz4YKvRR89Vrob92aoXJtCe22dn4CDhtYu8CkztzdcJa 8Gn0XZJ7nMSEpWeGc3G52tT3gax1WT8hINX7qpVbjJEfj4ZkXHek9GiD56QlsMVlLo7Id8 au/EeAjEJqIm91gFV5U89xQimk/BQskWAlI0BIZ56XjjEM6n/gAOtQJYaGtAHfIZzrFgSm EbFdgPe9lsq3upiDAvEVNvfhwPG4oZMk0k0VwF2YMpPOg+jmxMNdiBDkRfRB6EXcUliUys 8SMXztfmD+Ivszz21imBPnPNsJPMlgbUaizQuhLkOwuxzd6kSeniRa40K1g35Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1629414073; a=rsa-sha256; cv=none; b=KcgR8bfed+bnTWwNEgZcv+jx7U9ExC7nkmiXvhvf9cnwswKYuJcu8VMlJFaxDPJDoN4vCT e/IC2ihFeA9NTOTjN+12E9Q0BqjaeWPivVFTAmix/s+kvmVsolg4a+UIQsbk4iVDLhlUR4 9ByvJnxFFwPtT7bPDuGdgzeVVg0NZNp6EooryREXd/8n8e7OoyU3nOuhbaR8o84Uizx4wU LGaG9EGSgIV/Z9c6mEgY7FGGbGu58h3IS4FI8pxa8vtO+oh6wyhgoJfa8XnVKvtrrl25sh rfEZ4dlTgVvCVV7yekYY+2Hhj+tWD1f+N1r9ZiRzn2kRwAACSpQmK+KPelhZaQ== ARC-Authentication-Results: i=1; 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-Migadu-Spam-Score: -1.92 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-Migadu-Queue-Id: 092C91B5F X-Spam-Score: -1.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: KTHQL3d+UUpS Please ignore my previous message in this thread, i sent the wrong version... Here's the right one: I was able to fix it! Yay Because this mailing list is a resource for people seeking help I'll hereby take the liberty to document how I tracked the issue down and fixed it. I added a new user to find out if the problem was reproducible and whether the system was to blame. This was luckily not the case. `guix pull` worked for the freshly added user 'test'. But I found the following differences: both /var/guix/profiles/per-user/user/current-guix and /home/user/.config/guix/current were real directories, whereas for the new 'test' user at the corresponding paths there were symlinks: the former pointing to current-guix-1-link in the same directory while the latter pointed to the former. Also, there is no file called `current-guix-0-link` in /var/guix/profiles/per-user/user/, but `current-guix` in the same directory points to that. I guessed this was most probably causing the issue. If I understand correctly guix stores two kinds of of symlinks in user-profiles (which live in /var/guix/profiles/per-user/): 1. current-guix-N-link: links to guix profiles (which contain guix and guix-daemon executables and info files), 2. guix-profile-N-link: links to package profile generations (which contain all installed programs including libraries, executables and documentation) and for each of those link-types one special link (current-guix and guix-profile) pointing to the currently active one of their kind. My guix-profile links seemed to be fine, but my suspicion grew that I'd have to replace the aforementioned directories with symlinks to the right places. Only problem: I did't know which is the "right" current-guix profile to link to. But since my installation is just some days old I figured there shouldn't be too much of a difference between the different guix versions on my machine and just linked to the one which /var/guix/profiles/per-user/test/current-guix-0-link pointed to. I tested with `guix pull` which worked just fine. Pleased with the outcome I happily `guix package upgrade`d my profile.