Error: You must build the project with Gradle or download a pre-built package

Hi!

I have installed ES in a Debian 8 using dpkg -i and after install when I try to run ES appears this message.

elasticsearch.service - Elasticsearch
Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled)
Active: failed (Result: exit-code) since Thu 2017-10-05 10:37:04 CEST; 7min ago
Docs: http://www.elastic.co
Process: 12849 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet -Edefault.path.logs=${LOG_DIR} -Edefault.path.data=${DATA_DIR} -Edefault.path.conf=${CONF_DIR} (code=exited, status=1/FAILURE)
Process: 12846 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS)
Main PID: 12849 (code=exited, status=1/FAILURE)

Oct 05 10:37:04 cosby systemd[1]: Started Elasticsearch.
Oct 05 10:37:04 cosby elasticsearch[12849]: Error: You must build the project with Gradle or download a pre-built package
Oct 05 10:37:04 cosby elasticsearch[12849]: before you can run Elasticsearch. See 'Building from Source' in README.textile
Oct 05 10:37:04 cosby elasticsearch[12849]: or visit https://www.elastic.co/download to get a pre-built package.
Oct 05 10:37:04 cosby systemd[1]: elasticsearch.service: main process exited, code=exited, status=1/FAILURE
Oct 05 10:37:04 cosby systemd[1]: Unit elasticsearch.service entered failed state.

Thanks in advance

What exactly did you download?

Hi!

DEB package

From which URL?

https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.2.deb

I have tried other ways, using apt-get or the tar package, but appears the same error.

I don´t know if this is relevant, but in this computer I had other version of ES, 2.x. That I uninstalled.

„uninstalled“ is very unspecific. You probably need to purge otherwise you might be left in a weird state with old configs.

I have checked all files and the uninstall process is ok

Can you reproduce it on a fresh new VM?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.