The best way to ensure we completely address this would be to just clear the File Sync cache. To do so:
-
On the master, shutdown the pe-puppetserver service:
service pe-puppetserver stop
-
On the master, delete all the files inside /etc/puppetlabs/code, and /etc/puppetlabs/code-staging including all hidden files, leaving only the production environment:
# find /etc/puppetlabs/code -mindepth 1 -delete
# mkdir -p /etc/puppetlabs/code/environments/production
# mv /etc/puppetlabs/code-staging /etc/puppetlabs/code-staging.old