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

Fix errors in 4.2.0 upgrade #695

Merged
merged 2 commits into from
Mar 31, 2021
Merged

Fix errors in 4.2.0 upgrade #695

merged 2 commits into from
Mar 31, 2021

Conversation

DFolchA
Copy link
Contributor

@DFolchA DFolchA commented Mar 31, 2021

Related issue

Description

This PR fixes some errors when upgrading to 4.2.0.

Logs example

ERROR

09:44:19  2021/03/31 07:43:36 wazuh-agentd: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)].
09:44:19  
09:44:19  2021/03/31 07:43:36 wazuh-syscheckd: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)].
09:44:19  
09:44:19  2021/03/31 07:43:36 wazuh-syscheckd: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)].
09:44:19  
09:44:19  2021/03/31 07:43:36 wazuh-logcollector: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)].
09:44:19  
09:44:19  2021/03/31 07:43:36 wazuh-modulesd: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)].
09:44:19  
09:44:19  2021/03/31 07:43:36 wazuh-execd: INFO: Started (pid: 1964).
09:44:19  
09:44:19  2021/03/31 07:43:37 wazuh-agentd: ERROR: (1103): Could not open file 'queue/sockets/.agent_info' due to [(2)-(No such file or directory)].

Tests

  • Build the package in any supported platform
    • Linux
  • Package installation
  • Package upgrade
  • Package downgrade
  • Package remove
  • Package install/remove/install
  • Change added to CHANGELOG.md
  • Tests for Linux RPM
    • Build the package for x86_64
    • Build the package for i386
    • Build the package for armhf
    • Build the package for aarch64
    • %files section is correctly updated if necessary
  • Tests for Linux deb
    • Build the package for x86_64
    • Build the package for i386
    • Build the package for armhf
    • Build the package for aarch64
    • Package install/remove/install
    • Package install/purge/install
    • Check file permissions after installing the package

@DFolchA DFolchA requested review from alberpilot and okynos and removed request for alberpilot March 31, 2021 14:21
Copy link
Contributor

@okynos okynos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@DFolchA DFolchA changed the base branch from master to 4.2 March 31, 2021 14:24
@alberpilot alberpilot merged commit cfe7b42 into 4.2 Mar 31, 2021
@alberpilot alberpilot deleted the 4.2-fixes branch March 31, 2021 14:25
This was referenced Mar 31, 2021
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

Successfully merging this pull request may close these issues.

3 participants