Comment 5 for bug 1956975

Revision history for this message
Heather Lanigan (hmlanigan) wrote (last edit ): Re: Agent lost

To get the lost agent running again after seeing unexpected or unintended error message "Failed to connect to controller: invalid entity name or password (unauthorized access)":

1. juju ssh <lost-unit>
2. Edit the /var/lib/juju/agents/machine-#/agent.conf file to remove a line starting:
" stopped: <unit>"
3. Then bounce jujud on the machine.

Verified in two places.

Update: in 2.9.25 additional logging has been added for this failure case. If you try the work around, please check for error logs on the controller containing "invalid password" and update this bug with the date.