-
Notifications
You must be signed in to change notification settings - Fork 70
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
ERROR: ERROR: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: Not Found #122
Comments
I have the same problem |
I have the same error. Any one can help ? |
@runzexia : Great, I change apiversion to apps/v1 and it resolved my problem. Many thanks ! |
Thank you so much. I have changed apiVersion in my deployment file as below: apiVersion: apps/v1 You saved my day. :-) |
getting this error when trying to deploy docker container in K8s cluster via jenkins.. Starting Kubernetes deployment |
? |
Hi All, I have changed my deployment to apps/v1 still facing the below issue. Starting Kubernetes deployment |
I am getting below error in Jenkins while deploying to kubernetes cluster:
Tried to deploy with below jenkins pipeline snippet:
Please suggest |
i have the same problem,did you had fix it? |
I think the error i am getting and you are getting are different. I am not getting SocketException. I am getting UnKnownHostException. |
Same issue. Please help. |
@kiranfegade121 Please help Still getting an error |
anybody got this fixed ? |
I am facing the similar issue, even if i use apps/v1 it is throwing the following error. Starting Kubernetes deployment Loading configuration: /var/lib/jenkins/workspace/test-pipe2/myweb.yaml ERROR: ERROR: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.models.V1Deployment; exception=Class not found: io.kubernetes.client.models.V1Deployment in 'reader', line 1, column 1:
hudson.remoting.ProxyException: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.models.V1Deployment; exception=Class not found: io.kubernetes.client.models.V1Deployment in 'reader', line 1, column 1:
Caused by: hudson.remoting.ProxyException: org.yaml.snakeyaml.error.YAMLException: Class not found: io.kubernetes.client.models.V1Deployment
Kubernetes deployment ended with HasError |
i fixed by add a slave on jenkins. Remember set the "# of executors:" to 0 to force it run with slave node. |
i still want to know what is wrong on master
…------------------ 原始邮件 ------------------
发件人: "iconstorage"<notifications@github.com>;
发送时间: 2020年7月7日(星期二) 上午8:55
收件人: "jenkinsci/kubernetes-cd-plugin"<kubernetes-cd-plugin@noreply.github.com>;
抄送: "枫"<409726418@qq.com>; "Comment"<comment@noreply.github.com>;
主题: Re: [jenkinsci/kubernetes-cd-plugin] ERROR: ERROR: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: Not Found (#122)
i fixed by add a slave on jenkins. Remember set the "# of executors:" to 0 to force it run with slave node.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I have the same issue on my cluster running v.1.18.3. Even running in a slave node i'm getting the same error message.
|
i also have similar problem , |
I also have similar problem |
@usernamecantbeXXX |
|
The issue may related to this kubernetes-client/java#874 |
@kranthi-123 jackson 降级后 仍然有问题, apiVersion: extensions/v1 |
没有 我正在试其他的版本看看怎么回事,jenkins的插件安装成功率特别迷惑 |
@usernamecantbeXXX 尝试修改default.json,可参考https://www.cnblogs.com/yoyoketang/p/12115569.html |
我试过感觉没啥区别哈哈哈 不改反而好一点~ |
@usernamecantbeXXX 我改之后,效果显著。jenkins编译项目这个问题,困扰了许久了,解决了还望告知下,谢谢! |
感觉这个好像是最近才有的 我的思路是退jenkins版本 但是插件版本不知道怎么退 或者找下别人打包好插件的docker镜像, |
对的,之前都没有。 |
I have the same problem running Kubernetes v1.18.3. I'm running Jenkins v2.235.1 and all my plugins are up to date. The workaround I've found for now is to downgrade Jackson 2 API to v2.10.3 and to downgrade Snakeyaml API to v1.26.2. If those 2 plugins are updated to their respective latest versions, the error message comes back. In order to force downgrade those 2 plugins, you can manually delete them from the plugins folder and upload the HPI files directly to Jenkins. Make sure you upload the correct versions as listed above. This is an ugly workaround, by no means this should be considered a "fix". |
RROR: ERROR: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Deployment; exception=Class not found: io.kubernetes.client.openapi.models.V1Deployment Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Deployment; exception=Class not found: io.kubernetes.client.openapi.models.V1Deployment
Caused by: org.yaml.snakeyaml.error.YAMLException: Class not found: io.kubernetes.client.openapi.models.V1Deployment CAUSE : Jackson 2 API VERSION 2.11.1 |
In my case, downgrading to Jackson 2 API version 2.11.0, didn't work. Same error.
Doing this, same error. Always launch Class not found exception. |
ERROR: ERROR: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: java.net.SocketException: 断开的管道 (Write failed) |
I had finally resolved this error on my case
Note: |
didn't work for me ( |
This workaround worked for me.Have downgraded all the plugins as recommanded. Only change I had to make was use git insted of github in in shared-library as Github-API Plugin had dependancy on higher Jackson API plugin version. |
For the same problem, Jenkins is deployed outside the cluster and configured through the cloud kubernetes plug-in. |
same
|
@willzhang downgrade plugin |
Hi all, its working until restart the jenkins service or jenkins server... |
Any other solution? because when I downgrade the plugins another 68 plugins need the most updated version |
I am facing the same issue, any updates guys? |
I got the same error as yours,have you resolved this problem? |
timeout , you should check your network
…------------------ 原始邮件 ------------------
发件人: "jenkinsci/kubernetes-cd-plugin" ***@***.***>;
发送时间: 2021年6月25日(星期五) 下午2:32
***@***.***>;
***@***.******@***.***>;
主题: Re: [jenkinsci/kubernetes-cd-plugin] ERROR: ERROR: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: Not Found (#122)
@kiranfegade121 Please help
i changed the apiVersion: apps/v1
Still getting an error
Same issue. Please help.
Loading configuration: /var/lib/jenkins/workspace/train-schedule_master/train-schedule-kube.yml
Api call failed with code 0, detailed message: null
ERROR: ERROR: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: java.net.SocketTimeoutException: connect timed out
hudson.remoting.ProxyException: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: java.net.SocketTimeoutException: connect timed out
I got the same error as yours,have you resolved this problem?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Starting Kubernetes deployment hudson.remoting.ProxyException: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Deployment; exception=Class not found: io.kubernetes.client.openapi.models.V1Deployment
Caused by: hudson.remoting.ProxyException: org.yaml.snakeyaml.error.YAMLException: Class not found: io.kubernetes.client.openapi.models.V1Deployment |
@pooja24n 我遇到同样的问题 请问你解决了吗 怎么解决的 |
插件版本匹配问题
…------------------ 原始邮件 ------------------
发件人: "jenkinsci/kubernetes-cd-plugin" ***@***.***>;
发送时间: 2021年8月18日(星期三) 晚上7:06
***@***.***>;
***@***.******@***.***>;
主题: Re: [jenkinsci/kubernetes-cd-plugin] ERROR: ERROR: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: Not Found (#122)
@pooja24n 我遇到同样的问题 请问你解决了吗 怎么解决的
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
插件版本匹配问题
…------------------ 原始邮件 ------------------
发件人: "jenkinsci/kubernetes-cd-plugin" ***@***.***>;
发送时间: 2021年7月30日(星期五) 晚上7:44
***@***.***>;
***@***.******@***.***>;
主题: Re: [jenkinsci/kubernetes-cd-plugin] ERROR: ERROR: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: Not Found (#122)
Starting Kubernetes deployment
Loading configuration: /var/lib/jenkins/workspace/spring-mango-docker-k8s/springBootMongo.yml
ERROR: ERROR: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Deployment; exception=Class not found: io.kubernetes.client.openapi.models.V1Deployment
in 'reader', line 1, column 1:
apiVersion: apps/v1
^
hudson.remoting.ProxyException: Can't construct a java object for tag:yaml.org,2002:io.kubernetes.client.openapi.models.V1Deployment; exception=Class not found: io.kubernetes.client.openapi.models.V1Deployment
in 'reader', line 1, column 1:
apiVersion: apps/v1
^
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:336) at org.yaml.snakeyaml.constructor.BaseConstructor.constructObjectNoCheck(BaseConstructor.java:230) at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:220) at io.kubernetes.client.util.Yaml$CustomConstructor.constructObject(Yaml.java:337) at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:174) at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:158) at org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:491) at org.yaml.snakeyaml.Yaml.loadAs(Yaml.java:456) at io.kubernetes.client.util.Yaml.loadAs(Yaml.java:224) at io.kubernetes.client.util.Yaml.modelMapper(Yaml.java:494) at io.kubernetes.client.util.Yaml.loadAll(Yaml.java:272) at com.microsoft.jenkins.kubernetes.wrapper.KubernetesClientWrapper.apply(KubernetesClientWrapper.java:236) at com.microsoft.jenkins.kubernetes.command.DeploymentCommand$DeploymentTask.doCall(DeploymentCommand.java:172) at com.microsoft.jenkins.kubernetes.command.DeploymentCommand$DeploymentTask.call(DeploymentCommand.java:124) at com.microsoft.jenkins.kubernetes.command.DeploymentCommand$DeploymentTask.call(DeploymentCommand.java:106) at hudson.FilePath.act(FilePath.java:1261) at com.microsoft.jenkins.kubernetes.command.DeploymentCommand.execute(DeploymentCommand.java:68) at com.microsoft.jenkins.kubernetes.command.DeploymentCommand.execute(DeploymentCommand.java:45) at com.microsoft.jenkins.azurecommons.command.CommandService.runCommand(CommandService.java:88) at com.microsoft.jenkins.azurecommons.command.CommandService.execute(CommandService.java:96) at com.microsoft.jenkins.azurecommons.command.CommandService.executeCommands(CommandService.java:75) at com.microsoft.jenkins.azurecommons.command.BaseCommandContext.executeCommands(BaseCommandContext.java:77) at com.microsoft.jenkins.kubernetes.KubernetesDeploy.perform(KubernetesDeploy.java:42) at com.microsoft.jenkins.azurecommons.command.SimpleBuildStepExecution.run(SimpleBuildStepExecution.java:54) at com.microsoft.jenkins.azurecommons.command.SimpleBuildStepExecution.run(SimpleBuildStepExecution.java:35) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
Caused by: hudson.remoting.ProxyException: org.yaml.snakeyaml.error.YAMLException: Class not found: io.kubernetes.client.openapi.models.V1Deployment
at org.yaml.snakeyaml.constructor.Constructor.getClassForNode(Constructor.java:669)
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.getConstructor(Constructor.java:323)
at org.yaml.snakeyaml.constructor.Constructor$ConstructYamlObject.construct(Constructor.java:332)
... 30 more
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: Kubernetes deployment ended with HasError
Finished: FAILURE
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
could some one help me in troubleshooting with below error [Pipeline] kubernetesDeploy |
On Jenkins helm chart with kubernetes-cd:2.3.0 plugin
The text was updated successfully, but these errors were encountered: