Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not change api key after upgrade to 4.9 #3136

Open
n1ck-unikat opened this issue Sep 29, 2024 · 1 comment
Open

can not change api key after upgrade to 4.9 #3136

n1ck-unikat opened this issue Sep 29, 2024 · 1 comment

Comments

@n1ck-unikat
Copy link

ubuntu 20.04 wazuh 4.9

i upgrade the version to 4.9 , after that api can not conneted :

3099 - ERROR3099 - Server not ready yet

when i try to change the api key , its come to:

ERROR: Invalid admin user credentials

  1. step generate new password with the command:
  2. ./wazuh-passwords-tool.sh --change-all
  3. try to login with the new key, accepted
  4. now try with the new password for wazuh to change the api key with the command:
  5. ./wazuh-passwords-tool.sh --api --change-all --admin-user admin --admin-password generatedpassword before
  6. ./wazuh-passwords-tool.sh --api --change-all --admin-user wazuh --admin-password generatedpassword before
  7. always failure : ERROR: Invalid admin user credentials
    i dont understand, how can the credential wrong when i generate then new and can login with the credential?
@madalinignisca
Copy link

madalinignisca commented Nov 4, 2024

I'm in the same situation after upgrading from 4.8.1 to 4.9.2.

I was expecting that upgrade would work just as usual.

Nov 04 20:42:08 wazuh opensearch-dashboards[11516]: {"type":"response","@timestamp":"2024-11-04T20:42:08Z","tags":[],"pid":11516,"method":"post","statusCode":500,"req":{"url":"/utils/logs/ui","method":"post","headers":{"host":"[hidden]","content-length":"99","sec-ch-ua-platform":"\"Linux\"","sec-ch-ua":"\"Chromium\";v=\"130\", \"Google Chrome\";v=\"130\", \"Not?A_Brand\";v=\"99\"","sec-ch-ua-mobile":"?0","user-agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36","accept":"application/json, text/plain, */*","dnt":"1","content-type":"application/json","pattern":"wazuh-alerts-*","osd-xsrf":"kibana","origin":"https://[hidden]","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https://[hidden]/app/server-apis","accept-encoding":"gzip, deflate, br, zstd","accept-language":"en-US,en;q=0.9,es-ES;q=0.8,es;q=0.7","priority":"u=1, i","x-forwarded-proto":"https","x-forwarded-for":"79.116.29.144"},"remoteAddress":"10.121.136.1","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36","referer":"https://[hidden]/app/server-apis"},"res":{"statusCode":500,"responseTime":3,"contentLength":9},"message":"POST /utils/logs/ui 500 3ms - 9.0B"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants