Elasticsearch не запускается ubuntu

Обновлено: 05.07.2024

Служба ElasticSearch 6.2.2 на этой машине Ubuntu 16.04.3 работает нормально уже несколько месяцев. Сегодня я перезагрузил машину и обнаружил, что служба ElasticSearch не запустилась. Поэтому я попробовал sudo systemctl start elasticsearch.service . Мне не дали никакой ошибки. Но я заметил, что он все еще не начался.

При запуске systemctl status elasticsearch я получаю это:

Решение, которое, казалось, помогло многим людям, которые не могли запустить службу ES на Ubuntu, найденное здесь ( не может запустить службу elasticsearch как службу в ubuntu 16.04), принятое в качестве ответа, мне не помогло.

Это производственная машина, так что я надеюсь, что кто-то может помочь! Спасибо!!

3 ответа

При новой установке Ubuntu 16.04 я использую следующие шаги для установки ElasticSearch 5.0.1 или 5.0.2 и ES не удалось запустить. Кто-нибудь знает, как я могу запустить ES 5.x на Ubuntu 16.04 или 14.04? су add-apt-repository ppa:webupd8team/java apt-get обновление apt-get обновление apt-get.

Я пытаюсь установить CoTurn 4.5.0.6 на цифровой океан Ubuntu 16.04.3 LTS. Я не могу использовать sudo apt-get install coturn , так как он устанавливает версию 4.5.0.3. Кроме того, я не могу установить Ubuntu 17.10, так как мне нужна долгосрочная поддержка (TLS). Я создаю каплю в цифровом океане с.

Я просмотрел ваши журналы. Срок действия лицензии x-pack истек. Если вы используете какую-либо из функций x-pack, вам необходимо получить новый лицензионный ключ. Если вы не используете x-pack, вы можете отключить его и перезапустить ElasticSearch. Вы можете добавить следующие строки в свой elasticsearch.yml, чтобы отключить функции x-pack.

Согласно вашим журналам, ElasticSearch остановился сразу после того, как не смог выполнить наблюдателей. Если вы используете какие-либо наблюдатели, также остановите запросы, чтобы проверить, запускается ли ElasticSearch. Это должно решить проблему.

Попробуйте бежать elasticsearch-plugin remove x-pack

Расположение по умолчанию для elasticsearch-плагина - /usr/share/elasticsearch/bin/. Возможно, вам придется использовать sudo. Удалите всю конфигурацию, связанную с x-pack, из elasticsearch.yml и перезапустите ElasticSearch.

Если вы все еще сталкиваетесь с проблемами, вы можете попробовать следующие действия.

  1. Увеличьте объем памяти кучи на jvm.options под /etc/elasticsearch/
  2. Используйте ls -a и проверьте, были ли созданы какие-либо другие файлы elasticsearch.yml. Если да, то удалите их.

Выполните эти команды

echo -e "elasticsearch - memlock unlimited\nstorm - nproc 257597" >> /etc/security/limits.conf ulimit -n 32768 ulimit -u 65536 echo -e "* - nofile 32768\n* - nproc 65536" >> /etc/security/limits.conf

Это может произойти по двум причинам: первый процесс elasticsearch не остановлен должным образом.

чтобы узнать PID и

во-вторых, память не освобождается должным образом. чтобы узнать, что попробуйте

есть несколько способов освободить память, но я рекомендую перезагрузить сервер.

Я установил ELasticsearch 6 и JDK 1.8.0_161 на свой ARM Odroid XU4 под управлением Ubuntu 16.04 LTS. Никаких ошибок. Когда я пытаюсь запустить Elasticsearch как службу, я не могу подключиться к localhost на порту 9200, и выводится состояние службы:

$ > sudo service elasticsearch status ●.

Я думаю, что уже удалил elasticsearch из своего компьютера, и все же у меня есть некоторые сомнения. Когда я печатаю: $ service elasticsearch status Я получаю: elasticsearch.service Loaded: not-found (причина: нет такого файла или каталога) Active: failed (результат: exit-code) since Wed.

Похожие вопросы:

Я установил elasticsearch на Ubuntu 16.04. Когда я ввожу sudo service elasticsearch start , все работает. Но служба не работает при запуске. Прежде чем запустить его вручную, sudo service.

(Я новичок в elasticsearch) Я хочу запустить эластичный поиск как сервис (sudo service elasticsearch start), но он не запускается и ничего не говорит о том, почему он тоже не запускается, просто.

При новой установке Ubuntu 16.04 я использую следующие шаги для установки ElasticSearch 5.0.1 или 5.0.2 и ES не удалось запустить. Кто-нибудь знает, как я могу запустить ES 5.x на Ubuntu 16.04 или.

Я пытаюсь установить CoTurn 4.5.0.6 на цифровой океан Ubuntu 16.04.3 LTS. Я не могу использовать sudo apt-get install coturn , так как он устанавливает версию 4.5.0.3. Кроме того, я не могу.

Я установил ELasticsearch 6 и JDK 1.8.0_161 на свой ARM Odroid XU4 под управлением Ubuntu 16.04 LTS. Никаких ошибок. Когда я пытаюсь запустить Elasticsearch как службу, я не могу подключиться к.

Я думаю, что уже удалил elasticsearch из своего компьютера, и все же у меня есть некоторые сомнения. Когда я печатаю: $ service elasticsearch status Я получаю: elasticsearch.service Loaded.

ElasticSearch 6.2.2 на Linux Ubuntu 16.04.3 VM в Azure. Он работал нормально, а потом, после того как я перезагрузил машину несколько дней назад, я вообще не смог запустить службу ElasticSearch.

Я пытаюсь что - то изменить в php.ini-но после редактирования, сохранения файла и перезапуска apache никакие изменения не обновляются. Я на Ubuntu 16.04.3 LTS Я использовал phpinfo.php, чтобы найти.

Со вчерашнего дня я не могу boot с Windows 7 по virtualbox работать на Ubuntu 16.04.3 LTS. Весь компьютер будет заморожен сразу после того, как я дважды щелкну по значку Windows 7. Мне приходилось.

При новой установке Ubuntu 16.04 я использую следующие шаги для установки ElasticSearch 5.0.1 или 5.0.2, и ES не запускается. Кто-нибудь знает, как я могу запустить ES 5.x на Ubuntu 16.04 или 14.04?

echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-5.x.list

apt-get update && sudo apt-get installasticsearch

сервис эластичный поиск статуса

Не удалось запустить Elasticsearch 5.x в Ubuntu 16.04. Кто-нибудь знает, как я могу запустить ES 5.x на Ubuntu 16.04 или 14.04?

Я также пытаюсь с новой версией Elasticsearch 5.1.1 с помощью этих нескольких шагов

  1. су
  2. apt-get purgeasticsearch
  3. apt-get update
  4. apt-get upgrade
  5. apt-get установить эластичный поиск

- установлена ​​новая версия asticsearch 5.1.1

сервис эластичный поиск статуса

●asticsearch.service - Elasticsearch Loaded: загружено (/usr/lib/systemd/system/elasticsearch.service; отключено; предустановка поставщика: включено)

Активный: неактивный (мертвый)

09 декабря 22:49:49 эластичная система d[1]: остановлен Elasticsearch.

Я был настроен скептически и думал, что не смогу найти ответ на этот вопрос, но ваш (@user305883) совет оказался хорошим. Спасибо за помощь.

сервис эластичного поиска начала

ES хорошо работает на Ubuntu 16.04.

Это был правильный ответ. Еще раз спасибо @user305883. переполнение стека

У меня была такая же проблема, и я увидел, что группа моего файла asticsearch.yml была неправильной. Вы можете проверить это с помощью:

Может быть, что elasticsearch.yml находится в корневой группе.

Когда я сменил группу, я смог снова начать поиск эластичных файлов.

Я столкнулся с той же проблемой (то есть ошибка доступа запрещена при доступе /etc/elasticsearch ), Я установил ES 6.0.1 и почему-то не удалось запустить ES. Я узнал, что мой сценарий службы ES находится в /etc/init.d/elasticsearch не может быть в состоянии прочитать следующие файлы, необходимые для запуска ES: 1) /etc/elasticsearch/elasticsearch.yml 2) /etc/elasticsearch/jvm.options 3) /etc/elasticsearch/log4j2.properties

Итак, то, что я сделал, - это сначала предоставил эластичному поиску исполняемые права:

Затем, после этого, я дал разрешение на все файлы, расположенные в / etc /asticsearch следующим образом:

И тогда я просто перезагружаю ES Вот так:

Теперь ES работает нормально, и вы можете проверить это, выполнив следующую команду

I just did an initial test install with this role. I configured three nodes and ran the play. When I tried checking the health of the cluster, it became apparent that elasticsearch was not started.

So I tried starting it manually, and I got this:

Here are the ansible vars, just replace node1 with node2 or node3 to get the other nodes config:

Did I miss some required var?

I did try /etc/init.d/node1_elasticsearch start and it did not work, nor did it output any errors. Just Starting . [OK] . /var/logs/elasticsearch is empty so I can't figure anything out from there.

So, what obvious step am I missing?

Should this kind of question be posted on discuss.elastic.co somewhere instead of here? If so, what forum?

The text was updated successfully, but these errors were encountered:

jerrac commented Jan 22, 2016

The logging.yml file:

jerrac commented Jan 22, 2016

Be a key? That directory or file does not exist on my node.

When googling, I remember seeing something about service elasticsearch start being different from /usr/share/elasticsearch/bin/elasticsearch . Maybe something about the config they load being different?

Is /etc/init.d/node1_elasticsearch loading config from /etc/elasticsearch/node1 , and /usr/share/elasticsearch/bin/elasticsearch defaulting to /usr/share/elasticsearch/config ?

jerrac commented Jan 22, 2016

I managed to get the cluster started. Once I figured out that logs were in /opt/elasticsearch/logs, I was able to use them to diagnose my problems.

  • I was missing the nfs mount I'm going to use for snapshots.
  • I hadn't configured dns yet.
  • I had "http://" in the unicast list of nodes.

So, there wasn't anything wrong with the elasticsearch ansible role. :) Well, unless the role is the reason logs are not in /var/logs. In which case, why?

I also think that the initial error I reported was caused by the fact that /etc/init.d/node1_elasticsearch loads config from /etc/elasticsearch/node1 , and /usr/share/elasticsearch/bin/elasticsearch loads from /usr/share/elasticsearch/config .

Now to figure out why it's complaining about there being no known master. But that's different is.

Thanks for the help. What you asked about provided the clues I needed.

johnnywell commented May 5, 2016

I'm getting the same problem.
I've just installed from the deb package and I ran it them I got this Exception.

gingerwizard commented May 6, 2016

Hi @johnnywell please attach your playbook configuration. I'll see if we can reproduce with a test.

Actually , I've removed the package already . But using the zip or tar.gz packages this problem does not occurs.

Basically the deb version doesn't has the config dir.

foxundermoon commented May 16, 2016

edit the config file ,set the conf.path
/etc/elasticsearch/ this is my path ,it must contains the logging.yml
it will be ok

rcwsr commented Jul 6, 2016

Any update on this? I'm having the same issue

vvavepacket commented Jul 28, 2016

any update also on this? stuck on this..

jakommo commented Jul 28, 2016

@robcaw @vvavepacket can you please share your playbook?

selection_005

I too getting this error.. How can i solve this.?

skear commented Aug 5, 2016

I ran into the same error as well after a new install of elasticsearch-2.3.3.rpm. For some reason it's looking for the config file in /usr/share/elasticsearch/config instead of /etc/elasticsearch.

As a quick fix I simply created a symbolic link to solve the issue.
ln -s /etc/elasticsearch/ /usr/share/elasticsearch/config

shivarajnaidu commented Aug 6, 2016

Apart from all these issues.. ElasticSearch also failed to start On Ubuntu 16.04 with OpenJDK 9

SalahAdDin commented Aug 9, 2016

Reopen this issue please, i have the same problem:

I tried to solve using this: ln -s /etc/elasticsearch/ /usr/share/elasticsearch/config .

But now i have other problem:

I haven't this problem in Ubuntu, but Antergos. I installed elasticsearch from community, so, i don't know why doesn't work.

shivarajnaidu commented Aug 9, 2016

+1 reopen this issue..

jakommo commented Aug 10, 2016

shivarajnaidu commented Aug 10, 2016

Thanks for your information @jakommo .
Works fine with openjdk 8

SalahAdDin commented Aug 10, 2016

@jakommo
This is the traceback:

jakommo commented Aug 10, 2016

@SalahAdDin if you install via deb/rpm package, ES is meant to run via the initscript (e.g. service node1_elasticsearch start ) and not manually. This is not only true for the install via ansible, but in general.

If you run it manually, you need to pass -Des.path.conf=/path/to/config/ and do this as elasticsearch user, otherwise permissions can get screwed up.

  • es_instance_name: "node1" used in playbook
  • On the host, switch to elasticsearch user: su - elasticsearch --shell /bin/bash
  • cd /usr/share/elasticsearch/
  • bin/elasticsearch -Des.path.conf=/etc/elasticsearch/node1

Can you elaborate why you want to run it manually?
For further help, please provide your playbook and which distro/version you are deploying to.

I was trying to test why i haven't access to elasticsearch api with curl command.

But it was solve, in addition, i think that will be very useful put this aclarations in elasticsearch documentation.

I'd installed elasticsearch in Antergos form AUR packages.

waynestillman commented Aug 20, 2016

@jakommo "Can you elaborate why you want to run it manually?"

Because the intro video starts elasticsearch with ./bin/elasticsearch.

Thanks for the answer.

shivarajnaidu commented Aug 21, 2016

Binary installation(.deb) is waste of time. .. they even not starting on Ubuntu.. waste.. if you're not tested well then don't make them available through official channels. .. don't waste all people's time.. 😬

stylerOD commented Aug 25, 2016

I'm having the same problem regardless of what operation I try to do. How can I change the reference to the non-existent config file to the real one?

olendorf commented Aug 25, 2016

I had, I think the same problem after installing on debian. I solved it by

  1. Changing permissions or changing ownership on these files to. On my development i just

Which i'm ok with on my dev machine, but hopefully points the way for folks.

shivarajnaidu commented Aug 27, 2016

I too solved @olendorf .. But why we have to go through that mess(iee) packages.. This is shame to for this kind of big project not working properly .. Please I am requesting this community members.. If possible please provide binaries that would work properly or remove them.. Just provide compressed archive.. Don't make users to face this kind of nasty issues.. Even Not Getting Proper Response for Issues.. So sad 😞

gingerwizard commented Aug 29, 2016

This should of been picked up so apologies to @shivarajnaidu @stylerOD @olendorf. It seems the isssue was closed and we didn't track. Reopening and addressing.

gingerwizard commented Aug 29, 2016

@shaunmackey @olendorf Please confirm the ES version and OS this issue arises on. Also please provide a simple playbook which reproduces. Currently i can't reproduce this issue but am keen to assist.

gingerwizard commented Aug 30, 2016

Agreed this is simply not an issue. @shivarajnaidu
The debian package assumes you will use the service scripts which configure the appropriate paths.

This is an issue if you want to start a second node on the same machine and you are running elasticsearch as a service.

For example, the instruction in the guide says: " you can start a new node in exactly the same way as you started the first one" and then the user is pointed to ./bin/elasticsearch , which doesn't work.

jakommo commented Sep 28, 2016

@SuzanaK the docs you are pointing to are for Elasticsearch in general, but not related to this ansible role. If you want to have multiple nodes with the ansible role, you should follow the Multi Node Server Installations.

If you just want to play with ES, then you should download the tgz/zip, which most of the instructions of The Definitive Guide are based on. This role is meant for more advanced setups, but not necessarily for the first steps with ES.

SuzanaK commented Sep 28, 2016

@jakommo Yes, that's what I had done afterwards. The tar works just fine.

jmreymond commented Nov 8, 2016

jakommo commented Nov 8, 2016

Guys, just to make this clear. If you use the role, then everything should be handled by the role, not by manually configuring/installing things. The whole point of a config managements in general is that everything is handled by it, without manual interaction.
As this role is not yet ready for 5.0, you would need to manually set up, if you want to use 5.0.

shivarajnaidu commented Nov 9, 2016

Hi. I want to mention here one thing.. Please don't concentrate anisible things alone. elasticsearch also used by different kind of developers on day by day (All may not know about anisible things). So it should play nicely for every one. (Just for example I am a node js developer.. using elasticsearch with nodejs . But i don't need know about anisible or any installation. because i only concentrating on my work.. not installation stuf. it should be take care by package manager itself. if standard package not working properly as expected like all packages works.. Then what it means. . is't an issue. and I am using elasticsearch doesn't mean i have to know/use anisible on my system. If i am installing through .deb/.rpm i should able to up and running elastic search like any other package on system.. That is normal behaviour. other than that definitely.. that would be package issue )

Изменил es.logger.level: INFO to es.logger.level: DEBUG and es.logger.level: TRACE соответственно, ничего не видя в лог-файлах в var/log/elasticsearch!

Добавлено ES_HEAP_SIZE= 1024 and ES_HEAP_SIZE= 512 соответственно в текстовый файл usr/share/elasticsearch/bin/elasticsearch , все еще -
Starting Elasticsearch Server [fail]

Я не пробовал ничего менять в конфигурационном файле на etc/elasticsearch/elasticsearch.yml - нужно ли менять настройки этого файла, чтобы elasticsearch работал как сервис в ubuntu?

1 ответ

У меня есть Ubuntu 12.04 сервер 64 bit на линоде. Я использую Elasticsearch как услугу , rabbitmq , Celery . Проблема в том, что после того, как мой экземпляр работал в течение 4 месяцев и 21 дня, внезапно elasticsearch не удалось запустить. Когда я перезагружаю ubuntu, он, кажется, работает.

Я пытаюсь запустить ElasticSearch и запустить его в соответствии с обычным руководством по настройке . На моем Macbook все работает нормально, но я пытаюсь сделать то же самое на сервере Ubuntu 11.04. Запуск /usr/local/elasticsearch/bin/elasticsearch -f работает, и я получаю ответ от curl.

В основном это сводится к разрешениям пользователя, предоставленным elasticsearch "user" - да, elasticsearch работает как "user" внутри Ubuntu! Вам нужно предоставить ему разрешения на владение внутри папок, которые он в конечном итоге изменит.

Вам нужно сделать следующее внутри terminal:

    sudo chown -R elasticsearch:elasticsearch /var/lib/elasticsearch

Изменение владельца любой из вышеперечисленных папок вернет вас в исходное положение, вам нужно будет снова выполнить шаги 1, 2 и 3!

Возможно , вам также потребуется установить переменную JAVA_HOME, чтобы elasticsearch запускался как служба .

(измените elasticsearch.yml только как пользователь root, получая доступ к нему из terminal)

Похожие вопросы:

Кто-нибудь здесь установил последнюю версию Elasticsearch на Ubuntu? Если это так, то вы, возможно, столкнулись с проблемой elasticsearch PID_DIR при перезагрузке сервера Ubuntu. Файл PID.

Как я могу удалить ElasticSearch или полностью очистить ElasticSearch на Ubuntu? Как я могу переустановить ElasticSearch без каких-либо проблем?

У меня есть Ubuntu 12.04 сервер 64 bit на линоде. Я использую Elasticsearch как услугу , rabbitmq , Celery . Проблема в том, что после того, как мой экземпляр работал в течение 4 месяцев и 21 дня.

Я пытаюсь запустить ElasticSearch и запустить его в соответствии с обычным руководством по настройке . На моем Macbook все работает нормально, но я пытаюсь сделать то же самое на сервере Ubuntu.

У меня есть ubuntu docker. Я устанавливаю elasticsearch и обслуживаю его. Когда я использую команду curl -X GET 'localhost:9200' , она возвращает мне версию, имя, все в порядке. Это означает, что.

Я думаю, что уже удалил elasticsearch из своего компьютера, и все же у меня есть некоторые сомнения. Когда я печатаю: $ service elasticsearch status Я получаю: elasticsearch.service Loaded.

Служба ElasticSearch 6.2.2 на этой машине Ubuntu 16.04.3 работает нормально уже несколько месяцев. Сегодня я перезагрузил машину и обнаружил, что служба ElasticSearch не запустилась. Поэтому я.

Я успешно установил elasticsearch вместе с fulltextsearch в nextcloud, следуя приведенной здесь информации . Поиск сработал отлично. Недавно я заметил, что служба elasticsearch не запустилась.

Читайте также: