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

    Patrick Rynhart

    06/01/2023, 10:39 PM
    But during an initial puppet run I end up (on the console):
    Copy code
    symlink_realpath(/opt/dspace_src/latest) realpath() failed: No such file or directory
    symlink_realpath(/opt/dspace_src/latest) realpath() failed: No such file or directory
    symlink_realpath(/opt/dspace_src/latest) realpath() failed: No such file or directory
    symlink_realpath(/opt/dspace_src/latest) realpath() failed: No such file or directory
  • p

    Patrick Rynhart

    06/01/2023, 10:40 PM
    And I then end up with a broken symlink during the initial run:
  • p

    Patrick Rynhart

    06/01/2023, 10:41 PM
    If I run the Puppet agent again then the Archive is extracted and everything is okay, i.e.:
  • p

    Patrick Rynhart

    06/01/2023, 10:42 PM
    So I’ve got an ordering problem here - and I’m not sure how to fix it for the initial Puppet run. Can anyone help ? I thought that by adding
    Copy code
    require => Archive["/tmp/dspace-$dspace_version.tar.gz"],
    that the Symlink should only be created after the Archive resource has finished successfully extracting the TGZ, but this doesn’t seem to be the case.
  • b

    binford2k

    06/02/2023, 12:09 AM
    @Patrick Rynhart it's not an ordering problem. You say that after the initial run, the archive is not extracted as expected. That is your problem, not the order. Something about your code has that not being enforced on the first run.
  • b

    binford2k

    06/02/2023, 12:10 AM
    (in other words, if you compare
    extract then symlink
    to
    symlink then extract
    , both cases end up with the archive extracted.)
  • p

    Patrick Rynhart

    06/02/2023, 1:35 AM
    @binford2k: I’ve reduced my manifest to as simple as possible to replicate the issue (and removed all substituted variables - i.e. everything is hardcoded)
    Copy code
    class dspace_modern (
      $config = [],
    ) {
        file { '/opt':
          ensure => 'directory',
        }
    
        file { '/opt/dspace_src':
          ensure  => 'directory',
          owner   => 'tomcat',
          group   => 'tomcat',
          require => File['/opt'],
        }
    
        archive { '/tmp/dspace-7.5.tar.gz':
          source       => '<https://github.com/DSpace/DSpace/archive/refs/tags/dspace-7.5.tar.gz>',
          extract      => true,
          extract_path => '/opt/dspace_src',
          cleanup      => true,
          user         => 'tomcat',
          group        => 'tomcat',
          require      => File['/opt/dspace_src'],
        }
    
        file { '/opt/dspace_src/latest':
          ensure  => 'link',
          target  => '/opt/dspace_src/DSpace-dspace-7.5',   # When dspace-7.5.tar.gz is extracted (from above), it has directory 'DSpace-dspace-7.5' inside of it
          require => Archive['/tmp/dspace-7.5.tar.gz'],
        }
    }
  • s

    Slackbot

    06/02/2023, 1:35 AM
    This message was deleted.
    b
    p
    c
    • 4
    • 48
  • p

    Patrick Rynhart

    06/02/2023, 1:36 AM
    Can you see where the mistake is ? Because I’m not able to
  • b

    Balram thakur

    06/02/2023, 2:52 PM
    Hello team, Can anyone help me to troubleshoot the below issue PC Pratyay Chaphekar Work notes•2023-03-22 221527 Hi Team, [root@puppetvts40002 ~]# puppet agent -vt Info: Using configured environment 'mgmt_production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Retrieving locales Info: Loading facts Error: Facter: error while processing "/opt/puppetlabs/puppet/cache/facts.d/fg_parser.py" for external facts: child process returned non-zero exit status (1). Error: 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 Function Call, has_key(): expects the first argument to be a hash, got "" which is of type String (file: /etc/puppetlabs/code/environments/mgmt_production/main/roles/s_puppetvts4/manifests/vcamp/layers/firewall_rules_base.pp, line: 23, column: 10) (file: /etc/puppetlabs/code/environments/mgmt_production/main/roles/s_puppetvts4/manifests/vcamp/network.pp, line: 227) on node puppetvts40002.irv4.vtscloud.io Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run [root@puppetvts40002 ~]# w
  • b

    Balram thakur

    06/02/2023, 2:52 PM
    same setup is working for other server but here its failing
  • s

    Slackbot

    06/02/2023, 2:55 PM
    This message was deleted.
    this2 1
    b
    • 2
    • 1
  • s

    Slackbot

    06/02/2023, 6:05 PM
    This message was deleted.
    r
    j
    n
    • 4
    • 6
  • s

    Slackbot

    06/02/2023, 8:51 PM
    This message was deleted.
    y
    u
    b
    • 4
    • 7
  • d

    Dr Bunsen Honeydew

    06/02/2023, 8:51 PM
    See the
    puppetlabs-mysql
    module at https://forge.puppet.com/puppetlabs/mysql?src=slack&amp;channel=puppet
  • r

    runlolarun

    06/05/2023, 12:27 PM
    Hello, everyone. I have a question about puppetboard (potentially bug), NOT puppet/puppetboard code. Should I ask #C0W1Y5VL0 or here? thank you.
  • d

    Dr Bunsen Honeydew

    06/05/2023, 12:27 PM
    See the
    puppet-puppetboard
    module at https://forge.puppet.com/puppet/puppetboard?src=slack&amp;channel=puppet
  • b

    bastelfreak

    06/05/2023, 12:31 PM
    probably #C0W1Y5VL0
  • r

    runlolarun

    06/05/2023, 12:34 PM
    Okay, thank you.
  • s

    Slackbot

    06/05/2023, 12:44 PM
    This message was deleted.
    d
    b
    k
    • 4
    • 39
  • k

    kn

    06/05/2023, 12:44 PM
    Can someone help me get this unstuck?
  • s

    Slackbot

    06/05/2023, 12:49 PM
    This message was deleted.
    k
    • 2
    • 2
  • k

    kn

    06/05/2023, 1:12 PM
    So confirmation mails contain two attachments, one
    text/plain, 7bit, us-ascii
    and one
    text/html, quoted, us-ascii
    . Mail user agents displaying html mails will likely render
    &
    as
    &
    and clicking or copying the link may work, but I'm reading the plain text part and thus of course copied the link verbatim, which is how I end up in a broken registration process.
  • k

    kn

    06/05/2023, 1:13 PM
    Perhaps those generated mails should use a literal
    &
    instead of the URL encoded version in the plain text part? I'd be surprised if I was the first user running into this.
  • k

    kn

    06/05/2023, 1:21 PM
    but i'm also suprised to land in the resend form as the error case, rather than getting a proper error message saying that the link doesn't work. unless you have know your way around URL encoding, that's hard to debug and looks like a systematic error that's too stupid to be true (yet you need to find a support/contact/slack to report and help yourself, as none of the steps in the signup/login process have a link or button to "need help?" or "something not working?" or so)
  • s

    Slackbot

    06/05/2023, 2:16 PM
    This message was deleted.
    b
    c
    l
    • 4
    • 4
  • m

    ma_garvo

    06/05/2023, 4:20 PM
    Hello, does anyone know of a nice off-the-shelf fact that pulls all Linux services systemd and sysV ?
  • m

    ma_garvo

    06/05/2023, 4:31 PM
    Should be pretty quick to make one just thought there was on already out there.
  • s

    spp

    06/05/2023, 4:34 PM
    Not a fact, per se.
    puppet resource service
    will return all services, but it isn't a defined, default fact.
  • m

    ma_garvo

    06/05/2023, 4:35 PM
    Thats exactly what i'm looking to get as a fact so i can send it to splunk for reporting.
1...370371372...428Latest