Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Linux » Elasticsearch: How to stop systemd service start operation from timing out
  • Temp Files
    Recover Temp Files using Disk Drill etc on Windows 10 and 11 Windows
  • Veeam Zero Trust Data Resilience
    Demystifying Zero Trust with Veeam: Design your Architecture Backup
  • Migrate RDS CALs
    How to Migrate RDS CALs Windows
  • Prevent OS Reinstallation When Switching from Legacy BIOS to UEFI
    Prevent OS Reinstallation: Change from legacy BIOS to UEFI Windows
  • Synology 1
    Synology NAS brute-force attack: Employ Synology Best Practice to remediate StealthWorker Botnet attack Security | Vulnerability Scans and Assessment
  • Lockout7
    Change Account Lockout Threshold for Local Accounts in Windows: The reference account is locked Windows
  • sync
    AD Connect Sync Service Not Running: Start ADSync to Continue AWS/Azure/OpenShift
  • Add or remove features   fix dotnet framework issues
    Fix the request to add or remove features on the specified server failed Windows

Elasticsearch: How to stop systemd service start operation from timing out

Posted on 28/04/202228/09/2023 Raphael Gab-Momoh By Raphael Gab-Momoh 1 Comment on Elasticsearch: How to stop systemd service start operation from timing out
elasticsearch-error-feature

The Elastic Search Platform is a data store, search engine, and analytics solution. This article was necessitated out of the frustrations systemd threw at the writer when he tried to work on Elasticsearch. So, hopefully, you will find the steps below useful if you are having a comparable situation as shown in the code box below. Also, please note that If the Elasticsearch service cannot be started within 90 seconds, it will be terminated (by default). Thus, this article will show you how to get up and running with your Elasticsearch service. Find other helpful tutorials here: Amazon Relational Database Service: How to install Amazon RDS using Terraform, how to install PostgreSQL on Ubuntu, and how to install and configure Prometheus for Monitoring on a Linux Server,

root@ubuntu:/home/rdgmh# sudo systemctl start elasticsearch
Job for elasticsearch.service failed because a timeout was exceeded.
See "systemctl status elasticsearch.service" and "journalctl -xe" for details.

Below are the steps on how to get your systemd service from failing while installing Elasticsearch on Linux, particularly Ubuntu 20.04. Here are some more guides you may want to read: How to deploy a React Application to AWS S3, and How to deploy a .NET application to AWS Elastic Beanstalk using AWS Tool Kit.

Steps to Stop Systemd Service Start Timeout

Step 1: First, check the default timeout for starting operation.

 sudo systemctl show elasticsearch | grep ^Timeout
Elasticsearch-timeout1
default

Step 2: Then, confirm the Systemd stop timeout by examining service runtime status information.

sudo systemctl status elasticsearch
Elasticsearch-failed
status

Step 3: Afterwards, create a service drop-in configuration directory

After examining runtime status information, create a directory for Elasticsearch service timeout.

sudo mkdir /etc/systemd/system/elasticsearch.service.d

Step 4: Define the “TimeoutStartSec” option to increase startup timeout.

echo -e "[Service]\nTimeoutStartSec=180" | sudo tee
Elasticsearch-servicetimeout

Step 5: Reload systemd manager configuration

Therefore, follow the command below to reload manager

sudo systemctl daemon-reload

Step 6: Inspect altered timeout for start operation

sudo systemctl show elasticsearch | grep ^Timeout
Elastic-search-timeout2
timeout inspecti

Step 7: Start the Elasticsearch service

sudo systemctl start elasticsearch

Step 8: Examine the Elasticsearch service status.

 sudo systemctl status elasticsearch
elasticrunning
running

The service launch timeout was not prompted this time since it had been extended from 1 minute 30 seconds to 3 minutes.

Summary

We were able to resolve Elasticsearch service timing out because we extended the time from 1 minute 30 seconds to 3 minutes following the series of steps shown above and because of this, our Elasticsearch service was finally able to run without timing out.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Pocket (Opens in new window) Pocket
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Linux Tags:Linux distro

Post navigation

Previous Post: Import Repo to Bitbucket Cloud: Seamless Migration to GitLab
Next Post: How to disable Ads in Windows 11

Related Posts

  • RUST FEATURE
    How to install Rust in a Linux System Linux
  • featuredpkg
    How to solve /var/lib/dpkg/lock Error in Ubuntu Linux Linux
  • Screenshot 2022 02 25 at 02.06.20
    How to install SAMBA file shares for Servers and Clients Linux
  • linuxnethero
    Adding a subnetwork interface to an existing network interface Linux
  • cryptsetup
    How to encrypt a partition with Cryptsetup Linux
  • DNS FEATURE
    Domain Name System: All you need to know about DNS Linux

More Related Articles

RUST FEATURE How to install Rust in a Linux System Linux
featuredpkg How to solve /var/lib/dpkg/lock Error in Ubuntu Linux Linux
Screenshot 2022 02 25 at 02.06.20 How to install SAMBA file shares for Servers and Clients Linux
linuxnethero Adding a subnetwork interface to an existing network interface Linux
cryptsetup How to encrypt a partition with Cryptsetup Linux
DNS FEATURE Domain Name System: All you need to know about DNS Linux

Comment (1) on “Elasticsearch: How to stop systemd service start operation from timing out”

  1. Avatar photo TheRobot says:
    30/07/2022 at 12:11 AM

    Still did not work for me. Went from 1min 15sec to 3min, then 5min, now 10 minutes. Granted I did install using ‘tar.gz’ files, instead of the .DEB package manager for Ubuntu. I have the “elasticservice.services” file. All starts fine interactively, if I start it as a ‘daemon.’ but I want to NOT rebuild it; and, instead, get the service working, where it starts as a service.

    Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Temp Files
    Recover Temp Files using Disk Drill etc on Windows 10 and 11 Windows
  • Veeam Zero Trust Data Resilience
    Demystifying Zero Trust with Veeam: Design your Architecture Backup
  • Migrate RDS CALs
    How to Migrate RDS CALs Windows
  • Prevent OS Reinstallation When Switching from Legacy BIOS to UEFI
    Prevent OS Reinstallation: Change from legacy BIOS to UEFI Windows
  • Synology 1
    Synology NAS brute-force attack: Employ Synology Best Practice to remediate StealthWorker Botnet attack Security | Vulnerability Scans and Assessment
  • Lockout7
    Change Account Lockout Threshold for Local Accounts in Windows: The reference account is locked Windows
  • sync
    AD Connect Sync Service Not Running: Start ADSync to Continue AWS/Azure/OpenShift
  • Add or remove features   fix dotnet framework issues
    Fix the request to add or remove features on the specified server failed Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,832 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.