MIKRO001 - MikroTik Authentication Failed
Agent error code #MIKRO001 indicates that the MikroTik device rejected the credentials supplied by the Knocknoc agent. The REST endpoint returned HTTP 401 Unauthorized.
Common causes include:
- The Username or Password in the Knocknoc backend is wrong
- The user account has been disabled or removed in RouterOS
- The password was rotated in RouterOS but the Knocknoc backend was not updated
- The user is restricted by Allowed Address and the agent is dialling from an IP not on that list
Steps to Resolve
Verify the Credentials
- From the host running the Knocknoc agent, run:
curl -ku '<user>:<pass>' https://<router-host>/rest/system/resource - If you also receive HTTP 401, the credentials are wrong or the user is disabled
- In RouterOS, open System > Users > Users and confirm the account exists and is not disabled
Reset the Password
- In RouterOS, select the service user under System > Users > Users
- Click Password and set a new value
- Update the Password field in the Knocknoc backend with the new value
- Save the backend and retry
Check Allowed Address Restrictions
- Open the service user in RouterOS
- If Allowed Address is set, confirm the agent host's IP is included
- Add the agent's IP if missing, or clear the field to allow any source
Still Having Issues?
We can help you out, contact us at support@knocknoc.io.