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]: Debian package for 2.12 is not setting correct owner for folders #4474

Closed
drewmiranda-gl opened this issue Feb 22, 2024 · 2 comments
Closed
Labels
bug Something isn't working untriaged Issues that have not yet been triaged

Comments

@drewmiranda-gl
Copy link

Describe the bug

When installing opensearch, the following folders must be owned by user opensearch:

  • /var/lib/opensearch
  • /var/log/opensearch
  • /etc/opensearch

However, when installing OpenSearch on ubuntu (both via downloading the .deb file and via the package repo), the owner of the above folders is user root. This causes the opensearch service to fail on start.

To reproduce

Install opensearch 2.12

Expected behavior

Correct folder owners are set

Screenshots

No response

Host / Environment

Ubuntu Server 22.04 LTS

Additional context

No response

Relevant log output

No response

@drewmiranda-gl drewmiranda-gl added bug Something isn't working untriaged Issues that have not yet been triaged labels Feb 22, 2024
@drewmiranda-gl
Copy link
Author

Digging more into this, it looks like what happens is that the postinst is failing to continue past the execution of install_demo_configuration.sh

@drewmiranda-gl
Copy link
Author

Closing as this appears to be working as designed. However I would consider this a documentation issue and a breaking change that wasn't very clear.

If anyone finds this, i found this works:

sudo OPENSEARCH_INITIAL_ADMIN_PASSWORD=$(pwgen 32 1 -ny) apt-get -y install opensearch

(assumes pwgen is installed via apt install -y pwgen)

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 Issues that have not yet been triaged
Projects
None yet
Development

No branches or pull requests

1 participant