By: Vitalii Bendyna user 26 Jun 2017 at 4:18 a.m. CDT

7 Responses
Vitalii Bendyna gravatar
Hello! You've closed my previous request without solution, so I'm opening a new one. So: ``` 1) Congiguration -> cache refresh - enabled and configured; 2) Configuration -> custom scripts -> cache refresh - enabled (script is default); 3) Fields Last Run, Updates at the last run and Problems at the last run are clear; 4) Log files are clear ``` Cache Refresh doesn't work at all. I tried different things - noone helped. When I run ldapsearch from container - all works. Ports are opened. What should I do to make cache refresh work?

By Aliaksandr Samuseu staff 26 Jun 2017 at 5:28 a.m. CDT

Aliaksandr Samuseu gravatar
Hi, Vitalii. 1. What in CR's logs? Please provide any related warnings/error messages. 2. Please share screenshots of all your CR's configuration pages with your settings 3. Share output of `# ifconfig -a` (from your Gluu host)

By Aliaksandr Samuseu staff 26 Jun 2017 at 5:33 a.m. CDT

Aliaksandr Samuseu gravatar
I've also checked your previous ticket. Please note that warnings about inability to find a CR script to use is not an issue. You don't need to enable any CR script, and it's not recommended to enable any script unless you know you need it and tested it properly.

By Vitalii Bendyna user 26 Jun 2017 at 6:58 a.m. CDT

Vitalii Bendyna gravatar
Hello, Aliaksandr! > What in CR's logs? Please provide any related warnings/error messages. /opt/gluu/jetty/identity/logs/oxtrust_cache_refresh.log: ``` 2017-06-26 08:23:54,483 INFO [qtp274064559-13] [org.gluu.oxtrust.action.ConfigureCacheRefreshAction] (ConfigureCacheRefreshAction.java:451) - Script has been executed successfully. Sample source entry is: ' mail: 'Test value' sAMAccountName: 'Test value' givenName: 'Test value' sn: 'Test value''. Sample result entry is: 'dn: 'inum=@!5897.2951.E842.CEE3!0001!8786.3CB0!0000!8DA1.E165,ou=people,o=@!5897.2951.E842.CEE3!0001!8786.3CB0,o=gluu' inum: '@!5897.2951.E842.CEE3!0001!8786.3CB0!0000!8DA1.E165', gluuStatus: 'active' inum: '@!5897.2951.E842.CEE3!0001!8786.3CB0!0000!8DA1.E165' gluuStatus: 'active' uid: 'Test value' mail: 'Test value' givenName: 'Test value (updated)' sn: 'Test value' preferredLanguage: 'en-us' userPassword: 'test'' 2017-06-26 08:24:11,779 INFO [qtp274064559-16] [org.gluu.oxtrust.action.ConfigureCacheRefreshAction] (ConfigureCacheRefreshAction.java:451) - Script has been executed successfully. Sample source entry is: ' mail: 'Test value' sAMAccountName: 'Test value' givenName: 'Test value' sn: 'Test value''. Sample result entry is: 'dn: 'inum=@!5897.2951.E842.CEE3!0001!8786.3CB0!0000!09E5.5DB7,ou=people,o=@!5897.2951.E842.CEE3!0001!8786.3CB0,o=gluu' inum: '@!5897.2951.E842.CEE3!0001!8786.3CB0!0000!09E5.5DB7', gluuStatus: 'active' inum: '@!5897.2951.E842.CEE3!0001!8786.3CB0!0000!09E5.5DB7' gluuStatus: 'active' uid: 'Test value' mail: 'Test value' givenName: 'Test value (updated)' sn: 'Test value' preferredLanguage: 'en-us' userPassword: 'test'' 2017-06-26 11:46:05,435 INFO [qtp274064559-19] [org.gluu.oxtrust.action.ConfigureCacheRefreshAction] (ConfigureCacheRefreshAction.java:451) - Script has been executed successfully. Sample source entry is: ' mail: 'Test value' sAMAccountName: 'Test value' givenName: 'Test value' sn: 'Test value''. Sample result entry is: 'dn: 'inum=@!5897.2951.E842.CEE3!0001!8786.3CB0!0000!25B2.742C,ou=people,o=@!5897.2951.E842.CEE3!0001!8786.3CB0,o=gluu' inum: '@!5897.2951.E842.CEE3!0001!8786.3CB0!0000!25B2.742C', gluuStatus: 'active' inum: '@!5897.2951.E842.CEE3!0001!8786.3CB0!0000!25B2.742C' gluuStatus: 'active' uid: 'Test value' mail: 'Test value' givenName: 'Test value (updated)' sn: 'Test value' preferredLanguage: 'en-us' userPassword: 'test'' ``` > Please share screenshots of all your CR's configuration pages with your settings https://ibb.co/ju5rSk https://ibb.co/nrnhYQ https://ibb.co/bwSS05 https://ibb.co/dtyBSk > Share output of # ifconfig -a (from your Gluu host) ``` root@gluu:~# ifconfig -a eth0 Link encap:Ethernet HWaddr 02:8e:f7:ce:a1:00 inet addr:10.90.0.143 Bcast:10.90.0.255 Mask:255.255.255.0 inet6 addr: fe80::8e:f7ff:fece:a100/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:9001 Metric:1 RX packets:4463052 errors:0 dropped:0 overruns:0 frame:0 TX packets:4265847 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:830819232 (830.8 MB) TX bytes:483192646 (483.1 MB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:3079106 errors:0 dropped:0 overruns:0 frame:0 TX packets:3079106 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:1323472045 (1.3 GB) TX bytes:1323472045 (1.3 GB) root@gluu:~# ``` Also, I've disabled custom script

By Aliaksandr Samuseu staff 26 Jun 2017 at 7:11 a.m. CDT

Aliaksandr Samuseu gravatar
Thanks. Your "Server ip address" setting doesn't look right. What is `10.100.0.10`? Ip address of your Gluu host should be put there, which is `10.90.0.143` in your case.

By Vitalii Bendyna user 26 Jun 2017 at 7:15 a.m. CDT

Vitalii Bendyna gravatar
Thank you for your quick answer. I supposed that the server IP address - this is address of LDAP server. Is it possible to use localhost or 127.0.0.1 as a server name in this case?

By Aliaksandr Samuseu staff 26 Jun 2017 at 8:11 a.m. CDT

Aliaksandr Samuseu gravatar
"Server ip address" is supposed to be ip address of this very Gluu server in case of single instance (it may have additional purpose in clustered instances). You can experiment with it later, for now I would suggest to go with a recommended settings to make sure the base setup works.

By Vitalii Bendyna user 26 Jun 2017 at 9:08 a.m. CDT

Vitalii Bendyna gravatar
Hello! Thank you very much for your help. Changing IP address fixed the problem and now all works. Thanks!