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

[BUG] /usr/share/opensearch/bin/systemd-entrypoint: 6: set: Illegal option -o pipefail #4005

Closed
shdubsh opened this issue Jul 25, 2022 · 1 comment · Fixed by #4008
Closed
Labels
bug Something isn't working untriaged

Comments

@shdubsh
Copy link
Contributor

shdubsh commented Jul 25, 2022

Describe the bug
OpenSearch unable to start after fresh install:

Jul 25 20:34:15 localhost systemd-entrypoint[25956]: /usr/share/opensearch/bin/systemd-entrypoint: 6: set: Illegal option -o pipefail
Jul 25 20:34:15 localhost systemd[1]: opensearch.service: Main process exited, code=exited, status=2/INVALIDARGUMENT

To Reproduce
Steps to reproduce the behavior:

  1. Build deb package
  2. Install artifact on debian buster host
  3. Run systemctl start opensearch.service
  4. Systemd reports Job for opensearch.service failed because the control process exited with error code.
  5. Check logs sudo journalctl -xe

Expected behavior
OpenSearch should start

Plugins
None

Host/Environment (please complete the following information):

  • OS: Debian Buster
  • Version: OpenSearch 2.1.0 (min)

Additional context
It seems set -e -o pipefail was added as part of #3278 but accidentally added where the option was not supported. Easiest workaround would be to set the shebang line to #!/usr/bin/env bash

@shdubsh shdubsh added bug Something isn't working untriaged labels Jul 25, 2022
andrross pushed a commit that referenced this issue Jul 26, 2022
Uses a shell environment where `-o pipefail` is available.

Closes #4005

Signed-off-by: Cole White <[email protected]>
@andrross
Copy link
Member

andrross commented Jul 26, 2022

Thanks for the contribution! @shdubsh

opensearch-trigger-bot bot pushed a commit that referenced this issue Jul 26, 2022
Uses a shell environment where `-o pipefail` is available.

Closes #4005

Signed-off-by: Cole White <[email protected]>
(cherry picked from commit b24b02f)
dblock pushed a commit that referenced this issue Jul 27, 2022
Uses a shell environment where `-o pipefail` is available.

Closes #4005

Signed-off-by: Cole White <[email protected]>
(cherry picked from commit b24b02f)

Co-authored-by: Cole White <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants