You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "simranjit11 (via GitHub)" <gi...@apache.org> on 2023/06/01 09:22:55 UTC

[GitHub] [camel-k] simranjit11 opened a new issue, #4443: --port flag not working while running kamel integration in debug mode

simranjit11 opened a new issue, #4443:
URL: https://github.com/apache/camel-k/issues/4443

   **commad I ran:**  
   kamel debug my-connector --port 5000
   
   **logs on terminal shows port 5005:**
   Enabling debug mode on integration "my-connector"...
   [1] Monitoring pod my-connector-00011-deployment-9dgb24h
   [1] exec java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -Xmx269M


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4443: --port flag not working while running kamel integration in debug mode

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4443:
URL: https://github.com/apache/camel-k/issues/4443#issuecomment-1586720335

   > @squakez , is someone working on this issue?
   
   Hello. Not that I know, it's not assigned. If you're willing to contribute, just let me know and I will assign the issue to you. Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] simranjit11 commented on issue #4443: --port flag not working while running kamel integration in debug mode

Posted by "simranjit11 (via GitHub)" <gi...@apache.org>.
simranjit11 commented on issue #4443:
URL: https://github.com/apache/camel-k/issues/4443#issuecomment-1571706148

   Tried with --remote-port. But it is still the same.
   
   ```
   kamel debug my-connector --remote-port 5000
   Enabling debug mode on integration "my-connector"...
   [1] Monitoring pod my-connector-00002-deployment-86m2tgk
   [1] exec java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -Xmx269M
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] gansheer commented on issue #4443: --port flag not working while running kamel integration in debug mode

Posted by "gansheer (via GitHub)" <gi...@apache.org>.
gansheer commented on issue #4443:
URL: https://github.com/apache/camel-k/issues/4443#issuecomment-1612583708

   @simranjit11 does it actually works on 5005 ? 
   
   In any case we need more  detail how you are deploying your operator and integration to understand why it does not creates PortForward. It could be that you are missing permissions to create these forwarding.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] simranjit11 commented on issue #4443: --port flag not working while running kamel integration in debug mode

Posted by "simranjit11 (via GitHub)" <gi...@apache.org>.
simranjit11 commented on issue #4443:
URL: https://github.com/apache/camel-k/issues/4443#issuecomment-1571723818

   @squakez  1.12.0
   ```
   % kamel version
   Camel K Client 1.12.0
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] --port flag not working while running kamel integration in debug mode [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4443:
URL: https://github.com/apache/camel-k/issues/4443#issuecomment-2095696974

   Stale. Please reopen this issue if still happening with more recent Camel K versions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4443: --port flag not working while running kamel integration in debug mode

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4443:
URL: https://github.com/apache/camel-k/issues/4443#issuecomment-1571681684

   ```
         --port uint            Local port to use for port-forwarding (default 5005)
         --remote-port uint     Remote port to use for port-forwarding (default 5005)
   ```
   I think `port` is the local one where your machine is connected. The one you see is the remote one. Try `--remote-port`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] simranjit11 commented on issue #4443: --port flag not working while running kamel integration in debug mode

Posted by "simranjit11 (via GitHub)" <gi...@apache.org>.
simranjit11 commented on issue #4443:
URL: https://github.com/apache/camel-k/issues/4443#issuecomment-1611011240

   @gansheer , for me it does in output last three lines of port forwarding..
   
   ```
   Forwarding from 127.0.0.1:5000 -> 5005
   Forwarding from [::1]:5000 -> 5005
   Handling connection for 5000
   ```
   
   And when I try to connect remote JVM with the port specified for --port, it says connection refused


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] simranjit11 commented on issue #4443: --port flag not working while running kamel integration in debug mode

Posted by "simranjit11 (via GitHub)" <gi...@apache.org>.
simranjit11 commented on issue #4443:
URL: https://github.com/apache/camel-k/issues/4443#issuecomment-1586534734

   @squakez , is someone working on this issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] gansheer commented on issue #4443: --port flag not working while running kamel integration in debug mode

Posted by "gansheer (via GitHub)" <gi...@apache.org>.
gansheer commented on issue #4443:
URL: https://github.com/apache/camel-k/issues/4443#issuecomment-1609403554

   Could you give detail how you are deploying your operator and integration ?
   
   From what I understand about this --port/--port-remote is to configure some Kubernetes Port-forwarding.
   
   When I run `kamel debug test --port 500` I have the following logs:
   ```
   Enabling debug mode on integration "test"...
   [1] Monitoring pod test-64c474d7f4-gjz9j
   [1] exec java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -cp ./resources:/etc/....
   [1] Listening for transport dt_socket at address: 5005
   Forwarding from 127.0.0.1:5000 -> 5005
   Forwarding from [::1]:5000 -> 5005
   Handling connection for 5000
   ```
   So when I configure my IDE like explained here but with port 5000 it works.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] --port flag not working while running kamel integration in debug mode [camel-k]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez closed issue #4443: --port flag not working while running kamel integration in debug mode 
URL: https://github.com/apache/camel-k/issues/4443


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-k] squakez commented on issue #4443: --port flag not working while running kamel integration in debug mode

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on issue #4443:
URL: https://github.com/apache/camel-k/issues/4443#issuecomment-1571720759

   Thanks, what Camel K version are you using?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org