I’ve deployed OpsWorks with Chef Automate and connected some nodes. I can get the node list, but some commands are not working. I’ll give you some examples: push jobs and status.
$ knife job start 'chef-client' --search 'recipe:awesome_customers_delivery'
ERROR: The object you are looking for could not be found
Response: <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>Chef - 404 Not Found</title>
<link media="all" rel="stylesheet" type="text/css" href="/css/all.css" />
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="/css/lt7.css" /><![endif]-->
</head>
<body>
<div class="header-block">
<div id="header">
<strong class="logo"><a href="https://www.chef.io">Chef</a></strong>
</div>
</div>
<div id="wrapper">
<div id="main">
<div class="mybox">
<div id="content">
<h1>404 - Not Found</h1>
<p>Sorry, I can't find what you are looking for.</p>
</div>
</div>
</div>
</div>
<div class="footer-block">
<div id="footer">
<div class="mybox">
</div>
<div class="footer-bottom">
<span>© 2010 – 2016 Chef Software, Inc. All Rights Reserved</span>
</div>
</div>
</div>
</body>
</html>
However, knife ssh -x ubuntu 'recipe:awesome_customers_delivery' 'sudo chef-client'
works just fine.
$ knife node status
ERROR: The object you are looking for could not be found
Response: <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>Chef - 404 Not Found</title>
<link media="all" rel="stylesheet" type="text/css" href="/css/all.css" />
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="/css/lt7.css" /><![endif]-->
</head>
<body>
<div class="header-block">
<div id="header">
<strong class="logo"><a href="https://www.chef.io">Chef</a></strong>
</div>
</div>
<div id="wrapper">
<div id="main">
<div class="mybox">
<div id="content">
<h1>404 - Not Found</h1>
<p>Sorry, I can't find what you are looking for.</p>
</div>
</div>
</div>
</div>
<div class="footer-block">
<div id="footer">
<div class="mybox">
</div>
<div class="footer-bottom">
<span>© 2010 – 2016 Chef Software, Inc. All Rights Reserved</span>
</div>
</div>
</div>
</body>
</html>
Why would these commands not work? Is there a way I can debug the scenario?