Lider-console 'REST failure. Status code: 401 Reason: Unauthorized' hatası

Lider-console ile politika eklemeye çalışırken aşağıdaki hatayı alıyoruz. Kurulumu bir kaç defa kontrol ettik ama sorunun kaynağını bulamadık. Sorunun nereden kaynaklandığına dair ipucu alabilirsek memnun oluruz.

18:00:02.458 [NioProcessor-1] DEBUG o.a.d.l.c.api.LdapNetworkConnection - Removing <23, org.apache.directory.ldap.client.api.future.SearchFuture>
18:00:02.458 [Worker-3] DEBUG org.apache.directory.CURSOR_LOG - Creating SearchCursorImpl org.apache.directory.ldap.client.api.SearchCursorImpl@34745667
partOpened org.apache.directory.studio.ldapbrowser.ui.editors.entry.SingleTabEntryEditor
partHidden
partBroughtToToporg.apache.directory.studio.ldapbrowser.ui.editors.entry.SingleTabEntryEditor
partDeactivated org.apache.directory.studio.ldapbrowser.ui.views.browser.BrowserView
partActivatedorg.apache.directory.studio.ldapbrowser.ui.editors.entry.SingleTabEntryEditor
partDeactivated org.apache.directory.studio.ldapbrowser.ui.editors.entry.SingleTabEntryEditor
partDeactivated org.apache.directory.studio.ldapbrowser.ui.views.browser.BrowserView
partClosedtr.org.liderahenk.liderconsole.core.editors.LiderManagementEditor
partHidden
partClosedorg.apache.directory.studio.ldapbrowser.ui.editors.entry.SingleTabEntryEditor
18:06:37.079 [main] DEBUG t.o.l.l.c.rest.utils.PolicyRestUtils - Sending request to URL: /lider/policy/list?
18:06:37.151 [main] WARN  t.o.l.l.core.rest.RestClient - REST failure. Status code: 401 Reason: Unauthorized
partOpened tr.org.liderahenk.liderconsole.core.editors.LiderManagementEditor
partBroughtToToptr.org.liderahenk.liderconsole.core.editors.LiderManagementEditor
partHidden
partClosedtr.org.liderahenk.liderconsole.core.editors.LiderManagementEditor
18:06:45.223 [main] DEBUG t.o.l.l.c.rest.utils.PolicyRestUtils - Sending request to URL: /lider/policy/list?
18:06:45.294 [main] WARN  t.o.l.l.core.rest.RestClient - REST failure. Status code: 401 Reason: Unauthorized
partOpened tr.org.liderahenk.liderconsole.core.editors.LiderManagementEditor
partBroughtToToptr.org.liderahenk.liderconsole.core.editors.LiderManagementEditor
partDeactivated tr.org.liderahenk.liderconsole.core.views.LdapBrowserView
partActivatedtr.org.liderahenk.liderconsole.core.editors.LiderManagementEditor
18:06:47.469 [main] DEBUG t.o.l.l.c.rest.utils.TaskRestUtils - Sending request: tr.org.liderahenk.liderconsole.core.rest.requests.TaskRequest@61d61b0e to URL: /lider/task/execute
18:06:47.530 [main] WARN  t.o.l.l.core.rest.RestClient - REST failure. Status code: 401 Reason: Unauthorized

lider-client altında log:tail yapınca şağıdaki mesajları alıyoruz.

2018-10-03 10:15:37,395 | INFO  | FelixStartLevel  | ServiceRegistryImpl              | 57 - lider-router-impl - 1.1.0 | Registered command: WOL:1.1:SHUT-DOWN-MACHINE
2018-10-03 10:15:37,397 | INFO  | FelixStartLevel  | ServiceRegistryImpl              | 57 - lider-router-impl - 1.1.0 | Registered command: WOL:1.1:WAKE-MACHINE
2018-10-03 10:15:37,398 | INFO  | FelixStartLevel  | ServiceRegistryImpl              | 57 - lider-router-impl - 1.1.0 | Registered template: WOL-REPORT
2018-10-03 10:15:37,448 | INFO  | FelixStartLevel  | PluginManagerImpl                | 49 - lider-pluginmanager-impl - 1.1.0 | Registered plugin: WOL:1.1
2018-10-03 10:15:37,450 | INFO  | FelixStartLevel  | ServiceRegistryImpl              | 57 - lider-router-impl - 1.1.0 | Registered command: WOL:1.1:WAKE-AHENK-MACHINES
2018-10-03 10:16:20,676 | INFO  | qtp1823594114-98 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:29,021 | INFO  | tp1823594114-100 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:37,495 | INFO  | qtp1823594114-98 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:37,637 | INFO  | tp1823594114-100 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:37,795 | INFO  | tp1823594114-102 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:37,945 | INFO  | qtp1823594114-98 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:38,113 | INFO  | tp1823594114-100 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:45,582 | INFO  | tp1823594114-102 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:53,786 | INFO  | tp1823594114-103 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:53,907 | INFO  | qtp1823594114-99 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:53,994 | INFO  | tp1823594114-101 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:54,083 | INFO  | tp1823594114-103 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:16:54,186 | INFO  | qtp1823594114-99 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:17:10,489 | INFO  | tp1823594114-101 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:17:29,882 | INFO  | tp1823594114-102 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:17:36,315 | INFO  | qtp1823594114-98 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:17:36,420 | INFO  | tp1823594114-100 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:17:36,540 | INFO  | tp1823594114-102 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:17:36,638 | INFO  | qtp1823594114-98 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:17:36,738 | INFO  | tp1823594114-100 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:18:11,869 | INFO  | tp1823594114-102 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:18:29,619 | INFO  | qtp1823594114-98 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:19:11,387 | INFO  | 7]-nio2-thread-1 | ServerSession                    | 189 - org.apache.sshd.core - 0.14.0 | Server session created from /127.0.0.1:33334
2018-10-03 10:19:11,785 | INFO  | 7]-nio2-thread-3 | ServerUserAuthService            | 189 - org.apache.sshd.core - 0.14.0 | Session karaf@/127.0.0.1:33334 authenticated
2018-10-03 10:19:53,725 | INFO  | tp1823594114-102 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..
2018-10-03 10:20:18,639 | INFO  | qtp1823594114-98 | LiderLdapRealm                   | 72 - lider-web - 1.1.0 | No authentication token provided, will not try to authenticate..

Sorunun /usr/share/lider-server/etc/tr.org.liderahenk.cfg doyasında ldap ve xmpp kullanıcı adlarının karıştırılması sonucu olduğunu farkettik. Şu an politika ekleyip betik çalıştırabiliyoruz ama betik çalıştığı halde lider-console tarafındaki betik çalıştırma penceresi kapanmıyor. Bunun için ayrı bir başlık açmam gerekebilir.

1 Beğeni

Bu konu son cevaptan 30 gün sonra otomatik olarak kapatıldı. Yeni cevap girilmesine izin verilmiyor.