I have a development machine that I use to develop production ready web apps. At first Elasticsearch worked very fine on my local development system, when developing the search of my Site. I stopped Elasticsearch because the rest of the work didn't need it.
But now am working on a new project that requires Elasticsearch but it's not starting. My main development system is Debian 10 fully updated and patched. But when I issue
systemctl start elasticsearch
I get this
Job for elasticsearch.service failed because a timeout was exceeded.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.
When I run this
systemctl status elasticsearch.service
I get this
`
â—Ź elasticsearch.service - Elasticsearch
Loaded: loaded (/etc/systemd/system/elasticsearch.service; disabled; vendor preset: disabled)
Active: failed (Result: timeout) since Thu 2020-03-12 09:27:58 EAT; 17s ago
Docs: http://www.elastic.co
Process: 7593 ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=143)
Main PID: 7593 (code=exited, status=143)
Mar 12 09:26:25 debian systemd[1]: Starting Elasticsearch...
Mar 12 09:26:26 debian elasticsearch[7593]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely>
Mar 12 09:27:55 debian systemd[1]: elasticsearch.service: start operation timed out. Terminating.
Mar 12 09:27:58 debian systemd[1]: elasticsearch.service: Failed with result 'timeout'.
Mar 12 09:27:58 debian systemd[1]: Failed to start Elasticsearch.
`
I have tried every possible solution including
TimeoutStopSec=900
But it's not working
SPECs
Debian: 10
RAM: 4gb