Hi all,
I just installed foreman 1.16 and installed apt plugin (v 4.5.0 Ref: https://forge.puppet.com/puppetlabs/apt)
Now whenever I run “puppet agent -t” on a node, I get following error
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: {"message":"Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: A substring operation does not accept a String as a character index. Expected an Integer at /etc/puppetlabs/code/modules/apt/manifests/params.pp:75:21 on node <node hostname>","issue_kind":"RUNTIME_ERROR"}
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
When I looked up facts for that node, all “os” fact tree was not set, and therefore the error unable to access the fact [“os”][“name”].
Is there any bug that raised this error (or prevented setting [os] facts tree) or I am missing any configuration?
Thanks!
Abhishek