wazuh / wazuh-packages

Wazuh - Tools for packages creation
https://wazuh.com
GNU General Public License v2.0
104 stars 94 forks source link

Unable to update wazuh-indexer 4.7.5-1 on Ubuntu 22.04.4 #2990

Closed abr1x closed 3 months ago

abr1x commented 3 months ago
Wazuh version Install type Action performed Platform
wazuh-indexer_4.7.5-1_amd64.deb Indexer Upgrade Ubuntu 22.04.4 LTS

Wazuh indexer update failed with opensearch-security-analytics-2.8.0.0.jar: No such file or directory

Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  python3-update-manager update-manager-core
The following packages will be upgraded:
  wazuh-indexer
1 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/686 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 119647 files and directories currently installed.)
Preparing to unpack .../wazuh-indexer_4.7.5-1_amd64.deb ...
Unpacking wazuh-indexer (4.7.5-1) over (4.7.4-1) ...
dpkg: error processing archive /var/cache/apt/archives/wazuh-indexer_4.7.5-1_amd64.deb (--unpack):
unable to open '/usr/share/wazuh-indexer/plugins/opensearch-security-analytics/opensearch-security-analytics-2.8.0.0.jar.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
                                                                                         Errors were encountered while processing:
/var/cache/apt/archives/wazuh-indexer_4.7.5-1_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

In the extracted deb package is opensearch-security-analytics-2.8.0.0.jar referred which does not exist

root@linux:~/wazuh-indexer_4.7.5-1_amd64# md5sum --quiet -c md5sums
md5sum: usr/share/wazuh-indexer/plugins/opensearch-security-analytics/opensearch-security-analytics-2.8.0.0.jar: No such file or directory
usr/share/wazuh-indexer/plugins/opensearch-security-analytics/opensearch-security-analytics-2.8.0.0.jar: FAILED open or read
md5sum: WARNING: 1 listed file could not be read
root@linux:~/wazuh-indexer_4.7.5-1_amd64# sha512sum ../wazuh-indexer_4.7.5-1_amd64.deb
226b67c6c9f93954fdeb66eaab09dfaf6f219c66c3205128c0c534ba19e7ca938c6b44ba52cabab81a7558f609fe0e48e20b9b2aaa0f49a216a94a85fe52dbc0  ../wazuh-indexer_4.7.5-1_amd64.deb
root@linux:~/wazuh-indexer_4.7.5-1_amd64#
abr1x commented 3 months ago

seems to be resolved with wazuh-indexer_4.8.0-1

Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  python3-update-manager update-manager-core
The following packages will be upgraded:
  wazuh-agent wazuh-indexer
2 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/769 MB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 118836 files and directories currently installed.)
Preparing to unpack .../wazuh-agent_4.8.0-1_amd64.deb ...
Unpacking wazuh-agent (4.8.0-1) over (4.7.5-1) ...
Preparing to unpack .../wazuh-indexer_4.8.0-1_amd64.deb ...
Unpacking wazuh-indexer (4.8.0-1) over (4.7.4-1) ...
Setting up wazuh-indexer (4.8.0-1) ...
Installing new version of config file /etc/wazuh-indexer/opensearch-notifications-core/notifications-core.yml ...
Installing new version of config file /etc/wazuh-indexer/opensearch-performance-analyzer/rca.conf ...
Installing new version of config file /etc/wazuh-indexer/opensearch-performance-analyzer/rca_cluster_manager.conf ...
Installing new version of config file /etc/wazuh-indexer/opensearch-performance-analyzer/rca_idle_cluster_manager.conf ...
Installing new version of config file /etc/wazuh-indexer/opensearch-performance-analyzer/supervisord.conf ...
Installing new version of config file /etc/wazuh-indexer/opensearch-security/roles.yml ...
Installing new version of config file /etc/wazuh-indexer/opensearch-security/roles_mapping.yml ...
Restarting wazuh-indexer service... OK
Setting up wazuh-agent (4.8.0-1) ...
root@linux:~/wazuh-indexer_4.8.0-1_amd64$ md5sum --quiet -c md5sums
root@linux:~/wazuh-indexer_4.8.0-1_amd64$ sha512sum ../wazuh-indexer_4.8.0-1_amd64.deb
3a45e1cd982bef2bb20375f1766d97b7522bfe76d006b95a9bc6df098c10a46d41a950e83d7d512c4b23f3bdf38dc3681523bcf5ebb4e0121f49f3be21e2be98  ../wazuh-indexer_4.8.0-1_amd64.deb
root@linux:~/wazuh-indexer_4.8.0-1_amd64$