Giter VIP home page Giter VIP logo

Comments (12)

aviramha avatar aviramha commented on September 27, 2024

Thanks for reporting this - Are you using the operator?
I suspect that the remote pod you're targeting had a restart, which leads to mirrord failing to access it's Linux namespace.
Can you verify if the container you target had a restart? Sometimes this happens due to health checks failing (timeout) so we recommend using a HTTP filter to avoid stealing the health checks.

from mirrord.

xavidop avatar xavidop commented on September 27, 2024

hi,
that is correct, we are not using the operator for now and the pod restarts. it does not usually restart when mirrored it is not being executed. what should I do?
thank you in advance

from mirrord.

aviramha avatar aviramha commented on September 27, 2024

thanks for the clarification - this means you're using mirrord OSS and not enterprise :)

Can you check what's the reason for the restart?

from mirrord.

xavidop avatar xavidop commented on September 27, 2024

The pod exits with code 0 and status completed which is weird, I am trying this with another service and it works perfectly without issues

from mirrord.

aviramha avatar aviramha commented on September 27, 2024

I mean the reason for the restart of the target pod - your service.
P.S if you'd like we can do a screenshare session to debug it.

from mirrord.

xavidop avatar xavidop commented on September 27, 2024

after the mirrord connection, I am seeing this:
│ app {"level":40,"time":1716896956775,"msg":"[app] [http] SIGTERM received stopping server..."} │

from mirrord.

aviramha avatar aviramha commented on September 27, 2024

I would like you to describe the app's pod, and see if there's any kubernetes event saying restart / health check failed etc

from mirrord.

xavidop avatar xavidop commented on September 27, 2024

yeah I see this:
image

What I did not understand is why the other service works perfectly and not this one. Both have the same checks

from mirrord.

aviramha avatar aviramha commented on September 27, 2024

You can probably run the application with a debugger - put a breakpoint into health and see where it hangs
Also - do they have the same timeouts?

from mirrord.

xavidop avatar xavidop commented on September 27, 2024

No, locally acts in the same way as the service that is working, it logs the endpoint call:
image

from mirrord.

aviramha avatar aviramha commented on September 27, 2024

Would you like to debug it over a call?

from mirrord.

aviramha avatar aviramha commented on September 27, 2024

Issue was health checks being stolen and not answered in a timely manner.

from mirrord.

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.