Reinstall wazuh-api

597 views
Skip to first unread message

Javier Martín-Moreno Guijarro

unread,
Jul 10, 2018, 11:06:59 AM7/10/18
to Wazuh mailing list
Hi dear Team,

I saw this problem when I try to open wazuh-api:


It could be possible to reinstall it? I have working the last version of wazuh-manager but I've gotten this error with the last version of wazuh-api

Thanks and regards.
Auto Generated Inline Image 1

jesus.g...@wazuh.com

unread,
Jul 10, 2018, 11:18:58 AM7/10/18
to Wazuh mailing list
Hello Javier,

That message means your installed Wazuh App is in a different minor version from your Wazuh API. 
The Wazuh App needs to match major a minor version from the Wazuh API or even simpler, look at the next examples:
  • Wazuh API 3.3.x - Wazuh App 3.3.x is ok
  • Wazuh API 3.3.x - Wazuh App 3.2.x it wrong
You have a Wazuh API 3.3.x and you are using a Wazuh App for 3.2.x, at this point you must upgrade your Wazuh App
also check this link https://github.com/wazuh/wazuh-kibana-app#upgrade to see how to upgrade.

Hope it helps,
Jesús

Javier Martín-Moreno Guijarro

unread,
Jul 10, 2018, 11:43:22 AM7/10/18
to Wazuh mailing list
Hi Jesus,

Thanks for your quickly response. I have wazuh-manager and wazuh-api in one server and ELK in other server so, I can't use kibana-plugin or, am I wrong? I have 6.2.4 version for ELK.

Regards,

jesus.g...@wazuh.com

unread,
Jul 10, 2018, 12:07:00 PM7/10/18
to Wazuh mailing list
Hello again Javier,

If you are using 6.2.4 you must install one of the next packages depending on your Wazuh API version:

- For Wazuh API 3.3.0 install https://packages.wazuh.com/wazuhapp/wazuhapp-3.3.0_6.2.4.zip 
- For Wazuh API 3.3.1 install https://packages.wazuh.com/wazuhapp/wazuhapp-3.3.1_6.2.4.zip

Check your version:

# curl wazuh_api:55000/version -u user:pass

Go to your Kibana server and execute the next commands:

# systemctl stop kibana
# /usr/share/kibana/bin/kibana-plugin remove wazuh
# rm -rf /usr/share/kibana/optimize/bundles

Now install your new App for 3.3.1 and 6.2.4:

# /usr/share/kibana/bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-3.3.1_6.2.4.zip

or for 3.3.0 and 6.2.4:

# /usr/share/kibana/bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-3.3.0_6.2.4.zip

Another option is to upgrade your Elastic stack to 6.3.1 and then install a Wazuh app for Wazuh API 3.3.1 and Elastic 6.3.1:

# /usr/share/kibana/bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-3.3.1_6.3.1.zip

Now restart Kibana:

# systemctl restart kibana

Hope it helps,
Jesús
Reply all
Reply to author
Forward
0 new messages