This page lists known issues for Code Manager, r10k, and file sync in Puppet Enterprise.
In r10k versions 2.5.3 and 2.5.4, a module depreciation check is performed on every redeploy, causing a significant increase in deployment time. To work around this issue, upgrade to r10k version 2.5.5 by running the following commands:
/opt/puppetlabs/puppet/bin/gem uninstall r10k
/opt/puppetlabs/puppet/bin/gem install r10k -v 2.5.5
In PE 2016.4.5, setting the r10k log verbosity level to debug2
results in a Code Manager could not be started due to invalid configuration
error. To work around this issue, set the verbosity level to debug1
and reload the service.
puppet code deploy
fails if you specify a token with UTF-8 charactersOn Windows systems, puppet code deploy
fails if you specify an authentication token that includes UTF-8 characters in the filename. This failure occurs only if you specify the token in the puppet-code.conf
file or on the command line with the --token-file
option. The error message includes an exception like:
Unhandled exception: No authentication token exists at path C:/Users/Administrator/PathWithUTF-8. Please log in with `puppet access login`
If you specify an HTTPS proxy, r10k and Code Manager raise an error and stop deployment. HTTPS proxies were never supported, but previous curl versions fell back to HTTP instead of raising an error. To avoid this issue, use HTTP to the proxy and HTTPS to the endpoint (for example, the endpoint https://forgeapi.puppet.com).
If you use the Rugged provider for r10k, repository pruning is not supported. This means that if you use many short-lived branches, over time the local r10k cache can become bloated and take up significant disk space.
If you encounter this issue, run git-gc
periodically on any cached repo that is using a large amount of disk space in the cachedir. Alternately, use the shellgit provider, which automatically garbage collects the repos according to the normal Git CLI rules.
When you use Code Manager or r10k to deploy modules from a Git source, the default branch of the source repository is always assumed to be ‘master’. If the module repository uses a default branch that is not ‘master’, this causes an error. To work around this issue, specify the default branch with the ref:
key in your Puppetfile.
If you delete a branch from your control repository, the Code Manager webhook deployment does not immediately delete that environment from the Puppet master’s staging or live code directories.
Code Manager will delete the environment when it deploys changes to any other environment. Alternately, to delete the environment immediately, deploy all environments manually:
puppet code deploy --all --wait
The first time you run Code Manager and file sync on a master, an error can occur that prevents Puppet Server from starting. To work around this issue:
/etc/puppetlabs/puppetserver/conf.d/file-sync.conf
.If the live code directory contains content that file sync didn’t expect to find there (for example, someone has made changes directly to the live code directory), Puppet Server crashes.
The following error appears in the puppetserver.log
2016-05-05 11:57:06,042 ERROR [clojure-agent-send-off-pool-0] [p.e.s.f.file-sync-client-core] Fatal error during file sync, requesting shutdown.
org.eclipse.jgit.api.errors.JGitInternalException: Could not delete file /etc/puppetlabs/code/environments/development
at org.eclipse.jgit.api.CleanCommand.call(CleanCommand.java:138) ~[puppet-server-release.jar:na]
To recover from this error:
find /etc/puppetlabs/code -mindepth 1 -delete
.pe-puppetserver
service: puppet resource service pe-puppetserver ensure=running
Prior to GitLab 8.5.0, GitLab had a character limit on webhooks, so the entire Code Manager authentication token could not be passed into GitLab webhooks. If you are using a GitLab version earlier that 8.5.0, either upgrade to the current GitLab version or turn off Code Manager webhook authentication via Hiera with the authenticate_webhook
parameter.
pe-puppetserver
service to shut down due to incorrect pe-puppet
owner and group permissionsDuring an r10k deployment, if the pe-puppet
user does not have permissions to delete files in the environment directory, a file sync error will cause the pe-puppetserver
service to shut down during deployment.
This issue can be fixed by setting permissions in the environment directory to owner pe-puppet
and group pe-puppet
with the following command: chown -R pe-puppet:pe-puppet /etc/puppetlabs/code/environments
.