Ask Your Question
0

Error: Could not autoload puppet/provider/exec/windows: can't convert Hash into Integer

asked 2015-11-16 20:04:08 -0500

sandeep gravatar image

while iam trying to run puppet agent with command puppet agent -t --noop i am facing below error

Error: Could not autoload puppet/provider/exec/windows: can't convert Hash into Integer Error: Could not autoload puppet/type/exec: Could not autoload puppet/provider/exec/windows: can't convert Hash into Integer Error: Could not retrieve catalog from remote server: Could not intern from text/pson: Could not autoload puppet/type/exec: Could not autoload puppet/provider/exec/windows: can't convert Hash into Integer Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skipping run

my puppet version is 3.8.2 on both puppet master and agent.

edit retag flag offensive close merge delete

Comments

both my master and agent are linux, but i dont know why the error is regarding windows ' puppet/provider/exec/windows:'

sandeep gravatar imagesandeep ( 2015-11-16 20:18:54 -0500 )edit

Considering this bug (https://github.com/thias/puppet-libvirt/issues/31), it may be from a provider. Try to exclude classes until you get rid of the error and after you found the culprit, investigate why that class fails

Cristian Falcas gravatar imageCristian Falcas ( 2015-11-17 01:14:39 -0500 )edit

Hi..Thanks for your response.Well where should i exclude classes? in master or agent?

sandeep gravatar imagesandeep ( 2015-11-17 08:29:41 -0500 )edit

how to exclude classes?

sandeep gravatar imagesandeep ( 2015-11-17 10:05:46 -0500 )edit

By default in a new install no classes are included at all and no modules installed. You must have installed modules and maybe added classes. Go back to 'step one' and install a clean Puppet environment without extra modules and test. If all goes well, add 1 module at a time and re-test each time.

zipkid gravatar imagezipkid ( 2015-11-18 03:04:05 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-18 03:51:19 -0500

could be the ruby version - have you tried reinstalling ruby to a newer version?

edit flag offensive delete link more

Comments

Hi.. Any specific version of Ruby that you recommend? My current version is 1.8.7. Can i go ahead with anything which is greater than 1.8.7?

sandeep gravatar imagesandeep ( 2015-11-19 08:52:17 -0500 )edit

should be ok .. worth upgrading if possible.

sahumphries gravatar imagesahumphries ( 2015-11-19 11:00:18 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-11-16 20:04:08 -0500

Seen: 276 times

Last updated: Nov 18 '15