genebean / genebean-nxlog

A Puppet module to manage NXLog
BSD 3-Clause "New" or "Revised" License
5 stars 16 forks source link

Configuration problem #2

Closed thebiggestlebowski closed 9 years ago

thebiggestlebowski commented 9 years ago

I am trying to install nxlog using this puppet module on Windows Server 2012 R2 on an AWS EC2 micro instance. I am using the default config file which I copied from the documentation here: https://github.com/genebean/genebean-nxlog#overview.

I am getting the error below. Why is it looking in ProgramData when the config says nxlog root dir is here: nxlog_root => 'C:\Program Files (x86)\nxlog'. The directory in the error message indeed does not exist; should this be created by the puppet module at some point? Is there something additional I should configure besdies what is listed in the README.md?

Error Message:

(at C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/type/file/source.rb:133:in `block in copy_sourcevalues') Error: Cannot create C:/ProgramData/PuppetLabs/puppet/var/concat/C/Program Files (x86)/nxlog/confnxlog.conf; parent directory C:/ProgramData/PuppetLabs/puppet/var/concat/C/Program Files (x86)/nxlog does not exist

thebiggestlebowski commented 9 years ago

Here is my config, since it can't hurt to include it. Obviously the nxlog client needs to point to a different server than listed, but this is erroring out before we get to that point:

class {'nxlog': conf_dir => 'C:\Program Files (x86)\nxlog\conf', conf_file => 'nxlog.conf', ensure_setting => latest, nxlog_root => 'C:\Program Files (x86)\nxlog', }

nxlog::config::extension { 'json': ext_module => 'xm_json', }

nxlog::config::input { 'eventlog_json': input_execs => [ 'delete($Keywords)', '$raw_event = to_json()', ], input_module => 'im_msvistalog', }

nxlog::config::output { 'local_json': output_file_path => 'C:\eventlog-json.txt', output_module => 'om_file', }

nxlog::config::output { 'logserver': output_address => 'logserver.example.com', output_module => 'om_udp', output_port => '6371', }

nxlog::config::route { 'local': route_destination => [ 'local_json', ], route_source => [ 'eventlog_json', ], }

nxlog::config::route { 'logserver': route_destination => [ 'logserver', ], route_source => [ 'eventlog_json', ], }

thebiggestlebowski commented 9 years ago

Here is the full debug from my failure:

Windows PowerShell Copyright (C) 2014 Microsoft Corporation. All rights reserved.

PS C:\Users\Administrator> cd C:\infrastructure PS C:\infrastructure> puppet apply --modulepath=.\modules roles\log_search\nxlog.pp -dddd Debug: Runtime environment: puppet_version=3.8.1, ruby_version=2.0.0, run_mode=user, default_encoding=IBM437 Debug: Loading external facts from C:/ProgramData/PuppetLabs/puppet/var/facts.d Info: Loading facts Debug: Loading facts from C:/infrastructure/modules/apt/lib/facter/apt_updates.rb Debug: Loading facts from C:/infrastructure/modules/apt/lib/facter/apt_update_last_success.rb Info: Loading facts Debug: Loading facts from C:/infrastructure/modules/concat/lib/facter/concat_basedir.rb Info: Loading facts Debug: Loading facts from C:/infrastructure/modules/elasticsearch/lib/facter/es_facts.rb Info: Loading facts Debug: Loading facts from C:/infrastructure/modules/java/lib/facter/java_major_version.rb Debug: Loading facts from C:/infrastructure/modules/java/lib/facter/java_patch_level.rb Debug: Loading facts from C:/infrastructure/modules/java/lib/facter/java_version.rb Info: Loading facts Debug: Loading facts from C:/infrastructure/modules/stdlib/lib/facter/facter_dot_d.rb Debug: Loading facts from C:/infrastructure/modules/stdlib/lib/facter/pe_version.rb Debug: Loading facts from C:/infrastructure/modules/stdlib/lib/facter/puppet_vardir.rb Debug: Loading facts from C:/infrastructure/modules/stdlib/lib/facter/root_home.rb Debug: importing 'C:/infrastructure/modules/nxlog/manifests/init.pp' in environment production Debug: Automatically imported nxlog from nxlog into production Debug: importing 'C:/infrastructure/modules/nxlog/manifests/params.pp' in environment production Debug: Automatically imported nxlog::params from nxlog/params into production Warning: Config file C:/ProgramData/PuppetLabs/puppet/etc/hiera.yaml not found, using Hiera defaults Debug: hiera(): Hiera YAML backend starting Debug: hiera(): Looking up nxlog::ext_module in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::input_execs in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::input_module in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::order_extension in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::order_header in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::order_input in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::order_output in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::order_route in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::output_address in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::output_file_path in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::output_module in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::output_port in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::route_destination in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::route_source in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: importing 'C:/infrastructure/modules/nxlog/manifests/install.pp' in environment production Debug: Automatically imported nxlog::install from nxlog/install into production Debug: hiera(): Looking up nxlog::install::ensure_setting in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: importing 'C:/infrastructure/modules/nxlog/manifests/config.pp' in environment production Debug: Automatically imported nxlog::config from nxlog/config into production Debug: hiera(): Looking up nxlog::config::conf_dir in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::config::conf_file in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: hiera(): Looking up nxlog::config::nxlog_root in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: importing 'C:/infrastructure/modules/concat/manifests/init.pp' in environment production Debug: Automatically imported concat from concat into production Debug: Scope(Class[Nxlog::Config]): Retrieving template nxlog/header.erb Debug: template[C:/infrastructure/modules/nxlog/templates/header.erb]: Bound template variables for C:/infrastructure/mo dules/nxlog/templates/header.erb in 0.00 seconds Debug: template[C:/infrastructure/modules/nxlog/templates/header.erb]: Interpolated template C:/infrastructure/modules/n xlog/templates/header.erb in 0.00 seconds Debug: importing 'C:/infrastructure/modules/concat/manifests/fragment.pp' in environment production Debug: Automatically imported concat::fragment from concat/fragment into production Debug: importing 'C:/infrastructure/modules/nxlog/manifests/service.pp' in environment production Debug: Automatically imported nxlog::service from nxlog/service into production Debug: hiera(): Looking up nxlog::service::ensure_setting in YAML backend Debug: hiera(): Looking for data source common Debug: hiera(): Cannot find datafile C:\ProgramData/PuppetLabs/hiera/var/common.yaml, skipping Debug: importing 'C:/infrastructure/modules/nxlog/manifests/config/extension.pp' in environment production Debug: Automatically imported nxlog::config::extension from nxlog/config/extension into production Debug: importing 'C:/infrastructure/modules/nxlog/manifests/config/input.pp' in environment production Debug: Automatically imported nxlog::config::input from nxlog/config/input into production Debug: importing 'C:/infrastructure/modules/nxlog/manifests/config/output.pp' in environment production Debug: Automatically imported nxlog::config::output from nxlog/config/output into production Debug: importing 'C:/infrastructure/modules/nxlog/manifests/config/route.pp' in environment production Debug: Automatically imported nxlog::config::route from nxlog/config/route into production Debug: importing 'C:/infrastructure/modules/concat/manifests/setup.pp' in environment production Debug: Automatically imported concat::setup from concat/setup into production Debug: Failed to load library 'selinux' for feature 'selinux' Debug: Scope(Nxlog::Config::Extension[json]): Retrieving template nxlog/extension.erb Debug: template[C:/infrastructure/modules/nxlog/templates/extension.erb]: Bound template variables for C:/infrastructure /modules/nxlog/templates/extension.erb in 0.00 seconds Debug: template[C:/infrastructure/modules/nxlog/templates/extension.erb]: Interpolated template C:/infrastructure/module s/nxlog/templates/extension.erb in 0.00 seconds Debug: Scope(Nxlog::Config::Input[eventlog_json]): Retrieving template nxlog/input.erb Debug: template[C:/infrastructure/modules/nxlog/templates/input.erb]: Bound template variables for C:/infrastructure/mod ules/nxlog/templates/input.erb in 0.00 seconds Debug: template[C:/infrastructure/modules/nxlog/templates/input.erb]: Interpolated template C:/infrastructure/modules/nx log/templates/input.erb in 0.00 seconds Debug: Scope(Nxlog::Config::Output[localjson]): Retrieving template nxlog/output.erb Debug: template[C:/infrastructure/modules/nxlog/templates/output.erb]: Bound template variables for C:/infrastructure/mo dules/nxlog/templates/output.erb in 0.02 seconds Debug: template[C:/infrastructure/modules/nxlog/templates/output.erb]: Interpolated template C:/infrastructure/modules/n xlog/templates/output.erb in 0.00 seconds Debug: Scope(Nxlog::Config::Output[logserver]): Retrieving template nxlog/output.erb Debug: template[C:/infrastructure/modules/nxlog/templates/output.erb]: Bound template variables for C:/infrastructure/mo dules/nxlog/templates/output.erb in 0.00 seconds Debug: template[C:/infrastructure/modules/nxlog/templates/output.erb]: Interpolated template C:/infrastructure/modules/n xlog/templates/output.erb in 0.00 seconds Debug: Scope(Nxlog::Config::Route[local]): Retrieving template nxlog/route.erb Debug: template[C:/infrastructure/modules/nxlog/templates/route.erb]: Bound template variables for C:/infrastructure/mod ules/nxlog/templates/route.erb in 0.00 seconds Debug: template[C:/infrastructure/modules/nxlog/templates/route.erb]: Interpolated template C:/infrastructure/modules/nx log/templates/route.erb in 0.00 seconds Debug: Scope(Nxlog::Config::Route[logserver]): Retrieving template nxlog/route.erb Debug: template[C:/infrastructure/modules/nxlog/templates/route.erb]: Bound template variables for C:/infrastructure/mod ules/nxlog/templates/route.erb in 0.00 seconds Debug: template[C:/infrastructure/modules/nxlog/templates/route.erb]: Interpolated template C:/infrastructure/modules/nx log/templates/route.erb in 0.00 seconds Debug: Adding relationship from Anchor[::nxlog::start] to Class[Nxlog::Install] with 'before' Debug: Adding relationship from Class[Nxlog::Install] to Class[Nxlog::Config] with 'before' Debug: Adding relationship from Class[Nxlog::Config] to Class[Nxlog::Service] with 'before' Debug: Adding relationship from Class[Nxlog::Service] to Anchor[::nxlog::end] with 'before' Debug: File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb]: Adding default for backup Debug: File[C:/ProgramData/PuppetLabs/puppet/var/concat]: Adding default for backup Debug: File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin]: Adding default for backup Debug: File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf]: Adding default fo r backup Debug: File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf/fragments]: Adding default for backup Debug: File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf/fragments.concat]: Adding default for backup Debug: File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments.concat.ou t]: Adding default for backup Debug: Exec[concat_C:\Program Files (x86)\nxlog\conf/nxlog.conf]: Adding default for user Debug: Exec[concat_C:\Program Files (x86)\nxlog\conf/nxlog.conf]: Adding default for group Notice: Compiled catalog for win-q23869lt7si.ec2.internal in environment production in 2.98 seconds Debug: Puppet::Type::Package::ProviderAix: file /usr/bin/lslpp does not exist Debug: Puppet::Type::Package::ProviderDpkg: file /usr/bin/dpkg 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::ProviderRpm: file rpm does not exist Debug: Puppet::Type::Package::ProviderAptrpm: file apt-get does not exist Debug: Puppet::Type::Package::ProviderSun: file /usr/bin/pkginfo does not exist Debug: Puppet::Type::Package::ProviderFink: file /sw/bin/fink does not exist Debug: Puppet::Type::Package::ProviderOpenbsd: file pkg_info does not exist Debug: Puppet::Type::Package::ProviderFreebsd: file /usr/sbin/pkg_info does not exist Debug: Puppet::Type::Package::ProviderHpux: file /usr/sbin/swinstall does not exist Debug: Puppet::Type::Package::ProviderNim: file /usr/sbin/nimclient does not exist Debug: Puppet::Type::Package::ProviderOpkg: file opkg does not exist Debug: Puppet::Type::Package::ProviderPacman: file /usr/bin/pacman does not exist Debug: Puppet::Type::Package::ProviderPkg: file /usr/bin/pkg does not exist Debug: Puppet::Type::Package::ProviderPkgin: file pkgin does not exist Debug: Puppet::Type::Package::ProviderPortage: file /usr/bin/emerge does not exist Debug: Puppet::Type::Package::ProviderPorts: file /usr/local/sbin/portupgrade does not exist Debug: Puppet::Type::Package::ProviderPortupgrade: file /usr/local/sbin/portupgrade does not exist Debug: Puppet::Type::Package::ProviderRug: file /usr/bin/rug does not exist Debug: Puppet::Type::Package::ProviderSunfreeware: file pkg-get does not exist Debug: Puppet::Type::Package::ProviderUp2date: file /usr/sbin/up2date-nox does not exist Debug: Puppet::Type::Package::ProviderUrpmi: file urpmi does not exist Debug: Puppet::Type::Package::ProviderYum: file yum does not exist Debug: Puppet::Type::Package::ProviderZypper: file /usr/bin/zypper does not exist Debug: /Package[nxlog]: Provider chocolatey does not support features virtual_packages; not managing attribute allow_vir tual Debug: Puppet::Type::Service::ProviderBase: file kill does not exist Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc 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::Service::ProviderLaunchd: file /bin/launchctl does not exist Debug: Puppet::Type::Service::ProviderOpenrc: file /bin/rc-status does not exist Debug: Puppet::Type::Service::ProviderRedhat: file /sbin/chkconfig does not exist Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist Debug: Puppet::Type::Service::ProviderSystemd: file systemctl does not exist Debug: Puppet::Type::Service::ProviderUpstart: 0 confines (of 2) were true Debug: Puppet::Type::File::ProviderPosix: feature posix is missing Debug: Puppet::Type::Exec::ProviderPosix: feature posix is missing Debug: Puppet::Type::Exec::ProviderShell: feature posix is missing Debug: Creating default schedules Debug: Using settings: adding file resource 'confdir': 'File[C:/ProgramData/PuppetLabs/puppet/etc]{:path=>"C:/ProgramDat a/PuppetLabs/puppet/etc", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'vardir': 'File[C:/ProgramData/PuppetLabs/puppet/var]{:path=>"C:/ProgramData /PuppetLabs/puppet/var", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'logdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/log]{:path=>"C:/Program Data/PuppetLabs/puppet/var/log", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'

Debug: Using settings: adding file resource 'statedir': 'File[C:/ProgramData/PuppetLabs/puppet/var/state]{:path=>"C:/Pro gramData/PuppetLabs/puppet/var/state", :mode=>"1755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=> false}' Debug: Using settings: adding file resource 'rundir': 'File[C:/ProgramData/PuppetLabs/puppet/var/run]{:path=>"C:/Program Data/PuppetLabs/puppet/var/run", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'

Debug: Using settings: adding file resource 'libdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/lib]{:path=>"C:/Program Data/PuppetLabs/puppet/var/lib", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'preview_outputdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/preview]{:pa th=>"C:/ProgramData/PuppetLabs/puppet/var/preview", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follo w, :backup=>false}' Debug: Using settings: adding file resource 'certdir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]{:path=>"C:/ ProgramData/PuppetLabs/puppet/etc/ssl/certs", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :ba ckup=>false}' Debug: Using settings: adding file resource 'ssldir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]{:path=>"C:/Program Data/PuppetLabs/puppet/etc/ssl", :mode=>"771", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'

Debug: Using settings: adding file resource 'publickeydir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]{ :path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys", :mode=>"755", :ensure=>:directory, :loglevel=>:debug, :li nks=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'requestdir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_req uests]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests", :mode=>"755", :ensure=>:directory, :logle vel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'privatekeydir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys ]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'privatedir': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private]{:path=

"C:/ProgramData/PuppetLabs/puppet/etc/ssl/private", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:foll ow, :backup=>false}' Debug: Using settings: adding file resource 'hostprivkey': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/w in-q23869lt7si.ec2.internal.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys/win-q23869lt7si.ec2.inter nal.pem", :mode=>"640", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'hostpubkey': 'File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/win -q23869lt7si.ec2.internal.pem]{:path=>"C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/win-q23869lt7si.ec2.internal .pem", :mode=>"644", :ensure=>:file, :loglevel=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'statefile': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml]{:p ath=>"C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml", :mode=>"660", :ensure=>:file, :loglevel=>:debug, :links=>: follow, :backup=>false}' Debug: Using settings: adding file resource 'clientyamldir': 'File[C:/ProgramData/PuppetLabs/puppet/var/client_yaml]{:pa th=>"C:/ProgramData/PuppetLabs/puppet/var/client_yaml", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:f ollow, :backup=>false}' Debug: Using settings: adding file resource 'client_datadir': 'File[C:/ProgramData/PuppetLabs/puppet/var/client_data]{:p ath=>"C:/ProgramData/PuppetLabs/puppet/var/client_data", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>: follow, :backup=>false}' Debug: Using settings: adding file resource 'clientbucketdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/clientbucket]{ :path=>"C:/ProgramData/PuppetLabs/puppet/var/clientbucket", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links =>:follow, :backup=>false}' Debug: Using settings: adding file resource 'lastrunfile': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_sum mary.yaml]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml", :mode=>"644", :ensure=>:file, :log level=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'lastrunreport': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_r eport.yaml]{:path=>"C:/ProgramData/PuppetLabs/puppet/var/state/last_run_report.yaml", :mode=>"640", :ensure=>:file, :log level=>:debug, :links=>:follow, :backup=>false}' Debug: Using settings: adding file resource 'graphdir': 'File[C:/ProgramData/PuppetLabs/puppet/var/state/graphs]{:path=> "C:/ProgramData/PuppetLabs/puppet/var/state/graphs", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>f alse}' Debug: Using settings: adding file resource 'pluginfactdest': 'File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]{:path= "C:/ProgramData/PuppetLabs/puppet/var/facts.d", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false }' Debug: Failed to load library 'shadow' for feature 'libshadow' Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/log]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state]: 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/var/lib]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/preview]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] Debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certs]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc/ss l] Debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/etc] Debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/ etc/ssl] Debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/certificate_requests]: Autorequiring File[C:/ProgramData/PuppetLab s/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/etc/ssl/private_keys/win-q23869lt7si.ec2.internal.pem]: Autorequiring File [C:/ProgramData/PuppetLabs/puppet/etc/ssl/private_keys] Debug: /File[C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys/win-q23869lt7si.ec2.internal.pem]: Autorequiring File[ C:/ProgramData/PuppetLabs/puppet/etc/ssl/public_keys] Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/state.yaml]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet /var/state] Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/client_yaml]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var]

Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/client_data]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var]

Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/clientbucket]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var ] Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/last_run_summary.yaml]: Autorequiring File[C:/ProgramData/Puppet Labs/puppet/var/state] Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/last_runreport.yaml]: Autorequiring File[C:/ProgramData/PuppetL abs/puppet/var/state] Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/state/graphs]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var /state] Debug: /File[C:/ProgramData/PuppetLabs/puppet/var/facts.d]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var] Debug: Finishing transaction 49589980 Debug: Loaded state in 0.00 seconds Debug: Loaded state in 0.00 seconds Debug: /Stage[main]/Nxlog/Anchor[::nxlog::start]/before: requires Class[Nxlog::Install] Debug: /Stage[main]/Nxlog::Install/before: requires Class[Nxlog::Config] Debug: /Stage[main]/Nxlog::Config/before: requires Class[Nxlog::Service] Debug: /Stage[main]/Nxlog::Service/before: requires Anchor[::nxlog::end] Debug: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/pu ppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments]/notify: subscribes to Exec[concat_C:\Program Fil es (x86)\nxlog\conf/nxlog.conf] Debug: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/Exec[concatC:\Program Files (x86 )\nxlog\conf/nxlog.conf]/require: requires File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog \conf_nxlog.conf] Debug: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/Exec[concatC:\Program Files (x86 )\nxlog\conf/nxlog.conf]/require: requires File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog \conf_nxlog.conf/fragments] Debug: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/Exec[concatC:\Program Files (x86 )\nxlog\conf/nxlog.conf]/require: requires File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog \conf_nxlog.conf/fragments.concat] Debug: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/Exec[concatC:\Program Files (x86 )\nxlog\conf/nxlog.conf]/subscribe: subscribes to File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86 )\nxlog\conf_nxlog.conf] Debug: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/Exec[concat_C:\Program Files (x86 )\nxlog\conf/nxlog.conf]/notify: subscribes to File[C:\Program Files (x86)\nxlog\conf/nxlog.conf] Debug: /Stage[main]/Nxlog::Config/Concat::Fragment[confheader]/File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Prog ram Files (x86)\nxlog\conf_nxlog.conf/fragments/01_conf_header]/notify: subscribes to Exec[concat_C:\Program Files (x86) \nxlog\conf/nxlog.conf] Debug: /Stage[main]/Nxlog::Config/Concat::Fragment[conffooter]/File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Prog ram Files (x86)\nxlog\conf_nxlog.conf/fragments/99_conf_footer]/notify: subscribes to Exec[concat_C:\Program Files (x86) \nxlog\conf/nxlog.conf] Debug: /Stage[main]/Main/Nxlog::Config::Extension[json]/Concat::Fragment[extensionjson]/File[C:/ProgramData/PuppetLabs/ puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/05_extension_json]/notify: subscribes to Exec[c oncat_C:\Program Files (x86)\nxlog\conf/nxlog.conf] Debug: /Stage[main]/Main/Nxlog::Config::Input[eventlog_json]/Concat::Fragment[input_eventlogjson]/File[C:/ProgramData/P uppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/10_input_eventlog_json]/notify: subsc ribes to Exec[concat_C:\Program Files (x86)\nxlog\conf/nxlog.conf] Debug: /Stage[main]/Main/Nxlog::Config::Output[local_json]/Concat::Fragment[output_localjson]/File[C:/ProgramData/Puppe tLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/40_output_local_json]/notify: subscribes to Exec[concat_C:\Program Files (x86)\nxlog\conf/nxlog.conf] Debug: /Stage[main]/Main/Nxlog::Config::Output[logserver]/Concat::Fragment[outputlogserver]/File[C:/ProgramData/PuppetL abs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/40_output_logserver]/notify: subscribes to Exec[concat_C:\Program Files (x86)\nxlog\conf/nxlog.conf] Debug: /Stage[main]/Main/Nxlog::Config::Route[local]/Concat::Fragment[routelocal]/File[C:/ProgramData/PuppetLabs/puppet /var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/90_route_local]/notify: subscribes to Exec[concat_C:\ Program Files (x86)\nxlog\conf/nxlog.conf] Debug: /Stage[main]/Main/Nxlog::Config::Route[logserver]/Concat::Fragment[routelogserver]/File[C:/ProgramData/PuppetLab s/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/90_route_logserver]/notify: subscribes to Exe c[concatC:\Program Files (x86)\nxlog\conf/nxlog.conf] Debug: /Stage[main]/Concat::Setup/File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb]: Autorequirin g File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin] Debug: /Stage[main]/Concat::Setup/File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin]: Autorequiring File[C:/ProgramDa ta/PuppetLabs/puppet/var/concat] Debug: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/pu ppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var/c oncat] Debug: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/pu ppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf/fragments]: Autorequiring File[C:/ProgramData/PuppetLabs/pu ppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf] Debug: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/pu ppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf/fragments.concat]: Autorequiring File[C:/ProgramData/Puppet Labs/puppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf] Debug: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/pu ppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf/fragments.concat.out]: Autorequiring File[C:/ProgramData/Pu ppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf] Debug: /Stage[main]/Nxlog::Config/Concat::Fragment[confheader]/File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Prog ram Files (x86)\nxlog\conf_nxlog.conf/fragments/01_confheader]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var /concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments] Debug: /Stage[main]/Nxlog::Config/Concat::Fragment[conffooter]/File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Prog ram Files (x86)\nxlog\conf_nxlog.conf/fragments/99_conffooter]: Autorequiring File[C:/ProgramData/PuppetLabs/puppet/var /concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments] Debug: /Stage[main]/Main/Nxlog::Config::Extension[json]/Concat::Fragment[extensionjson]/File[C:/ProgramData/PuppetLabs/ puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/05_extensionjson]: Autorequiring File[C:/Progr amData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments] Debug: /Stage[main]/Main/Nxlog::Config::Input[eventlog_json]/Concat::Fragment[input_eventlogjson]/File[C:/ProgramData/P uppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/10_input_eventlogjson]: Autorequirin g File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments] Debug: /Stage[main]/Main/Nxlog::Config::Output[local_json]/Concat::Fragment[output_localjson]/File[C:/ProgramData/Puppe tLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/40_output_localjson]: Autorequiring File [C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments] Debug: /Stage[main]/Main/Nxlog::Config::Output[logserver]/Concat::Fragment[outputlogserver]/File[C:/ProgramData/PuppetL abs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/40_outputlogserver]: Autorequiring File[C: /ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments] Debug: /Stage[main]/Main/Nxlog::Config::Route[local]/Concat::Fragment[routelocal]/File[C:/ProgramData/PuppetLabs/puppet /var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/90_routelocal]: Autorequiring File[C:/ProgramData/Pu ppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments] Debug: /Stage[main]/Main/Nxlog::Config::Route[logserver]/Concat::Fragment[routelogserver]/File[C:/ProgramData/PuppetLab s/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/90_routelogserver]: Autorequiring File[C:/Pr ogramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments] Info: Applying configuration version '1441747990' Warning: Copying owner/mode/group from the source file on Windows is deprecated; use source_permissions => ignore. (at C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/type/file/source.rb:133:in `block in copy_source_values') Debug: /Stage[main]/Concat::Setup/File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb]: Copying owne r from the source file on Windows is deprecated; use source_permissions => ignore. Debug: /Stage[main]/Concat::Setup/File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb]: Copying mode from the source file on Windows is deprecated; use source_permissions => ignore. Debug: /Stage[main]/Concat::Setup/File[C:/ProgramData/PuppetLabs/puppet/var/concat/bin/concatfragments.rb]: Copying grou p from the source file on Windows is deprecated; use sourcepermissions => ignore. Debug: Prefetching chocolatey resources for package Debug: Executing 'C:\ProgramData\chocolatey\bin\choco.exe -v' Debug: Executing 'C:\ProgramData\chocolatey\bin\choco.exe list -lo -r' Debug: Executing 'C:\ProgramData\chocolatey\bin\choco.exe upgrade --noop nxlog -r' Error: Cannot create C:/ProgramData/PuppetLabs/puppet/var/concat/C/Program Files (x86)/nxlog/confnxlog.conf; parent di rectory C:/ProgramData/PuppetLabs/puppet/var/concat/C/Program Files (x86)/nxlog does not exist Error: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/pu ppet/var/concat/C_\Program Files (x86)\nxlog\confnxlog.conf]/ensure: change from absent to directory failed: Cannot cre ate C:/ProgramData/PuppetLabs/puppet/var/concat/C/Program Files (x86)/nxlog/confnxlog.conf; parent directory C:/Progra mData/PuppetLabs/puppet/var/concat/C/Program Files (x86)/nxlog does not exist Notice: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/p uppet/var/concat/C_\Program Files (x86)\nxlog\confnxlog.conf/fragments.concat]: Dependency File[C:/ProgramData/PuppetLa bs/puppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf] has failures: true Warning: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/ puppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf/fragments.concat]: Skipping because of failed dependencie s Notice: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/p uppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf/fragments]: Dependency File[C:/ProgramData/PuppetLabs/pupp et/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf] has failures: true Warning: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/ puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments]: Skipping because of failed dependencies Notice: /Stage[main]/Nxlog::Config/Concat::Fragment[confheader]/File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Pro gram Files (x86)\nxlog\conf_nxlog.conf/fragments/01_confheader]: Dependency File[C:/ProgramData/PuppetLabs/puppet/var/c oncat/C\Program Files (x86)\nxlog\conf_nxlog.conf] has failures: true Warning: /Stage[main]/Nxlog::Config/Concat::Fragment[confheader]/File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Pr ogram Files (x86)\nxlog\conf_nxlog.conf/fragments/01_confheader]: Skipping because of failed dependencies Notice: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/p uppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf/fragments.concat.out]: Dependency File[C:/ProgramData/Pupp etLabs/puppet/var/concat/C\Program Files (x86)\nxlog\confnxlog.conf] has failures: true Warning: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:/ProgramData/PuppetLabs/ puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments.concat.out]: Skipping because of failed depende ncies Notice: /Stage[main]/Nxlog::Config/Concat::Fragment[conffooter]/File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Pro gram Files (x86)\nxlog\conf_nxlog.conf/fragments/99_conffooter]: Dependency File[C:/ProgramData/PuppetLabs/puppet/var/c oncat/C\Program Files (x86)\nxlog\conf_nxlog.conf] has failures: true Warning: /Stage[main]/Nxlog::Config/Concat::Fragment[conffooter]/File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Pr ogram Files (x86)\nxlog\conf_nxlog.conf/fragments/99_conf_footer]: Skipping because of failed dependencies Notice: /Stage[main]/Main/Nxlog::Config::Route[local]/Concat::Fragment[routelocal]/File[C:/ProgramData/PuppetLabs/puppe t/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/90_routelocal]: Dependency File[C:/ProgramData/Pupp etLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf] has failures: true Warning: /Stage[main]/Main/Nxlog::Config::Route[local]/Concat::Fragment[routelocal]/File[C:/ProgramData/PuppetLabs/pupp et/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/90_route_local]: Skipping because of failed depende ncies Notice: /Stage[main]/Main/Nxlog::Config::Output[local_json]/Concat::Fragment[output_localjson]/File[C:/ProgramData/Pupp etLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/40_output_localjson]: Dependency File[C :/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf] has failures: true Warning: /Stage[main]/Main/Nxlog::Config::Output[local_json]/Concat::Fragment[output_localjson]/File[C:/ProgramData/Pup petLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/40_output_local_json]: Skipping because of failed dependencies Notice: /Stage[main]/Main/Nxlog::Config::Output[logserver]/Concat::Fragment[outputlogserver]/File[C:/ProgramData/Puppet Labs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/40_outputlogserver]: Dependency File[C:/P rogramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf] has failures: true Warning: /Stage[main]/Main/Nxlog::Config::Output[logserver]/Concat::Fragment[outputlogserver]/File[C:/ProgramData/Puppe tLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/40_output_logserver]: Skipping because of failed dependencies Notice: /Stage[main]/Main/Nxlog::Config::Extension[json]/Concat::Fragment[extensionjson]/File[C:/ProgramData/PuppetLabs /puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/05_extensionjson]: Dependency File[C:/Program Data/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf] has failures: true Warning: /Stage[main]/Main/Nxlog::Config::Extension[json]/Concat::Fragment[extensionjson]/File[C:/ProgramData/PuppetLab s/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/05_extension_json]: Skipping because of faile d dependencies Notice: /Stage[main]/Main/Nxlog::Config::Input[eventlog_json]/Concat::Fragment[input_eventlogjson]/File[C:/ProgramData/ PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/10_input_eventlogjson]: Dependency File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf] has failures: true Warning: /Stage[main]/Main/Nxlog::Config::Input[eventlog_json]/Concat::Fragment[input_eventlogjson]/File[C:/ProgramData /PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/10_input_eventlog_json]: Skipping b ecause of failed dependencies Notice: /Stage[main]/Main/Nxlog::Config::Route[logserver]/Concat::Fragment[routelogserver]/File[C:/ProgramData/PuppetLa bs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/90_routelogserver]: Dependency File[C:/Prog ramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf] has failures: true Warning: /Stage[main]/Main/Nxlog::Config::Route[logserver]/Concat::Fragment[routelogserver]/File[C:/ProgramData/PuppetL abs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf/fragments/90_route_logserver]: Skipping because of fa iled dependencies Notice: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/Exec[concatC:\Program Files (x8 6)\nxlog\conf/nxlog.conf]: Dependency File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf _nxlog.conf] has failures: true Warning: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/Exec[concatC:\Program Files (x 86)\nxlog\conf/nxlog.conf]: Skipping because of failed dependencies Notice: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:\Program Files (x86)\nxlo g\conf/nxlog.conf]: Dependency File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\confnxlog. conf] has failures: true Warning: /Stage[main]/Nxlog::Config/Concat[C:\Program Files (x86)\nxlog\conf/nxlog.conf]/File[C:\Program Files (x86)\nxl og\conf/nxlog.conf]: Skipping because of failed dependencies Notice: /Stage[main]/Nxlog::Service/Service[nxlog]: Dependency File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Progr am Files (x86)\nxlog\confnxlog.conf] has failures: true Warning: /Stage[main]/Nxlog::Service/Service[nxlog]: Skipping because of failed dependencies Notice: /Stage[main]/Nxlog/Anchor[::nxlog::end]: Dependency File[C:/ProgramData/PuppetLabs/puppet/var/concat/C\Program Files (x86)\nxlog\conf_nxlog.conf] has failures: true Warning: /Stage[main]/Nxlog/Anchor[::nxlog::end]: Skipping because of failed dependencies Debug: Finishing transaction 49201460 Debug: Storing state Debug: Stored state in 0.03 seconds Notice: Finished catalog run in 4.45 seconds Debug: Using settings: adding file resource 'rrddir': 'File[C:/ProgramData/PuppetLabs/puppet/var/rrd]{:path=>"C:/Program Data/PuppetLabs/puppet/var/rrd", :mode=>"750", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'

Debug: Finishing transaction 46677680 Debug: Received report to process from win-q23869lt7si.ec2.internal Debug: Processing report from win-q23869lt7si.ec2.internal with processor Puppet::Reports::Store PS C:\infrastructure>

genebean commented 9 years ago

I have no idea how I did not see this before now... I will try to look into this in the next week or so. Sorry @thebiggestlebowski

genebean commented 9 years ago

Let's start with the original error message you posted:

(at C:/Program Files/Puppet Labs/Puppet/puppet/lib/puppet/type/file/source.rb:133:in `block in copy_source_values')
Error: Cannot create C:/ProgramData/PuppetLabs/puppet/var/concat/C_/Program Files (x86)/nxlog/conf_nxlog.conf; 
parent directory C:/ProgramData/PuppetLabs/puppet/var/concat/C_/Program Files (x86)/nxlog does not exist

That seems to me to be related to you not using the default location for things as indicated by you having to specify your module path when testing. It looks to me like the cache directory for the concat module is not getting created OR that it is created but puppet can't find it due to being run with puppet apply. To help see if this is correct, please post the output of the following two commands:

PS C:\> dir C:\ProgramData\PuppetLabs\puppet\var
PS C:\> dir C:\ProgramData\PuppetLabs\puppet\var\concat
genebean commented 9 years ago

I have actually reproduced your error locally. I am looking into it.

genebean commented 9 years ago

Ok, so here is the fix as best as I can tell: puppetlabs-concat needs / instead of \ in paths with spaces in them. What that means for you is that you need to change

class { 'nxlog':
  conf_dir       => 'C:\Program Files (x86)\nxlog\conf',
  conf_file      => 'nxlog.conf',
  ensure_setting => latest,
  nxlog_root     => 'C:\Program Files (x86)\nxlog',
}

to

class { 'nxlog':
  conf_dir       => 'C:/Program Files (x86)/nxlog/conf', # note the /'s here.
  conf_file      => 'nxlog.conf',
  ensure_setting => latest,
  nxlog_root     => 'C:\Program Files (x86)\nxlog',
}

I will update the documentation to reflect this. Sorry for taking so long and sorry for the bug! If this does not fix it for you feel free to let me know and I'll reopen this bug.

thebiggestlebowski commented 9 years ago

Thanks Gene, I appreciate the help. Since it was a windows machine and I'm inexperienced with puppet, I didn't think to try the slashes the other way. Good to know!

Thanks for contributing to open source and maintaining the project.

Cheers,

Chris

On Wed, Oct 7, 2015 at 3:19 PM, Gene Liverman notifications@github.com wrote:

Ok, so here is the fix as best as I can tell: puppetlabs-concat needs / instead of \ in paths with spaces in them. What that means for you is that you need to change

class { 'nxlog': conf_dir => 'C:\Program Files (x86)\nxlog\conf', conf_file => 'nxlog.conf', ensure_setting => latest, nxlog_root => 'C:\Program Files (x86)\nxlog', }

to

class { 'nxlog': conf_dir => 'C:/Program Files (x86)/nxlog/conf', # note the /'s here. conf_file => 'nxlog.conf', ensure_setting => latest, nxlog_root => 'C:\Program Files (x86)\nxlog', }

I will update the documentation to reflect this. Sorry for taking so long and sorry for the bug! If this does not fix it for you feel free to let me know and I'll reopen this bug.

— Reply to this email directly or view it on GitHub https://github.com/genebean/genebean-nxlog/issues/2#issuecomment-146301100 .

genebean commented 9 years ago

Glad to do it! FWIW, I released v1.2.1 a few minutes ago that added some more features and also updated the documentation.