example42 / psick

Puppet Systems Infrastructure Construction Kit: The control-repo
http://www.example42.com
Apache License 2.0
657 stars 185 forks source link

Could not autoload puppet/parser/functions/artifactory_sha1 #212

Open antgel opened 6 years ago

antgel commented 6 years ago

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

tuxmea commented 6 years ago

@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

alvagante commented 6 years ago

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 commented 6 years ago

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

alvagante commented 5 years ago

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