Musicbrainz-docker issue

Tags: #<Tag:0x00007fef6900a3b0> #<Tag:0x00007fef6900a1f8> #<Tag:0x00007fef69009ff0>

Hi there:

I’m on a mission to deploy musicbrainz to a kubernetes cluster using the docker-compose configs and Dockerfiles on musicbrainz-docker.

I was starting this work this weekend and noticed an issue when trying to build the musicbrainz server Dockerfile with the following command: docker build -f ./musicbrainz-dockerfile/Dockerfile ./musicbrainz-dockerfile. It bombed out with the following relevant snippet:

--> Working on Term::Size::Perl
Fetching http://www.cpan.org/authors/id/F/FE/FERREIRA/Term-Size-Perl-0.031.tar.gz ... OK
Configuring Term-Size-Perl-0.031 ... OK
Building Term-Size-Perl-0.031 ... OK
Successfully installed Term-Size-Perl-0.031
Building Term-Size-Any-0.002 ... OK
Successfully installed Term-Size-Any-0.002
! Download http://www.cpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.5.9_1.tar.gz failed. Retrying ... 
! Download http://www.cpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.5.9_1.tar.gz failed. Retrying ... 
! Download http://www.cpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.5.9_1.tar.gz failed. Retrying ... 
! Failed to download http://www.cpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.5.9_1.tar.gz
! Failed to fetch distribution DBD-Pg-3.5.9_1
--> Working on TURNSTEP/DBD-Pg-3.5.9_1.tar.gz
Fetching http://www.cpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.5.9_1.tar.gz ... FAIL
13 distributions installed
The command '/bin/sh -c eval $( perl -Mlocal::lib) && cpanm --notest         Cache::Memcached::Fast         Cache::Memory         Catalyst::Plugin::Cache::HTTP         Catalyst::Plugin::StackTrace         Digest::MD5::File         JSON::Any         LWP::Protocol::https         Plack::Handler::Starlet         Plack::Middleware::Debug::Base         Server::Starter         Starlet         Starlet::Server         Term::Size::Any         TURNSTEP/DBD-Pg-3.5.9_1.tar.gz' returned a non-zero code: 1

It looks like some cpan dependency is not found and the subsequent installation of that dependency fails. Does anybody have any ideas about what might be going on?

1 Like

Hi ridhoq,

Thanks for reporting that issue, it should be fixed with the following commit (current HEAD):

What happened is required version of DBD-Pg Perl module has not been updated at the same time in musicbrainz-docker and musicbrainz-server. DBD-Pg-3.5.9 module recently moved from CPAN to BackPAN, it explains why installing it fails just now.

4 Likes

Hi yvanzo, thanks for the quick response! I just checked out your commit and it looks like the Dockerfile is now building - thanks again!

1 Like