*Participation Requested*
MicroOS Desktop Use to Help with ALP Feedback
-
Can systemctl start elasticsearch but not systemctl enable it
I guess this belongs here since i'm trying to get elasticsearch to start at boot. I get the following error when trying to enable elasticsearch. It starts without issue.
Code:
# systemctl enable elasticsearch.service
Synchronizing state of elasticsearch.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable elasticsearch
ln -sf ../elasticsearch /etc/init.d/rc2.d/S50elasticsearch
ln: failed to create symbolic link '/etc/init.d/rc2.d/S50elasticsearch': No such file or directory
It's the latest stable version. I had installed version 8.2 at first, but it was incompatible with nextcloud, so I had to purge that install and start over. I don't know if the problem is related.
Code:
Name : elasticsearchEpoch : 0
Version : 7.17.3
Can anyone help with this?
-
Re: Can systemctl start elasticsearch but not systemctl enable it
It seems that this product is not from the standard openSUSE OSS repo.
It tries to use /etc/init.d/rc2.d which directory belongs to the old SystemV ways of doing (as the message also says). but in openSUSE that directory is no longer in use and most probably not available anymore.
In other words, your product is not up-to-date with the systemd way of working as used in openSUSE.
Maybe when you create that directory (as root of course), it might do something, but that then will of course be no guarantee for working in the future. It is then more a sort of by-pass.
Henk van Velden
-
Re: Can systemctl start elasticsearch but not systemctl enable it
 Originally Posted by hcvv
It seems that this product is not from the standard openSUSE OSS repo.
It tries to use /etc/init.d/rc2.d which directory belongs to the old SystemV ways of doing (as the message also says). but in openSUSE that directory is no longer in use and most probably not available anymore.
This is what I suspected. Is there a good workaround? A startup script for the service or maybe a separate systemd service that just says "systemctl start elasticsearch"?
-
Re: Can systemctl start elasticsearch but not systemctl enable it
 Originally Posted by sunscape
This is what I suspected. Is there a good workaround? A startup script for the service or maybe a separate systemd service that just says "systemctl start elasticsearch"?
They have a nice installation page: https://www.netbraintech.com/docs/ie...h-on-linux.htm Do these instructions work?
i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), 5600X (2022) openSUSE Tumbleweed, KDE Plasma
-
Re: Can systemctl start elasticsearch but not systemctl enable it
 Originally Posted by karlmistelberger
So, this happened. There is an executable "elastic search" in /etc/init.d/
I renamed it, ran "systemctl enable elastic search" , and then I restored the name and reboot. The service started and is running without issue.
???
-
Re: Can systemctl start elasticsearch but not systemctl enable it
 Originally Posted by sunscape
There is an executable "elastic search" in /etc/init.d/
Most people do not like this sort of conclusions without the real computer facts shown. In this case we would like to have seen
(or similar) with the full output. The more because the file name you use seems to contain a blank space, which is not a problem in itself, but often people have problems in handling this correct.
Last edited by hcvv; 11-May-2022 at 03:18.
Henk van Velden
-
Re: Can systemctl start elasticsearch but not systemctl enable it
 Originally Posted by sunscape
So, this happened. There is an executable "elastic search" in /etc/init.d/ I renamed it, ran "systemctl enable elastic search" , and then I restored the name and reboot. The service started and is running without issue.
Thanks for the feedback. Users always may want to try first what the maintainers recommend and see whether it works.
i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), 5600X (2022) openSUSE Tumbleweed, KDE Plasma
-
Re: Can systemctl start elasticsearch but not systemctl enable it
 Originally Posted by sunscape
I guess this belongs here since i'm trying to get elasticsearch to start at boot.
Yes, but, “Elasticsearch” seems to be a product with a Server Side Public License (SSPL) – <https://en.wikipedia.org/wiki/Elasticsearch> – meaning, it's possibly commercial …
-
Re: Can systemctl start elasticsearch but not systemctl enable it
 Originally Posted by hcvv
Most people do not like this sort of conclusions without the real computer facts shown. In this case we would like to have seen
(or similar) with the full output. The more because the file name you use seems to contain a blank space, which is not a problem in itself, but often people have problems in handling this correct.
Code:
ls -l /etc/init.d/elasticsearch-rwxr-x--- 1 root root 3853 Apr 19 04:14 /etc/init.d/elasticsearch
The space is just from my auto type keyboard on my phone.
-
Re: Can systemctl start elasticsearch but not systemctl enable it
 Originally Posted by dcurtisfra
I'll check out opensearch. If it can work as a drop in replacement with nextcloud then it sounds great.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|