Could not evaluate: Could not find command '/var/lib/puppet/concat/bin/concatfragments.rb'

1,048 views
Skip to first unread message

Joe Koenig

unread,
Jun 4, 2015, 9:55:01 AM6/4/15
to puppet...@googlegroups.com
I've got a puppet agent (3.8) on CentOS 7 that I'm trying to configure using the puppetlabs-apache module. I'm getting the following on the first run:

Error: /Stage[main]/Main/Node[web-agent-..xxxxxxx.com]/Apache::Vhost[example.com]/Concat[25-example.com.conf]/Exec[concat_25-example.com.conf]: Could not evaluate: Could not find command '/var/lib/puppet/concat/bin/concatfragments.rb'

Here's what my site.pp looks like:

node /^web-agent-(.*)\.bds-puppet\.com$/ {

        class { 'yum':

                extrarepo => ['epel', 'puppetlabs', 'remi_php55', 'remi']

        }

        file { ["/data", "/data/web", "/data/web/vhosts", "/data/web/vhosts/example.com"]: ensure => "directory" }

        file { ["/data/logs", "/data/logs/apache"]: ensure => "directory" }

        class { 'apache':

                package_ensure => '2.4.6-31.el7.centos',

                server_signature => 'Off',

                default_vhost => false,

                default_mods => false,

                mpm_module => false

        }

        class { 'apache::mod::prefork':

                startservers => '8',

                minspareservers => '3',

                maxspareservers => '5',

                serverlimit => '1024',

                maxclients => '1024',

                maxrequestsperchild => '4000'

        }

        apache::vhost { 'www.example.com':

                port => '80',

                serveraliases => ['example.com','*.example.com'],

                docroot => '/data/web/vhosts/example.com',

                access_log_file => 'example.com_access_log',

                error_log_file => 'example.com_error_log',

                logroot => '/data/logs/apache',

                override => 'All',

                directoryindex => 'index.php index.html',

                add_default_charset => 'UTF-8',

                options => ['-Indexes']

        }

        class { 'apache::mod::cache': }

        class { 'apache::mod::deflate': }

        class { 'apache::mod::dir': }

        class { 'apache::mod::mime': }

        class { 'apache::mod::mime_magic': }

        class { 'apache::mod::proxy': }

        class { 'apache::mod::rewrite': }

        class { 'apache::mod::ssl': }

        class { 'apache::mod::status': }

        class { 'apache::mod::vhost_alias': }

        class { '::apache::mod::php':

                package_name => "php-5.5.25-1.el7.remi",

        } 

        package { ["php-mcrypt","php-mysqlnd","php-gd","php-ldap","php-soap","php-mbstring","php-opcache","libcurl-devel"]:

                ensure => "installed",

                require => Class['apache']

        }

        package { "openldap-devel": ensure => "installed" }

        package { ["openssl","openssl-devel"]: ensure => "latest" }

        package { "wkhtmltopdf": ensure => "0.12.1-1.el7" }

}

Any pointers on what may be causing this would be greatly appreciated. Thanks!

Joe

Alexandre Dumont

unread,
Jul 8, 2015, 2:48:11 PM7/8/15
to puppet...@googlegroups.com
Same error here, when using puppet module saz-ssh v2.8.1.

All my modules are:

# puppet module list
/etc/puppet/modules
├── puppetlabs-concat (v1.2.3)
├── puppetlabs-ntp (v4.0.0)
├── puppetlabs-stdlib (v4.6.0)
└── saz-ssh (v2.8.1)

Some facts from my fresh installation:

# facter os puppetversion
os => {"name"=>"Ubuntu", "release"=>{"major"=>"12.04", "full"=>"12.04"}, "lsb"=>{"distrelease"=>"12.04", "distcodename"=>"precise", "majdistrelease"=>"12.04", "distdescription"=>"Ubuntu 12.04", "distid"=>"Ubuntu"}, "family"=>"Debian"}
puppetversion => 3.8.1

My site.pp:

include ::ssh::server

Error:

# puppet agent --test --noop 
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for ema
Info: Applying configuration version '1436379851'
Notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat]/ensure: current_value absent, should be directory (noop)
Notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin]/ensure: current_value absent, should be directory (noop)
Notice: /Stage[main]/Concat::Setup/File[/var/lib/puppet/concat/bin/concatfragments.rb]/ensure: current_value absent, should be file (noop)
Notice: Class[Concat::Setup]: Would have triggered 'refresh' from 3 events
Notice: /Stage[main]/Ssh::Server::Config/Concat[/etc/ssh/sshd_config]/File[/var/lib/puppet/concat/_etc_ssh_sshd_config]/ensure: current_value absent, should be directory (noop)
Info: /Stage[main]/Ssh::Server::Config/Concat[/etc/ssh/sshd_config]/File[/var/lib/puppet/concat/_etc_ssh_sshd_config]: Scheduling refresh of Exec[concat_/etc/ssh/sshd_config]
Notice: /Stage[main]/Ssh::Server::Config/Concat[/etc/ssh/sshd_config]/File[/var/lib/puppet/concat/_etc_ssh_sshd_config/fragments.concat.out]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Ssh::Server::Config/Concat[/etc/ssh/sshd_config]/File[/var/lib/puppet/concat/_etc_ssh_sshd_config/fragments]/ensure: current_value absent, should be directory (noop)
Info: /Stage[main]/Ssh::Server::Config/Concat[/etc/ssh/sshd_config]/File[/var/lib/puppet/concat/_etc_ssh_sshd_config/fragments]: Scheduling refresh of Exec[concat_/etc/ssh/sshd_config]
Notice: /Stage[main]/Ssh::Server::Config/Concat::Fragment[global config]/File[/var/lib/puppet/concat/_etc_ssh_sshd_config/fragments/00_global config]/ensure: current_value absent, should be file (noop)
Info: /Stage[main]/Ssh::Server::Config/Concat::Fragment[global config]/File[/var/lib/puppet/concat/_etc_ssh_sshd_config/fragments/00_global config]: Scheduling refresh of Exec[concat_/etc/ssh/sshd_config]
Notice: /Stage[main]/Ssh::Server::Config/Concat[/etc/ssh/sshd_config]/File[/var/lib/puppet/concat/_etc_ssh_sshd_config/fragments.concat]/ensure: current_value absent, should be present (noop)
Error: /Stage[main]/Ssh::Server::Config/Concat[/etc/ssh/sshd_config]/Exec[concat_/etc/ssh/sshd_config]: Could not evaluate: Could not find command '/var/lib/puppet/concat/bin/concatfragments.rb'
Notice: /Stage[main]/Ssh::Server::Config/Concat[/etc/ssh/sshd_config]/Exec[concat_/etc/ssh/sshd_config]: Would have triggered 'refresh' from 3 events
Notice: /Stage[main]/Ssh::Server::Config/Concat[/etc/ssh/sshd_config]/File[/etc/ssh/sshd_config]: Dependency Exec[concat_/etc/ssh/sshd_config] has failures: true
Warning: /Stage[main]/Ssh::Server::Config/Concat[/etc/ssh/sshd_config]/File[/etc/ssh/sshd_config]: Skipping because of failed dependencies
Notice: Concat[/etc/ssh/sshd_config]: Would have triggered 'refresh' from 5 events
Info: Concat[/etc/ssh/sshd_config]: Scheduling refresh of Service[ssh]
Notice: Concat::Fragment[global config]: Would have triggered 'refresh' from 1 events
Notice: Class[Ssh::Server::Config]: Would have triggered 'refresh' from 2 events
Info: Class[Ssh::Server::Config]: Scheduling refresh of Class[Ssh::Server::Service]
Notice: Class[Ssh::Server::Service]: Would have triggered 'refresh' from 1 events
Info: Class[Ssh::Server::Service]: Scheduling refresh of Service[ssh]
Notice: /Stage[main]/Ssh::Server::Service/Service[ssh]: Dependency Exec[concat_/etc/ssh/sshd_config] has failures: true
Warning: /Stage[main]/Ssh::Server::Service/Service[ssh]: Skipping because of failed dependencies
Notice: /Stage[main]/Ssh::Server::Service/Service[ssh]: Would have triggered 'refresh' from 2 events
Notice: Class[Ssh::Server::Service]: Would have triggered 'refresh' from 1 events
Notice: /Stage[main]/Ssh::Server/Anchor[ssh::server::end]: Dependency Exec[concat_/etc/ssh/sshd_config] has failures: true
Warning: /Stage[main]/Ssh::Server/Anchor[ssh::server::end]: Skipping because of failed dependencies
Notice: Stage[main]: Would have triggered 'refresh' from 3 events
Notice: Finished catalog run in 0.34 seconds

Charlie-Jane Costello

unread,
Jul 13, 2015, 9:22:55 AM7/13/15
to puppet...@googlegroups.com
Yeah, I'm getting the same error as you Joe. I'm also using the Apache module on a Centos7 machine. 
Puppet version 3.7.4. I did however try initially with 3.8.1, but thought that this may have been a version issue, and therefore downgraded.

Alexandre Dumont

unread,
Jul 13, 2015, 9:26:40 AM7/13/15
to puppet...@googlegroups.com
Please see https://tickets.puppetlabs.com/browse/MODULES-2206the existing implementation for concat does not work properly with noop mode, and unfortunately cannot work without violating the principle of noop mode (no changes made on the system). There was some discussion about this, and the issues in the pull request here

--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/vB4hJddgHDM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b3e20dd3-5f2d-4946-8753-d18cb60ea149%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Charlie-Jane Costello

unread,
Jul 13, 2015, 9:40:57 AM7/13/15
to puppet...@googlegroups.com
Yeah, I've just tried running the code again without --noop and it worked fine. 

Thomas Müller

unread,
Jul 14, 2015, 1:56:22 AM7/14/15
to puppet...@googlegroups.com
It needs to copy a script once - which it can't do if it was never ran without noop. after that the noop mode should work. 
Reply all
Reply to author
Forward
0 new messages