Hello, I am a coop student trying to use elastic search for the first time. However, I ran into a few problem while trying to initially use elastic search after installation and also during the uninstall process. I am using a Ubuntu 14.04 with 6.6.1 elastic search.
When I initially installed and started the elastic search service, I can see the default ports 9200 and 9300 listening but when I used
curl -X GET 'http://localhost:9200'
the return is simply empty, like when you run a long script with no progress outputs, and I have to ctrl-z out of it. No errors or any outputs. However, currently I wish to reinstall an older version of elasticsearch but during uninstall using
sudo apt-get --purge autoremove elasticsearch
I get an error message:
Removing elasticsearch (6.6.1) ... Stopping elasticsearch service...Failed to issue method call: Unit elasticsearch.service not loaded. dpkg: error processing package elasticsearch (--remove): subprocess installed pre-removal script returned error exit status 5 Failed to issue method call: Unit systemd-sysctl.service failed to load: No such file or directory. See system logs and 'systemctl status systemd-sysctl.service' for details. ### NOT starting on installation, please execute the following statements to configure elasticsearch service to start automatically using systemd sudo systemctl daemon-reload sudo systemctl enable elasticsearch.service ### You can start elasticsearch service by executing sudo systemctl start elasticsearch.service chown: cannot access ‘/var/lib/elasticsearch’: No such file or directory dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: elasticsearch
I did post this question on askubuntu but no luck yet:
Any help is greatly appreciated!