My operating system is Debian 11 (Bullseye), it runs on a Pentium E5800
I've installed JDK/Java 11 (and set the path), apt-transport-https, the Elasticsearch keys and repo, and have updated my system multiple times. I've also tried rebooting the machines, but I have had no luck.
I'm able to start elasticsearch.service, but after ~30 seconds it always fails. When I look at the service status, I see the following log:
root@debian11:~# sudo systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
Loaded: loaded (/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2022-07-11 21:16:36 EDT; 44s ago
Docs: http://www.elastic.co
Process: 983 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=1/FAILURE)
Main PID: 983 (code=exited, status=1/FAILURE)
CPU: 30.973s
Jul 11 21:16:15 freedom systemd[1]: Started Elasticsearch.
Jul 11 21:16:17 freedom elasticsearch[983]: OpenJDK Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Jul 11 21:16:17 freedom elasticsearch[983]: OpenJDK Server VM warning: UseAVX=2 is not supported on this CPU, setting it to UseAVX=0
Jul 11 21:16:36 freedom systemd[1]: elasticsearch.service: Main process exited, code=exited, status=1/FAILURE
Jul 11 21:16:36 freedom systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Jul 11 21:16:36 freedom systemd[1]: elasticsearch.service: Consumed 30.973s CPU time.
Here are the contents of "/var/lib/elasticsearch/my-elasticsearch.log", it should be noted that "my-elasticsearch" is the clustername: https://pastebin.com/Vfun3s92
Once I get to entering sudo dpkg -i elasticsearch-8.3.2-amd64.deb
It gives me this output.
dpkg: error processing archive elasticsearch-8.3.2-amd64.deb (--install):
package architecture (amd64) does not match system (i386)
Errors were encountered while processing:
elasticsearch-8.3.2-amd64.deb
Is it ok for me to proceed, or do I need to find another way now?
Apologies / Interesting it has been a loong time since I have see that... sorry I was not thinking / looking clearly yes, unfortunately i386 is only 32bit processor it is not x86_64 hmmm... all our releases are for 64bit now.
You could try docker but I am not sure about that either.... I think you are going to need a little bit new server.
From there I installed elasticsearch (sudo apt install elasticsearch), which installed it as a service managed by systemctl on my Debian machine.
To correct my command line input you quoted, it should say sudo systemctl status elasticsearch.service
After I checked the status and waited a few seconds, I received the above error. It's the same output from the log file, which for whatever reason seems to have been deleted by pastebin moderation.
To summarize, I executed the following commands in the root dir:
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.3.2-linux-x86_64.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.3.2-linux-x86_64.tar.gz.sha512
shasum -a 512 -c elasticsearch-8.3.2-linux-x86_64.tar.gz.sha512
tar -xzf elasticsearch-8.3.2-linux-x86_64.tar.gz
cd elasticsearch-8.3.2/
When inspecting the ./bin dir, it doesn't look like there are any directories called "elasticsearch"
I can see there is a directory called ~/elasticsearch-8.3.2 . There is, however, a ./bin/elasticsearch inside of this directory. When I run ./bin/elasticsearch in the directory, I receive the same error messages here:
./bin/elasticsearch-cli: line 14: /root/elasticsearch-8.3.2/jdk/bin/java: cannot execute binary file: Exec format error
./bin/elasticsearch-cli: line 14: /root/elasticsearch-8.3.2/jdk/bin/java: Success
I had Java 11 installed to this machine before installing elasticsearch, would this perhaps be the problem? I'd rather avoid uninstalling it unless we're 100% certain that this is the root cause, since there are other java-dependent applications running in the background at the moment.
Elasticsearch is using the pre-packaged java that comes with elasticsearch... so the error above should not have anything to do with any other java installed.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.