Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not autoload puppet/type/wls_jdbc_persistence_store: file puppet/type/wls_jdbc_persistence_store/jdbc_persistence_name not found #84

Closed
bmelbourne opened this issue Dec 2, 2014 · 4 comments

Comments

@bmelbourne
Copy link

I've created a new "wls_jdbc_persistence_store" custom type in orawls, which is copy of "wls_file_persistence_store" with the necessary WLST changes, and I'm getting the following error on the puppet agent...

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not autoload puppet/type/wls_jdbc_persistence_store: file puppet/type/wls_jdbc_persistence_store/jdbc_persistence_name not found on node xxxx
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

I've rebuilt the orawls module to update the checksums.json file, and the files are being copied across to the puppet agent.

wls_file_persistence_store
[root@xxxx ~]# find /var/lib/puppet/lib -type f -exec grep -i file_persistence_store {} ; -print
newtype(:wls_file_persistence_store) do
environment = { 'action' => 'index', 'type' => 'wls_file_persistence_store' }
wlst template('puppet:///modules/orawls/providers/wls_file_persistence_store/index.py.erb', binding), environment
template('puppet:///modules/orawls/providers/wls_file_persistence_store/create.py.erb', binding)
template('puppet:///modules/orawls/providers/wls_file_persistence_store/modify.py.erb', binding)
template('puppet:///modules/orawls/providers/wls_file_persistence_store/destroy.py.erb', binding)
/var/lib/puppet/lib/puppet/type/wls_file_persistence_store.rb
Puppet::Type.type(:wls_file_persistence_store).provide(:simple) do
/var/lib/puppet/lib/puppet/provider/wls_file_persistence_store/simple.rb

wls_jdbc_persistence_store
[root@xxxx ~]# find /var/lib/puppet/lib -type f -exec grep -i jdbc_persistence_store {} ; -print
newtype(:wls_jdbc_persistence_store) do
environment = { 'action' => 'index', 'type' => 'wls_jdbc_persistence_store' }
wlst template('puppet:///modules/orawls/providers/wls_jdbc_persistence_store/index.py.erb', binding), environment
template('puppet:///modules/orawls/providers/wls_jdbc_persistence_store/create.py.erb', binding)
template('puppet:///modules/orawls/providers/wls_jdbc_persistence_store/modify.py.erb', binding)
template('puppet:///modules/orawls/providers/wls_jdbc_persistence_store/destroy.py.erb', binding)
/var/lib/puppet/lib/puppet/type/wls_jdbc_persistence_store.rb
Puppet::Type.type(:wls_jdbc_persistence_store).provide(:simple) do
/var/lib/puppet/lib/puppet/provider/wls_jdbc_persistence_store/simple.rb

Any ideas what the issue is?

@bmelbourne
Copy link
Author

[root@xxxx ~]# find /var/lib/puppet/lib/puppet/type/wls_jdbc_persistence_store/
/var/lib/puppet/lib/puppet/type/wls_jdbc_persistence_store/
/var/lib/puppet/lib/puppet/type/wls_jdbc_persistence_store/prefix.rb
/var/lib/puppet/lib/puppet/type/wls_jdbc_persistence_store/datasource.rb
/var/lib/puppet/lib/puppet/type/wls_jdbc_persistence_store/jdbc_persistence_name.rb

@biemond
Copy link
Owner

biemond commented Dec 2, 2014

Ok,
Did you re-start all the puppet master services and did a puppet run on the master.
Else Can you send me your code to biemond at gmail dot com or send me a pull request and I will take a look

Thanks a lot

@bmelbourne
Copy link
Author

That's seem to have fixed it...one to remember for future. Cheers.

@biemond
Copy link
Owner

biemond commented Dec 2, 2014

Cool, was it the cache of the passenger service

I like to develop in one of the vagrant boxes , no master and easy to try it and you can make mistakes.
Plus under root I use puppet resource xxxx --trace --debug which is a great utility to test index.py and your config

Last tip look at the parameters they can be of type property of param. Param can be used by the resource like password or t3 url and property is something of the resource and you can retrieve it.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants