I've reviewed sever 500 error posts in here but the answers seem to differ based on the situation.
One of our developers modified code to include a parameter available in httpfile 0.1.9 called quick_check.
We have two installation of puppetserver one in lab domain and one in production domain. Neither talk to the other domain. It is completely isolated to the nodes in each domain.
What's odd is lab works but when they deploy the code to production, it doesn't work and received the 500 error below. I've compared everything between puppetserver versions, puppet versions, httpfile module versions, etc and nothing is obvious.
This httpfile module is not installed using puppet module install but is placed in the same location as other modules created by the developers.
I've verified the code was deployed correctly to each of the 4 production puppetservers (we use a load balancer to distribute the work) into the environment defined at the node (dev).
Code:
### DOWNLOAD FROM REPO | |
define oracle::remote_file($remote_location=undef, $mode='0644', $owner='root', $group='root'){ | |
httpfile { "${title}": | |
ensure => present, | |
path => "${title}", | |
source => "$remote_location", | |
quick_check => true, | |
# hash => 'hex form SHA2 hash OR an URL to the .sha file with that hash' | |
} | |
file{$title: | |
owner => $owner, | |
group => $group, | |
mode => $mode, | |
require => Httpfile["${title}"], | |
} | |
} |
Error:
2020-07-15T08:35:15.325976-04:00 myserver puppet-agent[24036]: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: no parameter named 'quick_check' (file: /u01/puppet/dev/modules/oracle/manifests/remote_file.pp, line: 6) on Httpfile[/var/opt/BESClient/LMT/oracle/options_packs_usage_statistics.sql] (file: /u01/puppet/dev/modules/oracle/manifests/remote_file.pp, line: 6) on node myserver.mydomain.com
Any ideas what might be causing this? Is there some cache not being refreshed on the pupperserver?
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/886fd9da-c841-4d8b-80f3-d23bc2429e68o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/173aa581-ddde-4e2a-aa46-b9666f93e844o%40googlegroups.com.
Justin, I implemented the suggestion you made however after running the curl command against the 2 environments having the issue and receiving the 204 response, the puppet module is still getting the 500 error. Do you or anyone else have any other suggestions? Is it possible it's related to ruby and/or java? Frankly I'm stumped.
--
class testmod()
{
httpfile { "ansible-2.8.0a1.tar.gz":
ensure => present,
path => "/u01/testmod/ansible-2.8.0a1.tar.gz",
source => "https://mynexus.domain.com/nexus/repository/ae-raw-ansible-group/ansible/ansible-2.8.0a1.tar.gz",
quick_check => true,
# hash => 'hex form SHA2 hash OR an URL to the .sha file with that hash'
}
}
Here is my run:
[root@node testmod]# puppet apply --modulepath=/home/toor --test -e "include testmod" --verbose--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/80022945-ecdc-43ef-b857-ca2813c37919n%40googlegroups.com.
Great info but I think I might have found the issue.So we don't use r10k to deploy code we use a different tool. But what I found is on the puppet server (master) the httpfile.rb in /opt/puppetlabs/puppet/cache/lib/puppet/type is the older version.
I didn't find any ./resource_types directory in our environment directories so not sure if we are using environment isolation or not.
As part of Justin's suggestion to allow the DELETE option to be valid, I had to restart each of our 4 puppet servers so according to some of this conversation, that should have refreshed the cache right?
What else is odd is the domain where the quick_check parm is work seems to be getting refreshed somehow in /opt/puppetlabs/puppet/cache/lib/puppet subdirectories (just looking at time stamps). The deploy process works the same in that domain along with the domain where quick_check is not working.
Since the /opt/puppetlabs/bin/puppet generate types --environment production --force operates by environment, could this possible break the environment as well? These are production boxes I need to run this on and want to make sure I don't break anything. Also using the environment parm will this then setup environment isolation and do i have to manually manage that each time code is deployed to that environment?
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9cbe27fa-f4a9-476b-8f88-6490bd83435an%40googlegroups.com.
So I've done some research on the puppet generate types command. I'm seeing many different results from not having issues to causing issues with puppet apply and puppet agent executions.
If I was to run this command and things go wrong, how do you reverse it? Remove the .resource_types directory?
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/10f72a8f-b9b3-4686-ab6d-5e39a252f339n%40googlegroups.com.
So I've done some research on the puppet generate types command. I'm seeing many different results from not having issues to causing issues with puppet apply and puppet agent executions.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/10f72a8f-b9b3-4686-ab6d-5e39a252f339n%40googlegroups.com.