I'm installing opensearch for a DataMiner system on an Ubuntu server.
I however get following error.
Running OpenSearch Post-Installation Script
opensearch error something went wrong during demo configuration installation. Please see the logs in /var/log/opensearch/install_demo _configuration.login that log :
No custom admin password found Please provide a password via the environment variable opensearch_initial_admin_password
I've now performed a sudo env OPENSEARCH_INITIAL_ADMIN_PASSWORD=<custom password>
How do I continue setting up OpenSearch with that post-installation script it initially tried to execute?
update:
I also just tried starting the service without all this, but it gave me following error:
Executing: /lib/systemd/systemd-sysv-install enable opensearch
administrator@msskch-vs-dmels:/etc/opensearch$ sudo systemctl start opensearch
Job for opensearch.service failed because the control process exited with error code.
See "systemctl status opensearch.service" and "journalctl -xeu opensearch.service" for details.
administrator@msskch-vs-dmels:/etc/opensearch$
I then also tried a reinstall, but got following error:
sudo apt-get reinstall opensearch
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 102 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for opensearch:amd64
administrator@msskch-vs-dmels:/etc/opensearch$
Hi Jeroen,
Have you checked the following files?
cat /var/log/opensearch/install_demo _configuration.log
A simple password will cause the same error.
Make sure it contains upper and lower case letters, numbers, and special characters.
However, since the installation seems to have failed, i recommend that you try to purge the package once.
sudo apt-get purge opensearch
Today I also tried to install to ubuntu and encountered the same error, but I set the password correctly and the installation was successful.
that worked for me too