Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Null value in "/opt/puppetlabs/facter/facts.d/package_updates.json" #26

Open
papseddy opened this issue Mar 7, 2018 · 1 comment
Open

Comments

@papseddy
Copy link

papseddy commented Mar 7, 2018

Hi,

After few run of cron, /opt/puppetlabs/puppet/bin/puppet package updates --render-as json command put NULL in "/opt/puppetlabs/facter/facts.d/package_updates.json" file and after then whenever puppet agent runs it show error.

[root@agent-2 ~]# puppet agent -t
Error: Facter: error while processing "/opt/puppetlabs/facter/facts.d/package_updates.json" for external facts: The document root must not follow by other values.
Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Facter: error while processing "/opt/puppetlabs/facter/facts.d/package_updates.json" for external facts: The document root must not follow by other values.
Info: Caching catalog for agent-2.example.com
Info: Applying configuration version '1520410771'
Notice: /Stage[main]/Package_updates/Exec[package_updates]/returns: executed successfully
Notice: Applied catalog in 110.52 seconds

Is this any problem or i am doing something wrong.

@gordonmessmer
Copy link

I think this patch fixes the problem:
#28

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants