Bootstrap Fails With Knife Sudo Password Error
How to troubleshoot the bootstrap error when knife sudo fails
The IBM middleware cookbooks that are packages with Managed services (CAM) require a user with password-less sudo capabilities. For most templates, this user is root. However, if root is not available, then the operating system template that is used for deploy must include a user with the ability to use sudo without requiring a password.
If the deploy fails with this message, it means that the user did not have the ability to use sudo without requiring a password:
Error: Response from pattern manager:
StatusCode:500
Message:
{
“message”: “Bootstrap command failed. See the pattern manager logs for more details.“,
“rc”: 1,
“request_id”: “1c844be316b74601853d2ddde595d94d”,
“stderr”: “Creating new client for cam-apache-1\nCreating new node for cam-apache-1\nConnecting to 172.16.9.71\nstty: ‘standard input’: Inappropriate ioctl for device\nstty: ‘standard input’: Inappropriate ioctl for device\nstty: ‘standard input’: Inappropriate ioctl for device”,
“stdout”: “172.16.9.71 knife sudo password: \nEnter your password: \r\n172.16.9.71 \r\n172.16.9.71 Sorry, try again.\r\n172.16.9.71 knife sudo password: \n172.16.9.71 \r\n172.16.9.71 Sorry, try again.\r\n172.16.9.71 knife sudo password: \n172.16.9.71 \r\n172.16.9.71 sudo: 3 incorrect password attempts”
}