Re: [Puppet Users] Re: could not retrieve information from environment

Josh Cooper
Thu, 24 May 2012 16:23:52 -0000

On Thu, May 24, 2012 at 4:32 AM, Matt F <mfan2006@gmail.com>
wrote:
>
> Thanks Josh - here''s the output:
>
> C:\Windows\system32>puppet agent --test --debug
>
> debug: Failed to load library ''syslog'' for feature
''syslog''
> debug: Failed to load library ''selinux'' for feature
''selinux''
> debug: Puppet::Type::File::ProviderPosix: feature posix is missing
> debug: Failed to load library ''ldap'' for feature
''ldap''
> debug: Failed to load library ''shadow'' for feature
''libshadow''
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/log]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/var]
> debug:
>
/File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/devsttst01.pem]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/graphs]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/etc]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/client_yaml]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/resources.txt]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
> debug:
> /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/devsttst01.pem]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/facts]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/var]
> debug:
> /File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/clientbucket]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/lib]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/var]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/client_data]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var]
> debug:
> /File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_report.yaml]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/run]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/var]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/puppet.conf]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/var]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/classes.txt]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/state]
> debug:
/File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem]/mode:
> mode changed ''0660'' to ''0644''
> debug:
>
/File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/devsttst01.pem]/mode:
> mode changed ''0660'' to ''0644''
> debug:
>
/File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/devsttst01.pem]/mode:
> mode changed ''0640'' to ''0600''
> debug: Finishing transaction 129729372
>
> debug:
>
/File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/devsttst01.pem]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/lib]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/var]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/var]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/log]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/var]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/run]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/var]
> debug:
/File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/var/facts]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/var]
> debug:
> /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/devsttst01.pem]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]: Autorequiring
> File[C:/ProgramData/PuppetLabs/puppet/etc]
> debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs/ca.pem]:
> Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]
> debug: Finishing transaction 40561044
>
> debug: Using cached certificate for ca
> warning: peer certificate won''t be verified in this SSL session
> info: Caching certificate for devsttst01
> debug: Puppet::Type::User::ProviderUser_role_add: file passwd does not
exist
> debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/dscl
does
> not exist
> debug: Puppet::Type::User::ProviderPw: file pw does not exist
> debug: Puppet::Type::User::ProviderUseradd: file chage does not exist
> debug: Puppet::Type::User::ProviderLdap: true value when expecting false
> debug: Finishing transaction 131603244
>
> debug: Loaded state in 0.00 seconds
> info: Retrieving plugin
> debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using
> pson
> debug: Using cached certificate for ca
> debug: Using cached certificate for devsttst01
> info: Caching certificate_revocation_list for ca
> debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using
> pson
> err: /File[C:/ProgramData/PuppetLabs/puppet/var/lib]: Could not evaluate:
> Could not retrieve information from environment production source(s)
> puppet://myserver01.example.com/plugins
> debug: Finishing transaction 130785588
>
> debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using
pson
> info: Caching catalog for devsttst01
> debug: Creating default schedules
>
> debug: Loaded state in 0.00 seconds
> info: Applying configuration version ''1337805313''
> debug: /Schedule[daily]: Skipping device resources because running on a
host
> debug: /Schedule[monthly]: Skipping device resources because running on a
> host
> debug: /Schedule[hourly]: Skipping device resources because running on a
> host
> debug: /Schedule[never]: Skipping device resources because running on a
host
>
> debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using
> pson
> err: /Stage[main]//File[C:/engine/engine.exe]: Failed to generate
additional
> resources using ''eval_generate: Server hostname
''myserver01
>
> '' did not match server certificate; expected one of
myserver01.example.com,
> DNS:myserver01.example.com, DNS:puppet, DNS:puppet.example.com
> debug: file_metadata supports formats: b64_zlib_yaml pson raw yaml; using
> pson
> err: /Stage[main]//File[C:/engine/engine.exe]: Could not evaluate: Server
> hostname ''myserver01'' did not match server certificate;
expect
>
> ed one of myserver01.example.com, DNS:myserver01.example.com, DNS:puppet,
> DNS:puppet.example.com Could not retrieve file metadata for
> puppet://myserver01/files/engine/engine.exe: Server hostname
''myserver01''
> did not match server certificate; expected one of myserver01.example.com, D
> NS:myserver01.example.com, DNS:puppet, DNS:puppet.example.com at
> /etc/puppet/manifests/site.pp:8
> debug: /Schedule[weekly]: Skipping device resources because running on a
> host
> debug: /Schedule[puppet]: Skipping device resources because running on a
> host
> debug: Finishing transaction 39968364
> debug: Storing state
> debug: Stored state in 0.02 seconds
> notice: Finished catalog run in 0.30 seconds
>
> debug: Value of ''preferred_serialization_format'' (pson)
is invalid for
> report, using default (b64_zlib_yaml)
> debug: report supports formats: b64_zlib_yaml raw yaml; using b64_zlib_yaml
>
> C:\Windows\system32>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/puppet-users/-/NJESj8MNuG0J.
>
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.

Hi Matt,

Sorry, my bad. Could you redo this but run puppet as: ''puppet agent
--test --debug --trace''

The --trace is needed to display the backtrace.

Thanks,
Josh

--
Josh Cooper
Developer, Puppet Labs