From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iJPuNuXeoGAGqQAAgWs5BA (envelope-from ) for ; Sun, 16 May 2021 10:59:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sICSMuXeoGAocQAAB5/wlQ (envelope-from ) for ; Sun, 16 May 2021 08:59:17 +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 07D7EEE47 for ; Sun, 16 May 2021 10:59:17 +0200 (CEST) Received: from localhost ([::1]:38552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liCcF-0004ch-Ot for larch@yhetil.org; Sun, 16 May 2021 04:59:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liCc2-0004cY-Oa for bug-guix@gnu.org; Sun, 16 May 2021 04:59:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38152) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liCc2-0002Qv-3E for bug-guix@gnu.org; Sun, 16 May 2021 04:59:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1liCc2-0002O5-2Z for bug-guix@gnu.org; Sun, 16 May 2021 04:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48462: Corrupt, un-repairable store after power cut during upgrade Resent-From: elaexuotee@wilsonb.com Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 16 May 2021 08:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48462 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48462@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16211555309158 (code B ref -1); Sun, 16 May 2021 08:59:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 May 2021 08:58:50 +0000 Received: from localhost ([127.0.0.1]:49698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liCbq-0002Nd-6K for submit@debbugs.gnu.org; Sun, 16 May 2021 04:58:50 -0400 Received: from lists.gnu.org ([209.51.188.17]:40160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liCbo-0002NW-BC for submit@debbugs.gnu.org; Sun, 16 May 2021 04:58:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liCbo-0004aD-2I for bug-guix@gnu.org; Sun, 16 May 2021 04:58:48 -0400 Received: from m42-5.mailgun.net ([69.72.42.5]:40279) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liCbl-0002Gv-Rx for bug-guix@gnu.org; Sun, 16 May 2021 04:58:47 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1621155522; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-Id: Subject: From: To: Date: Sender; bh=D5tGMTdC20H5SqzcDajopFKoQfz6TR/jQGLaZdRQmzo=; b=dG/AWD1wkUxGmez0wasDN/HAgiVdu7HTxZ5c5MXf72GEcPrTspzPV8ckbTmMjtHJz1un1LLo 7TVdRak9mCxhCiZN2lhzEpNQaopE4vYtWj9rIbSj8b2ee34GU+od2y/sUwFfT7guifQWw6q/ jw4JIcsprdMS0DAJLCqe576BPgykV+weFmHU+c21aubxub7oBQZSdAwXkhXsobFlK0j/2RWc Y5X5vrPs/R+ZfoIaR+7yKWup+L6GpOWbaLxZ5yYEPblPDlq/b4SjZEvnUyJpjEyV6g1ou0K5 E6NZC4VpYqHyR8DVpAZ1g5z79Kmr9lSRGD2iy4Bg54xbhlo4E7ht2w== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyJkMDM0YyIsICJidWctZ3VpeEBnbnUub3JnIiwgIjA4NTQ3YSJd Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 60a0deb7ac38d679b3a300e9 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Sun, 16 May 2021 08:58:31 GMT Received: from localhost (x111210.dynamic.ppp.asahi-net.or.jp [122.249.111.210]) by wilsonb.com (Postfix) with ESMTPSA id 65622A2F81 for ; Sun, 16 May 2021 08:58:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1621155508; bh=D5tGMTdC20H5SqzcDajopFKoQfz6TR/jQGLaZdRQmzo=; h=Date:To:From:Subject:From; b=SoQiv0sc/L9X5ImWvgB3QiAYtsWJ2Q7pKW3U+GIZXeAuzsAWURJWHf3xKtkkgi9rX dsFnXjOIIZtsK7IlabtIzuxVBF4Gjy3xh/rO19DLKDG/4wudZJdvftIMAfN81NZUC7 Q2dmskdE+UbZx1MpkUactMQ2GouAmX3Z1U1V9yIfEfHLwBkK1fv2/7UXrgy0S1d1kN W5aGa4D0moCgiwqfZ4XEhdnhiHtN5JyBtlKmeD6RqQjDuaI5yb1jXc3DUPdkhRXmpR 6Ybd5SRWl7BYLt/Q3oyLntvGfUu4MDbc960fCxxYW+XWNztRCqJW+O92gXYTYXbDX/ iFBqdJ6/XDif7wE57oihlYIwU2KQWqlQmVQsRsAaCDcjMBcloVe9E5EHruQCnRjRT2 A9qSqEkh3yGu6UdyvNYnL+WfNQ5GUi0Bo1nokjhRpbw2uKATKSKjUrjBIQ78jeQMw9 PATjobhW72j5DwZDb5SrehrhoISBlbgv3CKGPkrBetza3pVc54hiMFAGRVf+4iGpi5 L8qLmgj1MhAMEbNn0VoVq7QEanbH5wZ3UEtUeCfd1OJ4XSuBL5MSmrFnvkKjRUMxSr qVndIk6fExyPn/cd8groY8+WRkPgJBC3JGc6k2JPpvv/H60x7c/kOOz6PNr6iLAQKS zac/chuVXitkkpRaf8L/4Q64= Date: Sun, 16 May 2021 17:59:57 +0900 Message-Id: <3OE5JSDGIIX2D.3SOQ0QIKI7XZR@wilsonb.com> User-Agent: mblaze/1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=69.72.42.5; envelope-from=bounce+7434c3.08547a-bug-guix=gnu.org@mg.wilsonb.com; helo=m42-5.mailgun.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" Reply-to: elaexuotee@wilsonb.com From: elaexuotee--- via Bug reports for GNU Guix X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621155557; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=D5tGMTdC20H5SqzcDajopFKoQfz6TR/jQGLaZdRQmzo=; b=MhVhyZrmRnJLjE0ZXJ9Jv+3s9K04LRWg15UVEfxav2TtX3I5XbXGsj1XQ/Vn6o/sUVNqBC 8ueskxeWFG6t9MgdauU4BNBQULRHT7gGGyLL1Zt8uCSrhOwSstCssvJmjNRVrZrMtyIZOO sfunwAvYOGcyUUtOuZo24gXEFPmaxl/3olgI6yVGx4/6ujME1U+TI5SOeY9lPHoQWKJ48f GbwiS/czmLRxWrBnGDt4o+ET+WUAHefcBgbHe4acim9x1DKETn/WeMfzgBhgJC7fURH5jz +q+tHT6scxGVrZVNqCysuHNIdaTsv4XlUsMFHcwUhpJmhojEV/6agK4xIsWT1A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621155557; a=rsa-sha256; cv=none; b=KTAYCxKo/L2wJbkass2aKQWNKG7Kp6Gd8l0QarkHQDDXxPnuDW+jIZDiRBGtDDawg/VKhT eOV9Y+5J/3dC2NCL7j0vhTjnWGzzX5TCjj0bAWme5qfCtzJjY+aLo+YrCbBOT+s2k8XY1P iDW2AHtRVpafdfBbHtajcOFjmopHXEHoNRDo7cR9c/txLyKnHJE2PRTP1ciRFvROjpIBWT AHTgYDuZqi49giM916n9VYjwxMQcmSUOr8LTcMhwpDMYyIwMFc65/Ijqgg+2V5GfzFlNeD 5u9GBzTJY1O3wZUjMcUNQKn50nKYHljKE0ezt47TXOsnbi3IeSV1ijyBr5OWug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mg.wilsonb.com header.s=krs header.b="dG/AWD1w"; dkim=fail ("headers rsa verify failed") header.d=wilsonb.com header.s=201703 header.b=SoQiv0sc; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.45 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mg.wilsonb.com header.s=krs header.b="dG/AWD1w"; dkim=fail ("headers rsa verify failed") header.d=wilsonb.com header.s=201703 header.b=SoQiv0sc; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 07D7EEE47 X-Spam-Score: -1.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: ciC754SFp4yA Hey Guix, Recently, during in the middle of a `guix package -m .guix/manifest.scm`, m= y machine had power failure. After rebotting, I simply reran the above and it completed without error. However, it appears that some of files in the store items are corrupt: $ vim vim: error while loading shared libraries: /gnu/store/6z2g9ybl3fkx6bdfg= 226mz8rpc0g53jx-gtk+-2.24.32/lib/libgdk-x11-2.0.so.0: file too short $ file -L /gnu/store/6z2g9ybl3fkx6bdfg226mz8rpc0g53jx-gtk+-2.24.32/lib/= libgdk-x11-2.0.so.0 /gnu/store/6z2g9ybl3fkx6bdfg226mz8rpc0g53jx-gtk+-2.24.32/lib/libgdk-x11= -2.0.so.0: empty As an extra bit of annoyance, the handy verify and repair tools fail to see= a problem: $ command -v vim | xargs readlink -f /gnu/store/h9q2fik60axj9sai5b66cjk2sfl37ij1-vim-full-8.2.2689/bin/vim $ sudo guix build --repair vim-full /gnu/store/h9q2fik60axj9sai5b66cjk2sfl37ij1-vim-full-8.2.2689 $ sudo guix build --repair --no-grafts vim-full path `/gnu/store/73p5rzka1cb9dx9fy059lmkf1jg6sv95-gtk+-2.24.32' is corr= upted or missing! found corrupted or missing path `/gnu/store/73p5rzka1cb9dx9fy059lmkf1jg= 6sv95-gtk+-2.24.32' in the output closure of `/gnu/store/qyp10sss1ascp70ysh= s87zdzr1lg71f8-vim-full-8.2.2689.drv' substituting /gnu/store/73p5rzka1cb9dx9fy059lmkf1jg6sv95-gtk+-2.24.32..= =2E downloading from https://mirror.brielmaier.net/nar/lzip/73p5rzka1cb9dx9= fy059lmkf1jg6sv95-gtk%2B-2.24.32 ... gtk%2B-2.24.32 6.4MiB 152KiB/s 00:43 [##################] 10= 0.0% /gnu/store/d21m63am0pxw77883h0y1jmy9iiazvvx-vim-full-8.2.2689 $ sudo guix gc --verify=3Drepair,contents ... $ vim vim: error while loading shared libraries: /gnu/store/6z2g9ybl3fkx6bdfg= 226mz8rpc0g53jx-gtk+-2.24.32/lib/libgdk-x11-2.0.so.0: file too short Even going in with a crude hammer doesn't fix things: $ sudo mount -o rw,remount /gnu/store $ sudo mv /gnu/store/6z2g9ybl3fkx6bdfg226mz8rpc0g53jx-gtk+-2.24.32 . $ sudo guix build --repair vim-full path `/gnu/store/6z2g9ybl3fkx6bdfg226mz8rpc0g53jx-gtk+-2.24.32' is corr= upted or missing! found corrupted or missing path `/gnu/store/6z2g9ybl3fkx6bdfg226mz8rpc0= g53jx-gtk+-2.24.32' in the output closure of `/gnu/store/z2q3zna20cn32if3v2= 71x4xavd70ml5z-vim-full-8.2.2689.drv' path `/gnu/store/73p5rzka1cb9dx9fy059lmkf1jg6sv95-gtk+-2.24.32' is corr= upted or missing! substituting /gnu/store/73p5rzka1cb9dx9fy059lmkf1jg6sv95-gtk+-2.24.32..= =2E downloading from https://mirror.brielmaier.net/nar/lzip/73p5rzka1cb9dx9= fy059lmkf1jg6sv95-gtk%2B-2.24.32 ... gtk%2B-2.24.32 6.4MiB 134KiB/s 00:49 [##################] 10= 0.0% applying 17 grafts for /gnu/store/lm9xqz82q4cwlqs79i0pq77z6cfsx3rw-gtk+= -2.24.32.drv ... grafting '/gnu/store/73p5rzka1cb9dx9fy059lmkf1jg6sv95-gtk+-2.24.32' -> = '/gnu/store/6z2g9ybl3fkx6bdfg226mz8rpc0g53jx-gtk+-2.24.32'... successfully built /gnu/store/lm9xqz82q4cwlqs79i0pq77z6cfsx3rw-gtk+-2.2= 4.32.drv gnu/store/h9q2fik60axj9sai5b66cjk2sfl37ij1-vim-full-8.2.2689 $ vim vim: error while loading shared libraries: /gnu/store/6z2g9ybl3fkx6bdfg= 226mz8rpc0g53jx-gtk+-2.24.32/lib/libgdk-x11-2.0.so.0: file too short It seems like the above graft is going badly: $ file -L /gnu/store/73p5rzka1cb9dx9fy059lmkf1jg6sv95-gtk+-2.24.32/lib/= libgtk-x11-2.0.so.0 /gnu/store/73p5rzka1cb9dx9fy059lmkf1jg6sv95-gtk+-2.24.32/lib/libgtk-x11= -2.0.so.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), statical= ly linked, not stripped $ file -L /gnu/store/6z2g9ybl3fkx6bdfg226mz8rpc0g53jx-gtk+-2.24.32/lib/= libgdk-x11-2.0.so.0 /gnu/store/6z2g9ybl3fkx6bdfg226mz8rpc0g53jx-gtk+-2.24.32/lib/libgdk-x11= -2.0.so.0: empty Some questions: 1) Am I just missing something obvious? 2) How could grafting end up producing empty files in the output? 3) Is the store supposed to be robust against power failures?