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

Unable to upload cookbook using Knife #411

Closed
sernapallyanurag opened this issue Feb 22, 2016 · 5 comments
Closed

Unable to upload cookbook using Knife #411

sernapallyanurag opened this issue Feb 22, 2016 · 5 comments

Comments

@sernapallyanurag
Copy link

I am able to upload every other cookbook but apache2 upload fails with following error.
I am running my chef-server in Azure (its open source version 11.x)

Uploading apache2 [3.1.0]
ERROR: SSL Validation failure connecting to host: xx.xx.xx.xx - SSL_read: cert already in hash table
ERROR: Could not establish a secure connection to the server.
Use knife ssl check to troubleshoot your SSL configuration.
If your Chef Server uses a self-signed certificate, you can use
knife ssl fetch to make knife trust the server's certificates.

Original Exception: OpenSSL::SSL::SSLError: SSL_read: cert already in hash table

I am unable to understand why specifically for apache2 cookbook.

@drpebcak
Copy link
Contributor

This is not a problem with the apache2 cookbook specifically. Take a look at issues like this: chef-boneyard/chef-dk#492 for more information.

@svanzoest
Copy link
Contributor

Good question. I do not see anything specific in the apache2 cookbook that would cause something like this. The only thing I can think of is because your are using Chef Server 11 and not Chef Server 12, you are hitting #374. You can see if you remove issues_url and source_url from the metadata.rb file and see if that resolves your issue.

Regardless, I would recommend you update to a newer chef server.

@sernapallyanurag
Copy link
Author

I do not have metadata.rb in my cookbook. there is only metadata.json file.
My workstation OS is windows 7

@sernapallyanurag
Copy link
Author

--concurrency set to 1 works. thanks a lot for the response.

@lock
Copy link

lock bot commented Jul 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants