os icon indicating copy to clipboard operation
os copied to clipboard

opensearch-2/2.16.0 package update

Open octo-sts[bot] opened this issue 1 year ago • 5 comments

octo-sts[bot] avatar Aug 07 '24 22:08 octo-sts[bot]

Open AI suggestions to solve the build error:

The error message is: "fatal: detected dubious ownership in repository at '/github/home'
To add an exception for this directory, call:

git config --global --add safe.directory /github/home
ERRO ERROR: failed to build package. the build environment has been preserved:
INFO workspace dir: /temp/melange-workspace-550192880
INFO guest dir: /temp/melange-guest-979183037
ERRO failed to build package: unable to run package opensearch-2 pipeline: unable to run pipeline: unable to run pipeline: exit status 1
make[1]: *** [Makefile:111: packages/aarch64/opensearch-2-2.16.0-r0.apk] Error 1
make[1]: Leaving directory '/github/home'
make: *** [Makefile:101: package/opensearch-2] Error 2
##[error]Process completed with exit code 2."

1. Run `git config --global --add safe.directory /github/home`.
2. Verify the build environment and dependencies.
3. Check the Makefile for errors in the `packages/aarch64/opensearch-2-2.16.0-r0.apk` target.
4. Ensure all required tools and libraries are installed.
5. Re-run the build process.

octo-sts[bot] avatar Aug 07 '24 22:08 octo-sts[bot]

Failing to apply the first part of this patch (possibly more but this is were its falling over right now):

  • https://github.com/wolfi-dev/os/blob/main/opensearch-2/40ed1c1ac2f5619ca32b31490ed7f70adf3f1a49.patch

mamccorm avatar Aug 10 '24 00:08 mamccorm

Open AI suggestions to solve the build error:

The error message is: 

fatal: detected dubious ownership in repository at '/github/home' To add an exception for this directory, call:

git config --global --add safe.directory /github/home ERRO request failed error="Get "./packages/apk-configuration": unsupported protocol scheme """ method=GET url=./packages/apk-configuration ERRO ERROR: failed to build package. the build environment has been preserved: ERRO failed to build package: unable to run package opensearch-2 pipeline: unable to run pipeline: unable to run pipeline: exit status 1 make[1]: *** [Makefile:111: packages/aarch64/opensearch-2-2.16.0-r0.apk] Error 1 make[1]: Leaving directory '/github/home' make: *** [Makefile:101: package/opensearch-2] Error 2


To fix this error:
1. Run `git config --global --add safe.directory /github/home`.
2. Ensure the URL in the GET request uses a supported protocol (e.g., `http://` or `https://`).
3. Verify the build environment and dependencies for the `opensearch-2` package.
4. Check the Makefile for any issues in the specified targets.

octo-sts[bot] avatar Aug 14 '24 15:08 octo-sts[bot]

Open AI suggestions to solve the build error:

The error message is: "ERRO request failed error=\"Get \\\"./packages/apk-configuration\\\": unsupported protocol scheme \\\"\\\"\" method=GET url=./packages/apk-configuration\nERRO ERROR: failed to build package. the build environment has been preserved:\nERRO failed to build package: unable to run package opensearch-2 pipeline: unable to run pipeline: unable to run pipeline: exit status 1\nmake[1]: *** [Makefile:111: packages/aarch64/opensearch-2-2.16.0-r0.apk] Error 1\nmake[1]: Leaving directory '/github/home'\nmake: *** [Makefile:101: package/opensearch-2] Error 2\n##[error]Process completed with exit code 2."

1. Ensure the URL in the GET request is correct and includes a valid protocol (e.g., `http://` or `https://`).
2. Verify the `Makefile` paths and targets are correct.
3. Check the build environment for any missing dependencies or configurations.
4. Run the build command with verbose logging to gather more details.
5. Review the pipeline configuration for any misconfigurations.

octo-sts[bot] avatar Aug 19 '24 16:08 octo-sts[bot]

Open AI suggestions to solve the build error:

The error message is: 

ERRO request failed error="Get "./packages/apk-configuration": unsupported protocol scheme """ method=GET url=./packages/apk-configuration ERRO ERROR: failed to build package. the build environment has been preserved: ERRO failed to build package: unable to run package opensearch-2 pipeline: unable to run pipeline: unable to run pipeline: exit status 1 make[1]: *** [Makefile:111: packages/aarch64/opensearch-2-2.16.0-r0.apk] Error 1 make[1]: Leaving directory '/github/home' make: *** [Makefile:101: package/opensearch-2] Error 2


1. Check the URL in the configuration file or script to ensure it is correctly formatted.
2. Replace relative paths with absolute paths if necessary.
3. Verify that the URL includes a valid protocol scheme (e.g., http:// or https://).
4. Ensure the file or resource exists at the specified location.
5. Re-run the build process after making these corrections.

octo-sts[bot] avatar Aug 19 '24 18:08 octo-sts[bot]

FYI looks like removing both the two patches is fine. One is for a vuln fix not needed, the other was for gradle8.8 support, but the code is now in a release upstream:

  • https://github.com/opensearch-project/OpenSearch/commit/8af4647fd5957dd2a95835dd5d7a21922808de5a

mamccorm avatar Aug 24 '24 21:08 mamccorm