Git Product home page Git Product logo

Comments (8)

psemeniuk avatar psemeniuk commented on June 26, 2024 1

+1

I analysed it a lil bit, and it looks like v2.14.0 was the last working version. Although i'm unable verify on 2.14.1, because it seems it contains yet another bug - it tries to inject sidecar with docker.io/datawire/tel2:latest, which is incorrect reference.

from telepresence.

knlambert avatar knlambert commented on June 26, 2024

The OSS doesn't have such limitation.

Can you give us more informations on your service / deployments ?

from telepresence.

alphashr avatar alphashr commented on June 26, 2024

Sure. The deployment is istio with multiple ports:

         ports:
         - containerPort: 10029
           name: http-test
           protocol: TCP
         - containerPort: 10030
           protocol: TCP
         - containerPort: 10031
           protocol: TCP
         - containerPort: 10084
           protocol: TCP
         - containerPort: 10067

With multiple services exposing them:

service-1             ClusterIP      10.12.22.17    <none>        10029/TCP        50d
service-2             ClusterIP      10.12.22.18    <none>       10030/TCP        50d
...

When I do the first intercept, everything looks good:

telepresence intercept service-1 --port 10029:10029

While the first intercept is in place, I try to add a new intercept:

telepresence intercept service-2 --workload foo-services --port 10030:10030

I get the above-mentioned error.

Either i am using the cli in a wrong way, or there should be something wrong. Referring to this post the user had similar issue.

from telepresence.

knlambert avatar knlambert commented on June 26, 2024

When you say that the deployment is istio, do you mean it has an istio side car ? Or that you're intercepting istio itself ?

from telepresence.

cindymullins-dw avatar cindymullins-dw commented on June 26, 2024

Just to add to this, you wouldn’t be intercepting Istio, nor an Istio sidecar. Instead you would intercept whatever app container you’re trying to debug. What does your entire deployment look like - if you can share that we can tell you what Telepresence can and can’t intercept.

from telepresence.

alphashr avatar alphashr commented on June 26, 2024

@knlambert yes, the app has Istio side car.

from telepresence.

lkoniecz avatar lkoniecz commented on June 26, 2024

same here

telepresence intercept java-server-mobile --workload java-server --service=java-server-external --port 1035:1035 --mechanism=tcp --mount=false
Using StatefulSet java-server
   Intercept name         : java-server-mobile
   State                  : ACTIVE
   Workload kind          : StatefulSet
   Destination            : 127.0.0.1:1035
   Service Port Identifier: tcp-1035
   Intercepting           : all TCP connections

so far, so good

telepresence intercept java-server-native --workload java-server --service=java-server-internal --port 1036:1036 --mechanism=tcp --mount=false
telepresence intercept: error: connector.CreateIntercept: Failed to establish intercept: intercept in error state AGENT_ERROR: Conflicts with the currently-served intercept "995b76f2-74c9-4cd7-8748-e716449d32d3:java-server-mobile"

See logs for details (1 error found): "/Users/lky/Library/Logs/telepresence/connector.log"
If you think you have encountered a bug, please run `telepresence gather-logs` and attach the telepresence_logs.zip to your github issue or create a new one: https://github.com/telepresenceio/telepresence/issues/new?template=Bug_report.md .

backend and client on v2.16.1

java-server-internal

  ports:
  - name: tcp-1034
    nodePort: 31570
    port: 1034
    protocol: TCP
    targetPort: web
  - name: tcp-1035
    nodePort: 30240
    port: 1035
    protocol: TCP
    targetPort: mobile

java-server-internal

  ports:
  - name: tcp-1036
    port: 1036
    protocol: TCP
    targetPort: native
  - name: tcp-1037
    port: 1037
    protocol: TCP
    targetPort: remote

it used to work on previous versions

from telepresence.

thallgren avatar thallgren commented on June 26, 2024

The OSS agent is only capable of handling one intercept at a time. It's a deliberate limitation. Please upgrade to the Developer plan if you want multiple simultaneous intercepts on a workload.

from telepresence.

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.