Esri / arcgis-cookbook

Chef cookbooks for ArcGIS
Apache License 2.0
297 stars 116 forks source link

Error when setting max log file age to 5 #233

Closed cadams84 closed 4 years ago

cadams84 commented 4 years ago

This attribute was added to a Portal for ArcGIS and ArcGIS Server deployment JSON file so that logs are purged after 5 days:

"max_log_file_age":"5",

The script errored with the following message:

[2019-09-23T12:11:05+01:00] ERROR: Exception handlers complete Chef Client failed. 0 resources updated in 24 seconds [2019-09-23T12:11:05+01:00] FATAL: Stacktrace dumped to c:/chef/local-mode-cache /cache/chef-stacktrace.out [2019-09-23T12:11:05+01:00] FATAL: Please provide the contents of the stacktrace .out file if you file a bug report [2019-09-23T12:11:05+01:00] FATAL: Chef::Exceptions::ValidationFailed: Option ma x_log_file_age must be a kind of [Integer]! You passed "5".

pbobov commented 4 years ago

max_log_file_age attribute must be an integer. Try to set it this way.

...
"max_log_file_age": 5,
cadams84 commented 4 years ago

Thank you!