ERROR: Invalid password (from manager)

742 views
Skip to first unread message

Raony Jose

unread,
Oct 25, 2023, 4:14:42 PM10/25/23
to Wazuh | Mailing List
I have the following error on a wazuh agent, I have already followed all the procedures in the troubleshooting guide and the error continues.

2023/10/25 17:02:59 wazuh-agent: INFO: Started (pid: 17572).
2023/10/25 17:03:00 wazuh-agent: INFO: Using password specified on file: authd.pass
2023/10/25 17:03:00 wazuh-agent: INFO: Using agent name as: DESKTOP-XXXX2
2023/10/25 17:03:00 wazuh-agent: INFO: Waiting for server reply
2023/10/25 17:03:00 wazuh-agent: ERROR: Invalid password (from manager)
2023/10/25 17:03:00 wazuh-agent: ERROR: Unable to add agent (from manager)
2023/10/25 17:03:00 wazuh-agent: INFO: Requesting a key from server: xx.x.xx.xx
2023/10/25 17:03:01 wazuh-agent: INFO: Using agent name as: DESKTOP-xxxxx2
2023/10/25 17:03:01 wazuh-agent: INFO: Waiting for server reply
2023/10/25 17:03:01 wazuh-agent: ERROR: Invalid password (from manager)
2023/10/25 17:03:01 wazuh-agent: ERROR: Unable to add agent (from manager)

I have already tested the connection using the troubleshooting guide and the connection is fine.
I have also followed the authentication configuration manual via auth.pass (https://documentation.wazuh.com/current/user-manual/agent-enrollment/security-options/using-password-authentication.html)

Check if the credentials match, the one on the manager's server and the one on the agent and they are exactly the same.So I don't know what could be causing this error, can anyone help me with this?

additional information:
I'm running wazuh on version 4.3, I've restarted the service, I've reinstalled the agent on the endpoint and I've tested the endpoint connection to manager with the command: (new-object Net.Sockets.TcpClient).Connect("xx. x.xx.xx", 1514,1515,5500)

Raony Jose

unread,
Oct 25, 2023, 6:13:58 PM10/25/23
to Wazuh | Mailing List

 Ok, after talking about several things and options I discovered that the file encoding was the problem.
 if the authd.pass file is created by powershell it will create it with an encoding that wazuh does not expect (wazuh expects utf-8), Changing the encoding solved my problem.
One point is that the documentation does not have this encoding detail.

John Ebuka Onyejegbu

unread,
Oct 25, 2023, 8:59:28 PM10/25/23
to Wazuh | Mailing List
Hi Raony,

Glad to know you have solved this. I will sure take a look with the internal team and update the documentation.

Regards.

Marlon Estrella

unread,
Sep 25, 2024, 5:37:12 AM9/25/24
to Wazuh | Mailing List
details plz.

Thank you

Reply all
Reply to author
Forward
0 new messages