GithubHelp home page GithubHelp logo

Comments (18)

rjeberhard avatar rjeberhard commented on July 21, 2024 1

I see that you've already lengthened the timeout of the introspection job. Given that the timeout (activeDeadlineSeconds) is set at 10 minutes, introspection is probably not failing due to a timeout. Can you check the status of the introspection job as described here?: https://oracle.github.io/weblogic-kubernetes-operator/managing-domains/debugging/#check-the-introspector-job.

Likely, we will find that the introspection job is failing for some reason that we can assist with.

from weblogic-kubernetes-operator.

ankedia avatar ankedia commented on July 21, 2024 1

@backwind1233 Can you upload the operator logs and events. From the screen snapshot, I see a Failed event for Domain with internal error but I can't see the complete event. If you have captured the introspector job pod logs, please upload that as well.

from weblogic-kubernetes-operator.

ankedia avatar ankedia commented on July 21, 2024 1

Please also consult the debugging document for debugging the problem.

from weblogic-kubernetes-operator.

ankedia avatar ankedia commented on July 21, 2024 1

You can try setting the following environment variable before building the domain creation image on your Mac or build the image on a Linux VM.
export DEFAULT_DOCKER_PLATFORM=linux/amd64

from weblogic-kubernetes-operator.

ankedia avatar ankedia commented on July 21, 2024 1

@backwind1233 I don't have access to an AKS environment to run the domain creation sample. From the docker image inspect command output that you have provided above, the image is still using arm64 architecture and not amd64. Have you tried to build the image on a virtual machine? I'll check with my colleagues tomorrow about why architecture is still arm64 after you set DEFAULT_DOCKER_PLATFORM env variable to linux/amd64.

from weblogic-kubernetes-operator.

backwind1233 avatar backwind1233 commented on July 21, 2024

Hello @ankedia, could you help to take a look at this issue?

from weblogic-kubernetes-operator.

backwind1233 avatar backwind1233 commented on July 21, 2024

Thank you @rjeberhard @ankedia,

Please also consult the debugging document for debugging the problem.

I have followed the document trying to debug, but I still can't figure out.

Here are the logs.

from weblogic-kubernetes-operator.

ankedia avatar ankedia commented on July 21, 2024

It looks like introspector job pod is waiting to iniatilize. It's possible that the init container operator-aux-container1 is failing. How do you build the domain creation image? Is it built on a different chipset or OS? Can you run the below command to get the init container logs of the intospector job pod?

from weblogic-kubernetes-operator.

ankedia avatar ankedia commented on July 21, 2024

Run the following command to get the logs ->
kubectl logs <introspector-pod-name> -n <namespace> -c operator-aux-container1

from weblogic-kubernetes-operator.

backwind1233 avatar backwind1233 commented on July 21, 2024

It looks like introspector job pod is waiting to iniatilize. It's possible that the init container operator-aux-container1 is failing. How do you build the domain creation image? Is it built on a different chipset or OS? Can you run the below command to get the init container logs of the intospector job pod?

Yes, I build the domain creation image.

Is it built on a different chipset or OS?

Yes, I build it on my Mac OS with M1 .

from weblogic-kubernetes-operator.

backwind1233 avatar backwind1233 commented on July 21, 2024

Run the following command to get the logs -> kubectl logs <introspector-pod-name> -n <namespace> -c operator-aux-container1

Yes, here is the result of the command.

exec /weblogic-operator/scripts/auxImage.sh: exec format error
image

from weblogic-kubernetes-operator.

ankedia avatar ankedia commented on July 21, 2024

Ok. It looks like your domain creation image was built on ARM processor but the container runtime environment is different (for e.g. AMD).

You can try setting the env variable before building the image ->
export DEFAULT_DOCKER_PLATFORM=linux/amd64

To confirm the image architecture, you can run this command ->

docker image inspect phx.ocir.io/weblogick8s/wdt-domain-image:WLS-v1  | grep -i architecture
        "Architecture": "amd64",

Looping in @jshum2479 and @robertpatrick for other suggestions.

from weblogic-kubernetes-operator.

backwind1233 avatar backwind1233 commented on July 21, 2024

Ok. It looks like your domain creation image was built on ARM processor but the container runtime environment is different (for e.g. AMD).

You can try setting the env variable before building the image -> export DEFAULT_DOCKER_PLATFORM=linux/amd64

To confirm the image architecture, you can run this command ->

docker image inspect phx.ocir.io/weblogick8s/wdt-domain-image:WLS-v1  | grep -i architecture
        "Architecture": "amd64",

Looping in @jshum2479 and @robertpatrick for other suggestions.

Yes, maybe that's the reason.

from weblogic-kubernetes-operator.

backwind1233 avatar backwind1233 commented on July 21, 2024

You can try setting the following environment variable before building the domain creation image on your Mac or build the image on a Linux VM. export DEFAULT_DOCKER_PLATFORM=linux/amd64

Ok, I will try that, thank you.

from weblogic-kubernetes-operator.

backwind1233 avatar backwind1233 commented on July 21, 2024

I used this command export DEFAULT_DOCKER_PLATFORM=linux/amd64 to build the image on my Mac M1,
also check the architecture with

docker image inspect  wlsgzhcontainer.azurecr.io/wdt-domain-image:WLS-v2| grep -i architecture

"Architecture": "arm64",

It is "amd64", but the job still failed.
image

I will try to build the image on a virtual machine.

from weblogic-kubernetes-operator.

backwind1233 avatar backwind1233 commented on July 21, 2024

Hi @ankedia, could you run the domain creation sample with AKS successfully? Could you have a try, perhaps I made some silly mistakes.

from weblogic-kubernetes-operator.

backwind1233 avatar backwind1233 commented on July 21, 2024

Thank you @ankedia , I am tring to build the image on VM,

I got an error when I try to build the image

Please set the JAVA_HOME environment variable to match the location of your Java installation. Java 8 or newer is required.

but I do set the JAVA_HOME

azureroot@buildvmimageonubuntu:/tmp/sample/wdt-artifacts/wdt-model-files/WLS-v1$ echo $JAVA_HOME
/home/azureroot/.sdkman/candidates/java/17.0.7-oracle

image

I am tring to fix it.

from weblogic-kubernetes-operator.

backwind1233 avatar backwind1233 commented on July 21, 2024

Hello @ankedia , I think you are right, it's the DOCKER_PLATFORM issue.

I build the image on a virtual machine, the architecture of the new image is "amd64".

image

Now it works as expected on AKS.

image image

from weblogic-kubernetes-operator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.