Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Zenarmor (Sensei)
»
Elastic search won't start on 22.1
« previous
next »
Print
Pages: [
1
]
2
3
Author
Topic: Elastic search won't start on 22.1 (Read 13523 times)
Giant850
Newbie
Posts: 26
Karma: 0
Elastic search won't start on 22.1
«
on:
January 27, 2022, 08:14:14 pm »
Just upgraded to Opnsense 22.1, then upgraded Zenarmor. Now Elasticsearch won't start. Packet engine and cloud agent are running. Ideas?
Logged
mb
Hero Member
Posts: 941
Karma: 99
Re: Elastic search won't start on 22.1
«
Reply #1 on:
January 27, 2022, 09:32:28 pm »
Hi @Giant850,
Can you run the following two commands and paste the results here:
Code:
[Select]
pkg info | grep elasticsearch | cut -d" " -f1 | xargs pkg info
Code:
[Select]
service elasticsearch status
Logged
RamSense
Hero Member
Posts: 595
Karma: 10
Re: Elastic search won't start on 22.1
«
Reply #2 on:
January 27, 2022, 09:42:13 pm »
I had the same.
Under Zenarmor - status -> Engine Version - I hit check updates and also App & Rules DB Version - I hit check updates.
after that I got an green notification on top from zenarmor about "noticing OS change" or something and did some reinstall of elastic search, after the notification the system came back online.
Logged
mb
Hero Member
Posts: 941
Karma: 99
Re: Elastic search won't start on 22.1
«
Reply #3 on:
January 27, 2022, 09:46:28 pm »
@RamSense,
Yes, this is how it's supposed to happen.
After you switch to 22.1, zenarmor should detect the ABI change and re-install database with the correct ABI.
Logged
ArminF
Full Member
Posts: 205
Karma: 11
Re: Elastic search won't start on 22.1
«
Reply #4 on:
January 28, 2022, 07:59:44 am »
Morning,
with my update to 22.1 the elasticsearch does not start.
"Error occured during elasticsearch start process"
installed and reinstalled
elasticsearch5 5.6.16_8 72.9MiB SunnyValley APACHE20
os-sensei 1.10.1 120MiB SunnyValley BSD2CLAUSE
os-sunnyvalley 1.2_1 652B OPNsense BSD2CLAUSE
any tip for me?
Logged
English: Never try, never know!
Deutsch: Unversucht ist Unerfahren!
ArminF
Full Member
Posts: 205
Karma: 11
Re: Elastic search won't start on 22.1
«
Reply #5 on:
January 28, 2022, 09:29:08 am »
hm.. as i had a backup i decided to reinstall zenarmor and elasticsearch.
no luck with that. DB does not start and system behaves very unstable.
Logged
English: Never try, never know!
Deutsch: Unversucht ist Unerfahren!
paschtin
Newbie
Posts: 6
Karma: 0
Re: Elastic search won't start on 22.1
«
Reply #6 on:
January 28, 2022, 10:02:55 am »
Same issue here. Cannot start the Elasticsearch database.
I did upgrade to 22.1 as well as the Zenarmor packages.
Logged
ArminF
Full Member
Posts: 205
Karma: 11
Re: Elastic search won't start on 22.1
«
Reply #7 on:
January 28, 2022, 10:43:50 am »
twice reinstalled..
1st attempt with restore backup - elastic stopped
2ns with default config and just one interface - went OK
Started activating options, exclusion etc.
System went unstable and after reboot elasitc stopped.
besides is get this error as soon as i install sensei
[28-Jan-2022 10:38:50 Europe/Amsterdam] PHP Warning: A non-numeric value encountered in /usr/local/sbin/carp_service_status on line 51
Logged
English: Never try, never know!
Deutsch: Unversucht ist Unerfahren!
hfvk
Newbie
Posts: 43
Karma: 5
Re: Elastic search won't start on 22.1
«
Reply #8 on:
January 28, 2022, 01:29:42 pm »
Same issue here. OPNsense reinstalled Sensei after upgrading to 22.1 but Elasticsearch won’t start.
How do I force the reinstall?
Logged
hfvk
Newbie
Posts: 43
Karma: 5
Re: Elastic search won't start on 22.1
«
Reply #9 on:
January 28, 2022, 01:55:16 pm »
Altight, I reinstalled elasticsearch manually from CLI. Now it works, for some reason it was still on FreeBSD 12 ABI. Manual reinstall fixed and it is now 13 and everything is working fine
Logged
ArminF
Full Member
Posts: 205
Karma: 11
Re: Elastic search won't start on 22.1
«
Reply #10 on:
January 28, 2022, 01:56:31 pm »
Can you paste the CLI command code here?
So i can give it a try.
i installed three times through GUI.. failed all the time.
thanks Armin
Logged
English: Never try, never know!
Deutsch: Unversucht ist Unerfahren!
hfvk
Newbie
Posts: 43
Karma: 5
Re: Elastic search won't start on 22.1
«
Reply #11 on:
January 28, 2022, 02:03:31 pm »
First, I did:
pkg deinstall elasticsearch5
After that:
pkg install elasticsearch5
You can use pkg info command to check the exact name of the package if the above does not work.
I am not sure if this was too "brute force" approach. I compared the installed packages with other identical systems I have running OK on 22.1 and the packages seem identical.
I upgraded multiple "identical" machines from 21.7 to 22.1 with same procedure. No idea what went differently here...
Logged
ArminF
Full Member
Posts: 205
Karma: 11
Re: Elastic search won't start on 22.1
«
Reply #12 on:
January 28, 2022, 03:26:09 pm »
Thanks hfvk
that did the trick.
pkg remove elasticsearh5
pkg install elasticsearch5
then enable and restore config&rules
Logged
English: Never try, never know!
Deutsch: Unversucht ist Unerfahren!
sy
Hero Member
Posts: 595
Karma: 44
Re: Elastic search won't start on 22.1
«
Reply #13 on:
January 28, 2022, 04:09:39 pm »
Hi all,
The repo is updated and it should be worked as expected.
Logged
ArminF
Full Member
Posts: 205
Karma: 11
Re: Elastic search won't start on 22.1
«
Reply #14 on:
January 28, 2022, 10:11:10 pm »
Thanks Sy,
but my issue came back right after reboot.
Elasticsearch does not start. System gehts unstable and reloads services every 1-2 minutes.
tried cli uninstall / install
removed elasticsearch user/group
removed left over files and directories.
reinstalled through GUI
still no luck.
Had 2 boxes in the office 1 was OK the other failed as well.
Logged
English: Never try, never know!
Deutsch: Unversucht ist Unerfahren!
Print
Pages: [
1
]
2
3
« previous
next »
OPNsense Forum
»
English Forums
»
Zenarmor (Sensei)
»
Elastic search won't start on 22.1