From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: Changing HTTP proxy settings in GuixSD Date: Thu, 09 Nov 2017 21:28:39 -0800 Message-ID: <87mv3upurc.fsf@gmail.com> References: <325f5d06-4bb1-294d-2768-07dde6d76090@fastmail.net> <87o9otbexn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eD1ry-00058r-SQ for guix-devel@gnu.org; Fri, 10 Nov 2017 00:28:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eD1rv-0005vu-O3 for guix-devel@gnu.org; Fri, 10 Nov 2017 00:28:46 -0500 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: Konrad Hinsen Cc: guix-devel --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Konrad Hinsen writes: >> A quick workaround would be to do something along these lines: >> >> # herd stop guix-daemon >> # http_proxy=3D=E2=80=A6 guix-daemon --build-users-group=3Dguixbuild >> # guix system reconfigure config.scm >> >> where config.scm has the relevant proxy configuration of in >> =E2=80=98guix-configuration=E2=80=99. >> >> Would that work for you? > > No. Downloads fail with messages of the type > > ERROR: Wrong type to apply: "mirror.hydra.gnu.org" > > This looks like the proxy returns something that guix-daemon doesn't > expect. Unfortunately, this may well be the fault of my institutions > proxy, which has caused lots of people lots of trouble of various > kinds. That error looks suspicious. Perhaps you already know this, but it probably means that the string "mirror.hydra.gnu.org" wound up being used where a procedure should probably have been used instead. For example, in your Guile REPL, you can reproduce this kind of error like this: scheme@(guile-user)> ("this is not a procedure") ERROR: ERROR: Wrong type to apply: "this is not a procedure" The workaround that Ludo described, in which you temporarily stop the guix-daemon, and then start it in an environment where http_proxy is set appropriately, should work. If it isn't, then can I ask to see the commands and conigs you're using which fail? =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAloFOQcACgkQ3UCaFdgi Rp20Gw//TfRjrzOCcnLyvO4g7epVwQv2vaTNWJLf25sGtteiKiGA7YovaVR/qYQ7 sF+ksObd6QKe3NbchT7kPCf5yGvVk//mE9vQCgwv7B1th3L00K0jYH62yqmmxPUp rwClqC270Nw2a5bimtBoNyi+vWiauNEozcpHOi214j8I7s1gZ6Z8p1P3hgf81UXa 8xfLRFzeJ00Dcb23nVDTULqcSrX5hjnslRBCDcTGFSOQl9YZCZHciTM26Kk3l3Sk Gwnq+KnQHj20C/oNTw3arli7zmxpBcDcMOo3nSjRIwRuq0hT6ZEhn92WhirwWOtY N5Y4OVHALj9anGt75mVc7/8F0GQ0RzNm7NdosT3nymEGkNGuetk448QlFiLbJvi8 UQsSEOrXIsVILTq2efzPWQa8Qy2AXLf+MonWahMzOdbBeGvMRyg+uhN6PY2zFwyT OqwwcmhQFFDAat7lw35k3c/B4esqrh1fmy4FXoUsJHZpRm14Ga2V4SQAFMFnoVP3 5jd9m3o1V8pjkejLz0C24c1YKzJUVWEfM+MKoUJnwn/BOUQVWPJ9oIYNjeYikHQf tI0Vju8oNa6NjwUkJeuWzsdcZJ3nhPg750HVN4vlYBFLISFb6apGHZPnQ4qAw+I6 /PuHTISt3DW79TZx+iXNDPrZVbUdC3ypQ6xN12oklRffFo6oUgk= =8y7X -----END PGP SIGNATURE----- --=-=-=--