perl-carton / carton

Bundler or pip freeze for Perl
http://search.cpan.org/dist/carton
Other
492 stars 96 forks source link

carton install works, but carton install --deployment doesn't #227

Open akarelas opened 7 years ago

akarelas commented 7 years ago

carton install created a cpanfile.snapshot file. This same file, when passed to carton install --deployment, fails to execute correctly.

This is my cpanfile:

requires 'Mojolicious';
requires 'DBIx::Class';
requires 'DBIx::Class::Schema::Loader';
requires 'DBIx::Class::Helpers';
requires 'DBD::mysql';
requires 'DateTime';
requires 'IO::Socket::SSL';
requires 'DateTime::Format::Strptime';
requires 'IO::All';
requires 'Data::Printer';

And this is my cpanfile.snapshot: https://pastebin.com/9R9WxU5g

I get this error (on perl 5.26.0):

Installing modules using /var/www/perl/cpanfile (deployment mode)
Found String::CamelCase  which doesn't satisfy 0.02.
! Installing the dependencies failed: Module 'String::CamelCase' is not installed
! Bailing out the installation for DBIx-Class-Schema-Loader-0.07047.
! Installing the dependencies failed: Module 'DBIx::Class::Schema::Loader' is not installed
! Bailing out the installation for /var/www/perl/.
Installing modules failed

Is this normal and expected, or a bug?

I remove my /local directory each time.

skaji commented 7 years ago

https://pastebin.com/9R9WxU5g

  String-CamelCase-0.03
    pathname: H/HI/HIO/String-CamelCase-0.03.tar.gz
    provides:
      String::CamelCase undef
    requirements:
      ExtUtils::MakeMaker 0
      Test::More 0

This should be provides: String::CamelCase 0.03. What is the content of local/lib/perl5/$Config{archname}/.meta/String-CamelCase-0.03/install.json ?

akarelas commented 7 years ago

I don't have this file that you describe:

appuser@traider-dev:/var/www/perl/local/lib/perl5/x86_64-linux/.meta$ ls -ald String-*
drwxr-xr-x 2 appuser appuser 4 Sep 17 05:05 String-ToIdentifier-EN-0.11
appuser@traider-dev:/var/www/perl/local/lib/perl5/x86_64-linux/.meta$ 

I don't have neither in the local/ directory that was produced successfully (with carton install), nor in the directory that was attempted to be created with carton install --deployment.

skaji commented 7 years ago

Okay. String-CamelCase-0.03 has an invalid META.yml, so carton (or cpanm) cannot find proper provides.

❯ wget https://cpan.metacpan.org/authors/id/H/HI/HIO/String-CamelCase-0.03.tar.gz

❯ tar xzf String-CamelCase-0.03.tar.gz

❯ cd String-CamelCase-0.03

❯ perl -MCPAN::Meta -e 'CPAN::Meta->load_file("META.yml")'
CPAN::Meta::YAML found illegal characters in plain scalar: 'author:' at /Users/skaji/env/plenv/versions/09.16-v5.27.3-100/lib/perl5/5.27.4/Parse/CPAN/Meta.pm line 47.
 at /Users/skaji/env/plenv/versions/09.16-v5.27.3-100/lib/perl5/5.27.4/CPAN/Meta.pm line 301.
 at -e line 1.
akarelas commented 7 years ago

I'll open a bug on that module, with a pointer to this discussion. Thanks!

akarelas commented 7 years ago

There's an open bug there already (4 days old), but I cannot reply to it (I see no such option even though I'm logged in): https://rt.cpan.org/Public/Bug/Display.html?id=123030

KES777 commented 7 years ago

Seems my problem is related. When try to carton install --deployment installation fail, but when carton it is OK.

But I want to report that carton install --deployment do not show which log file to look for detailed problem description when error occur. like carton does.

Here is STDOUT:

$ carton install --deployment
Installing modules using /home/xxx/work/public_html2/cpanfile (deployment mode)
! Couldn't find module or a distribution Variable::Magic (0.48)
! Installing the dependencies failed: Module 'Variable::Magic' is not installed
! Bailing out the installation for B-Hooks-EndOfScope-0.21.
! Installing the dependencies failed: Module 'B::Hooks::EndOfScope' is not installed
! Bailing out the installation for namespace-clean-0.27.
! Installing the dependencies failed: Module 'B::Hooks::EndOfScope' is not installed, Module 'namespace::clean' is not installed
! Bailing out the installation for namespace-autoclean-0.28.
! Installing the dependencies failed: Module 'namespace::autoclean' is not installed
! Bailing out the installation for DateTime-Locale-1.11.
! Installing the dependencies failed: Module 'namespace::autoclean' is not installed
! Bailing out the installation for DateTime-TimeZone-2.09.
! Installing the dependencies failed: Module 'namespace::autoclean' is not installed, Module 'DateTime::TimeZone' is not installed, Module 'DateTime::Locale' is not installed
! Bailing out the installation for DateTime-1.41.
! Couldn't find module or a distribution Class::XSAccessor (1.19)
! Installing the dependencies failed: Module 'Class::XSAccessor' is not installed
! Bailing out the installation for Class-Accessor-Grouped-0.10012.
! Installing the dependencies failed: Module 'Class::Accessor::Grouped' is not installed, Module 'namespace::clean' is not installed
! Bailing out the installation for DBIx-Class-0.082840.
Successfully installed JSON-MaybeXS-1.003008
! Installing the dependencies failed: Module 'DBIx::Class' is not installed, Module 'namespace::clean' is not installed
! Bailing out the installation for DBIx-Class-InflateColumn-Serializer-0.09.
! Installing the dependencies failed: Module 'namespace::autoclean' is not installed
! Bailing out the installation for MooseX-Types-0.48.
! Couldn't find module or a distribution indirect
! Couldn't find module or a distribution bareword::filehandles
! Couldn't find module or a distribution multidimensional
! Installing the dependencies failed: Module 'multidimensional' is not installed, Module 'indirect' is not installed, Module 'bareword::filehandles' is not installed
! Bailing out the installation for strictures-2.000003.
! Installing the dependencies failed: Module 'strictures' is not installed
! Bailing out the installation for Package-Variant-1.003002.
! Installing the dependencies failed: Module 'Package::Variant' is not installed
! Bailing out the installation for SQL-Translator-0.11021.
! Installing the dependencies failed: Module 'namespace::autoclean' is not installed, Module 'namespace::clean' is not installed
! Bailing out the installation for MooseX-Role-Parameterized-1.09.
! Installing the dependencies failed: Module 'MooseX::Role::Parameterized' is not installed, Module 'namespace::autoclean' is not installed, Module 'DBIx::Class' is not installed, Module 'SQL::Translator' is not installed
! Bailing out the installation for DBIx-Class-DeploymentHandler-0.002218.
! Installing the dependencies failed: Module 'namespace::autoclean' is not installed
! Bailing out the installation for MooseX-Traits-Pluggable-0.12.
! Installing the dependencies failed: Module 'namespace::clean' is not installed
! Bailing out the installation for String-ToIdentifier-EN-0.11.
! Installing the dependencies failed: Module 'DBIx::Class' is not installed
! Bailing out the installation for DBIx-Class-IntrospectableM2M-0.001002.
! Installing the dependencies failed: Module 'DBIx::Class::IntrospectableM2M' is not installed, Module 'String::ToIdentifier::EN' is not installed, Module 'DBIx::Class' is not installed, Module 'namespace::clean' is not installed, Module 'Class::Accessor::Grouped' is not installed
! Bailing out the installation for DBIx-Class-Schema-Loader-0.07046.
! Installing the dependencies failed: Module 'MooseX::Role::Parameterized' is not installed, Module 'namespace::autoclean' is not installed
! Bailing out the installation for MooseX-Getopt-0.71.
! Installing the dependencies failed: Module 'DBIx::Class' is not installed, Module 'SQL::Translator' is not installed
! Bailing out the installation for DBICx-TestDatabase-0.05.
! Installing the dependencies failed: Module 'Class::Accessor::Grouped' is not installed, Module 'DBIx::Class' is not installed
! Bailing out the installation for DBIx-Class-UUIDColumns-0.02006.
! Installing the dependencies failed: Module 'DBICx::TestDatabase' is not installed, Module 'DBIx::Class' is not installed, Module 'DBIx::Class::UUIDColumns' is not installed
! Bailing out the installation for DBIx-Class-InflateColumn-FS-0.01007.
! Installing the dependencies failed: Module 'DateTime' is not installed, Module 'DateTime::Locale' is not installed, Module 'DateTime::TimeZone' is not installed
! Bailing out the installation for DateTime-Format-Strptime-1.68.
! Installing the dependencies failed: Module 'DateTime' is not installed, Module 'DateTime::Format::Strptime' is not installed
! Bailing out the installation for DateTime-Format-Builder-0.81.
! Installing the dependencies failed: Module 'DateTime::Format::Builder' is not installed, Module 'DateTime' is not installed
! Bailing out the installation for DateTime-Format-MySQL-0.06.
! Installing the dependencies failed: Module 'namespace::clean' is not installed
! Bailing out the installation for Data-Visitor-0.30.
! Installing the dependencies failed: Module 'DateTime' is not installed, Module 'DateTime::TimeZone' is not installed, Module 'DateTime::Format::Builder' is not installed
! Bailing out the installation for DateTime-Format-Pg-0.16012.
! Installing the dependencies failed: Module 'DateTime::Format::Builder' is not installed, Module 'DateTime' is not installed
! Bailing out the installation for DateTime-Format-SQLite-0.11.
! Installing the dependencies failed: Module 'DateTime' is not installed, Module 'DBIx::Class::InflateColumn::FS' is not installed, Module 'DateTime::Format::MySQL' is not installed, Module 'DBIx::Class' is not installed, Module 'Data::Visitor' is not installed, Module 'DateTime::Format::Pg' is not installed, Module 'DateTime::Format::SQLite' is not installed, Module 'DBIx::Class::Schema::Loader' is not installed, Module 'Class::Accessor::Grouped' is not installed
! Bailing out the installation for DBIx-Class-Fixtures-1.001036.
! Installing the dependencies failed: Module 'MooseX::Types::Moose' is not installed, Module 'MooseX::Types' is not installed, Module 'namespace::autoclean' is not installed
! Bailing out the installation for MooseX-Types-LoadableClass-0.014.
! Installing the dependencies failed: Module 'namespace::clean' is not installed
! Bailing out the installation for Devel-PartialDump-0.18.
! Installing the dependencies failed: Module 'DBIx::Class::DeploymentHandler' is not installed, Module 'MooseX::Types' is not installed, Module 'DBIx::Class::Schema::Loader' is not installed, Module 'MooseX::Traits::Pluggable' is not installed, Module 'DBIx::Class::Fixtures' is not installed, Module 'MooseX::Getopt' is not installed, Module 'Devel::PartialDump' is not installed, Module 'SQL::Translator' is not installed, Module 'MooseX::Types::LoadableClass' is not installed
! Bailing out the installation for DBIx-Class-Migration-0.058.
! Installing the dependencies failed: Module 'DateTime::Format::Pg' is not installed, Module 'DateTime' is not installed, Module 'DBIx::Class::InflateColumn::Serializer' is not installed, Module 'DBIx::Class::Migration' is not installed
! Bailing out the installation for /home/xxx/work/public_html2/.
1 distribution installed
Installing modules failed
xxx@vpn:~/s$ carton 
Installing modules using /home/xxx/work/public_html2/cpanfile
Successfully installed Variable-Magic-0.61
Successfully installed B-Hooks-EndOfScope-0.21
Successfully installed namespace-clean-0.27
Successfully installed namespace-autoclean-0.28
Successfully installed DateTime-TimeZone-2.09
Successfully installed DateTime-Locale-1.11
Successfully installed DateTime-1.41
Successfully installed Class-XSAccessor-1.19
Successfully installed Class-Accessor-Grouped-0.10012
Successfully installed DBIx-Class-0.082840
Successfully installed DBIx-Class-InflateColumn-Serializer-0.09
Successfully installed DateTime-Format-Strptime-1.68
Successfully installed DateTime-Format-Builder-0.81
Successfully installed DateTime-Format-Pg-0.16012
Successfully installed MooseX-Types-0.48
Successfully installed MooseX-Types-LoadableClass-0.014
Successfully installed MooseX-Role-Parameterized-1.09
Successfully installed MooseX-Getopt-0.71
Successfully installed MooseX-Traits-Pluggable-0.12
Successfully installed Devel-PartialDump-0.18
Successfully installed DBIx-Class-IntrospectableM2M-0.001002
Successfully installed String-ToIdentifier-EN-0.11
Successfully installed DBIx-Class-Schema-Loader-0.07046
Successfully installed DateTime-Format-MySQL-0.06
Successfully installed DateTime-Format-SQLite-0.11
Successfully installed DBIx-Class-UUIDColumns-0.02006
Successfully installed indirect-0.37
Successfully installed B-Hooks-OP-Check-0.22
Successfully installed Lexical-SealRequireHints-0.011
Successfully installed bareword-filehandles-0.005
Successfully installed multidimensional-0.013
Successfully installed strictures-2.000003
Successfully installed Package-Variant-1.003002
Successfully installed SQL-Translator-0.11021
Successfully installed DBICx-TestDatabase-0.05
Successfully installed DBIx-Class-InflateColumn-FS-0.01007
Successfully installed Data-Visitor-0.30
Successfully installed DBIx-Class-Fixtures-1.001036
Successfully installed DBIx-Class-DeploymentHandler-0.002218
Successfully installed DBIx-Class-Migration-0.058
40 distributions installed
Complete! Modules were installed into /home/xxx/work/public_html2/local
skaji commented 7 years ago

@KES777 Could you copy and paste cpanfile and cpanfile.snapshot not in comment but in gist.github.com? And give us the gist urls.

KES777 commented 7 years ago

@skaji Done

skaji commented 7 years ago

@KES777

But I want to report that carton install --deployment do not show which log file to look for detailed problem description when error occur. like carton does.

See ~/.cpanm/build.log

Thanks for uploading snapshot and cpanfile to gist. I could not reproduce your problem. https://gist.github.com/skaji/de1d833e129c910b860562c8c34ef1ef (The installation of JSON-MaybeXS failed, since JSON-MaybeXS may changes the prereqs dynamically; it is another issue and let's put it aside for now)

KES777 commented 7 years ago

@skaji : Thank you

See ~/.cpanm/build.log

I found where to look logs. This message will be useful for those who do not know where to look when errors occure for carton install --deployment command, like here

geira commented 7 years ago

This is situation as normal whenever you try to deploy on a different Perl version than you built the snapshot. If that is the case (probably not here) the solution is to generate a separate snapshot for each distro. This is how I usually do it in the build shell script:

UBUNTU_VERSION=$(lsb_release -rs)
ln -f -s "$UBUNTU_VERSION/cpanfile.snapshot"
KES777 commented 7 years ago

@geira yes. I deploy on different host. And there is different perl.

Local:

This is perl 5, version 24, subversion 0 (v5.24.0) built for x86_64-linux (with 1 registered patch, see perl -V for more detail)

Remote:

This is perl 5, version 24, subversion 1 (v5.24.1) built for x86_64-linux-gnu-thread-multi (with 65 registered patches, see perl -V for more detail)

I suppose that on remote host carton just install requested versions

Maybe remote host has newer version than cpanfile.spanshot has. But in this case carton can just install required module into local, can not?

UPD I resolve this issue. Why this happen. See here

melhesedek commented 7 years ago

Hello! Maybe I'm a little off topic here but really need to clear something up.

Hypothetically, should carton install --deployment work identically under same versions of perl freshly installed by plenv on different distros?

geira commented 7 years ago

The main issues have been between major Perl versions, especially where modules have been removed from core. The difference between 5.24.0 and 5.24.1 should in theory be negligible, as long as you deploy on the newest version. What I suggest is that you build a new snapshot on each platform and compare the differences.

Also remember that the dependency chain might be different depending on which C libraries are present, e.g. it might need to install a pure Perl parser if a binary isn't available.

KES777 commented 6 years ago

I faced into this issues again. Now I dig more info. Target host have DEBIAN perl with patch which removes '.' from @INC. The cpanfile.snapshot may have links to old modules. For example my file have: List-MoreUtils-0.416, but current latest version is List-MoreUtils-0.428

On local host I use perl-5.24.1 builded from perlbrew.

Thus problem because of different perl destributions although perl versions are same

For reference: https://stackoverflow.com/a/50220309/4632019

Why current issue occur: https://github.com/Perl/docker-perl/issues/26

@akarelas carton install will use latest modules which workaround '.' removed from @INC
carton install --deployment will use old modules which are not ready for that Thus second fail

KES777 commented 6 years ago

Again got errors while --deployment:

carton install --deployment
Installing modules using /home/kes/work/projects/tucha/monkeyman/cpanfile (deployment mode)
Successfully installed IO-HTML-1.001
Successfully installed Encode-Locale-1.05
Successfully installed URI-1.74
Successfully installed LWP-MediaTypes-6.02
Successfully installed HTTP-Date-6.02
Successfully installed HTTP-Message-6.18
Successfully installed HTTP-Negotiate-6.01
Successfully installed HTTP-Cookies-6.04
Successfully installed HTML-Tagset-3.20
Successfully installed HTML-Parser-3.72
Successfully installed Net-HTTP-6.18
Successfully installed WWW-RobotRules-6.02
Successfully installed HTTP-Daemon-6.01
Successfully installed File-Listing-6.04
Successfully installed Try-Tiny-0.30
Successfully installed libwww-perl-6.33
Successfully installed Sub-Uplevel-0.2800
Successfully installed Test-Warn-0.32
Successfully installed Clone-Choose-0.008
Successfully installed Hash-Merge-0.300
Successfully installed Scope-Guard-0.21
Successfully installed Class-Inspector-1.32
Successfully installed Algorithm-C3-0.10
Successfully installed Class-C3-0.33
Successfully installed MRO-Compat-0.13
Successfully installed Class-C3-Componentised-1.001002
Successfully installed Module-Find-0.13
Successfully installed Sub-Quote-2.005000
Successfully installed Sub-Exporter-Progressive-0.001013
Successfully installed Devel-GlobalDestruction-0.14
Successfully installed Module-Build-0.4224
Successfully installed Module-Runtime-0.016
Successfully installed Role-Tiny-2.000006
Successfully installed Class-Method-Modifiers-2.12
Successfully installed Moo-2.003004
Successfully installed Test-Exception-0.43
Successfully installed Context-Preserve-0.03
Successfully installed Data-Dumper-Concise-2.023
Successfully installed SQL-Abstract-1.86
Successfully installed DBI-1.640
Successfully installed DBD-SQLite-1.56
Successfully installed Sub-Name-0.21
Successfully installed Class-XSAccessor-1.19
Successfully installed Class-Accessor-Grouped-0.10012
Successfully installed Path-Class-0.37
Successfully installed Dist-CheckConflicts-0.11
Successfully installed Package-Stash-XS-0.28
Successfully installed Module-Implementation-0.09
Successfully installed Package-Stash-0.37
Successfully installed Variable-Magic-0.62
Successfully installed B-Hooks-EndOfScope-0.21
Successfully installed namespace-clean-0.27
Successfully installed Module-Pluggable-5.2
Successfully installed Config-Any-0.32
Successfully installed Test-Deep-1.127
Successfully installed Class-Accessor-0.51
Successfully installed Class-Accessor-Chained-0.01
Successfully installed Data-Page-2.02
Successfully installed DBIx-Class-0.082841
Successfully installed Sub-Install-0.928
Successfully installed Params-Util-1.07
Successfully installed Data-OptList-0.110
Successfully installed Sub-Exporter-0.987
Successfully installed Lingua-EN-Inflect-1.903
Successfully installed DBIx-Class-Candy-0.005003
Successfully installed Text-Brew-0.02
Successfully installed Carp-Clan-6.06
Successfully installed DBIx-Introspector-0.001005
Successfully installed Safe-Isa-1.000008
Successfully installed DBIx-Class-Helpers-2.033004
Successfully installed Sub-Identify-0.14
Successfully installed Eval-Closure-0.14
Successfully installed Devel-StackTrace-2.03
Successfully installed Module-Runtime-Conflicts-0.003
Successfully installed Scalar-List-Utils-1.50 (upgraded from 1.42_02)
Successfully installed Package-DeprecationManager-0.17
Successfully installed Class-Load-0.24
Successfully installed Class-Load-XS-0.10
Successfully installed Devel-OverloadInfo-0.005
Successfully installed Moose-2.2010
Successfully installed namespace-autoclean-0.28
Successfully installed MooseX-MarkAsMethods-0.15
Successfully installed Throwable-0.200013
Successfully installed Email-Address-1.909
Successfully installed MooX-Types-MooseLike-0.29
Successfully installed Email-Date-Format-1.005
Successfully installed Email-Simple-2.214
Successfully installed Email-Abstract-3.008
Successfully installed Email-Sender-1.300031
Successfully installed Parse-RecDescent-1.967015
Successfully installed Any-Moose-0.26
Successfully installed ExtUtils-Depends-0.405
Successfully installed B-Hooks-OP-Check-0.22
Successfully installed Test-Requires-0.10
Successfully installed Devel-Declare-0.006019
Successfully installed Lexical-SealRequireHints-0.011
Successfully installed File-Remove-1.57
Successfully installed Task-Weaken-1.05
Successfully installed Test-Object-0.08
Successfully installed Clone-0.39
Successfully installed Hook-LexWrap-0.26
Successfully installed Test-SubCalls-1.10
Successfully installed Exporter-Tiny-1.000000
Successfully installed List-MoreUtils-XS-0.428
Successfully installed List-MoreUtils-0.428
Successfully installed IO-String-1.08
Successfully installed PPI-1.236
Successfully installed Devel-PPPort-3.36 (upgraded from 3.32)
Successfully installed ExtUtils-Helpers-0.026
Successfully installed ExtUtils-Config-0.008
Successfully installed ExtUtils-InstallPaths-0.011
Successfully installed Module-Build-Tiny-0.039
Successfully installed Devel-CheckCompiler-0.07
Successfully installed Module-Build-XSUtil-0.18
Successfully installed Mouse-v2.5.2
Successfully installed Const-Fast-0.014
Successfully installed Method-Signatures-20170211
Successfully installed POSIX-strptime-0.13
Successfully installed Data-Clone-0.004
Successfully installed XML-SAX-Base-1.09
Successfully installed XML-NamespaceSupport-1.12
Successfully installed XML-SAX-1.00
Successfully installed XML-LibXML-2.0132
Successfully installed Test-Fatal-0.014
Successfully installed Specio-0.42
Successfully installed Class-Data-Inheritable-0.08
Successfully installed Exception-Class-1.44
Successfully installed Params-ValidationCompiler-0.27
Successfully installed Log-Dispatch-2.67
Successfully installed Date-Manip-6.70
Successfully installed Log-Dispatch-FileRotate-1.35
Successfully installed autovivification-0.18
Successfully installed Readonly-2.05
Successfully installed DBD-mysql-4.046
Successfully installed TermReadKey-2.37
Successfully installed MooseX-NonMoose-0.26
Successfully installed FFI-CheckLib-0.20
Successfully installed Capture-Tiny-0.46
Successfully installed Config-AutoConf-0.317
Successfully installed File-Which-1.22
Successfully installed Path-Tiny-0.104
Successfully installed File-chdir-0.1010
Successfully installed Importer-0.025
Successfully installed Term-Table-0.012
Successfully installed Sub-Info-0.002
Successfully installed Test-Simple-1.302140
Successfully installed Test2-Suite-0.000115
Successfully installed Alien-Build-1.48
Successfully installed Mozilla-CA-20180117
Successfully installed Net-SSLeay-1.85
Successfully installed IO-Socket-SSL-2.058
Successfully installed Sort-Versions-1.62
Successfully installed Alien-FFI-0.21
Successfully installed File-ShareDir-Install-0.11
Successfully installed File-ShareDir-1.104
Successfully installed FFI-Platypus-0.53
Successfully installed UUID-FFI-0.06
Successfully installed Data-Alias-1.21
Successfully installed Modern-Perl-1.20180701
Successfully installed Net-Domain-TLD-1.75
Successfully installed Filter-signatures-0.15
Successfully installed Object-Import-1.004
Successfully installed Canary-Stability-2012
Successfully installed AnyEvent-7.14
! Couldn't find module or a distribution Imager::File::PNG
Successfully installed Algorithm-Loops-1.032
Successfully installed Future-0.38
Successfully installed Future-HTTP-0.09
Successfully installed HTML-Selector-XPath-0.23
Successfully installed PerlX-Maybe-1.001
Successfully installed URI-ws-0.03
Successfully installed Module-CPANfile-1.1002
Successfully installed Module-Build-Prereqs-FromCPANfile-0.02
Successfully installed AnyEvent-Connector-0.03
Successfully installed Protocol-WebSocket-0.24
Successfully installed AnyEvent-WebSocket-Client-0.49
Successfully installed HTML-Tree-5.07
Successfully installed HTML-Form-6.03
Successfully installed WWW-Mechanize-1.88
Successfully installed JSON-2.97001
Successfully installed Error-0.17026
Successfully installed Test-Timer-2.09
Successfully installed AnyEvent-Future-0.03
Successfully installed Log-Log4perl-1.49
Successfully installed Imager-1.006
Successfully installed WWW-Mechanize-Chrome-0.19
Successfully installed ExtUtils-MakeMaker-CPANfile-0.08
Successfully installed Parse-PMFile-0.41
Successfully installed local-lib-2.000024
Successfully installed CPAN-Meta-Check-0.014
Successfully installed Tie-Handle-Offset-0.004
Successfully installed CPAN-DistnameInfo-0.12
Successfully installed Class-Tiny-1.006
Successfully installed CPAN-Common-Index-0.010
Successfully installed IPC-Run3-0.048
Successfully installed HTTP-Tinyish-0.14
Successfully installed Win32-ShellQuote-0.003001
Successfully installed String-ShellQuote-1.04
Successfully installed File-pushd-1.016
Successfully installed Menlo-1.9019
Successfully installed Menlo-Legacy-1.9022
Successfully installed Carton-v1.0.34
Successfully installed Mojolicious-7.87
Successfully installed DBD-Pg-3.7.4
Successfully installed Mojo-Pg-4.10
Successfully installed URI-Encode-v1.1.1
Successfully installed Lingua-EN-Inflect-Number-1.12
Successfully installed Lingua-EN-Words2Nums-0.18
Successfully installed Lingua-EN-FindNumber-1.32
Successfully installed Lingua-EN-Number-IsOrdinal-0.05
Successfully installed Memoize-ExpireLRU-0.56
Successfully installed Lingua-Stem-Fr-0.02
Successfully installed Snowball-Swedish-1.2
Successfully installed Text-German-0.06
Successfully installed Lingua-Stem-Ru-0.04
Successfully installed Snowball-Norwegian-1.2
Successfully installed Lingua-Stem-Snowball-Da-1.01
Successfully installed Lingua-PT-Stemmer-0.02
Successfully installed Lingua-Stem-It-0.02
Successfully installed Lingua-Stem-0.84
Successfully installed Lingua-EN-Tagger-0.28
Successfully installed Lingua-EN-Inflect-Phrase-0.20
Successfully installed Text-Template-1.53
Successfully installed JSON-Validator-2.08
Successfully installed String-CamelCase-0.04
Successfully installed Mojolicious-Plugin-OpenAPI-1.30
Successfully installed Module-List-0.004
Successfully installed YAML-LibYAML-0.70
! Couldn't find module or a distribution Cpanel::JSON::XS (2.3310)
! Installing the dependencies failed: Module 'Cpanel::JSON::XS' is not installed
! Bailing out the installation for JSON-MaybeXS-1.004000.
Successfully installed YAML-1.25
! Installing the dependencies failed: Module 'JSON::MaybeXS' is not installed
! Bailing out the installation for DBIx-Class-InflateColumn-Serializer-0.09.
Successfully installed Text-CSV_XS-1.36
Successfully installed common-sense-3.74
Successfully installed Types-Serialiser-1.0
Successfully installed JSON-XS-3.04
Successfully installed Devel-GlobalPhase-0.003003
Successfully installed Data-Dump-1.23
Successfully installed Test-Trap-v0.3.3
Successfully installed Tie-IxHash-1.23
Successfully installed Test-Spec-0.54
Successfully installed PDF-WebKit-1.2
Successfully installed Class-Singleton-1.5
Successfully installed DateTime-TimeZone-2.18
Successfully installed DateTime-Locale-1.17
Successfully installed DateTime-1.49
Successfully installed B-Hooks-OP-PPAddr-0.06
Successfully installed Scope-Upper-0.30
Successfully installed Sub-Exporter-ForMethods-0.100052
Successfully installed MooseX-Types-0.50
Successfully installed Algorithm-Diff-1.1903
Successfully installed Text-Diff-1.45
Successfully installed Test-Differences-0.64
Successfully installed MooseX-Traits-0.13
Successfully installed aliased-0.34
Successfully installed Devel-PartialDump-0.20
Successfully installed MooseX-Types-Structured-0.36
Successfully installed Parse-Method-Signatures-1.003019
Successfully installed TryCatch-1.003002
Successfully installed Email-MIME-Encodings-1.315
Successfully installed MIME-Types-2.17
Successfully installed Encode-2.98 (upgraded from 2.80_01)
Successfully installed Email-MIME-ContentType-1.022
Successfully installed Email-Address-XS-1.03
Successfully installed Email-MessageID-1.406
Successfully installed Email-MIME-1.946
Successfully installed File-HomeDir-1.004
Successfully installed List-SomeUtils-XS-0.56
Successfully installed List-SomeUtils-0.56
Successfully installed List-UtilsBy-0.11
Successfully installed List-AllUtils-0.14
Successfully installed Test-NoWarnings-1.04
Successfully installed Math-Random-ISAAC-1.004
Successfully installed Type-Tiny-1.002002
Successfully installed Crypt-Random-Source-0.14
Successfully installed Math-Random-Secure-0.080001
Successfully installed App-Genpass-2.401
Successfully installed Dir-Self-0.11
Successfully installed DBIx-Class-EncodedColumn-0.00015
Successfully installed LWP-Protocol-https-6.07
Successfully installed TimeDate-2.30
Successfully installed MailTools-2.20
Successfully installed Email-Valid-1.202
Successfully installed Config-General-2.63
Successfully installed File-Slurp-9999.19
Successfully installed B-Utils-0.27
Successfully installed Data-Dump-Streamer-2.40
Successfully installed Devel-Confess-0.009004
Successfully installed IO-All-0.87
Successfully installed Params-Validate-1.29
Successfully installed Class-Factory-Util-1.7
Successfully installed DateTime-Format-Strptime-1.75
Successfully installed DateTime-Format-Builder-0.81
Successfully installed DateTime-Format-Pg-0.16013
Successfully installed YAML-Syck-1.30
Successfully installed File-Copy-Recursive-0.44
Successfully installed XML-Writer-0.625
Successfully installed Import-Into-1.002005
Successfully installed bareword-filehandles-0.006
Successfully installed multidimensional-0.014
Successfully installed indirect-0.38
Successfully installed strictures-2.000005
Successfully installed Package-Variant-1.003002
Successfully installed SQL-Translator-0.11024
Successfully installed DBICx-TestDatabase-0.05
Successfully installed Data-UUID-1.221
Successfully installed DBIx-Class-UUIDColumns-0.02006
Successfully installed DBIx-Class-InflateColumn-FS-0.01007
Successfully installed DateTime-Format-MySQL-0.06
Successfully installed DateTime-Format-SQLite-0.11
Successfully installed Tie-ToObject-0.03
Successfully installed Data-Visitor-0.30
Successfully installed curry-1.001000
Successfully installed Text-Unidecode-1.30
Successfully installed String-ToIdentifier-EN-0.12
Successfully installed Class-Unload-0.11
Successfully installed DBIx-Class-Schema-Loader-0.07049
Successfully installed DBIx-Class-Fixtures-1.001039
Successfully installed MooseX-Attribute-ENV-0.02
Successfully installed PerlIO-utf8_strict-0.007
Successfully installed Mixin-Linewise-0.108
Successfully installed Config-INI-0.025
Successfully installed Config-MySQL-0.02
Successfully installed MooseX-Traits-Pluggable-0.12
Successfully installed MooseX-Types-LoadableClass-0.015
Successfully installed MooseX-Role-Parameterized-1.10
Successfully installed Fennec-Lite-0.004
Successfully installed Meta-Builder-0.003
Successfully installed Exporter-Declare-0.114
Successfully installed Log-Contextual-0.008001
Successfully installed DBIx-Class-DeploymentHandler-0.002222
Successfully installed Getopt-Long-Descriptive-0.102
Successfully installed MooseX-Getopt-0.71
Successfully installed Path-IsDev-1.001003
Successfully installed Path-FindDev-v0.5.3
Successfully installed File-ShareDir-ProjectDistDir-1.000009
! Installing the dependencies failed: Module 'JSON::MaybeXS' is not installed
! Bailing out the installation for DBIx-Class-Migration-0.060.
Successfully installed String-CRC32-1.7
Successfully installed Cache-Memcached-1.30
Successfully installed MooseX-Singleton-0.30
Successfully installed Test-utf8-1.01
Successfully installed DBM-Deep-2.0016
Successfully installed Number-Phone-3.4005
Successfully installed Switch-2.17
Successfully installed Time-Limit-0.003
! Installing the dependencies failed: Module 'DBIx::Class::InflateColumn::Serializer' is not installed, Module 'DBIx::Class::Migration' is not installed
! Bailing out the installation for /home/kes/work/projects/tucha/monkeyman/.
340 distributions installed
Installing modules failed
$ carton
Installing modules using /home/kes/work/projects/tucha/monkeyman/cpanfile
Successfully installed JSON-MaybeXS-1.004000
Successfully installed DBIx-Class-InflateColumn-Serializer-0.09
Successfully installed DBIx-Class-Migration-0.060
3 distributions installed
Complete! Modules were installed into /home/kes/work/projects/tucha/monkeyman/local

cpanfile.tar.gz

elcamlost commented 6 years ago

Faced the same issue. Looks like carton install --deployment doesn't work in various cases.

I created snapshot file with perl 5.26.1 (running locally inside docker container) and tried to rebuild modules on my deployment host with exactly the same version. It fails.

That's output from carton install --deployment

carton install --deployment
Installing modules using /home/kimberlite/.builds/70415c76/0/kimberlite/backend/cpanfile (deployment mode)
! Couldn't find module or a distribution Devel::StackTrace (2.00)
! Installing the dependencies failed: Module 'Devel::StackTrace' is not installed
! Bailing out the installation for Exception-Class-1.44.
! Installing the dependencies failed: Module 'Exception::Class' is not installed
! Bailing out the installation for Test-Most-0.35.
! Installing the dependencies failed: Module 'Test::Most' is not installed
! Bailing out the installation for Math-GSL-0.39.
! Couldn't find module or a distribution HTML::Tagset (3)
! Installing the dependencies failed: Module 'HTML::Tagset' is not installed
! Bailing out the installation for HTML-Parser-3.72.
! Installing the dependencies failed: Module 'HTML::HeadParser' is not installed, Module 'HTML::Entities' is not installed
! Bailing out the installation for libwww-perl-6.36.
! Installing the dependencies failed: Module 'LWP::UserAgent' is not installed
! Bailing out the installation for LWP-Protocol-https-6.07.
! Installing the dependencies failed: Module 'LWP::UserAgent' is not installed, Module 'LWP::Protocol::https' is not installed
! Bailing out the installation for WWW-Telegram-BotAPI-0.10.
! Couldn't find module or a distribution PerlX::Maybe
! Couldn't find module or a distribution Devel::StackTrace::Frame
! Installing the dependencies failed: Module 'Devel::StackTrace::Frame' is not installed, Module 'Devel::StackTrace' is not installed
! Bailing out the installation for Devel-StackTrace-Extract-1.000000.
! Installing the dependencies failed: Module 'Devel::StackTrace' is not installed
! Bailing out the installation for Devel-StackTrace-AsHTML-0.15.
! Installing the dependencies failed: Module 'Devel::StackTrace::AsHTML' is not installed, Module 'Devel::StackTrace' is not installed
! Bailing out the installation for Plack-1.0047.
! Installing the dependencies failed: Module 'Plack' is not installed
! Bailing out the installation for Gazelle-0.48.
! Couldn't find module or a distribution Sub::Defer (2.003001)
! Couldn't find module or a distribution Sub::Quote (2.003001)
! Installing the dependencies failed: Module 'Sub::Quote' is not installed, Module 'Sub::Defer' is not installed
! Bailing out the installation for Moo-2.003004.
! Installing the dependencies failed: Module 'Moo' is not installed, Module 'Sub::Quote' is not installed
! Bailing out the installation for SQL-Abstract-1.86.
! Installing the dependencies failed: Module 'SQL::Abstract' is not installed
! Bailing out the installation for Mojo-Pg-4.12.
! Installing the dependencies failed: Module 'HTML::Entities' is not installed
! Bailing out the installation for Devel-Cover-1.31.
! Installing the dependencies failed: Module 'Sub::Quote' is not installed, Module 'Devel::StackTrace' is not installed, Module 'Moo::Role' is not installed, Module 'Moo' is not installed
! Bailing out the installation for Throwable-0.200013.
! Installing the dependencies failed: Module 'Moo' is not installed, Module 'Moo::Role' is not installed, Module 'Throwable::Error' is not installed
! Bailing out the installation for Email-Sender-1.300031.
! Installing the dependencies failed: Module 'Email::Sender::Simple' is not installed
! Bailing out the installation for Email-Stuffer-0.017.
! Couldn't find module or a distribution Canary::Stability
! Installing the dependencies failed: Module 'Canary::Stability' is not installed
! Bailing out the installation for EV-4.22.
! Installing the dependencies failed: Module 'Moo' is not installed
! Bailing out the installation for MooX-Types-MooseLike-Numeric-1.03.
! Installing the dependencies failed: Module 'Moo' is not installed, Module 'MooX::Types::MooseLike::Numeric' is not installed
! Bailing out the installation for CHI-0.60.
! Installing the dependencies failed: Module 'CHI' is not installed
! Bailing out the installation for Mojolicious-Plugin-CHI-0.20.
! Installing the dependencies failed: Module 'Sub::Quote' is not installed, Module 'Devel::StackTrace' is not installed
! Bailing out the installation for Specio-0.43.
! Installing the dependencies failed: Module 'Exception::Class' is not installed
! Bailing out the installation for Params-ValidationCompiler-0.30.
! Installing the dependencies failed: Module 'Specio::Library::String' is not installed, Module 'Specio::Library::Builtins' is not installed, Module 'Params::ValidationCompiler' is not installed
! Bailing out the installation for DateTime-TimeZone-2.21.
! Installing the dependencies failed: Module 'Specio::Library::String' is not installed, Module 'Params::ValidationCompiler' is not installed, Module 'Specio::Declare' is not installed
! Bailing out the installation for DateTime-Locale-1.23.
! Installing the dependencies failed: Module 'Specio::Declare' is not installed, Module 'Specio::Library::Numeric' is not installed, Module 'Specio::Exporter' is not installed, Module 'DateTime::TimeZone' is not installed, Module 'DateTime::Locale' is not installed, Module 'Specio' is not installed, Module 'Specio::Library::Builtins' is not installed, Module 'Specio::Library::String' is not installed, Module 'Params::ValidationCompiler' is not installed
! Bailing out the installation for DateTime-1.50.
! Installing the dependencies failed: Module 'Moo::Role' is not installed, Module 'Moo' is not installed
! Bailing out the installation for MooX-StrictConstructor-0.010.
! Installing the dependencies failed: Module 'Sub::Quote' is not installed, Module 'MooX::StrictConstructor' is not installed, Module 'DateTime' is not installed, Module 'Moo' is not installed, Module 'Moo::Role' is not installed
! Bailing out the installation for MaxMind-DB-Common-0.040001.
! Installing the dependencies failed: Module 'Moo::Role' is not installed, Module 'Moo' is not installed, Module 'MaxMind::DB::Role::Debugs' is not installed, Module 'MaxMind::DB::Metadata' is not installed, Module 'MaxMind::DB::Common' is not installed, Module 'DateTime' is not installed, Module 'MooX::StrictConstructor' is not installed, Module 'MaxMind::DB::Types' is not installed
! Bailing out the installation for MaxMind-DB-Reader-1.000013.
! Installing the dependencies failed: Module 'MaxMind::DB::Reader::Role::HasMetadata' is not installed, Module 'Moo' is not installed, Module 'MaxMind::DB::Metadata' is not installed, Module 'MaxMind::DB::Types' is not installed
! Bailing out the installation for MaxMind-DB-Reader-XS-1.000006.
! Installing the dependencies failed: Module 'Mojo::Pg' is not installed, Module 'PerlX::Maybe' is not installed, Module 'Math::GSL' is not installed, Module 'WWW::Telegram::BotAPI' is not installed, Module 'Gazelle' is not installed, Module 'Devel::StackTrace::Extract' is not installed, Module 'EV' is not installed, Module 'Mojolicious::Plugin::CHI' is not installed, Module 'MaxMind::DB::Reader::XS' is not installed, Module 'Email::Stuffer' is not installed, Module 'Devel::Cover' is not installed
! Bailing out the installation for /home/kimberlite/.builds/70415c76/0/kimberlite/backend/.
Installing modules failed

In ~/.cpanm/build.log

==> Found dependencies: Devel::StackTrace
Searching Devel::StackTrace on mirror index /path/to/project/local/cache/modules/02packages.details.txt ...
-> FAIL Finding Devel::StackTrace (2.00) on mirror index /path/to/project/local/cache/modules/02packages.details.txt failed.
-> FAIL Couldn't find module or a distribution Devel::StackTrace (2.00)
-> FAIL Installing the dependencies failed: Module 'Devel::StackTrace' is not installed
-> FAIL Bailing out the installation for Exception-Class-1.44.
-> FAIL Installing the dependencies failed: Module 'Exception::Class' is not installed
-> FAIL Bailing out the installation for Test-Most-0.35.
-> FAIL Installing the dependencies failed: Module 'Test::Most' is not installed
-> FAIL Bailing out the installation for Math-GSL-0.39.

In local/cache/modules/02packages.details.txt

Devel::StackTrace::AsHTML          0.15  M/MI/MIYAGAWA/Devel-StackTrace-AsHTML-0.15.tar.gz
Devel::StackTrace::Extract     1.000000  M/MA/MAXMIND/Devel-StackTrace-Extract-1.000000.tar.gz

No standalone Devel::StackTrace there.

It's my first attempt to use carton in deployment mode and it looks like feature is broken.

KES777 commented 6 years ago

@elcamlost please attach cpanfile

KES777 commented 5 years ago

@akarelas probably you will be interested in #253

minusdavid commented 3 years ago

I'm having the issue where "carton install" will install everything but "carton install --deployment" won't because the cpanfile.snapshot isn't being updated correctly.

I'll open up a separate issue for that...