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

Detect invalid certificate error and print better message #2824

Closed
aviramha opened this issue Oct 11, 2024 · 1 comment · Fixed by #2852
Closed

Detect invalid certificate error and print better message #2824

aviramha opened this issue Oct 11, 2024 · 1 comment · Fixed by #2852
Assignees

Comments

@aviramha
Copy link
Member

Follow up on #2821
failure was:

⠤ mirrord exec
    ✓ running on latest (3.119.1)!
⠖ mirrord exec
    ✓ running on latest (3.119.1)!
  ⠚ preparing to launch process
  x mirrord exec
    ✓ running on latest (3.119.1)!
    x preparing to launch process
      ✓ layer extracted
      ✓ operator disabled                                                                                                                                                                     Error:   × Failed to create mirrord-agent: Kube failed: ServiceError: client error (Connect)
  help: 1. Please check the status of the agent pod, using `kubectl get pods` in the relevant namespace.
                2. If you don't see any `mirrord-agent-[...]` pods, then try running `kubectl get jobs`, and `kubectl describe mirrord-agent-[...]`.
                Make sure it is able to fetch the agent image, it didn't fail due to lack of resources, etc.
        
        - If you're still stuck:
        
        >> Please open a new bug report at https://github.com/metalbear-co/mirrord/issues/new/choose
        
        >> Or join our Discord https://discord.gg/metalbear and request help in #mirrord-help
        
        >> Or email us at hi@metalbear.co

but in logs we could see that it was invalid certificate

 DEBUG start:create_and_connect: mirrord::connection: Failed to detect OpenShift error=KubeError(Service(hyper_util::client::legacy::Error(Connect, Custom { kind: Other, error: Custom { kind: InvalidData, error: InvalidCertificate(UnknownIssuer) } })))

need to improve error experience here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants