Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building of this image no longer works #184

Closed
petrosagg opened this issue Mar 13, 2015 · 16 comments · Fixed by #185
Closed

Building of this image no longer works #184

petrosagg opened this issue Mar 13, 2015 · 16 comments · Fixed by #185

Comments

@petrosagg
Copy link

Doing a clean docker build of this repo procuces the following error when installing Mojolicious@5.80

Step 5 : RUN cpanm Mojolicious@5.80
 ---> Running in 6ce3ce2121e7
cpanm (App::cpanminus) 1.7027 on perl 5.020002 built for x86_64-linux
Work directory is /root/.cpanm/work/1426267430.9
You have make /usr/bin/make
You have /usr/bin/wget
You have /bin/tar: tar (GNU tar) 1.27.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
Searching Mojolicious (== 5.80) on metacpan ...
converted 'http://api.metacpan.org/v0/file/_search?source=%7B%22fields%22%3A%5B%22date%22%2C%22release%22%2C%22author%22%2C%22module%22%2C%22status%22%5D%2C%22query%22%3A%7B%22filtered%22%3A%7B%22query%22%3A%7B%22nested%22%3A%7B%22path%22%3A%22module%22%2C%22score_mode%22%3A%22max%22%2C%22query%22%3A%7B%22custom_score%22%3A%7B%22metacpan_script%22%3A%22score_version_numified%22%2C%22query%22%3A%7B%22constant_score%22%3A%7B%22filter%22%3A%7B%22and%22%3A%5B%7B%22term%22%3A%7B%22module.authorized%22%3Atrue%7D%7D%2C%7B%22term%22%3A%7B%22module.indexed%22%3Atrue%7D%7D%2C%7B%22term%22%3A%7B%22module.name%22%3A%22Mojolicious%22%7D%7D%2C%7B%22term%22%3A%7B%22module.version%22%3A%225.80%22%7D%7D%5D%7D%7D%7D%7D%7D%7D%7D%7D%7D%7D' (ANSI_X3.4-1968) -> 'http://api.metacpan.org/v0/file/_search?source={"fields":["date","release","author","module","status"],"query":{"filtered":{"query":{"nested":{"path":"module","score_mode":"max","query":{"custom_score":{"metacpan_script":"score_version_numified","query":{"constant_score":{"filter":{"and":[{"term":{"module.authorized":true}},{"term":{"module.indexed":true}},{"term":{"module.name":"Mojolicious"}},{"term":{"module.version":"5.80"}}]}}}}}}}}}}' (UTF-8)
--2015-03-13 17:23:50--  http://api.metacpan.org/v0/file/_search?source=%7B%22fields%22:[%22date%22,%22release%22,%22author%22,%22module%22,%22status%22],%22query%22:%7B%22filtered%22:%7B%22query%22:%7B%22nested%22:%7B%22path%22:%22module%22,%22score_mode%22:%22max%22,%22query%22:%7B%22custom_score%22:%7B%22metacpan_script%22:%22score_version_numified%22,%22query%22:%7B%22constant_score%22:%7B%22filter%22:%7B%22and%22:[%7B%22term%22:%7B%22module.authorized%22:true%7D%7D,%7B%22term%22:%7B%22module.indexed%22:true%7D%7D,%7B%22term%22:%7B%22module.name%22:%22Mojolicious%22%7D%7D,%7B%22term%22:%7B%22module.version%22:%225.80%22%7D%7D]%7D%7D%7D%7D%7D%7D%7D%7D%7D%7D
Resolving api.metacpan.org (api.metacpan.org)... 5.153.225.19
Connecting to api.metacpan.org (api.metacpan.org)|5.153.225.19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 970 [application/json]
Saving to: 'STDOUT'

     0K                                                       100% 35.4M=0s

2015-03-13 17:23:50 (35.4 MB/s) - written to stdout [970/970]

converted 'http://api.metacpan.org/v0/release/_search?source=%7B%22fields%22%3A%5B%22download_url%22%2C%22stat%22%2C%22status%22%5D%2C%22filter%22%3A%7B%22and%22%3A%5B%7B%22term%22%3A%7B%22release.name%22%3A%22Mojolicious-5.80%22%7D%7D%2C%7B%22term%22%3A%7B%22release.author%22%3A%22SRI%22%7D%7D%5D%7D%7D' (ANSI_X3.4-1968) -> 'http://api.metacpan.org/v0/release/_search?source={"fields":["download_url","stat","status"],"filter":{"and":[{"term":{"release.name":"Mojolicious-5.80"}},{"term":{"release.author":"SRI"}}]}}' (UTF-8)
--2015-03-13 17:23:50--  http://api.metacpan.org/v0/release/_search?source=%7B%22fields%22:[%22download_url%22,%22stat%22,%22status%22],%22filter%22:%7B%22and%22:[%7B%22term%22:%7B%22release.name%22:%22Mojolicious-5.80%22%7D%7D,%7B%22term%22:%7B%22release.author%22:%22SRI%22%7D%7D]%7D%7D
Resolving api.metacpan.org (api.metacpan.org)... 5.153.225.19
Connecting to api.metacpan.org (api.metacpan.org)|5.153.225.19|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 776 [application/json]
Saving to: 'STDOUT'

     0K                                                       100% 28.5M=0s

2015-03-13 17:23:50 (28.5 MB/s) - written to stdout [776/776]

--> Working on Mojolicious
converted 'http://backpan.perl.org/authors/id/S/SR/SRI/Mojolicious-5.80.tar.gz' (ANSI_X3.4-1968) -> 'http://backpan.perl.org/authors/id/S/SR/SRI/Mojolicious-5.80.tar.gz' (UTF-8)
--2015-03-13 17:23:50--  http://backpan.perl.org/authors/id/S/SR/SRI/Mojolicious-5.80.tar.gz
Resolving backpan.perl.org (backpan.perl.org)... 207.171.7.91, 2607:f238:3::91:1
Connecting to backpan.perl.org (backpan.perl.org)|207.171.7.91|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 638030 (623K) [application/x-gzip]
Saving to: 'Mojolicious-5.80.tar.gz'

     0K .......... .......... .......... .......... ..........  8%  138K 4s
    50K .......... .......... .......... .......... .......... 16%  288K 3s
   100K .......... .......... .......... .......... .......... 24% 1.68M 2s
   150K .......... .......... .......... .......... .......... 32%  322K 2s
   200K .......... .......... .......... .......... .......... 40% 1.76M 1s
   250K .......... .......... .......... .......... .......... 48% 1.57M 1s
   300K .......... .......... .......... .......... .......... 56%  412K 1s
   350K .......... .......... .......... .......... .......... 64% 1.67M 1s
   400K .......... .......... .......... .......... .......... 72% 1.75M 0s
   450K .......... .......... .......... .......... .......... 80% 1.87M 0s
   500K .......... .......... .......... .......... .......... 88% 1.69M 0s
   550K .......... .......... .......... .......... .......... 96%  761K 0s
   600K .......... .......... ...                             100% 1.77M=1.1s

2015-03-13 17:23:52 (572 KB/s) - 'Mojolicious-5.80.tar.gz' saved [638030/638030]

Fetching http://backpan.perl.org/authors/id/S/SR/SRI/Mojolicious-5.80.tar.gz ... OK
converted 'http://backpan.perl.org/authors/id/S/SR/SRI/CHECKSUMS' (ANSI_X3.4-1968) -> 'http://backpan.perl.org/authors/id/S/SR/SRI/CHECKSUMS' (UTF-8)
--2015-03-13 17:23:52--  http://backpan.perl.org/authors/id/S/SR/SRI/CHECKSUMS
Resolving backpan.perl.org (backpan.perl.org)... 207.171.7.91, 2607:f238:3::91:1
Connecting to backpan.perl.org (backpan.perl.org)|207.171.7.91|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-03-13 17:23:52 ERROR 404: Not Found.

Verifying the signature of CHECKSUMS
Fetching http://backpan.perl.org/authors/id/S/SR/SRI/CHECKSUMS ... OK
gpg: verify signatures failed: eof
! Verifying CHECKSUMS signature failed: 
! Failed to fetch distribution Mojolicious-5.80
INFO[0534] The command [/bin/sh -c cpanm Mojolicious@5.80] returned a non-zero code: 1 
@md5
Copy link
Contributor

md5 commented Mar 13, 2015

The place to report issues with the perl image is here: https://github.com/perl/docker-perl/issues

@petrosagg
Copy link
Author

I'm not sure this is an issue with the base image but I'll open an issue there too.

But it is an issue for this repo as well, as a workaround can be put in place while it is fixed upstream. Any pointers on how to build docs while this gets fixed?

Is there a prebuilt image pushed in the registry?

@md5
Copy link
Contributor

md5 commented Mar 13, 2015

Aha! I didn't realize this image even had a Dockerfile... 🙊

@md5
Copy link
Contributor

md5 commented Mar 13, 2015

The issue appears to be one with SRI's CPAN BackPAN directory. The CHECKSUMS file is missing.

@petrosagg
Copy link
Author

This Dockerfile works fine. It looks like the reinstallation of cpanm causes the issue. I'm running a second build now.

FROM perl:5.20

RUN cpanm Mojolicious@5.80

@petrosagg
Copy link
Author

Or maybe the mirror. Checking both

@md5
Copy link
Contributor

md5 commented Mar 13, 2015

Looks like it's just BackPAN, not CPAN: http://www.cpan.org/authors/id/S/SR/SRI/CHECKSUMS

@md5
Copy link
Contributor

md5 commented Mar 13, 2015

@kraih Heads up that the CHECKSUMS file seems to be missing from your author directory in BackPAN.

@tianon
Copy link
Member

tianon commented Mar 13, 2015

Ugh BackPAN, you're killing me. First we can't have SSL, now we can't have CHECKSUMS either?

@md5
Copy link
Contributor

md5 commented Mar 13, 2015

I guess it makes some sense since the CHECKSUMS file is a GPG-signed manifest of the releases and if it were on BackPAN, it might not cover all the releases there, only the current releases on CPAN.

I suppose BackPAN could maintain and sign its own CHECKSUMS, but that seems wrong.

@tianon
Copy link
Member

tianon commented Mar 13, 2015

So it looks like we don't have an even reasonably-secure way to install older deps from CPAN. 😞

Guess we'll have to just remove the "more secure" PERL_CPANM_OPT value entirely since we need BackPAN. 😢

@petrosagg
Copy link
Author

That's unfortunate :/

@petrosagg
Copy link
Author

Thanks for the super quick response though!

@tianon
Copy link
Member

tianon commented Mar 13, 2015

@petrosagg I'm really curious what your use-case for building this image is -- we only use it ourselves for running push.pl to get descriptions up on the Hub

@petrosagg
Copy link
Author

We maintain a library of arm images here https://github.com/resin-io-library which get pushed here https://registry.hub.docker.com/repos/resin/. We try to follow the official images as much as possible so that the users have the least surprises and that includes having docs on them.

At the time of writing we have only ported node and buildpack-deps but we may do more in the future.

@tianon
Copy link
Member

tianon commented Mar 13, 2015 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants