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 GHA errors in Wazuh indexer 4.6.0 #2418

Closed
2 tasks
rauldpm opened this issue Sep 5, 2023 · 0 comments
Closed
2 tasks

Fix GHA errors in Wazuh indexer 4.6.0 #2418

rauldpm opened this issue Sep 5, 2023 · 0 comments
Labels
level/task Subtask issue type/bug Bug issue

Comments

@rauldpm
Copy link
Member

rauldpm commented Sep 5, 2023

Description

Apparently the GHA Test-security-config-files-preservation-Debian is failing in 4.6.0 in the stage of building the package of the previous version (Build the Wazuh indexer package and set environment variable) with the following error message

   debian/rules override_dh_install
make[1]: Entering directory '/build/wazuh-indexer/wazuh-indexer-4.6.0'
rm -rf /usr/share/wazuh-indexer/
cp /tmp/wazuh-indexer-base-4.6.0-1-linux-x64.tar.xz ./
cp: cannot stat '/tmp/wazuh-indexer-base-4.6.0-1-linux-x64.tar.xz': No such file or directory
debian/rules:62: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/build/wazuh-indexer/wazuh-indexer-4.6.0'
debian/rules:45: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed
Error: Process completed with exit code 1.

Maybe this is related to

Repository error
Run sudo ./build_package.sh
  sudo ./build_package.sh
  echo "PACKAGE_NAME=$(ls ./output | grep .deb | head -n 1)" >> $GITHUB_ENV
  shell: /usr/bin/bash -e {0}
  env:
    LATEST_STABLE_VERSION: 4.5.1
    MAJOR_MINOR: 45
#0 building with "default" instance using docker driver

#1 [internal] load .dockerignore
#1 transferring context: [2](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:2)B done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: [3](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:3)53B done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/rockylinux:8.5
#3 DONE 0.8s

#[4](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:4) [internal] load build context
#4 transferring context: 3.[5](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:5)2kB done
#4 DONE 0.0s

#5 [1/5] FROM docker.io/library/rockylinux:8.5@sha25[6](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:6):5fed549[7](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:7)b56[8](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:9)bcf7a[9](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:10)0a00965987fc099edbcf44b1179a5ef6d4b47758281ca5
#5 resolve docker.io/library/rockylinux:8.5@sha256:5fed5497b568bcf7a90a00965987fc099edbcf44b1179a5ef6d4b47758281ca5 done
#5 sha256:5fed5497b568bcf7a90a00965987fc099edbcf44b1179a5ef6d4b47758281ca5 547B / 547B done
#5 sha256:8a94380717b7e6b21c56f8333e0e8242e89a020c0c861d6346f59f179f096240 529B / 529B done
#5 sha256:2[10](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:11)996f98b856d7cd00496ddbe9412e73f1c714c95de09661e07b4e43648f9ab 1.48kB / 1.48kB done
#5 sha256:72a2451028f[11](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:12)c6927678e5f1bb8f35b4e723d3b342ec1a6980d7b5591cf81d6 0B / 74.86MB 0.1s
#5 sha256:72a2451028f11c6927678e5f1bb8f35b4e723d3b342ec1a6980d7b5591cf81d6 10.49MB / 74.86MB 0.4s
#5 sha256:72a2451028f11c6927678e5f1bb8f35b4e723d3b342ec1a6980d7b5591cf81d6 18.87MB / 74.86MB 0.5s
#5 sha256:72a2451028f11c6927678e5f1bb8f35b4e723d3b342ec1a6980d7b5591cf81d6 28.31MB / 74.86MB 0.6s
#5 sha256:72a2451028f11c6927678e5f1bb8f35b4e723d3b342ec1a6980d7b5591cf81d6 57.67MB / 74.86MB 0.8s
#5 sha256:72a2451028f11c6927678e5f1bb8f35b4e723d3b342ec1a6980d7b5591cf81d6 74.45MB / 74.86MB 0.9s
#5 sha256:72a2451028f11c6927678e5f1bb8f35b4e723d3b342ec1a6980d7b5591cf81d6 74.86MB / 74.86MB 1.0s done
#5 extracting sha256:72a2451028f11c6927678e5f1bb8f35b4e723d3b342ec1a6980d7b5591cf81d6 0.1s
#5 extracting sha256:72a2451028f11c6927678e5f1bb8f35b4e723d3b342ec1a6980d7b5591cf81d6 4.5s done
#5 DONE 5.6s

#6 [2/5] RUN yum clean all && yum update -y
#6 0.4[13](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:14) 0 files removed
#6 10.44 Rocky Linux 8 - AppStream                        11  B/s | 107  B     00:09    
#6 10.44 Error: Failed to download metadata for repo 'appstream': repomd.xml parser error: Element <repomd> was not found - Bad repomd file
#6 ERROR: process "/bin/sh -c yum clean all && yum update -y" did not complete successfully: exit code: 1
------
 > [2/5] RUN yum clean all && yum update -y:
0.[41](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:42)3 0 files removed
10.[44](https://github.com/wazuh/wazuh-packages/actions/runs/6084601349/job/16506868575?pr=2399#step:6:45) Rocky Linux 8 - AppStream                        11  B/s | 107  B     00:09    
10.44 Error: Failed to download metadata for repo 'appstream': repomd.xml parser error: Element <repomd> was not found - Bad repomd file
------
Dockerfile:4
  • Note that the version does not match, it is looking for a wazuh indexer base with a version higher than 4.5.1

Tasks

  • Fix bugs in the GHA

Validation

  • GHAs terminate correctly when building the Wazuh indexer
@rauldpm rauldpm added level/task Subtask issue type/bug Bug issue labels Sep 5, 2023
@juliamagan juliamagan closed this as not planned Won't fix, can't repro, duplicate, stale Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Subtask issue type/bug Bug issue
Projects
None yet
Development

No branches or pull requests

2 participants