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

Corrupted metadata.txt file chef 11.18.12 install #610

Open
gabepetfinder opened this issue Feb 23, 2024 · 0 comments
Open

Corrupted metadata.txt file chef 11.18.12 install #610

gabepetfinder opened this issue Feb 23, 2024 · 0 comments

Comments

@gabepetfinder
Copy link

Describe the problem

Downloading from https://omnitruck.chef.io/stable/chef/metadata?v=11.18.12&p=amazon for chef 11.18.12 . Fails with
downloaded metadata file is corrupted or an uncaught error was encountered in downloading the file... Version: 11.18.12

Software Version

chef 11.18.12
AWS Linux 2

Replication Case

Running in AWS a handful of aws opsworks stacks that manage our environments. Opsworks aws service is sunsetting in may of this year. After running the script found in the suggested opsworks -> application manager migration (found here: https://docs.aws.amazon.com/opsworks/latest/userguide/migrating-to-systems-manager-download-script.html ), an application was created in application manager.

Our opsworks uses Chef 11.10. The documentation for the aws script says that Chef versions 11-14 are supported (in FAQ). It appears that systems manager is attempting to install Chef version 11.18 on the instances, but the link that it is reaching out to download from is not actually working. We do already have Chef 11.10 installed on the instances via the AMI that is used in our ec2 launch template.

Stacktrace

``` WARNING: Compliance type is not empty but compliance severity is set to 'None'. No compliance reports will be generated. INFO: The requested Chef client version is not installed. Installing Chef client. amazon linux ami 2017.09 x86_64 Getting information for chef stable 11.18.12 for amazon linux ami... downloading https://omnitruck.chef.io/stable/chef/metadata?v=11.18.12&p=amazon linux ami&pv=2017.09&m=x86_64 to file /tmp/install.sh.5427/metadata.txt trying wget... trying curl...

downloaded metadata file is corrupted or an uncaught error was encountered in downloading the file...
Version: 11.18.12

Please file a Bug Report at https://github.com/chef/omnitruck/issues/new
Alternatively, feel free to open a Support Ticket at https://www.chef.io/support/tickets
More Chef support resources can be found at https://www.chef.io/support

Please include as many details about the problem as possible i.e., how to reproduce
the problem (if possible), type of the Operating System and its version, etc.,
and any other relevant details that might help us with troubleshooting.

Lets Encrypt certificate fixed
INFO: Executing chef client...
[2024-02-07T20:43:39+00:00] INFO: Starting chef-zero on port 8889 with repository at repository at /var/lib/amazon/ssm/i-0a6aa4256c59469d4/document/orchestration/e956862b-bd9a-4ea0-ab74-2e0280b81272/downloads/customer_cookbooks_prepared
One version per cookbook

[2024-02-07T20:43:40+00:00] INFO: Forking chef instance to converge...
[2024-02-07T20:43:40+00:00] INFO: *** Chef 11.10.4 ***
[2024-02-07T20:43:40+00:00] INFO: Chef-client pid: 5495
[2024-02-07T20:43:40+00:00] WARN: unable to detect ip6address
[2024-02-07T20:43:40+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: http://127.0.0.1:8889/nodes/ip-10-4-200-238
[2024-02-07T20:43:40+00:00] WARN: Run List override has been provided.
[2024-02-07T20:43:40+00:00] WARN: Original Run List: []
[2024-02-07T20:43:40+00:00] WARN: Overridden Run List: [recipe[pfimport::setup]]
[2024-02-07T20:43:40+00:00] INFO: Run List is [recipe[pfimport::setup]]
[2024-02-07T20:43:40+00:00] INFO: Run List expands to [pfimport::setup]
[2024-02-07T20:43:40+00:00] INFO: Starting Chef Run for ip-10-4-200-238
[2024-02-07T20:43:40+00:00] INFO: Running start handlers
[2024-02-07T20:43:40+00:00] INFO: Start handlers complete.
[2024-02-07T20:43:40+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: /reports/nodes/ip-10-4-200-238/runs
[2024-02-07T20:43:40+00:00] INFO: HTTP Request Returned 412 Precondition Failed: No such cookbook: supervisor
�[0m
================================================================================�[0m
�[31mError Resolving Cookbooks for Run List:�[0m
================================================================================�[0m

�[0m
Missing Cookbooks:�[0m
------------------�[0m
No such cookbook: supervisor�[0m

�[0m
Expanded Run List:�[0m
------------------�[0m

  • pfimport::setup�[0m

�[0m
[2024-02-07T20:43:40+00:00] ERROR: Running exception handlers
[2024-02-07T20:43:40+00:00] ERROR: Exception handlers complete
[2024-02-07T20:43:40+00:00] FATAL: Stacktrace dumped to /var/lib/amazon/ssm/i-0a6aa4256c59469d4/document/orchestration/e956862b-bd9a-4ea0-ab74-2e0280b81272/downloads/.chef/local-mode-cache/cache/chef-stacktrace.out
[2024-02-07T20:43:40+00:00] ERROR: 412 "Precondition Failed"
[2024-02-07T20:43:40+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

Step was found to have onFailure property. Further document steps will be skipped.

</details>

## Possible Solution
<!--- If you already have ideas about how to solve the issue, add them here. -->
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