Re: [Puppet Users] Cron question

Darvin Denmian
Tue, 13 Apr 2010 20:50:02 -0000

Here is the output:

debug: Failed to load library ''selinux'' for feature
''selinux''
debug: Failed to load library ''shadow'' for feature
''libshadow''
debug: Puppet::Type::User::ProviderPw: file pw does not exist
debug: Failed to load library ''ldap'' for feature
''ldap''
debug: Puppet::Type::User::ProviderLdap: feature ldap is missing
debug: Puppet::Type::User::ProviderDirectoryservice: file
/usr/bin/dscl does not exist
debug: Puppet::Type::User::ProviderUser_role_add: file roleadd does not exist
debug: /File[/etc/puppet/ssl]: Autorequiring File[/etc/puppet]
debug: /File[/var/puppet/state/state.yaml]: Autorequiring
File[/var/puppet/state]
debug: /File[/var/puppet/lib]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet/clientbucket]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/private_keys/localhost.localdomain.pem]:
Autorequiring File[/etc/puppet/ssl/private_keys]
debug: /File[/var/puppet/state/graphs]: Autorequiring File[/var/puppet/state]
debug: /File[/etc/puppet/ssl/certs]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/certs/localhost.localdomain.pem]:
Autorequiring File[/etc/puppet/ssl/certs]
debug: /File[/var/puppet/state]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/public_keys]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/private_keys]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/certificate_requests]: Autorequiring
File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/crl.pem]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/etc/puppet/ssl/certs/ca.pem]: Autorequiring
File[/etc/puppet/ssl/certs]
debug: /File[/var/puppet/run]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/public_keys/localhost.localdomain.pem]:
Autorequiring File[/etc/puppet/ssl/public_keys]
debug: /File[/var/puppet/log]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet/client_yaml]: Autorequiring File[/var/puppet]
debug: /File[/etc/puppet/ssl/private]: Autorequiring File[/etc/puppet/ssl]
debug: /File[/var/puppet/facts]: Autorequiring File[/var/puppet]
debug: /File[/var/puppet/state/classes.txt]: Autorequiring
File[/var/puppet/state]
debug: Finishing transaction -606850318 with 0 changes
debug: Using cached certificate for ca, good until Sun Mar 29 20:13:37 UTC 2015
debug: Using cached certificate for localhost.localdomain, good until
Tue Apr 07 13:50:30 UTC 2015
debug: Loaded state in 0.01 seconds
debug: Using cached certificate for ca, good until Sun Mar 29 20:13:37 UTC 2015
debug: Using cached certificate for localhost.localdomain, good until
Tue Apr 07 13:50:30 UTC 2015
debug: Using cached certificate_revocation_list for ca, good until
debug: catalog supports formats: b64_zlib_yaml marshal pson raw yaml; using pson
debug: Puppet::Type::Package::ProviderRpm: Executing ''/bin/rpm
--version''
debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm
--version''
debug: Puppet::Type::Package::ProviderAptrpm: Executing ''/bin/rpm -ql
rpm''
debug: Puppet::Type::Package::ProviderUrpmi: Executing ''/bin/rpm -ql
rpm''
info: Caching catalog for localhost.localdomain
debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc
does not exist
debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl
does not exist
debug: Puppet::Type::Service::ProviderDebian: file
/usr/sbin/update-rc.d does not exist
debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update
does not exist
debug: Puppet::Type::Package::ProviderRug: file /usr/bin/rug does not exist
debug: Puppet::Type::Package::ProviderPortage: file /usr/bin/emerge
does not exist
debug: Puppet::Type::Package::ProviderUrpmi: file urpmi does not exist
debug: Puppet::Type::Package::ProviderAptrpm: file apt-get does not exist
debug: Puppet::Type::Package::ProviderSunfreeware: file pkg-get does not exist
debug: Puppet::Type::Package::ProviderPorts: file /usr/sbin/pkg_info
does not exist
debug: Puppet::Type::Package::ProviderApt: file /usr/bin/apt-get does not exist
debug: Puppet::Type::Package::ProviderAptitude: file /usr/bin/aptitude
does not exist
debug: Puppet::Type::Package::ProviderFink: file /sw/bin/fink does not exist
debug: Puppet::Type::Package::ProviderHpux: file /usr/sbin/swremove
does not exist
debug: Puppet::Type::Package::ProviderUp2date: file
/usr/sbin/up2date-nox does not exist
debug: Puppet::Type::Package::ProviderSun: file /usr/sbin/pkgadd does not exist
debug: Puppet::Type::Package::ProviderDpkg: file /usr/bin/dpkg does not exist
debug: Puppet::Type::Package::ProviderFreebsd: file /usr/sbin/pkg_add
does not exist
debug: Puppet::Type::Package::ProviderOpenbsd: file pkg_add does not exist
debug: Creating default schedules
debug: Finishing transaction -607098048 with 0 changes
debug: Loaded state in 0.00 seconds
debug: Prefetching crontab resources for cron
debug: Prefetching yum resources for package
debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm
--version''
debug: Puppet::Type::Package::ProviderYum: Executing ''/bin/rpm -qa
--nosignature --nodigest --qf ''%{NAME} %|EPOCH?{%{EPOCH}}:{0}|
%{VERSION} %{RELEASE} %{ARCH}
''''
...

info: Applying configuration version ''1271191321''
debug: //Node[localhost]/Server::Config_queue[config]/Exec[create_queue]:
Executing check ''/usr/bin/test -d /root/queue''
debug: Executing ''/usr/bin/test -d /root/queue''
debug: //Node[localhost]/Server::Config_queue[config]/Exec[create_queue]:
Changing returns
debug: //Node[localhost]/Server::Config_queue[config]/Exec[create_queue]:
1 change(s)
debug: //Node[localhost]/Server::Config_queue[config]/Exec[create_queue]:
Executing ''/etc/puppet/modules/Server/files/bin/create_queue.sh
36''
debug: Executing ''/etc/puppet/modules/Server/files/bin/create_queue.sh
36''
notice:
//Node[localhost]/Server::Config_queue[config]/Exec[create_queue]/returns:
executed successfully
debug: //Node[localhost]/Server::Config_queue[config]/Exec[config_fstab]:
Executing check ''/bin/grep ''/media/queue''
''/etc/fstab''''
debug: Executing ''/bin/grep ''/media/queue''
''/etc/fstab''''
debug: Service[xinetd](provider=redhat): Executing ''ps -ef''
debug: Service[xinetd](provider=redhat): PID is 1746
debug: //Node[localhost]/Server::Config_queue[config]/Exec[config_queue]:
Executing check ''/bin/grep ''while''
/etc/rc.d/rc.local''
debug: Executing ''/bin/grep ''while''
/etc/rc.d/rc.local''
debug: //Server/[app]: Changing ensure
debug: //Server/[app]: 1 change(s)
notice: //Server/[app]/ensure: created
debug: Flushing cron provider target root
"-":6: bad minute
errors in crontab file, can''t install.
debug: //Server/Exec[config_munin_tmpfs]: Executing check ''/bin/grep
-e ''\[df\*\]'' /etc/munin/plugin-conf.d/munin-node''
debug: Executing ''/bin/grep -e ''\[df\*\]''
/etc/munin/plugin-conf.d/munin-node''
debug: Finishing transaction -607195238 with 2 changes
debug: Storing state
debug: Stored state in 0.08 seconds
notice: Finished catalog run in 1.58 seconds

Thanks!

On Tue, Apr 13, 2010 at 5:38 PM, Peter Meier <peter.meier@immerda.ch>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>> cron { "app":
>>      command     => "nice -n -10
>> /usr/bin/php/var/www/public_html/rotinas/rotinas.php
2>&1>>
>> /var/log/app.log",
>>      environment => "PATH=$PATH",
>>      user            => root,
>> }
>>
>> I got the same error:
>
> looks like a bug, can you file one, with --debug --verbose --trace ?
>
> thanks & cheers
>
> pete
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkvE1lQACgkQbwltcAfKi38viwCeJEnHdbhNw37zDOCOSwbSFO3A
> GPMAn3dPOax9Z2lmPUTtM8p8Vu40OqZe
> =Islb
> -----END PGP SIGNATURE-----