Closed tinnkm closed 1 year ago
I'm encountering the same issue with the latest version of Intellij Ultimate. Previously I had no issues running in debug mode. Port 5005 would be set up with the JVM, it would attach to the IDE, and it would hit breakpoints that are set.
Some things I noticed:
runtimeType
field even though it's definitely right per the latest skaffold docs:runtimeType
is specified as jvm
, the plugin is attempting to install python debug support:
...waiting for init container install-python-debug-support to start
Thank you for the report! We are reproducing and checking the scenarios you described and we'll get back with the results as soon as we are done.
@tinnkm @anthonyalayo we are still investigating, in the meanwhile, could you please try using the latest version of skaffold (https://github.com/GoogleContainerTools/skaffold/releases/tag/v2.5.1) using custom dependencies - you need to go to Settings/Preferences > Tools > Google Cloud Code > Dependencies
and use custom dependencies for this test, skaffold and any kubectl you have on your system.
Another question: are you using the latest Cloud Code version (23.5.2)?
Let us know if this fixes/changes the problem for you, thank you.
@ivanporty
I tried using the latest skaffold, and the latest plugin, both didn't work on Intellij 2023.X. The only thing that worked was to switch to IntelliJ 2022.3.X release. Now I'm currently using that as a workaround.
@ivanporty
I tried using the latest skaffold, and the latest plugin, both didn't work on Intellij 2023.X. The only thing that worked was to switch to IntelliJ 2022.3.X release. Now I'm currently using that as a workaround.
@anthonyalayo could you please get us your IDE logs (Help -> Show Log In ...), idea.log
, for the IDE / plugin combination that doesn't work? Thank you!
@tinnkm We see this in your logs, it looks like skaffold is having issues accessing the image and preparing it for debug, are you sure Cloud Code / your system is fully authenticated?
Error retrieving image manifest for harbor.devops.com/platform/gateway:a929192-dirty@sha256:aef65c29b6c98c2a3fe2f02ba7a06cb62a4db9652890800995a3264b721c3664: Get "https://harbor.devops.com/v2/": x509: certificate signed by unknown authority; Get "https://harbor.devops.com/v2": x509: certificate signed by unknown authority
skipping probe rewrite on "": not configured for debugging
no debug transformation for: service/gateway
no debug transformation for: ingress.networking.k8s.io/gateway
@ivanporty Cloud Code version is 23.5.2-222,and i alse saw the issues. I configured insecureRegistries and insecure in my skaffold.yaml, but it doesn't seem to work. And strangely, although the x509 error is reported, my application can still be deployed to kubenates normally,And, my harbor can query the image of this build。
Reference in
@ivanporty I found that this problem is caused by my harbor. When using http to access harbor, it will be forced to jump to https, so it causes x509 error. I set nginx.ingress.kubernetes.io/ssl-redirect: 'false' and ingress. kubernetes.io/ssl-redirect: 'false', it can be debug normally
I use cloud code on kubernate to debug a java appliciton,can't not auto attach a remote debug window
Expected Behavior
can auto attach a remote debug window
Actual Behavior
the plugin is runing, but can't attach a debug
Additional Information
Configuration
Manifests
Dockerfile
RUN mkdir -p /app/
WORKDIR /app
COPY deployment/start.sh /app/ COPY ./gateway-server/target/gateway-server-0.0.1-SNAPSHOT.jar /app/
RUN chmod 755 -R /app/
expose 8080
ENTRYPOINT ["/app/start.sh"]
skaffold
debug log