|
| 1 | +# Troubleshooting |
| 2 | + |
| 3 | +* [gpg: keyserver receive failed: End of file](#gpg-keyserver-receive-failed-end-of-file) |
| 4 | + |
| 5 | +# gpg: keyserver receive failed: End of file |
| 6 | + |
| 7 | +There have been cases where the `install_s6.sh` script fails with: |
| 8 | + |
| 9 | +``` |
| 10 | +#13 11.49 gpg: directory '/root/.gnupg' created |
| 11 | +#13 11.50 gpg: keybox '/root/.gnupg/pubring.kbx' created |
| 12 | +#13 15.49 gpg: keyserver receive failed: End of file |
| 13 | +#13 ERROR: process "/bin/sh -c ln -s /scripts/clean_alpine.sh /clean.sh |
| 14 | +[...snip...] |
| 15 | +``` |
| 16 | + |
| 17 | +If you look at the `install_s6.sh` script, it fails on this line: |
| 18 | + |
| 19 | +``` |
| 20 | +gpg --keyserver pgp.surfnet.nl --recv-keys $PUBLIC_KEY |
| 21 | +``` |
| 22 | + |
| 23 | +If you try to manually run this command, it fails: |
| 24 | + |
| 25 | +``` |
| 26 | +gpg --keyserver pgp.surfnet.nl --recv-keys 6101B2783B2FD161 |
| 27 | +gpg: directory '/root/.gnupg' created |
| 28 | +gpg: keybox '/root/.gnupg/pubring.kbx' created |
| 29 | +gpg: keyserver receive failed: End of file |
| 30 | +root@dd54b59b57c5:/# echo $? |
| 31 | +2 |
| 32 | +``` |
| 33 | + |
| 34 | +As a workaround (for now), I found [#352] and in the comments, I found a |
| 35 | +solution from `mikenye` where he [embeds the actual public key]. |
| 36 | + |
| 37 | +So if you're building locally and are runing into this failure try: |
| 38 | + |
| 39 | +1. Copy the public key from `mikenye`'s PR and save it as `s6-gpg-pub-key` |
| 40 | +1. Update the Dockerfile instructions to copy the file to `/tmp` |
| 41 | + i.e. `COPY s6-gpg-pub-key /tmp/s6-gpg-pub-key` |
| 42 | +1. Update `install_s6.sh`. Instead of: |
| 43 | + ``` |
| 44 | + gpg --keyserver pgp.surfnet.nl --recv-keys 6101B2783B2FD161 |
| 45 | + ``` |
| 46 | + |
| 47 | + You do: |
| 48 | + ``` |
| 49 | + gpg --import /tmp/s6-gpg-pub-key |
| 50 | + rm /tmp/s6-gpg-pub-key |
| 51 | + ``` |
| 52 | +1. The rest of the commands should be the same |
| 53 | + |
| 54 | +In more recent versions of s6-overlay i.e. `3.x`, it looks like their |
| 55 | +[verification steps] are different. So this could be a temporary issue |
| 56 | +until we upgrade to the latest s6-overlay version. |
| 57 | + |
| 58 | +If we're going to stay on this version for a while, we might just end up |
| 59 | +baking in the public key |
| 60 | + |
| 61 | +[#352]: https://github.com/just-containers/s6-overlay/issues/352 |
| 62 | +[embeds the actual public key]: https://github.com/mikenye/deploy-s6-overlay/pull/10 |
| 63 | +[verification steps]: https://github.com/just-containers/s6-overlay/#verifying-downloads |
0 commit comments