From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia Subject: New detailed troubleshooting section in the manual Date: Sun, 4 Nov 2018 09:04:37 +0100 Message-ID: <6d707c4a-77df-1ec6-3745-09d888fe7f9c@riseup.net> References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------8AC25D37B6DCF6DDBE2E9D3D" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gJDOp-0000u9-Qp for guix-devel@gnu.org; Sun, 04 Nov 2018 03:04:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gJDOm-0004eu-Hj for guix-devel@gnu.org; Sun, 04 Nov 2018 03:04:47 -0500 Received: from mx1.riseup.net ([198.252.153.129]:45362) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gJDOm-0004cj-5S for guix-devel@gnu.org; Sun, 04 Nov 2018 03:04:44 -0500 Received: from cotinga.riseup.net (cotinga-pn.riseup.net [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id AA8DC1A024A for ; Sun, 4 Nov 2018 01:04:40 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by cotinga.riseup.net with ESMTPSA id 56229E6BE6 for ; Sun, 4 Nov 2018 01:04:38 -0700 (PDT) In-Reply-To: Content-Language: en-US List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org This is a multi-part message in MIME format. --------------8AC25D37B6DCF6DDBE2E9D3D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi I think we need a new section in the manual detailing much of the=20 repetitious troubleshooting going on here (see example in appendix 2). I would like give it a stab. I would like it to contain all errors that has been shared with the list=20 at least twice. Help compiling such a list of those would be appreciated (see a start in=20 appendix 1) What do you think? Cheers Swedebugia *Appendix 1:* Guix pull: * substitute: guix substitute: warning: while fetching 'https://mirror.hydra.gnu.org/nix-cache-info': 504 ("Gateway Time-out= ") * warning: downgrade bla bla after binary installation before system init/reconfigure Guix packages: * After installing a package it is not found: o bash: test-not-found: command not found o try locating the bin with: sudo updatedb && locate test-not-found o If it found something the package is probably correctly installed but you have an incorrect $PATH. Guix build * Source URL not found (404 errors, etc.) o When looking for a file that Guix is trying to download but which= is no longer available at the expected URL, I normally just do a web se= arch for the file name, in this case "texlive-20170524-extra.tar.xz". = Any site will do. It needn't be a site you trust, because Guix alway= s checks the sha256 hash anyway. If you "guix download" a file with the right name but the wrong contents, it will be successfully added to the store, but with th= e wrong hash string in the file name in /gnu/store, so nothing will ever = use it. When you attempt to restart the build that failed, it will again = try to download it, because the file it needs is not in the store. The = bogus file will be deleted the next time to run "guix gc". * Hash mismatch sha256 hash mismatch for output path '/gnu/store/bjpalrv9f49d2k40p7ga0y6dwdys9w5j-bzip2-1.0.6.tar.gz' expected: ***************************************** actual: ********************************************* cannot build derivation: *************************** * Bad Read-Header-Line header: # o This is really probably a 404. (and a bug in guix for not yet handling this correctly and throwing a backtrace instead) o Find a working substitute on another substitute server or build the package yourself by specifying --fallback. guix system init * parenthesis mismatch error: o check your parenthesis + nano: guide... + emacs: install paredit and do ... * module missing o add the relevant missing module. If not certain which to add either look in the manual or search the source tree in http://git.savannah.gnu.org/cgit/guix.git/ or in a local git checkout (run git clone --depth=3D1 https://git.savannah.gnu.org/git/guix.git) with find * invalid field specifier o often points to the start of the offending s-expression. (this is most often happening with service definitions which can be hard to get right for newcomers) + Start by checking any newly changed fields - did you follow the manual correctly? + If this does not help try firing up the REPL with # $ guile # And type (use-modules bla bla # Then paste the service definitions one by one # If you need more help as on IRC or help-guix. * gnu/services.scm:703:40: In procedure service-kind: Wrong type argume= nt: o The (services) section (which is a list of service records) of your operating-system record is incorrect. o See bug #31885 https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31= 885 * compiling the world o if unable to find substitutes guix will AUTOMATICALLY fall back to building from source without asking you for a go-ahead. o The only way to avoid this is to minimize the packages specified in the config.scm (general advice as it tend to make guix init/reconfigure take a long time) and make sure you have access to substitutes. *Appendix 2* On 2018-11-03 23:51, rohit yadav wrote: > Hi, > > After installing the guix=C2=A0on my ubuntu workstation. I am finding t= he=20 > following error when trying to install guix-locales. Apparently, the=20 > https://mirror.hydra.gnu.org returns 504 . I am not sure if the server=20 > is down or something else is wrong. > > #+begin_log > substitute: guix substitute: warning: while fetching=20 > 'https://mirror.hydra.gnu.org/nix-cache-info': 504 ("Gateway Time-out") > substitute: guix substitute: warning: ignoring substitute server at=20 > '"https://mirror.hydra.gnu.org"' > #+end_log > --------------8AC25D37B6DCF6DDBE2E9D3D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

Hi

I think we need a new section in the manual detailing much of the repetitious troubleshooting going on here (see example in appendix 2).

I would like give it a stab.

I would like it to contain all errors that has been shared with the list at least twice.

Help compiling such a list of those would be appreciated (see a start in appendix 1)

What do you think?

Cheers

Swedebugia


Appendix 1:

Guix pull:

Guix packages:

  • After installing a package it is not found:
    • bash: test-not-found: command not found
    • try locating the bin with: sudo updatedb && locate test-not-found
    • If it found something the package is probably correctly installed but you have an incorrect $PATH.
Guix build
  • Source URL not found (404 errors, etc.)
    • When looking for a fil=
      e that Guix is trying to download but which is no
      longer available at the expected URL, I normally just do a web search
      for the file name, in this case "texlive-20170524-extra.tar.xz".  Any
      site will do.  It needn't be a site you trust, because Guix always
      checks the sha256 hash anyway.
      
      If you "guix download" a file with the right name but the wrong
      contents, it will be successfully added to the store, but with the wrong
      hash string in the file name in /gnu/store, so nothing will ever use it.
      When you attempt to restart the build that failed, it will again try to
      download it, because the file it needs is not in the store.  The bogus
      file will be deleted the next time to run "guix gc".=20
      
  • Hash mismatch
sha256 hash mismatch for output path '/gnu/store/bjpalrv9f49d2k40p7ga0y6dwdys9w5j-bzip2-1.0.6.tar.= gz'
expected: *****************************************
actual: *********************************************
cannot build derivation: ***************************
  • Bad Read-Header-Line header: #<eof>
    • This is really probably a 404. (and a bug in guix for not yet handling this correctly and throwing a backtrace instead)
    • Find a working substitute on another substitute server or build the package yourself by specifying --fallback.

guix system init

  • parenthesis mismatch error:
    • check your parenthesis
      • nano: guide...
      • emacs: install paredit and do ...
  • module missing
  • invalid field specifier
    • often points to the start of the offending s-expression. (this is most often happening with service definitions which can be hard to get right for newcomers)
      • Start by checking any newly changed fields - did you follow the manual correctly?
      • If this does not help try firing up the REPL with
        • $ guile
        • And type (use-modules bla bla
        • Then paste the service definitions one by one
        • If you need more help as on IRC or help-guix.
  • gnu/services.scm:703:40: In procedure service-kind: Wrong type argument:
  • compiling the world
    • if unable to find substitutes guix will AUTOMATICALLY fall back to building from source without asking you for a go-ahead.
    • The only way to avoid this is to minimize the packages specified in the config.scm (general advice as it tend to make guix init/reconfigure take a long time) and make sure you have access to substitutes.

Appendix 2

On 2018-11-03 23:51, rohit yadav wrote= :
Hi,

After installing the guix=C2=A0on my ubuntu workstation. I am findi= ng the following error when trying to install guix-locales. Apparently, the https://mirror.hydra.gnu.org returns 504 . I am not sure if the server is down or something else is wrong.

#+begin_log
substitute: guix substitute: warning: while fetching 'https://mirror.hydra.gnu.org/nix= -cache-info': 504 ("Gateway Time-out")
substitute: guix substitute: warning: ignoring substitute server at '"https://mirror.hydra.gnu.org= "'
#+end_log

--------------8AC25D37B6DCF6DDBE2E9D3D--