Support Questions
Find answers, ask questions, and share your expertise

Knox Admin UI error when creating a provider configuration

Highlighted

Knox Admin UI error when creating a provider configuration

I am trying to follow the steps here https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.0.1/configuring-proxy-knox/content/sec_set_up_k... to set up knox proxy.


I can load the admin UI fine, and then create the new provider configuration. However, when I click the ok button to save the configuration, the admin UI page reloads with no provider configurations listed - not even the default provider. The configuration I just created is not saved.


There are some errors in the Firefox console at this time:

ERROR Error: "Uncaught (in promise): Http failure during parsing for https://hdpc-gateway.local:8443/gateway/knoxsso/knoxauth/login.html?originalUrl=https://hdpc-gateway...;
A https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
A https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
F https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
invokeTask https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
onInvokeTask https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
invokeTask https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
runTask https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
m https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
invokeTask https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
p https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
h https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
main.412cf9608524b45f6dbc.bundle.js:1:464394
Ce https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
handleError https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
next https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
i https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
__tryOrUnsub https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
next https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
_next https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
next https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
next https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
emit https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
onHandleError https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
invoke https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
run https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
runOutsideAngular https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
onHandleError https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
handleError https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
runGuarded https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
e https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
microtaskDrainDone https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
m https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
invokeTask https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
p https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1
h https://hdpc-gateway.local:8443/gateway/manager/admin-ui/main.412cf9608524b45f6dbc.bundle.js:1

After this, the Admin UI fails to function until I restart both Knox, and the demo LDAP server.



3 REPLIES 3
Highlighted

Re: Knox Admin UI error when creating a provider configuration

Cloudera Employee

Check the ttl param value in the knoxsso topology. I suspect it’s too short, and the cookie is timing out before you attempt to save the provider configuration.

Highlighted

Re: Knox Admin UI error when creating a provider configuration

@Phil Zampino the current setting is 30000. I've upped it to 300000000 and still get the same issue.

It seems to only occur if I try adding LDAP authentication to the configuration. If I use Anonymous, the configuration is created ok.

Highlighted

Re: Knox Admin UI error when creating a provider configuration

Cloudera Employee

Simply creating a provider configuration with LDAP config has no effect whatsoever on the running Knox instance, even less so since you're not able to save the configuration. Are you certain that restarts of Knox and the LDAP server are indeed required? The behavior you're describing sounds like what one sees when the SSO cookie expires, and reloading the page gives the opportunity to log in again. If you do indeed have to restart Knox and the LDAP server, then there is something more seriously wrong, well beyond the Admin UI.