From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Hinsen Subject: Re: Changing HTTP proxy settings in GuixSD Date: Fri, 10 Nov 2017 10:05:59 +0100 Message-ID: References: <325f5d06-4bb1-294d-2768-07dde6d76090@fastmail.net> <87o9otbexn.fsf@gnu.org> <87mv3upurc.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eD5GJ-0005jR-GA for guix-devel@gnu.org; Fri, 10 Nov 2017 04:06:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eD5GG-0005Jo-BH for guix-devel@gnu.org; Fri, 10 Nov 2017 04:06:07 -0500 In-Reply-To: <87mv3upurc.fsf@gmail.com> 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: Chris Marusich Cc: guix-devel --=-=-= Content-Type: text/plain Hi Chris, > 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" Suspicious indeed... > 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. That's exactly what I did. > If it isn't, then can I ask to see the commands and conigs you're > using which fail? Here are the commands I typed: sudo -s herd stop guix-daemon http_proxy=http://proxy.synchrotron-soleil.fr:8080/ guix-daemon --build-users-group=guixbuild guix system reconfigure /etc/config.scm The config I used in this first test (attached) is exactly the same one I am currently running, with no reference to the proxy at all. I was planning to add that in a second step. Konrad. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=config.scm Content-Transfer-Encoding: base64 OzsgVGhpcyBpcyBhbiBvcGVyYXRpbmcgc3lzdGVtIGNvbmZpZ3VyYXRpb24gdGVtcGxhdGUKOzsg Zm9yIGEgImJhcmUgYm9uZXMiIHNldHVwLCB3aXRoIG5vIFgxMSBkaXNwbGF5IHNlcnZlci4KCih1 c2UtbW9kdWxlcyAoZ251KSkKKHVzZS1zZXJ2aWNlLW1vZHVsZXMgbmV0d29ya2luZyBzc2ggbmZz KQoodXNlLXBhY2thZ2UtbW9kdWxlcyBhZG1pbiBuZnMpCgoob3BlcmF0aW5nLXN5c3RlbQogICho b3N0LW5hbWUgImd1aXhzZCIpCiAgKHRpbWV6b25lICJFdXJvcGUvUGFyaXMiKQogIChsb2NhbGUg ImVuX1VTLnV0ZjgiKQoKICA7OyBBc3N1bWluZyAvZGV2L3NkWCBpcyB0aGUgdGFyZ2V0IGhhcmQg ZGlzaywgYW5kICJteS1yb290IiBpcwogIDs7IHRoZSBsYWJlbCBvZiB0aGUgdGFyZ2V0IHJvb3Qg ZmlsZSBzeXN0ZW0uCiAgKGJvb3Rsb2FkZXIgKGdydWItY29uZmlndXJhdGlvbiAodGFyZ2V0ICIv ZGV2L3NkYSIpKSkKICAoZmlsZS1zeXN0ZW1zIChjb25zKiAoZmlsZS1zeXN0ZW0KICAgICAgICAg ICAgICAgICAgICAgICAgIChkZXZpY2UgInJvb3QiKQogICAgICAgICAgICAgICAgICAgICAgICAg KHRpdGxlICdsYWJlbCkKICAgICAgICAgICAgICAgICAgICAgICAgIChtb3VudC1wb2ludCAiLyIp CiAgICAgICAgICAgICAgICAgICAgICAgICAodHlwZSAiZXh0NCIpKQogICAgICAgICAgICAgICAg ICAgICAgICViYXNlLWZpbGUtc3lzdGVtcykpCgogIDs7IFRoaXMgaXMgd2hlcmUgdXNlciBhY2Nv dW50cyBhcmUgc3BlY2lmaWVkLiAgVGhlICJyb290IgogIDs7IGFjY291bnQgaXMgaW1wbGljaXQs IGFuZCBpcyBpbml0aWFsbHkgY3JlYXRlZCB3aXRoIHRoZQogIDs7IGVtcHR5IHBhc3N3b3JkLgog ICh1c2VycyAoY29ucyAodXNlci1hY2NvdW50CiAgICAgICAgICAgICAgICAobmFtZSAiaGluc2Vu IikKICAgICAgICAgICAgICAgIChjb21tZW50ICJvbmx5IHVzZXIiKQogICAgICAgICAgICAgICAg KGdyb3VwICJ1c2VycyIpCgogICAgICAgICAgICAgICAgOzsgQWRkaW5nIHRoZSBhY2NvdW50IHRv IHRoZSAid2hlZWwiIGdyb3VwCiAgICAgICAgICAgICAgICA7OyBtYWtlcyBpdCBhIHN1ZG9lci4g IEFkZGluZyBpdCB0byAiYXVkaW8iCiAgICAgICAgICAgICAgICA7OyBhbmQgInZpZGVvIiBhbGxv d3MgdGhlIHVzZXIgdG8gcGxheSBzb3VuZAogICAgICAgICAgICAgICAgOzsgYW5kIGFjY2VzcyB0 aGUgd2ViY2FtLgogICAgICAgICAgICAgICAgKHN1cHBsZW1lbnRhcnktZ3JvdXBzICcoIndoZWVs IgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgImF1ZGlvIiAidmlkZW8i KSkKICAgICAgICAgICAgICAgIChob21lLWRpcmVjdG9yeSAiL2hvbWUvaGluc2VuIikpCiAgICAg ICAgICAgICAgICViYXNlLXVzZXItYWNjb3VudHMpKQoKICA7OyBHbG9iYWxseS1pbnN0YWxsZWQg cGFja2FnZXMuCiAgKHBhY2thZ2VzIChjb25zKiB0Y3BkdW1wIG5mcy11dGlscyAlYmFzZS1wYWNr YWdlcykpCgogIDs7IEFkZCBzZXJ2aWNlcyB0byB0aGUgYmFzZWxpbmU6IGEgREhDUCBjbGllbnQg YW5kCiAgOzsgYW4gU1NIIHNlcnZlciwgcGx1cyBhIHN0YXRpY2FsbHkgY29uZmlndXJlZCBuZXR3 b3JrIGFkYXB0ZXIuCiAgKHNlcnZpY2VzIChjb25zKiAoc2VydmljZSBvcGVuc3NoLXNlcnZpY2Ut dHlwZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgKG9wZW5zc2gtY29uZmlndXJhdGlvbgog ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAocG9ydC1udW1iZXIgMjIpKSkKICAgICAgICAg ICAgICAgICAgIChkaGNwLWNsaWVudC1zZXJ2aWNlKQogICAgICAgICAgICAgICAgICAgKHNlcnZp Y2UgcnBjYmluZC1zZXJ2aWNlLXR5cGUKICAgICAgICAgICAgICAgICAgICAgICAgICAgIChycGNi aW5kLWNvbmZpZ3VyYXRpb24pKQogICAgICAgICAgICAgICAgICAgJWJhc2Utc2VydmljZXMpKSkK --=-=-=--