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

Warning message when uninstalling the Wazuh indexer #335

Closed
Benjaminnworah opened this issue Jul 26, 2024 · 2 comments · Fixed by #339
Closed

Warning message when uninstalling the Wazuh indexer #335

Benjaminnworah opened this issue Jul 26, 2024 · 2 comments · Fixed by #339
Assignees
Labels
level/task Task issue type/bug Bug issue

Comments

@Benjaminnworah
Copy link
Member

Benjaminnworah commented Jul 26, 2024

Hello,

I observed that the uninstallation of the Wazuh Indexer produces warning messages as shown below during the testing for Release 4.9.0 - Alpha 3 - E2E UX tests - Wazuh Indexer

  Erasing          : wazuh-indexer-4.9.0-1.x86_64                                                                                                                       1/1
warning: file /var/run/wazuh-indexer: remove failed: No such file or directory
warning: /etc/wazuh-indexer/opensearch.yml saved as /etc/wazuh-indexer/opensearch.yml.rpmsave
@rauldpm rauldpm transferred this issue from wazuh/wazuh-packages Jul 26, 2024
@rauldpm rauldpm added level/task Task issue type/bug Bug issue labels Jul 26, 2024
@wazuhci wazuhci moved this to Triage in Release 4.9.0 Jul 26, 2024
@Benjaminnworah Benjaminnworah changed the title Warning message running systemctl status wazuh-indexer Warning message when uninstalling the Wazuh indexer Jul 26, 2024
@f-galland f-galland self-assigned this Jul 26, 2024
@wazuhci wazuhci moved this from Triage to In progress in Release 4.9.0 Jul 26, 2024
@f-galland
Copy link
Member

f-galland commented Jul 26, 2024

I believe this might be related to:

But I'm not able to reproduce the issue:

[root@uninstall-warnings ~]# yum install -y wazuh-indexer
AlmaLinux 8 - BaseOS                                                                                                                                  3.8 MB/s | 5.1 MB     00:01    
AlmaLinux 8 - AppStream                                                                                                                               6.9 MB/s |  12 MB     00:01    
AlmaLinux 8 - Extras                                                                                                                                   17 kB/s |  13 kB     00:00    
EL-8 - Wazuh                                                                                                                                          4.6 MB/s |  28 MB     00:06    
Dependencies resolved.
======================================================================================================================================================================================
 Package                                          Architecture                              Version                                    Repository                                Size
======================================================================================================================================================================================
Installing:
 wazuh-indexer                                    x86_64                                    4.9.0-1                                    wazuh                                    813 M

Transaction Summary
======================================================================================================================================================================================
Install  1 Package

Total download size: 813 M
Installed size: 1.0 G
Downloading Packages:
wazuh-indexer-4.9.0-1.x86_64.rpm                                                                                                                       12 MB/s | 813 MB     01:05    
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                  12 MB/s | 813 MB     01:05     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                              1/1 
  Running scriptlet: wazuh-indexer-4.9.0-1.x86_64                                                                                                                                 1/1 
  Installing       : wazuh-indexer-4.9.0-1.x86_64                                                                                                                                 1/1 
  Running scriptlet: wazuh-indexer-4.9.0-1.x86_64                                                                                                                                 1/1 
### NOT starting on installation, please execute the following statements to configure wazuh-indexer service to start automatically using systemd
 sudo systemctl daemon-reload
 sudo systemctl enable wazuh-indexer.service
### You can start wazuh-indexer service by executing
 sudo systemctl start wazuh-indexer.service



  Verifying        : wazuh-indexer-4.9.0-1.x86_64                                                                                                                                 1/1 

Installed:
  wazuh-indexer-4.9.0-1.x86_64                                                                                                                                                        

Complete!
[root@uninstall-warnings ~]# yum remove wazuh-indexer
Dependencies resolved.
======================================================================================================================================================================================
 Package                                         Architecture                             Version                                      Repository                                Size
======================================================================================================================================================================================
Removing:
 wazuh-indexer                                   x86_64                                   4.9.0-1                                      @wazuh                                   1.0 G

Transaction Summary
======================================================================================================================================================================================
Remove  1 Package

Freed space: 1.0 G
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                              1/1 
  Running scriptlet: wazuh-indexer-4.9.0-1.x86_64                                                                                                                                 1/1 
  Erasing          : wazuh-indexer-4.9.0-1.x86_64                                                                                                                                 1/1 
  Running scriptlet: wazuh-indexer-4.9.0-1.x86_64                                                                                                                                 1/1 
  Verifying        : wazuh-indexer-4.9.0-1.x86_64                                                                                                                                 1/1 

Removed:
  wazuh-indexer-4.9.0-1.x86_64                                                                                                                                                        

Complete!

Will do further testing to validate the results

@wazuhci wazuhci moved this from In progress to On hold in Release 4.9.0 Jul 29, 2024
@wazuhci wazuhci moved this from On hold to In progress in Release 4.9.0 Jul 31, 2024
@f-galland
Copy link
Member

I was able to reproduce the error message by starting up the service and then uninstalling it:

[root@uninstall-warning ~]# yum remove  wazuh-indexer
Dependencies resolved.
===================================================================================================================================================
 Package                                 Architecture                     Version                           Repository                        Size
===================================================================================================================================================
Removing:
 wazuh-indexer                           x86_64                           4.9.0-1                           @wazuh                           1.0 G

Transaction Summary
===================================================================================================================================================
Remove  1 Package

Freed space: 1.0 G
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                           1/1 
  Running scriptlet: wazuh-indexer-4.9.0-1.x86_64                                                                                              1/1 
Stop existing wazuh-indexer.service

  Erasing          : wazuh-indexer-4.9.0-1.x86_64                                                                                              1/1 
warning: file /var/run/wazuh-indexer: remove failed: No such file or directory

  Verifying        : wazuh-indexer-4.9.0-1.x86_64                                                                                              1/1 

Removed:
  wazuh-indexer-4.9.0-1.x86_64                                                                                                                     

Complete!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/bug Bug issue
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants