Couldn't Register Local Agent

When trying to Register Local Agent, we are getting “Agent is not running” error.