From mboxrd@z Thu Jan 1 00:00:00 1970 From: Efraim Flashner Subject: Re: how to fix the store after using rm to remove packages Date: Tue, 24 May 2016 12:55:27 +0300 Message-ID: <20160524095527.GC26152@debian-netbook> References: <874m9nu8db.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="32u276st3Jlj2kUU" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b593u-0001OB-Ba for help-guix@gnu.org; Tue, 24 May 2016 05:55:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b593q-0002yJ-4Z for help-guix@gnu.org; Tue, 24 May 2016 05:55:41 -0400 Received: from flashner.co.il ([178.62.234.194]:49212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b593p-0002xH-Pe for help-guix@gnu.org; Tue, 24 May 2016 05:55:38 -0400 Content-Disposition: inline In-Reply-To: <874m9nu8db.fsf@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Myles English Cc: help-guix@gnu.org --32u276st3Jlj2kUU Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 24, 2016 at 10:13:04AM +0100, Myles English wrote: >=20 > Hello, I had a problem with a python application and deleted (with rm, > instead of 'guix package -r') the packages I wanted to rebuild. >=20 > Now the store is broken. I have just started down the guix road so > don't mind starting again with a clean store. Or I could try and fix > the problem. I haven't found any information on how to start again, but > have tried fixing it and have got stuck on how to delete derivations. > Can anyone help please? >=20 > =C2=BB guix gc --verify =20 > reading the Nix store... > checking path existence... > path `/gnu/store/h242pz6byqng0sba9ka18kzyir9jwrvp-uwsgi-2.0.12.drv' disap= peared, but it still has valid referrers! > path `/gnu/store/42bgmfv99vz60rpz6mvg24d770ncy9mn-uwsgi-2.0.12.drv' disap= peared, removing from database... > guix gc: error: build failed: invalidating path `/gnu/store/42bgmfv99vz60= rpz6mvg24d770ncy9mn-uwsgi-2.0.12.drv' in database: FOREIGN KEY constraint f= ailed >=20 > =C2=BB guix gc --referrers /gnu/store/h242pz6byqng0sba9ka18kzyir9jwrvp-uw= sgi-2.0.12.drv > /gnu/store/4agl5ans64cczi952i92lv1s2hbz26jq-info-dir.drv > /gnu/store/98pfcxxbql67z4ynj6pp2fjxd42fmi5p-profile.drv > /gnu/store/dm45nh1nmzykd4fk43kp7jacqi6qm3gq-profile.drv > /gnu/store/g254pmk9a77bc3qkxylzhc722941zjqq-profile.drv > /gnu/store/gvg34dd5qd2dlkv7r0hzs852nk1jz0xh-ca-certificate-bundle.drv > /gnu/store/ijngd7ba9r2qj6ljrpg47byvx8wnkrvc-ca-certificate-bundle.drv > /gnu/store/mgx29vmfcsb6f8zwjy7q11czgc1ink61-info-dir.drv > /gnu/store/mkfjlghkn1wyh1fs27h4wysap8b70sii-info-dir.drv > /gnu/store/qv5lzfqmka7hffil9x1pm76sp6jc3bkq-profile.drv > /gnu/store/vcijdim5drgqghkcfcivpxvz206ld1vz-ca-certificate-bundle.drv > /gnu/store/w9fmqqvw4zg3c2gfpc0n3mkrwdfmv51c-info-dir.drv > /gnu/store/zd4mswmji4a4rcnc0w1ijxv7p983ahzy-ca-certificate-bundle.dr >=20 > =C2=BB guix package --list-generations=20 > Generation 7 May 17 2016 10:52:09 (current) > glibc-locales 2.22 out /gnu/store/dcqdfyal290awy1lwb6sxzs8sg0wr99h-glib= c-locales-2.22 > guix 0.9.0-1.dd21 out /gnu/store/ya2rz4fbfismzbvygrc19ihwc0yiy5xy-guix-= 0.9.0-1.dd21 > ghc 7.10.2 out /gnu/store/c0d4na71mdxkw9p42z9paj88x00ng1q4-ghc-7.10.2 >=20 > Thanks, > Myles >=20 I think everyone has made this error at some point, but there's really no way to recover from modifying the store by hand. I suppose if someone still had the packages you're missing then you could use the `guix archive` commands to recover, but I'd start over. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --32u276st3Jlj2kUU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJXRCULAAoJEPTB05F+rO6TjccP/A6QYBypgIv+MvTTMHkN5kbG J1deZzFUNUUG7Zx4THlx8uimrHCOWUAUR/4wTGnzdIlGJcoHp8hwB6aPfLT7+5Vo hNCw0gpWZHsj9UEEMADgeP/PFIQJ/BtxSyIzb6m7Pgm80FS1NaoLh9e7B8jXEfPn HYtET6GSSrhyTBfzOKvjwlfAHRCiWsVphJZxTwSPe7/lAmDO1B8tLLGRG2Pp1139 GkFSydMv8VRQu279obpp1V8PLrWWOrAH2bEfDwA1htRSvX+Tdw8+UInNCpBjFgd9 JFpwCEwAL27rIKCsMdN5toqKublEDogRIZfR5U+pmjXyaR0eexZIHp00w1x19Qbd YHjP5rPo+vZu1gmtLB7qvsd0vhOWk259L6n+u7dk6QOOmBuPA9E/hEodAlCTaAFu N0UQocrxUU1kWsCs8o0IsZ2ySfDdU1qLdsieVXkTqerL5c+e7nhuquvXjNBuelN8 6fF4LUiQqxd+0Jp4aeBfkLU1zXpPVN+dAJksBFunCeIQ0O/ZR3E8xZ61/7n81uus 2KxV/NzGmUVgAoJmDvxzBNceeSbTQppq6VEpNB+GwRmo/f/vFyXmvEjrIKlWUL2A VeDD7wljkHw4oUGuA1en8MCsw8gifn2v5uLc+XLPEYoP8Yeno8yb7qek4ZGz9++/ XXdgCeyqfDTlx26LJdFm =wh50 -----END PGP SIGNATURE----- --32u276st3Jlj2kUU--