Fix: Tasks not executing, [sudo] password for morpheus-app

Problem

Following error when running Shell Script Automation tasks on the Local Execute Target

Task Execution Failed on Attempt 1

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for morpheus-app: Sorry, try again.
[sudo] password for morpheus-app:
sudo: no password was provided
sudo: 1 incorrect password attempt

Root Cause

Default Morpheus installations set NOPASSWD:ALL for the morpheus-app user. If there is a password required for the morpheus-app user this will cause the above problem. If /etc/sudoers.d/80-morpheus-app is missing on the Morpheus appliance application nodes this is likely the cause for the morpheus-app user missing the NOPASSWD:ALL configuration.

Solution

  1. morpheus-ctl stop morpheus-ui
  2. morpheus-ctl reconfigure
  3. morpheus-ctl start morpheus-ui

And then check if 80-morpheus-app is created.

It is not required for morpheus-app to be able to to sudo to root just to morpheus-local

1 Like