oracle / weblogic-azure

This project offers support for running Oracle WebLogic Server in the Azure Virtual Machines and Azure Kubernetes Service (AKS)
Universal Permissive License v1.0
9 stars 19 forks source link

WebLogic Server 12c - Authentication Denied #201

Open gwbatte opened 1 year ago

gwbatte commented 1 year ago

Successfully deploy WebLogic Admin Server in AKS using WKO 3.4.3 and image

After deployment, I can successfully login using the weblogic account using the Default Authenticator. After a period of time, within (hours). I am no longer able to authenticate using the weblogic account. This has happened multiple times after multiple deployments.

[2022-09-01T14:40:10.158+00:00] [AdminServer] [NOTIFICATION] [] [oracle.wsm.agent.handler.jaxrs.RESTJeeResourceFilter] [tid: [ACTIVE].ExecuteThread: '84' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 4a29cc16-2426-4992-b4ce-349e05e80104-00000477,0] [APP: wls-management-services] [partition-name: DOMAIN] [tenant-name: GLOBAL] ProcessResponse is set to false

galiacheng commented 1 year ago

Hey @gwbatte it seems you are not using Azure Marketplace offer to deploy WLS on AKS, were you following the WLS on AKS samples? If not, could you share your steps of how to reproduce this issue? It'll be more helpful to diagnostic if you share the configuration files. Thank you!

gwbatte commented 1 year ago

Hi @galiacheng , thank you for your reply. I have yet to try the Azure marketplace offer. I have been following the WLS on AKS samples. Please see attached of the steps I have followed. steps.txt

galiacheng commented 1 year ago

Thanks for the steps @gwbatte, they are very helpful to understand the issue. I'm hoping you can help with the following questions:

  1. Are you able to run WLS and OIG successfully on VM?

  2. Are you using the same value for WLS admin account password and RCU Schema sys password? I would suggest you to use the same value for them. There is a related issue: https://support.oracle.com/knowledge/Middleware/2213930_1.html

image

  1. Could you share WLS operator logs and WLS logs?

    You can get the operator logs with command:

    # get the operator pod
    kubectl get pod -n opns
    kubectl log -n opns <operator-pod-name-from-above-input>
    # get admin server log
    kubectl get pod -n oigns
    kubectl log -n oigns <admin-server-pod-name-from-above-input>
edburns commented 1 year ago

How, if at all, is this related to #156 ?

galiacheng commented 1 year ago

How, if at all, is this related to #156 ?

I guessed so Ed, from the steps @gwbatte shared in https://github.com/oracle/weblogic-azure/issues/201#issuecomment-1250969182.

gwbatte commented 1 year ago

Thanks for the steps @gwbatte, they are very helpful to understand the issue. I'm hoping you can help with the following questions:

1. Are you able to run WLS and OIG successfully on VM?

2. Are you using the same value for WLS admin account password and RCU Schema sys password? I would suggest you to use the same value for them. There is a related issue: https://support.oracle.com/knowledge/Middleware/2213930_1.html

image

3. Could you share WLS operator logs and WLS logs?
   You can get the operator logs with command:
   ```
   # get the operator pod
   kubectl get pod -n opns
   kubectl log -n opns <operator-pod-name-from-above-input>
   ```

   ```
   # get admin server log
   kubectl get pod -n oigns
   kubectl log -n oigns <admin-server-pod-name-from-above-input>
   ```

Are you using the same value for WLS admin account password and RCU Schema sys password? I would suggest you to use the same value for them. There is a related issue: https://support.oracle.com/knowledge/Middleware/2213930_1.html

I will redeploy to use the same value for both the WLS admin account and RCU Schema. I will let you know how that goes. Cheers Geoff

gwbatte commented 1 year ago

Please see attached output

WLS admin account password and RCU Schema sys password set to same value. Same issue.

governancedomain-adminserver.txt weblogic-operator-sample.txt

cheers Geoff

galiacheng commented 1 year ago

Hello @gwbatte thanks for the logs. I didn't see related error from the logs. We've consulted WebLogic team, they recommended to enable DebugSecurityAtn for more logs.

Steps to enable DebugSecurityAtn:

image

We've invited OIG experts to help you, could you please join this Slack channel, you can ping me Haixia Cheng or Edward Burns there, then we will create a private channel and invite the expert to the channel.

edburns commented 1 year ago

Hello @gwbatte , in the spirit of issue-tracker hygiene, we would like to resolve this issue. If we don't hear anything from you by the end of October 2022, we'll close this issue. You're welcome to open another one or re-open this one if desired.

gwbatte commented 1 year ago

please don't close. I am working on getting the Debug enabled.

gwbatte commented 1 year ago

Please see attached log with DebugSecurityAtn enabled. "Authentication Denied" with weblogic user governancedomain-adminserver.log

galiacheng commented 1 year ago

We can close this issue, as there is a private stack channel for it. @sanjaymantoor