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 Retrieve a Valid Package #595

Open
mvwebb00 opened this issue Jul 3, 2023 · 0 comments
Open

Unable to Retrieve a Valid Package #595

mvwebb00 opened this issue Jul 3, 2023 · 0 comments

Comments

@mvwebb00
Copy link

mvwebb00 commented Jul 3, 2023

Describe the problem

When trying to run the "kitchen converge" command, it fails and returns an exception error.

Software Version

I am on Windows 11 OS.

Replication Case

  1. Use the Git clone command: git clone https://github.com/learn-chef/learn_chef_httpd.git
  2. kitchen create
  3. kitchen converge

Stacktrace

Exception: Converge failed on instance . Please see .kitchen/logs/default-centos-7.log for more details

-------------See log below--------------

I, [2023-07-03T17:58:58.467956 #5560] INFO -- default-centos-7: -----> Converging ...
I, [2023-07-03T17:58:58.618909 #5560] INFO -- default-centos-7: Preparing files for transfer
I, [2023-07-03T17:58:58.619175 #5560] INFO -- default-centos-7: Preparing dna.json
I, [2023-07-03T17:58:58.620852 #5560] INFO -- default-centos-7: Resolving cookbook dependencies with Berkshelf 8.0.5...
I, [2023-07-03T17:59:00.780210 #5560] INFO -- default-centos-7: Removing non-cookbook files before transfer
I, [2023-07-03T17:59:00.790705 #5560] INFO -- default-centos-7: Preparing validation.pem
I, [2023-07-03T17:59:00.791394 #5560] INFO -- default-centos-7: Preparing client.rb
I, [2023-07-03T17:59:01.091680 #5560] INFO -- default-centos-7: el 7 x86_64
I, [2023-07-03T17:59:01.091832 #5560] INFO -- default-centos-7: Getting information for chef stable 14.12.9 for el...
I, [2023-07-03T17:59:01.091941 #5560] INFO -- default-centos-7: downloading https://omnitruck.chef.io/stable/chef/metadata?v=14.12.9&p=el&pv=7&m=x86_64
I, [2023-07-03T17:59:01.092045 #5560] INFO -- default-centos-7: to file /tmp/kitchen/metadata.txt
I, [2023-07-03T17:59:01.092985 #5560] INFO -- default-centos-7: trying curl...
I, [2023-07-03T18:01:35.195987 #5560] INFO -- default-centos-7: trying perl...
I, [2023-07-03T18:01:35.207579 #5560] INFO -- default-centos-7: trying python...
I, [2023-07-03T18:01:55.235660 #5560] INFO -- default-centos-7: Unable to retrieve a valid package!
I, [2023-07-03T18:01:55.235789 #5560] INFO -- default-centos-7: Version: 14.12.9
I, [2023-07-03T18:01:55.235892 #5560] INFO -- default-centos-7:
I, [2023-07-03T18:01:55.236024 #5560] INFO -- default-centos-7: Please file a Bug Report at https://github.com/chef/omnitruck/issues/new
I, [2023-07-03T18:01:55.236129 #5560] INFO -- default-centos-7: Alternatively, feel free to open a Support Ticket at https://www.chef.io/support/tickets
I, [2023-07-03T18:01:55.236235 #5560] INFO -- default-centos-7: More Chef support resources can be found at https://www.chef.io/support
I, [2023-07-03T18:01:55.236336 #5560] INFO -- default-centos-7:
I, [2023-07-03T18:01:55.236441 #5560] INFO -- default-centos-7: Please include as many details about the problem as possible i.e., how to reproduce
I, [2023-07-03T18:01:55.236543 #5560] INFO -- default-centos-7: the problem (if possible), type of the Operating System and its version, etc.,
I, [2023-07-03T18:01:55.236648 #5560] INFO -- default-centos-7: and any other relevant details that might help us with troubleshooting.
I, [2023-07-03T18:01:55.236777 #5560] INFO -- default-centos-7:
I, [2023-07-03T18:01:55.236879 #5560] INFO -- default-centos-7: Metadata URL: https://omnitruck.chef.io/stable/chef/metadata?v=14.12.9&p=el&pv=7&m=x86_64
I, [2023-07-03T18:01:55.236963 #5560] INFO -- default-centos-7: \nDEBUG OUTPUT FOLLOWS:\n\nSTDERR from curl:\n\n\n\nSTDERR from perl:\n\nCan't locate LWP/Simple.pm in @inc (@inc contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at -e line 1.
I, [2023-07-03T18:01:55.237045 #5560] INFO -- default-centos-7: BEGIN failed--compilation aborted at -e line 1.\n\nSTDERR from python:\n\nTraceback (most recent call last):
I, [2023-07-03T18:01:55.237121 #5560] INFO -- default-centos-7: File "", line 1, in
I, [2023-07-03T18:01:55.237150 #5560] INFO -- default-centos-7: File "/usr/lib64/python2.7/urllib2.py", line 154, in urlopen
I, [2023-07-03T18:01:55.237193 #5560] INFO -- default-centos-7: return opener.open(url, data, timeout)
I, [2023-07-03T18:01:55.237223 #5560] INFO -- default-centos-7: File "/usr/lib64/python2.7/urllib2.py", line 431, in open
I, [2023-07-03T18:01:55.237264 #5560] INFO -- default-centos-7: response = self._open(req, data)
I, [2023-07-03T18:01:55.237292 #5560] INFO -- default-centos-7: File "/usr/lib64/python2.7/urllib2.py", line 449, in _open
I, [2023-07-03T18:01:55.237319 #5560] INFO -- default-centos-7: '_open', req)
I, [2023-07-03T18:01:55.237347 #5560] INFO -- default-centos-7: File "/usr/lib64/python2.7/urllib2.py", line 409, in _call_chain
I, [2023-07-03T18:01:55.237412 #5560] INFO -- default-centos-7: result = func(*args)
I, [2023-07-03T18:01:55.237443 #5560] INFO -- default-centos-7: File "/usr/lib64/python2.7/urllib2.py", line 1258, in https_open
I, [2023-07-03T18:01:55.237470 #5560] INFO -- default-centos-7: context=self._context, check_hostname=self._check_hostname)
I, [2023-07-03T18:01:55.237511 #5560] INFO -- default-centos-7: File "/usr/lib64/python2.7/urllib2.py", line 1214, in do_open
I, [2023-07-03T18:01:55.237539 #5560] INFO -- default-centos-7: raise URLError(err)
I, [2023-07-03T18:01:55.237579 #5560] INFO -- default-centos-7: urllib2.URLError: <urlopen error [Errno -2] Name or service not known>\n
E, [2023-07-03T18:01:55.260673 #5560] ERROR -- default-centos-7: Converge failed on instance .
E, [2023-07-03T18:01:55.260865 #5560] ERROR -- default-centos-7: ------Exception-------
E, [2023-07-03T18:01:55.260900 #5560] ERROR -- default-centos-7: Class: Kitchen::ActionFailed


Screenshot 2023-07-03 181947

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

1 participant