https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • m

    Massimiliano (Max)

    04/21/2022, 1:21 PM
    Copy code
    facter --show-legacy os
    {
      architecture => "amd64",
      distro => {
        codename => "focal",
        description => "Ubuntu 20.04.4 LTS",
        id => "Ubuntu",
        release => {
          full => "20.04",
          major => "20.04"
        }
      },
      family => "Debian",
      hardware => "x86_64",
      name => "Ubuntu",
      release => {
        full => "20.04",
        major => "20.04"
      },
      selinux => {
        enabled => false
      }
    }
  • b

    bastelfreak

    04/21/2022, 1:34 PM
    yes that's arch linux specific
  • r

    romgo

    04/21/2022, 1:49 PM
    Hello, does anyone have an idea on how to troubleshoot this error message :
    Copy code
    Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Resource Statement, Could not autoload puppet/type/package: Could not autoload puppet/provider/package/chocolatey: /etc/puppetlabs/code/environments/production/modules/chocolatey/lib/puppet/provider/package/chocolatey.rb:264: syntax error, unexpected tDOT
  • r

    romgo

    04/21/2022, 1:49 PM
    is this a ruby issue on the puppet server itself ?
  • s

    seanmil

    04/21/2022, 1:52 PM
    @romgo yes. it is an issue on the puppet server. that it is saying "syntax error" makes me wonder if you are using a version of code which is too new for the version of Ruby running the puppet server. otherwise, I'd say check the integrity of that
    /etc/puppetlabs/code/environments/production/modules/chocolatey/lib/puppet/provider/package/chocolatey.rb
    file to make sure it didn't get corrupted.
  • l

    Lumiere

    04/21/2022, 1:53 PM
    I'd also check the versions of puppet/ruby vs the required version for the chocolatey module (edited to remove the department of redundancy department)
  • s

    seanmil

    04/21/2022, 1:53 PM
    but I think
    tDOT
    might be referring to use of the
    &.
    syntax, which is pretty new in Ruby, compared to many puppet versions running in the wild.
  • l

    Lumiere

    04/21/2022, 1:53 PM
    I'd also check the versions of puppet/ruby vs the required version for the chocolatey module (edited to remove the department of redundancy department)
  • r

    romgo

    04/21/2022, 1:54 PM
    i'm running ruby 2.5.5p157 with puppet server 5.3.16-1stretch
  • l

    Lumiere

    04/21/2022, 1:54 PM
    what version of the chocolatey module
  • l

    Lumiere

    04/21/2022, 1:55 PM
    you definitely can't use major version 6, you might get away with major version 5 (but officially it only supports 5.5.10+)
  • r

    romgo

    04/21/2022, 1:56 PM
    mod 'puppetlabs-chocolatey', '5.2.1'
  • d

    Dr Bunsen Honeydew

    04/21/2022, 1:56 PM
    See the
    puppetlabs-chocolatey
    module at https://forge.puppet.com/puppetlabs/chocolatey?src=slack&channel=puppet
  • r

    romgo

    04/21/2022, 1:57 PM
    this states Puppet >= 5.5.10 < 8.0.0
  • r

    romgo

    04/21/2022, 1:57 PM
    but is there a puppetserver 5.5 branch ?
  • r

    romgo

    04/21/2022, 1:57 PM
    puppet agent is 5.5
  • l

    Lumiere

    04/21/2022, 1:57 PM
    honestly, 5.x is entirely EOL already
  • r

    romgo

    04/21/2022, 1:58 PM
    I know, but it was working yesterday,
  • l

    Lumiere

    04/21/2022, 1:58 PM
    that sounds like a corruption
  • l

    Lumiere

    04/21/2022, 1:58 PM
    I'd try redeploying the module
  • r

    romgo

    04/21/2022, 1:58 PM
    we moved to new chocolatey version 2 weeks ago without any issue.
  • r

    romgo

    04/21/2022, 1:59 PM
    I already did that deleted chocolatey folder and let r10k download again the module
  • l

    Lumiere

    04/21/2022, 1:59 PM
    so I can say that 5.2.1 is where that change occured
  • l

    Lumiere

    04/21/2022, 1:59 PM
    https://github.com/puppetlabs/puppetlabs-chocolatey/commit/14dbb3b7def168c87f9520966de6cb550917291e
  • l

    Lumiere

    04/21/2022, 2:01 PM
    try using 5.1.0
  • l

    Lumiere

    04/21/2022, 2:01 PM
    (for the chocolatey module)
  • r

    romgo

    04/21/2022, 2:01 PM
    ok will try thanks. Could this be some cache on the server ?
  • l

    Lumiere

    04/21/2022, 2:01 PM
    yes, r10k caches
  • b

    bastelfreak

    04/21/2022, 2:02 PM
    also puppetserver has a class cache. that can be pruned via api or by restarting puppetserver
  • l

    Lumiere

    04/21/2022, 2:02 PM
    but it caches the whole repo, so it should find the 5.1.0 tag
12345...428Latest