Turn Your Vehicle Into a Smart Earning Asset

While you’re not driving your car or bike, it can still be working for you. MOTOSHARE helps you earn passive income by connecting your vehicle with trusted renters in your city.

🚗 You set the rental price
🔐 Secure bookings with verified renters
📍 Track your vehicle with GPS integration
💰 Start earning within 48 hours

Join as a Partner Today

It’s simple, safe, and rewarding. Your vehicle. Your rules. Your earnings.

Chef Error – Getting Error while executing Che recipe

rajbazar created the topic: Getting Error while executing Che recipe

Hi! Rajesh !
Installed Chef successfully on my Mac.
=================
[code language=”css”]
Rajs-MacBook-Pro:~ Raj$ which chef
/usr/local/bin/chef
Rajs-MacBook-Pro:~ Raj$ chef -v
Chef Development Kit Version: 2.0.28
chef-client version: 13.2.20
delivery version: master (17c1b0fed9be4c70f69091a6d21a4cbf0df60a23)
berks version: 6.2.0
kitchen version: 1.16.0
inspec version: 1.31.1
[/code]

====================
My Issue I’am not able to execute first and initial recipe .
[code language=”css”]
Issue:
Raj$ vi server.rb
Rajs-MacBook-Pro:~ Raj$ chef-apply server.rb
Recipe: (chef-apply cookbook)::(chef-apply recipe)
* homebrew_package[httpd] action install
[/code]

================================================================================
Error executing action `install` on resource ‘homebrew_package[httpd]’
================================================================================
[code language=”css”]
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received ‘1’
—- Begin output of [“brew”, “info”, “–json=v1”, “httpd”] —-
STDOUT:
STDERR: Error: No available formula with the name “httpd”
—- End output of [“brew”, “info”, “–json=v1”, “httpd”] —-
Ran [“brew”, “info”, “–json=v1”, “httpd”] returned 1
[/code]

Resource Declaration:
[code language=”css”]
# In server.rb

1: package ‘httpd’
2: service ‘httpd’ do
[/code]

Compiled Resource:
[code language=”css”]
# Declared in server.rb:1:in `run_chef_recipe’

homebrew_package(“httpd”) do
package_name “httpd”
action [:install]
default_guard_interpreter :default
declared_type :package
cookbook_name “(chef-apply cookbook)”
recipe_name “(chef-apply recipe)”
end
[/code]

System Info:
[code language=”css”]
chef_version=13.2.20
platform=mac_os_x
platform_version=10.12.6
ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin14]
program_name=/usr/local/bin/chef-apply
executable=/opt/chefdk/bin/chef-apply

[2017-07-24T10:46:03+01:00] FATAL: Stacktrace dumped to /Users/Raj/.chef/cache/chef-stacktrace.out
[2017-07-24T10:46:03+01:00] FATAL: Stacktrace dumped to /Users/Raj/.chef/cache/chef-stacktrace.out
[2017-07-24T10:46:03+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-07-24T10:46:03+01:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2017-07-24T10:46:03+01:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: homebrew_package[httpd] ((chef-apply cookbook)::(chef-apply recipe) line 1) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
—- Begin output of [“brew”, “info”, “–json=v1”, “httpd”] —-
STDOUT:
STDERR: Error: No available formula with the name “httpd”
—- End output of [“brew”, “info”, “–json=v1”, “httpd”] —-
Ran [“brew”, “info”, “–json=v1”, “httpd”] returned 1
[2017-07-24T10:46:03+01:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: homebrew_package[httpd] ((chef-apply cookbook)::(chef-apply recipe) line 1) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received ‘1’
—- Begin output of [“brew”, “info”, “–json=v1”, “httpd”] —-
STDOUT:
STDERR: Error: No available formula with the name “httpd”
—- End output of [“brew”, “info”, “–json=v1”, “httpd”] —-
[/code]

rajeshkumar replied the topic: Getting Error while executing Che recipe

I guess you are running this script in Mac

“Error executing action `install` on resource ‘homebrew_package[httpd]'”

Check the name of apache http package name in Mac. I guess its “httpd24” but need to verify first.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x