nwops
06/29/2022, 6:55 PMvchepkov
06/29/2022, 6:58 PMvchepkov
06/29/2022, 6:58 PM/opt/puppetlabs/server/data/environments/enterprise/modules/pe_manager/lib/puppet/face/infrastructure/enable.rb
nwops
06/29/2022, 6:58 PMSlackbot
06/30/2022, 10:05 PMSlackbot
07/01/2022, 11:43 AMsimonhoenscheid
07/01/2022, 11:44 AMll /etc/puppetlabs/puppetserver/code
lrwxrwxrwx. 1 pe-puppet pe-puppet 20 Jun 27 11:22 /etc/puppetlabs/puppetserver/code -> /etc/puppetlabs/code
ll /etc/puppetlabs/code
drwxr-xr-x. 3 pe-puppet pe-puppet 24 Jun 27 14:56 environments
ll /etc/puppetlabs/code/environments/
drwxr-x---. 2 pe-puppet pe-puppet 6 Jun 27 14:53 production
ll /etc/puppetlabs/code/environments/production/
ll /opt/puppetlabs/server/data/puppetserver/filesync/client/versioned-dirs/
drwxr-x---. 2 pe-puppet pe-puppet 6 Jun 27 15:12 puppet-code
ll /opt/puppetlabs/server/data/puppetserver/filesync/client/versioned-dirs/puppet-code
Solution:
Clear /opt/puppetlabs/server/data/puppetserver/filesync/client/worktrees/puppet-code/
rm -rf /opt/puppetlabs/server/data/puppetserver/filesync/client/worktrees/puppet-code/*
Slackbot
07/01/2022, 8:46 PMsimonhoenscheid
07/01/2022, 9:04 PMbinford2k
07/01/2022, 9:04 PMpuppet_enterprise::profile::master::versioned_deploys: true
2. run puppet agent -t
3. run puppet agent -t
Run Fails, server unavailable
4. run puppet code deploy --all --wait
2022/06/27 16:16:23 ERROR - Post "https://<redacted>:8170/code-manager/v1/deploys": dial tcp <redacted>:8170: connect: connection refused
Checking the puppetserver.log
:
{...SNIP...]
2022-06-27T13:52:39.302+02:00 INFO [e43c018e-0d75-4396-9e43-28338b1ec0f4_Worker-5] [p.e.s.a.analytics-core] Not checking for updates - opt out file /etc/puppetlabs/puppetserver/opt-out exists.
2022-06-27T13:52:39.916+02:00 INFO [clojure-agent-send-off-pool-2] [p.e.s.f.versioned-sync] Syncing live directory at /etc/puppetlabs/puppetserver/code for repository puppet-code
2022-06-27T13:52:42.443+02:00 ERROR [clojure-agent-send-off-pool-2] [p.e.s.f.file-sync-client-core] Fatal error during file sync, requesting shutdown.
org.eclipse.jgit.api.errors.CheckoutConflictException: Checkout conflict with files:
[VERY LONG FILE LIST]
[4:44 AM] Check of relevant directories:
ll /etc/puppetlabs/puppetserver/code
lrwxrwxrwx. 1 pe-puppet pe-puppet 20 Jun 27 11:22 /etc/puppetlabs/puppetserver/code -> /etc/puppetlabs/code
ll /etc/puppetlabs/code
drwxr-xr-x. 3 pe-puppet pe-puppet 24 Jun 27 14:56 environments
ll /etc/puppetlabs/code/environments/
drwxr-x---. 2 pe-puppet pe-puppet 6 Jun 27 14:53 production
ll /etc/puppetlabs/code/environments/production/
ll /opt/puppetlabs/server/data/puppetserver/filesync/client/versioned-dirs/
drwxr-x---. 2 pe-puppet pe-puppet 6 Jun 27 15:12 puppet-code
ll /opt/puppetlabs/server/data/puppetserver/filesync/client/versioned-dirs/puppet-code
Solution:
Clear /opt/puppetlabs/server/data/puppetserver/filesync/client/worktrees/puppet-code/
rm -rf /opt/puppetlabs/server/data/puppetserver/filesync/client/worktrees/puppet-code/*
Slackbot
07/07/2022, 12:20 AMDagan McGregor
07/07/2022, 12:20 AMDagan McGregor
07/07/2022, 12:21 AM--ignoreschedules
to the group_patching
plan? 🙂Slackbot
07/12/2022, 5:30 PMGlen Mangiantini
07/12/2022, 6:10 PMSlackbot
07/14/2022, 10:17 AMtenajsystems
07/14/2022, 5:13 PM2019.8.10
to 2019.8.11
. After the upgrade, the agent version showing when I run /opt/puppetlabs/bin/puppet --version
shows version 6.27.0
but per this documentation <https://puppet.com/docs/pe/2019.8/what_gets_installed_and_where.html#what_gets_installed_and_where>
the version is supposed to be 6.27.1
. On an agent machine, I see that the package installed is 6.27.1-1focal
. When I set the package_version
to 6.27.0
a puppet run fails with the error below but when I set the version to 6.27.1
, puppet is happy. I'm I missing something as to why the puppet agent is showing as having version 6.27.0
when the 6.27.1
package is installed?
Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install puppet-agent=6.27.0-1focal' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Version '6.27.0-1focal' for 'puppet-agent' was not found
Error: /Stage[main]/Puppet_agent::Install/Package[puppet-agent]/ensure: change from '6.27.1-1focal' to '6.27.0-1focal' failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold --force-yes install puppet-agent=6.27.0-1focal' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Version '6.27.0-1focal' for 'puppet-agent' was not found
vchepkov
07/14/2022, 5:18 PMvchepkov
07/14/2022, 5:19 PMtenajsystems
07/14/2022, 5:25 PMpuppetlabs/puppet_agent
module, at the time, the latest version was 4.11.0
. I will update now to see if that fixes it.vchepkov
07/14/2022, 5:25 PMvchepkov
07/14/2022, 5:26 PMvchepkov
07/14/2022, 5:27 PMvchepkov
07/14/2022, 5:27 PMauto
tenajsystems
07/14/2022, 5:42 PMSlackbot
07/14/2022, 6:43 PMtenajsystems
07/14/2022, 6:59 PMSlackbot
07/18/2022, 9:38 AMbastelfreak
07/18/2022, 9:38 AMcdenneen
07/19/2022, 6:04 PM