Comments (8)
Hi, I got this error recently.
I fixed it by upgrading the chef-client on the node.
Good luck!
from push-jobs-cookbook.
Getting Below error while installing push-jobs cookbook on node (node is Oracle Linux 7+ of RHEL family)
$ sudo chef-client
Starting Chef Client, version 12.9.41
resolving cookbooks for run list: ["push-jobs"]
Synchronizing Cookbooks:
- push-jobs (2.8.0)
- runit (1.7.8)
- packagecloud (0.2.0)
- windows (1.41.0)
- chef_handler (1.4.0)
- chef-ingredient (0.18.4)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 12 resources
Recipe: push-jobs::install
* remote_file[/var/chef/cache/push-jobs-client-2.1.0-1.el7.x86_64.rpm] action create (up to date)
* chef_ingredient[push-jobs-client] action install
Recipe: <Dynamically Defined Resource>
* chef_gem[mixlib-install] action install (up to date)
* ruby_block[stop chef run] action nothing (skipped due to action :nothing)
* yum_package[push-jobs-client] action install (up to date)
(up to date)
Recipe: push-jobs::config
* directory[/etc/chef] action create (up to date)
* template[/etc/chef/push-jobs-client.rb] action create (up to date)
Recipe: runit::default
* service[runit] action nothing (skipped due to action :nothing)
* execute[start-runsvdir] action nothing (skipped due to action :nothing)
* execute[runit-hup-init] action nothing (skipped due to action :nothing)
* packagecloud_repo[imeyer/runit] action add
================================================================================
Error executing action `add` on resource 'packagecloud_repo[imeyer/runit]'
================================================================================
RuntimeError
------------
#<Net::HTTPNotFound 404 Not Found readbody=true>
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/packagecloud/libraries/helper.rb:20:in `get'
/var/chef/cache/cookbooks/packagecloud/providers/repo.rb:80:in `install_rpm'
/var/chef/cache/cookbooks/packagecloud/providers/repo.rb:12:in `block in class_from_file'
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/runit/recipes/default.rb
42: packagecloud_repo 'imeyer/runit' unless node['runit']['prefer_local_yum']
43: package 'runit'
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/runit/recipes/default.rb:42:in `from_file'
packagecloud_repo("imeyer/runit") do
action [:add]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :packagecloud_repo
cookbook_name "runit"
recipe_name "default"
type "rpm"
base_url "https://packagecloud.io"
repository "imeyer/runit"
end
Platform:
---------
x86_64-linux
Running handlers:
[2016-05-24T22:01:07+05:30] ERROR: Running exception handlers
Running handlers complete
[2016-05-24T22:01:07+05:30] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 08 seconds
[2016-05-24T22:01:08+05:30] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-05-24T22:01:08+05:30] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-05-24T22:01:08+05:30] ERROR: packagecloud_repo[imeyer/runit] (runit::default line 42) had an error: RuntimeError: #<Net::HTTPNotFound 404 Not Found readbody=true>
[2016-05-24T22:01:08+05:30] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
above error i am getting even after follow steps mentioned on the below link:
https://docs.chef.io/install_push_jobs.html
from push-jobs-cookbook.
@abhi-paul The error you're seeing here is in the runit cookbook. It looks like there's a 404 being thrown when the runit cookbook tries to subscribe to the runit Packagecloud repository, to get the runit package.
Recipe: runit::default
* service[runit] action nothing (skipped due to action :nothing)
* execute[start-runsvdir] action nothing (skipped due to action :nothing)
* execute[runit-hup-init] action nothing (skipped due to action :nothing)
* packagecloud_repo[imeyer/runit] action add
================================================================================
Error executing action `add` on resource 'packagecloud_repo[imeyer/runit]'
================================================================================
RuntimeError
------------
#<Net::HTTPNotFound 404 Not Found readbody=true>
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/packagecloud/libraries/helper.rb:20:in `get'
/var/chef/cache/cookbooks/packagecloud/providers/repo.rb:80:in `install_rpm'
/var/chef/cache/cookbooks/packagecloud/providers/repo.rb:12:in `block in class_from_file'
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/runit/recipes/default.rb
42: packagecloud_repo 'imeyer/runit' unless node['runit']['prefer_local_yum']
43: package 'runit'
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/runit/recipes/default.rb:42:in `from_file'
packagecloud_repo("imeyer/runit") do
action [:add]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :packagecloud_repo
cookbook_name "runit"
recipe_name "default"
type "rpm"
base_url "https://packagecloud.io"
repository "imeyer/runit"
end
from push-jobs-cookbook.
Your node is behind a firewall? It has Internet connectivity?
from push-jobs-cookbook.
Consider pre-installing runit
and set ``default['runit']['prefer_local_yum'] = true`
from push-jobs-cookbook.
@ankushgupta If you're using RHEL 7+ or Ubuntu this cookbook will no longer require Runit, which will resolve the issues you're seeing here. Unfortunately RHEL 6 is still going to have this problem as it doesn't have a reliable init system so Runit is used instead.
from push-jobs-cookbook.
@tas50 So would the install on RHEL7+ complete without runit
preinstalled? Thanks
from push-jobs-cookbook.
So without runit pre-installed on RHEL7 this will just work. Closing.
from push-jobs-cookbook.
Related Issues (20)
- EL6 distros using runit instead of upstart HOT 4
- Enable service chef-push-jobs-client every time when run chef-client on ubuntu 14.04.5 HOT 2
- Rollback of MSI can occur on Windows even if the service is already installed HOT 2
- Can't install push-jobs-client on CentOS 6 HOT 17
- Timeout::Error on Windows Server HOT 2
- Unix path used on Windows for logging_dir by default
- Use chef config data for the default path values from attributes
- Can't upgrade push-client HOT 2
- Windows install fails to successfully converge HOT 1
- sysv style init script does not background the daemon HOT 1
- chef-client run giving ssl error while push jobs client installation HOT 2
- Service fails on Amazon Linux with Chef 13.x HOT 1
- Using multiple cookbooks to set specific whitelist items
- Deprecate Runit support
- Deprecated features used HOT 1
- Resource cloning HOT 1
- Cannot Install Push Job Client HOT 1
- Cannot Install Push Job on AIX7 HOT 2
- Clear the cache
- System V init template should not use basename $0 to name the PID file HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from push-jobs-cookbook.