all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: swedebugia <swedebugia@riseup.net>
To: 33272@debbugs.gnu.org
Subject: bug#33272: guix refresh/download backtrace error when missing nss-certs
Date: Mon, 5 Nov 2018 12:16:08 +0100	[thread overview]
Message-ID: <c3452987-de4e-fc70-ef01-c0c717141561@riseup.net> (raw)

In a qemu VM based on the image for 0.15 and pulled once I get:

sdb@komputilo ~$ git clone https://git.savannah.gnu.org/git/guix.git test
Cloning into 'test'...
fatal: unable to access 'https://git.savannah.gnu.org/git/guix.git/': 
Problem with the SSL CA cert (path? access rights?)

fails nicely in contrast to:

sdb@komputilo ~$ guix refresh artanis
Backtrace:
           13 (primitive-load "/home/sdb/.config/guix/current/bin/guix")
In guix/ui.scm:
   1578:12 12 (run-guix-command _ . _)
In ice-9/boot-9.scm:
     829:9 11 (catch srfi-34 #<procedure 28dd540 at guix/ui.scm:610:…> …)
     829:9 10 (catch system-error #<procedure 262fe10 at guix/script…> …)
In guix/scripts/refresh.scm:
    449:12  9 (_)
In srfi/srfi-1.scm:
     640:9  8 (for-each #<procedure 28e3f20 at guix/scripts/refresh.…> …)
In guix/scripts/refresh.scm:
     236:2  7 (check-for-package-update #<package artanis@0.2.1-3 gn…> …)
In guix/gnu-maintenance.scm:
    472:21  6 (latest-gnu-release _)
    457:16  5 (_)
In ice-9/boot-9.scm:
     829:9  4 (catch srfi-34 #<procedure 262fdc0 at guix/http-client…> …)
In guix/http-client.scm:
    182:20  3 (_)
     88:25  2 (http-fetch _ #:port _ #:text? _ #:buffered? _ # _ # _ # …)
In guix/build/download.scm:
     398:4  1 (open-connection-for-uri _ #:timeout _ # _)
     296:6  0 (tls-wrap #<closed: file 2641c40> _ # _)

guix/build/download.scm:296:6: In procedure tls-wrap:
X.509 certificate of 'ftp.gnu.org' could not be verified:
   signer-not-found
   invalid


I suggest we change it to fail nicely. I am willing to create a patch. 
Would somebody be willing to mentor me?

As a start:

How do I check if nss-certs is installed?

This is the first thing we should do when handling https-URIs

(define tls-wrap is a quite complicated procedure, maybe an extra (if at 
the body (of the let) will do?

something like

(if package-available? nss-certs

     true; continue

     false-> error nicely

-- 
Cheers
Swedebugia

             reply	other threads:[~2018-11-05 11:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-05 11:16 swedebugia [this message]
2018-11-05 20:26 ` bug#33272: guix refresh/download backtrace error when missing nss-certs Leo Famulari
2018-11-05 20:39   ` swedebugia
2018-11-05 20:48     ` Leo Famulari
2018-11-06 11:42       ` swedebugia
2018-11-06 17:36         ` Leo Famulari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c3452987-de4e-fc70-ef01-c0c717141561@riseup.net \
    --to=swedebugia@riseup.net \
    --cc=33272@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.