You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our deployment we had a script to install the repository-s3 plugin on our indexer nodes on container start. This worked in 4.8.2 and below. Upon upgrading to 4.9.0, we receive the following error: ./bin/opensearch-env: line 104: /etc/sysconfig/wazuh-indexer: No such file or directory
To confirm this wasn't our environment specifically, I created a fresh install on my local machine with the following commands:
git clone https://github.com/wazuh/wazuh-docker.git -b v4.9.0
cd wazuh-docker/single-node
docker-compose -f generate-indexer-certs.yml run --rm generator
docker compose up
Then I entered the container and tried to run the command:
$ docker exec -it single-node-wazuh.indexer-1 bash
bash-5.2$ /usr/share/wazuh-indexer/bin/opensearch-plugin install --batch repository-s3
/usr/share/wazuh-indexer/bin/opensearch-env: line 104: /etc/sysconfig/wazuh-indexer: No such file or directory
I also tried from inside the main directory to see if it was path related.
bash-5.2$ cd /usr/share/wazuh-indexer/
bash-5.2$ ./bin/opensearch-plugin install --batch repository-s3
./bin/opensearch-env: line 104: /etc/sysconfig/wazuh-indexer: No such file or directory
The workaround I found is running the entrypoint.sh script and passing in something other than opensearchwrapper
In our deployment we had a script to install the
repository-s3
plugin on our indexer nodes on container start. This worked in4.8.2
and below. Upon upgrading to4.9.0
, we receive the following error:./bin/opensearch-env: line 104: /etc/sysconfig/wazuh-indexer: No such file or directory
To confirm this wasn't our environment specifically, I created a fresh install on my local machine with the following commands:
Then I entered the container and tried to run the command:
I also tried from inside the main directory to see if it was path related.
The workaround I found is running the
entrypoint.sh
script and passing in something other thanopensearchwrapper
https://github.com/wazuh/wazuh-docker/blob/v4.9.0/build-docker-images/wazuh-indexer/config/entrypoint.sh#L30-L42
That seems to work as the needed env variables are set at the beginning of the script:
https://github.com/wazuh/wazuh-docker/blob/v4.9.0/build-docker-images/wazuh-indexer/config/entrypoint.sh#L7-L14
The text was updated successfully, but these errors were encountered: