Must I run sgadmin.sh after restart ES everytime?

343 views
Skip to first unread message

Clifford

unread,
Jul 21, 2016, 5:34:38 AM7/21/16
to Search Guard
Everytime I restart ES node, the api returns "Search Guard not initialized(SG11)". it works after i run sgadmin.sh.
I always thought that the script run only one time after SG is installed.
Is there some setting can do this automatically? Because i don't know when the node initializes ok and joins the cluster.

in...@search-guard.com

unread,
Jul 21, 2016, 5:41:04 AM7/21/16
to Search Guard
This is strange. It should be enough to run the sgadmin script once. The Search Guard index gets populated and then replicated just like any other index.

Can you open an issue on our github page please, and give us some steps to reproduce this behaviour? Also, please state which version of ES (and thus SG) you are using. Are you seeing anything strange in the logfiles? And, can you please set the loglevel to DEBUG, then run sgadmin, and attach the logfile to the isuue?


To set the loglevel, add

com.floragunn: DEBUG


to 


logging.yml


Thanks!

zooboa

unread,
Jul 21, 2016, 6:46:12 AM7/21/16
to search...@googlegroups.com
I found the same problem:

"Everytime I restart ES node, the api returns "Search Guard not initialized(SG11)". it works after i run sgadmin.sh.
"

--
You received this message because you are subscribed to the Google Groups "Search Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to search-guard...@googlegroups.com.
To post to this group, send email to search...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/2170c993-c7fb-4010-b586-b70c866d0770%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
GDG Hangzhou | @zooboa
Email: zoo...@gmail.com
杭州GDG: www.hzgdg.org

Daniel Kasen

unread,
Jul 21, 2016, 12:39:43 PM7/21/16
to search...@googlegroups.com
I get that too, but usually if I wait about a minute for the cluster to warm up it'll work.

Daniel Kasen

unread,
Jul 21, 2016, 12:47:38 PM7/21/16
to search...@googlegroups.com
I did also notice that if I force the number of replicas to exist on EVERY node in the cluster this doesn't happen.

Clifford

unread,
Jul 21, 2016, 10:30:40 PM7/21/16
to Search Guard
ok

在 2016年7月21日星期四 UTC+8下午5:41:04,in...@search-guard.com写道:

Clifford

unread,
Jul 21, 2016, 10:36:53 PM7/21/16
to Search Guard
[2016-07-22 10:05:44,373][DEBUG][com.floragunn.searchguard.configuration.SearchGuardIndexSearcherWrapperModule] FLS/DLS not enabled
[2016-07-22 10:05:44,408][DEBUG][com.floragunn.searchguard.configuration.SearchGuardIndexSearcherWrapperModule] FLS/DLS not enabled
[2016-07-22 10:05:44,906][DEBUG][com.floragunn.searchguard.configuration.SearchGuardIndexSearcherWrapperModule] FLS/DLS not enabled
[2016-07-22 10:05:44,952][DEBUG][com.floragunn.searchguard.configuration.SearchGuardIndexSearcherWrapperModule] FLS/DLS not enabled
[2016-07-22 10:07:40,410][ERROR][com.floragunn.searchguard.auth.BackendRegistry] Not yet initialized
[2016-07-22 10:13:09,239][ERROR][com.floragunn.searchguard.auth.BackendRegistry] Not yet initialized

see the last two log, it didn't work after about 6 minutes. i'm crazy.

在 2016年7月22日星期五 UTC+8上午12:39:43,djtecha写道:

Clifford

unread,
Jul 21, 2016, 10:43:04 PM7/21/16
to Search Guard

i tried, but it doesn't work.



在 2016年7月22日星期五 UTC+8上午12:47:38,djtecha写道:

in...@search-guard.com

unread,
Jul 28, 2016, 4:28:55 PM7/28/16
to Search Guard


On Thursday, 21 July 2016 11:34:38 UTC+2, Clifford wrote:

ZillaYT

unread,
Nov 3, 2016, 5:29:38 PM11/3/16
to Search Guard
With ES v2.4.1 and corresponding SG+SSL and SG versions, the cluster just recovers after a few iterations, without having to rerun sgadmin.sh
Reply all
Reply to author
Forward
0 new messages