Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

images pull failed #503

Open
ToviHe opened this issue Oct 20, 2023 · 2 comments
Open

images pull failed #503

ToviHe opened this issue Oct 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ToviHe
Copy link

ToviHe commented Oct 20, 2023

Description
The image obtained by the command provided by the official website is only for AMD architecture and cannot be installed on a mac.

Environmental
macos
minikube、docker

  • Operating System Information macos
  • kubernetes version 1.27.2
  • OpenFunction version v1.2.0
  • Versions of dependent components (e.g. dapr, keda, shipwright, knative)

Expected behavior
The image can be pulled correctly in k8s pod

Actual behavior
Events:
Type Reason Age From Message


Normal Scheduled 43m default-scheduler Successfully assigned openfunction/openfunction-controller-manager-7fcbdb6bf9-9k895 to minikube
Warning Failed 40m kubelet Failed to pull image "openfunction/openfunction:v1.2.0": rpc error: code = Unknown desc = Error response from daemon: Get "https://registry-1.docker.io/v2/openfunction/openfunction/manifests/sha256:ecc2ec26476130adf1e9e2540e0133111c782771f87a9514213970c0556db975": EOF

To Reproduce
Steps to reproduce the behavior:

  1. '..'
  2. '...'
  3. '....'
  4. See error

Screenshots
image
image

Additional context
Add any other context about the problem here.

@ToviHe ToviHe added the bug Something isn't working label Oct 20, 2023
@aryasoni98
Copy link

@ToviHe

The error message from your Kubernetes events indicates that the kubelet failed to pull the openfunction/openfunction:v1.2.0 image due to an EOF error when communicating with Docker's registry.

This issue might be related to a couple of reasons:

  1. Temporary Network Glitch: EOF (End of File) errors can sometimes occur due to transient network issues between your Minikube environment and Docker's registry.

  2. Architecture Mismatch: You mentioned that the image is only for AMD architecture, and it cannot be installed on a Mac. If you're using an M1 Mac (which uses ARM architecture), you would need an ARM-compatible image.

  3. Minikube Cache: Sometimes, clearing Minikube's cache helps resolve such issues:

    minikube delete
    minikube start
    

To address this issue:

  • Confirm that you are using a compatible version of the image for your architecture. You might need to find or build an ARM-compatible image if you're on an M1 Mac.
  • Try pulling the image directly with Docker to verify that it's not a Minikube-specific issue:
    docker pull openfunction/openfunction:v1.2.0
    
  • Check if there's an ongoing issue with Docker Hub or your network connection that may be causing timeouts or EOF errors.
  • If you're behind a proxy, ensure that it's configured correctly in your Docker and Kubernetes settings.

If the problem persists, you may need to check with the OpenFunction community for ARM images or further troubleshooting steps specific to your environment.

@aryasoni98
Copy link

@ToviHe To troubleshoot this:

To resolve the image pull issue on a Mac with Minikube, especially if you're using an M1 chip (ARM architecture), follow these steps:

  1. Check Architecture Compatibility: Ensure the image openfunction/openfunction:v1.2.0 is compatible with ARM architecture. If not, look for an ARM-compatible version of the image.

  2. Direct Pull Test: Try pulling the image directly with Docker to isolate whether it's a Minikube issue or a broader problem:

    docker pull openfunction/openfunction:v1.2.0
  3. Minikube Cache and Restart:

    • Clear Minikube's cache:
      minikube delete
    • Start Minikube, specifying the driver and architecture if needed:
      minikube start --driver=docker
  4. Network Troubleshooting: Check your internet connection and Docker Hub status to rule out network issues or service outages.

  5. Proxy Configuration: If you're behind a proxy, configure your Docker and Kubernetes to use it correctly.

  6. Community and Support: If issues persist, contact the OpenFunction community for support, especially regarding ARM images or Minikube compatibility.

By ensuring that all settings are correct and that there are no external issues with Docker Hub or your network, you should be able to pull the image successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants