Git Product home page Git Product logo

Comments (11)

thinkoid avatar thinkoid commented on May 29, 2024

I was installing on Sierra as well and I got the exact same error. From inside the container I ran gpg manually, here is a portion of the trace:

~ strace -s 512 gpg --keyserver hkp://pool.sks-keyservers.net --search-keys 962DDE58
...
stat("/root/.gnupg/S.dirmngr", {st_dev=makedev(0, 33), st_ino=2034, st_mode=S_IFSOCK|0700, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0, st_size=0, st_atime=2016/10/29-04:07:53.205899120, st_mtime=2016/10/29-04:07:53.205899120, st_ctime=2016/10/29-04:07:53.205899120}) = 0
connect(3, {sa_family=AF_UNIX, sun_path="/root/.gnupg/S.dirmngr"}, 24) = 0
read(3, "# ", 1002)                     = 2
read(3, "Home: /root/.gnupg", 1000)     = 18
read(3, "\n", 982)                      = 1
read(3, "# Config: [none]\nOK Dirmngr 2.1.15 at your service\n", 1002) = 51
write(3, "GETINFO version", 15)         = 15
write(3, "\n", 1)                       = 1
read(3, "D 2.1.15\n", 1002)             = 9
read(3, "OK", 1002)                     = 2
read(3, "\n", 1000)                     = 1
write(3, "KEYSERVER --clear hkp://pool.sks-keyservers.net", 47) = 47
write(3, "\n", 1)                       = 1
read(3, "OK", 1002)                     = 2
read(3, "\n", 1000)                     = 1
write(3, "KS_SEARCH -- 962DDE58", 21)   = 21
write(3, "\n", 1)                       = 1
read(3, "S PROGRESS tick ? 0 0", 1002)  = 21
read(3, "\n", 981)                      = 1
read(3, "S SOURCE http://schluesselbruecke.de:11371", 1002) = 42
read(3, "\n", 960)                      = 1
read(3, "ERR 167804954 Connection reset by peer <Dirmngr>", 1002) = 48
read(3, "\n", 954)                      = 1
write(2, "gpg: error searching keyserver: Connection reset by peer", 56gpg: error searching keyserver: Connection reset by peer) = 56
write(2, "\n", 1
)                       = 1
write(2, "gpg: keyserver search failed: Connection reset by peer", 54gpg: keyserver search failed: Connection reset by peer) = 54
write(2, "\n", 1
)                       = 1
write(3, "BYE", 3)                      = 3
write(3, "\n", 1)                       = 1
close(3)                                = 0
...

EDIT: It seems gpg talks to dirmngr Unix socket at /root/.gnupg/S.dirmngr. Here is a play-by-play of the same commands, via socat:

~ socat - UNIX-CONNECT:/root/.gnupg/S.dirmngr
# Home: /root/.gnupg
# Config: [none]
OK Dirmngr 2.1.15 at your service
GETINFO version
D 2.1.15
OK
KEYSERVER --clear hkp://pool.sks-keyservers.net
OK
KS_SEARCH -- 962DDE58
S PROGRESS tick ? 0 0
S SOURCE http://keyserver.oeg.com.au:11371
ERR 167804954 Connection reset by peer <Dirmngr>
BYE
OK closing connection

And here is the dirmngr log:

...
2016-10-29 12:36:08 dirmngr[428.0] listening on socket '/root/.gnupg/S.dirmngr'
2016-10-29 12:36:08 dirmngr[429.0] permanently loaded certificates: 0
2016-10-29 12:36:08 dirmngr[429.0]     runtime cached certificates: 0
2016-10-29 12:36:23 dirmngr[429.0] handler for fd 0 started
2016-10-29 12:36:23 dirmngr[429.0] DBG: chan_0 -> # Home: /root/.gnupg
2016-10-29 12:36:23 dirmngr[429.0] DBG: chan_0 -> # Config: [none]
2016-10-29 12:36:23 dirmngr[429.0] DBG: chan_0 -> OK Dirmngr 2.1.15 at your service
2016-10-29 12:36:23 dirmngr[429.0] connection from process 447 (0:0)
2016-10-29 12:36:30 dirmngr[429.0] DBG: chan_0 <- KEYSERVER --clear hkp://pool.sks-keyservers.net
2016-10-29 12:36:30 dirmngr[429.0] DBG: chan_0 -> OK
2016-10-29 12:36:37 dirmngr[429.0] DBG: chan_0 <- KS_SEARCH -- 962DDE58
2016-10-29 12:36:37 dirmngr[429.0] resolve_dns_addr for 'pool.sks-keyservers.net': 'schluesselbruecke.de'
2016-10-29 12:36:37 dirmngr[429.0] resolve_dns_addr for 'pool.sks-keyservers.net': 'v4361.1blu.de'
2016-10-29 12:36:38 dirmngr[429.0] resolve_dns_addr for 'pool.sks-keyservers.net': 'oteiza.siccegge.de'
2016-10-29 12:36:38 dirmngr[429.0] resolve_dns_addr for 'pool.sks-keyservers.net': 'pgp-srv.deib.polimi.it'
2016-10-29 12:36:39 dirmngr[429.0] resolve_dns_addr for 'pool.sks-keyservers.net': 'ams3.sks.heypete.com'
2016-10-29 12:36:39 dirmngr[429.0] DBG: chan_0 -> S PROGRESS tick ? 0 0
2016-10-29 12:36:39 dirmngr[429.0] resolve_dns_addr for 'pool.sks-keyservers.net': 'ks355141.kimsufi.com'
2016-10-29 12:36:39 dirmngr[429.0] resolve_dns_addr for 'pool.sks-keyservers.net': 'sks.mj2.uk'
2016-10-29 12:36:39 dirmngr[429.0] resolve_dns_addr for 'pool.sks-keyservers.net': 'ip1f1391d2.dynamic.kabel-deutschland.de'
2016-10-29 12:36:39 dirmngr[429.0] resolve_dns_addr for 'pool.sks-keyservers.net': 'b.key.ip6.li'
2016-10-29 12:36:39 dirmngr[429.0] resolve_dns_addr for 'pool.sks-keyservers.net': 'keyserver.compuguy1088.com'
2016-10-29 12:36:40 dirmngr[429.0] DBG: chan_0 -> S SOURCE http://ip1f1391d2.dynamic.kabel-deutschland.de:11371
2016-10-29 12:36:40 dirmngr[429.0] command 'KS_SEARCH' failed: Connection reset by peer
2016-10-29 12:36:40 dirmngr[429.0] DBG: chan_0 -> ERR 167804954 Connection reset by peer <Dirmngr>
2016-10-29 12:36:44 dirmngr[429.0] DBG: chan_0 <- BYE
2016-10-29 12:36:44 dirmngr[429.0] DBG: chan_0 -> OK closing connection
2016-10-29 12:36:44 dirmngr[429.0] handler for fd 0 terminated
...

from instant-archlinux-on-mac.

thinkoid avatar thinkoid commented on May 29, 2024

A quick peek at the network traffic showed the keyserver responds correctly to the query from dirmngr. Then, I tried a phony key:

➜  ~ gpg --keyserver http://keyserver.oeg.com.au:11371 --search-keys 0x962DDE58
gpg: error searching keyserver: Connection reset by peer
gpg: keyserver search failed: Connection reset by peer
➜  ~ gpg --keyserver http://keyserver.oeg.com.au:11371 --search-keys foobar
gpg: data source: http://keyserver.oeg.com.au:11371
(1) judaz <[email protected]>
    florya <[email protected]>
    foobar <[email protected]>
    ITK Admin <[email protected]>
    IT Kollektiv <[email protected]>
    ITK System <[email protected]>
    smalltown_boy <[email protected]>
      4096 bit RSA key EC08E2E5FBEA533E, created: 2016-08-30
(2) Nick Hilliard <[email protected]>
    Nick Hilliard <[email protected]>
    Nick Hilliard <[email protected]>
    Nick Hilliard <[email protected]>
      4096 bit RSA key 06F62A1D403CE92E, created: 2016-07-25, expires: 2019-07-25
(3) Matthias Dietrich <[email protected]>
      4096 bit RSA key 3758513EC5D6AE55, created: 2016-07-18, expires: 2020-07-18
(4) Jonas Isnottheonlyone (foobar) <[email protected]>
      1024 bit RSA key 575E6BBF22598E21, created: 2016-06-30, expires: 2016-07-07 (expired)
(5) foobar <[email protected]>
      4096 bit RSA key 17288A672419F3E9, created: 2016-03-17, expires: 2019-03-17
(6) Justin Frazer (CSCI274 foobar) <[email protected]>
      2048 bit RSA key D3F559990B5AD3E9, created: 2016-02-24, expires: 2016-03-09 (expired)
(7) Foo Bar <[email protected]>
      4096 bit RSA key 1C9E60B66E2433CE, created: 2016-02-22
Keys 1-7 of 213 for "foobar".  Enter number(s), N)ext, or Q)uit > Q
gpg: error searching keyserver: Operation cancelled
gpg: keyserver search failed: Operation cancelled

At the moment I don't know what to make of this or how to take this investigation further in order to make progress with my installation. It's a shame, 'cause this installer is pretty sweet.

from instant-archlinux-on-mac.

yantis avatar yantis commented on May 29, 2024

Can you try again? I updated everything to the latest Arch Linux and it worked perfect on El Captain. So I upgraded to Sierra and it gets past that stage just fine.

from instant-archlinux-on-mac.

thinkoid avatar thinkoid commented on May 29, 2024

Unfortunately for me it stops in the same place. I am gonna have to read on docker and see how the script is using it, to be able to debug this on my end. Also, one thing I noticed in the first run but forgot to mention is that it's missing a brew install docker, I had to do that manually in both attempts.

from instant-archlinux-on-mac.

yantis avatar yantis commented on May 29, 2024

It might have something to do with the manual installation of docker. The
script uses this command to install docker:

brew install docker-machine

On Oct 30, 2016 7:53 AM, "nikkoara" [email protected] wrote:

Unfortunately for me it stops in the same place. I am gonna have to read
on docker and see how the script is using it, to be able to debug this on
my end. Also, one thing I noticed in the first run but forgot to mention is
that it's missing a brew install docker, I had to do that manually in
both attempts.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEBN3z9D641JXbT6e9y8T_eXY4N4aNyHks5q5K9kgaJpZM4KiCir
.

from instant-archlinux-on-mac.

thinkoid avatar thinkoid commented on May 29, 2024

Well, brew install docker-machine did not install the docker program for me. But brew install docker did it.

from instant-archlinux-on-mac.

yantis avatar yantis commented on May 29, 2024

Let me nuke everything and try fresh and see what happens.

from instant-archlinux-on-mac.

yantis avatar yantis commented on May 29, 2024

You are correct. I have updated the scripts to install docker and fixed some other issues as well. I just tested it on a fresh install and am getting the same keyserver issue. So that is good.

from instant-archlinux-on-mac.

yantis avatar yantis commented on May 29, 2024

This should be fixed now.

from instant-archlinux-on-mac.

thinkoid avatar thinkoid commented on May 29, 2024

I bypassed the checking of the keys for all pacman repositories and was able to go through the whole installation. I don't really want to spend more time re-installing so I call it works-for-me. Still, a few little issues:

  1. intel-ucode is not installed properly, I had to remove --noconfirm and --needed from the command line to get it to install. Otherwise, it does not boot cause the intel-ucode.img it's missing from /boot. Really weird, yaourt says it's installed already but the files are missing and only after removing these options they get re-installed.
  2. Even so it does not boot into Linux, instead it tries to fsck the Linux partition but it can't find fsck. Changing the order of HOOKS does it, I use:

HOOKS="base udev fsck block autodetect modconf filesystems keyboard"

Please note that the sed invocation that tries to swap the order of block and autodetect fails because the original HOOKS string has "... autodetect modconf block ...". I manually changed it to the above.

I know that putting fsck early on is less efficient than having autodetect run first, I'll have to play with those to see what works and not.

Thanks!

from instant-archlinux-on-mac.

yantis avatar yantis commented on May 29, 2024

Thanks for the info and fixes. I made some modifications.

from instant-archlinux-on-mac.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.