Error while trying to follow the Install Magento 2.4 tutorial

Hi Craig, i’m following your lead, got me a Digital ocean droplet and follow the steps in de Video and Article. but on the elastic search install at
adding Elasticsearch to our list or bootup services with: [25:31]

sudo /bin/systemctl enable elasticsearch.service

i get this error

Synchronizing state of elasticsearch.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable elasticsearch

any idea whats wrong?

Not an error I came across during testing. Try this solution by fcoelho on the elastic forum.

you have to set START_DAEMON to true on /etc/default/elasticsearch. It comes commented out by default, and uncommenting it makes Elasticsearch start again just fine.

Be sure to use systemctl restart instead of just start because the service is started right after installation, and apparently there’s some socket/pidfile/something that systemd keeps that must be released before being able to start the service again


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