psick icon indicating copy to clipboard operation
psick copied to clipboard

Could not autoload puppet/parser/functions/artifactory_sha1

Open antgel opened this issue 8 years ago • 4 comments

I think we've been here before, but it happened again on the second puppet run on a Jenkins server. Can a solution or workaround be found?

ubuntu@puppetagent:~$ sudo puppet agent --test Info: Using configured environment 'production' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts 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, Could not autoload puppet/parser/functions/artifactory_sha1: no such file to load -- puppet_x/bodeco/util at /etc/puppetlabs/code/environments/production/modules/tp/manifests/conf.pp:273:21 at /etc/puppetlabs/code/environments/production/modules/psick/manifests/postfix/tp.pp:88 on node puppetagent.sandbox.graduway.com Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

antgel avatar Dec 01 '17 13:12 antgel

@antgel many thanks for reporting this issue. Can you check that you are running on modern puppet agent and server version (4 or 5)? Which version of the archive module are you using? There are several issues reported with the same or a similar error: https://github.com/example42/psick/issues/198, https://github.com/voxpupuli/puppet-archive/issues/225, https://tickets.puppetlabs.com/browse/SERVER-973?focusedCommentId=286254&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-286254

tuxmea avatar Dec 11 '17 10:12 tuxmea

Being this an issue with upstream archive module we can't do much about it, if not removing all dependencies of this module on default psick (many other modules use it anyway).

alvagante avatar Jan 29 '18 10:01 alvagante

Note to myself: verify if this is solved by adding archive module to the dependencies in metadata.json of puppet-psick module

alvagante avatar Jan 29 '18 11:01 alvagante

Adding something like: { "name":"puppetlabs/archive","version_requirement":">= 1.0.0 < 5.0.0" }, to puppet-psick metadata.json dependencies seems actually to solve the issue.

Still reluctant to add this as a hard dependency. Worth checking how much archive is actually used in psick module

alvagante avatar Jan 11 '19 12:01 alvagante