"puppet module install simondean/iis" gives error "Error: cert already in hash table"

624 views
Skip to first unread message

Arno den Uijl

unread,
Jul 16, 2013, 5:50:51 AM7/16/13
to puppet...@googlegroups.com
Hello,

I have a fresh install of puppet 3.2.3. on windows 8. I try to install the iis module (https://forge.puppetlabs.com/simondean/iis) with the command:

puppet module install simondean/iis

and it gives me 
C:\Program Files (x86)\Puppet Labs\Puppet>puppet module install simondean/iis
Notice: Preparing to install into C:/ProgramData/PuppetLabs/puppet/etc/modules .
..
Notice: Downloading from https://forge.puppetlabs.com ...
Error: cert already in hash table
Error: Try 'puppet help module install' for usage

Any idea how to proceed with this?

kind regards,

Arno

Josh Cooper

unread,
Jul 16, 2013, 1:20:51 PM7/16/13
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 post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Can you run `puppet module install simondaen/iis --debug --trace`?

Josh

--
Josh Cooper
Developer, Puppet Labs

Join us at PuppetConf 2013, August 22-23 in San Francisco - http://bit.ly/pupconf13
Register now and take advantage of the Early Bird discount - save 25%!

Arno den Uijl

unread,
Jul 16, 2013, 1:52:02 PM7/16/13
to puppet...@googlegroups.com
then i get this:

C:\Program Files (x86)\Puppet Labs\Puppet>puppet module install simondaen/iis --debug --trace
Notice: Preparing to install into C:/ProgramData/PuppetLabs/puppet/etc/modules ...
Notice: Downloading from https://forge.puppetlabs.com ...
Error: cert already in hash table
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/monkey_patches.rb:394:in `add_cert'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/monkey_patches.rb:394:in `block in set_default_paths'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/root_certs.rb:24:in `block in each'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/root_certs.rb:24:in `each'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/root_certs.rb:24:in `each'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/monkey_patches.rb:393:in `set_default_paths'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/forge/repository.rb:123:in `get_http_object'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/forge/repository.rb:94:in `read_response'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/forge/repository.rb:82:in `make_http_request'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/forge.rb:77:in `remote_dependency_info'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/shared_behaviors.rb:34:in `get_remote_constraints'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/applications/installer.rb:106:in `get_release_packages'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/applications/installer.rb:54:in `run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/face/module/install.rb:129:in `block (3 levels) in <top (required)>'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/interface/action.rb+eval[wrapper]:242:in `install'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application/face_base.rb:229:in `main'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:372:in `run_command'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:456:in `plugin_hook'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `block in run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:504:in `exit_on_fail'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:132:in `run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:86:in `execute'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/bin/puppet:4:in `<main>'
Error: Try 'puppet help module install' for usage

Arno den Uijl

unread,
Jul 16, 2013, 2:19:23 PM7/16/13
to puppet...@googlegroups.com
I thought i tried the debug and trace options but i this trace was new for me. I looked through the code and I think that it was caused by the fact that there were some certificates installed with the same name. I deleted some from my certificate store and now it runs correct. 

Thanks for the help. I do think that this can be an issue for more people.

Josh Cooper

unread,
Jul 16, 2013, 3:54:02 PM7/16/13
to puppet...@googlegroups.com
On Tue, Jul 16, 2013 at 11:19 AM, Arno den Uijl <arnod...@gmail.com> wrote:
I thought i tried the debug and trace options but i this trace was new for me. I looked through the code and I think that it was caused by the fact that there were some certificates installed with the same name. I deleted some from my certificate store and now it runs correct. 

Thanks for the help. I do think that this can be an issue for more people.

I didn't realize MS cert store could contain duplicates. We should be more defensive of this, in general, to ensure the failure to add one cert doesn't stop puppet from running:

        begin
          add_cert(x509)
        rescue OpenSSL::X509::StoreError => detail
          Puppet.warning "Failed to add certificate '#{x509.subject}'"
        end

Josh

Robert Redgwell

unread,
Aug 18, 2013, 10:59:04 PM8/18/13
to puppet...@googlegroups.com
For what it's worth, I had the same problem and figured out the particular cert on Windows 7 (64bit) that was causing the issue:

------------------------------------------------------------------------------------------
[Subject]
  CN=Thawte Timestamping CA, OU=Thawte Certification, O=Thawte, L=Durbanville, S=Western Cape, C=ZA

[Issuer]
  CN=Thawte Timestamping CA, OU=Thawte Certification, O=Thawte, L=Durbanville, S=Western Cape, C=ZA

[Serial Number]
  00

[Not Before]
  1/01/1997 1:00:00 p.m.

[Not After]
  1/01/2021 12:59:59 p.m.

[Thumbprint]
  BE36A4562FB2EE05DBB3D32323ADF445084ED656
------------------------------------------------------------------------------------------

I found it under Trusted Root Certification Authorities.
After deleting that, I no longer had the module/cert issue.

Samuel Huang

unread,
Sep 13, 2013, 2:27:27 AM9/13/13
to puppet...@googlegroups.com
I deleted the cert you mentioned (thatwte-timestamping.png), but I still have the same error everyone's been mentioning (module-install-fails.png). Any help please?

Sam
module-install-fails.png
thawte-timestamping.png

Rob Reynolds

unread,
Sep 15, 2013, 11:42:24 PM9/15/13
to puppet...@googlegroups.com
Can you determine if the cert is also under Machine certificate store and not just the Current User certificate store?


--
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 post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.



--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014September 23-24 in San Francisco

Samuel Huang

unread,
Sep 16, 2013, 2:24:37 PM9/16/13
to puppet...@googlegroups.com
If what you mean by Machine store is the Local Computer, I just deleted it from both Machine and Current User stores and still puppet module install does not work. Here's a screenshot of it appearing in the Machine store.
machine-timestamp.png

Rob Reynolds

unread,
Sep 16, 2013, 4:40:34 PM9/16/13
to puppet...@googlegroups.com
Yes, that is the one that I meant. I know you hate hearing this question, but did you reboot after you removed it (prior to module install) for full effect?

Samuel Huang

unread,
Sep 18, 2013, 2:52:56 PM9/18/13
to puppet...@googlegroups.com
Yeah I rebooted, and it still didn't work.

Rob Reynolds

unread,
Sep 19, 2013, 4:08:58 PM9/19/13
to puppet...@googlegroups.com
Are your results of `puppet module install simondaen/iis --debug --trace` similar to what the others were getting?

Sam Huang

unread,
Sep 19, 2013, 8:33:39 PM9/19/13
to puppet...@googlegroups.com
yes


--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/t-KLARupllw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.

To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.



--
Me to We
408.497.8278

Rainer Weinhold

unread,
Sep 20, 2013, 10:36:17 AM9/20/13
to puppet...@googlegroups.com
i just downloaded 3.3 for windows (w7,x64) and got the same error.

output :

C:\Program Files (x86)\Puppet Labs\Puppet\bin>puppet module install simondaen/iis --debug --trace
Notice: Preparing to install into M:/.puppet/modules ...

Notice: Downloading from https://forge.puppetlabs.com ...
Error: cert already in hash table
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/monkey_patches.rb:250:in `add_cert'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/monkey_patches.rb:250:in `block in set_default_paths'

C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/root_certs.rb:24:in `block in each'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/root_certs.rb:24:in `each'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/windows/root_certs.rb:24:in `each'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/monkey_patches.rb:249:in `set_default_paths'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/forge/repository.rb:88:in `get_http_object'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/forge/repository.rb:59:in `read_response'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/forge/repository.rb:47:in `make_http_request'

C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/forge.rb:77:in `remote_dependency_info'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/shared_behaviors.rb:34:in `get_remote_constraints'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/applications/installer.rb:106:in `get_release_packages'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/module_tool/applications/installer.rb:54:in `run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/face/module/install.rb:129:in `block (3 levels) in <top (required)>'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/interface/action.rb+eval[wrapper]:242:in `install'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application/face_base.rb:229:in `main'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:372:in `run_command'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `block (2 levels) in run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:457:in `plugin_hook'

C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `block in run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util.rb:511:in `exit_on_fail'

C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/application.rb:364:in `run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:132:in `run'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:86:in `execute'
C:/Program Files (x86)/Puppet Labs/Puppet/puppet/bin/puppet:4:in `<main>'
Error: Try 'puppet help module install' for usage

Josh Cooper

unread,
Oct 31, 2013, 1:22:43 AM10/31/13
to puppet...@googlegroups.com
I've submitted a PR for this some time ago: https://github.com/puppetlabs/puppet/pull/1916, please give it a try and include your comments on the PR.
Reply all
Reply to author
Forward
0 new messages