Hi
I am trying to use chef push jobs on open source chef 12. I installed opscode-push-jobs-server-1.1.6 on my chef-server. Then I installed knife-push gem on workstation.
When I am executing “knife job status” I am getting following error:
ERROR: The object you are looking for could not be found
What am I doing wrong?
Regards
Manish Mehra
Which version of knife-push do you installed?
Can you run with the -VV argument to catch the debug info?
It’s been a while since I’ve configured push jobs, but does this help? Steps I took to configure Chef push jobs
Hi @tiagobevilaqua
I get this:
E:\chef-repo>knife job status -VV
INFO: Using configuration from E:/chef-repo/.chef/knife.rb
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as manish
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://inirp005.in.tesco.org/organizations/tesco/pushy
/jobs/
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
DEBUG: X-OPS-USERID: manish
DEBUG: X-OPS-TIMESTAMP: 2016-04-15T08:30:33Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: XQ+ARP7eBoL55vwh8l8/BXct8nD6qu96nSAxReF4k20M0vrJ3K
dEfW8FC0m8
DEBUG: X-OPS-AUTHORIZATION-2: tpS/luktbaovbkkgRAuSD4xmOGmUK6A7QScfq5iX4ji5jiBnde
Oeye7sNtpO
DEBUG: X-OPS-AUTHORIZATION-3: QozevJYFjGK6uxnxTL+GbSpIcYWlDX8iJ2nw2XFzWGyZJo+jlH
8MnbNT92Xx
DEBUG: X-OPS-AUTHORIZATION-4: usGH7GHoxNLC7mxKIushhKsuOnDLwUIDSypZrGE9JK+9VR681h
fpYhOQNO04
DEBUG: X-OPS-AUTHORIZATION-5: VJB6Fg7B2sChMMkVYeSPbMj9e0BQF/3swvmm1L3eLwFTcvy+1N
6jBHKkHwYp
DEBUG: X-OPS-AUTHORIZATION-6: azRDdoG+zB+Lcprgx6ODSk1j/4fuXn2huy5IYEu5wQ==
DEBUG: HOST: inirp005.in.tesco.org:443
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-REMOTE-REQUEST-ID: 57988084-3f69-48f4-8bed-8a14109d6e8f
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 404 Not Found
DEBUG: server: openresty/1.9.3.1
DEBUG: date: Fri, 15 Apr 2016 08:30:37 GMT
DEBUG: content-type: text/html
DEBUG: transfer-encoding: chunked
DEBUG: connection: close
DEBUG: etag: W/“565590cc-43f"
DEBUG: content-encoding: gzip
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: ---- HTTP Response Body ----
DEBUG: ▼
?TM??0►???P.$n?R)u”?J?z:slight_smile:??H??▲??i?:v??M??q??Y|???
6??y???▬r,T|
U☼
?]Dr??=?UU???
??V+zi???i|:heart:?
??
↓?▼'y???h¶→???¶♦?n§◄¶↨?M?→??['0:a▬?#@⌂??-?z←lLQr?{5??m?mqR∟?n?∟?Q?↕?&↨↓♦??-? A?hN:e??5?*??P?T?pX?"?V??B ☺?m??&?◄??"B???????:?♦???@!?|?;??☺T?∟ ??Q?TfOA????lo? U'?gH¶w?3^ya??2??;☺~?a?♫?~??;?F▼?Le♫?????r→Y|►?x???¶??Q▲3??5?/??r?♀U+??R?_?)???? ↑¶??\??Q??e↓?|0?A???P??↕?♠+?{cm?→v?p? ↓-??tZ!nc?/??&d??L?b???e?@♥?Al♀?Re??:?&????f6?M1???N?????▬?>?{?a??{it↕-Rp'☼9:?‼N ??♣?k?E F???/g??? ???x?♦ DEBUG: ---- End HTTP Response Body ----- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: HTTP server did not include a Content-Length header in response, cannot i dentify truncated downloads. DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: decompressing gzip response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_response DEBUG: Expected JSON response, but got content-type 'text/html' DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response INFO: HTTP Request Returned 404 Not Found: C:/opscode/chefdk/embedded/lib/ruby/2.1.0/net/http/response.rb:119:in
error!’:
404 “Not Found” (Net::HTTPServerException)
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1-uni
versal-mingw32/lib/chef/http.rb:145:in request' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1-uni versal-mingw32/lib/chef/rest.rb:120:in
get’
from C:/Users/TEMP/AppData/Local/chefdk/gem/ruby/2.1.0/gems/knife-push-0
.5.2/lib/chef/knife/job_status.rb:27:in run' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1-uni versal-mingw32/lib/chef/knife.rb:405:in
block in run_with_pretty_exceptions’
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1-uni
versal-mingw32/lib/chef/local_mode.rb:44:in with_server_connectivity' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1-uni versal-mingw32/lib/chef/knife.rb:404:in
run_with_pretty_exceptions’
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1-uni
versal-mingw32/lib/chef/knife.rb:203:in run' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1-uni versal-mingw32/lib/chef/application/knife.rb:142:in
run’
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1-uni
versal-mingw32/bin/knife:25:in <top (required)>' from C:/opscode/chefdk/bin/knife:64:in
load’
from C:/opscode/chefdk/bin/knife:64:in `’