Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Error when publishing docker image to artifactory (jfrog).
Image is created in docker, push is failing.
[INFO]
--- maven-deploy-plugin:2
.8
.2
:deploy (default-deploy) @ routename ---[INFO]
Skipping artifact deployment[INFO]
[INFO]
--- kubernetes-maven-plugin:1
.0
.2
:push (push-image) @ routename ---[ERROR] Failed to parse the kubeconfig.
java.io.IOException: Cannot run program
"kubelogin"
: error=2
, No such file or directoryat java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071)
at io.fabric8.kubernetes.client.Config.loadFromKubeconfig(Config.java:598)
at io.fabric8.kubernetes.client.Config.tryKubeConfig(Config.java:499)
at io.fabric8.kubernetes.client.Config.autoConfigure(Config.java:236)
at io.fabric8.kubernetes.client.Config.<init>(Config.java:220)
at io.fabric8.kubernetes.client.ConfigBuilder.<init>(ConfigBuilder.java:16)
at io.fabric8.kubernetes.client.ConfigBuilder.<init>(ConfigBuilder.java:13)
at org.eclipse.jkube.kit.config.access.ClusterConfiguration.getConfig(ClusterConfiguration.java:62)
at org.eclipse.jkube.kit.config.access.ClusterAccess.createDefaultConfig(ClusterAccess.java:59)
at org.eclipse.jkube.kit.config.access.ClusterAccess.createKubernetesClient(ClusterAccess.java:51)
at org.eclipse.jkube.kit.config.access.ClusterAccess.isOpenShift(ClusterAccess.java:80)
at org.eclipse.jkube.kit.config.access.ClusterAccess.createDefaultClient(ClusterAccess.java:44)
at org.eclipse.jkube.kit.config.service.JKubeServiceHub.init(JKubeServiceHub.java:94)
at org.eclipse.jkube.kit.config.service.JKubeServiceHub.<init>(JKubeServiceHub.java:83)
at org.eclipse.jkube.kit.config.service.JKubeServiceHub$JKubeServiceHubBuilder.build(JKubeServiceHub.java:70)
at org.eclipse.jkube.maven.plugin.mojo.build.AbstractDockerMojo.execute(AbstractDockerMojo.java:438)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
Caused by: java.io.IOException: error=
2
, No such file or directoryat java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:340)
at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:271)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107)
...
38
moreHello,
Could you elaborate for us on what Talend version and patch level that this feature has worked previously? And what Talend version and patch are you currently using? Additionally, can you please share a few screenshots of the issue for further review?
Best regards
Sabrina
This feature stopped working when I manually installed kubectl and the az cli with brew. Not sure where in talent the kubectl version that comes with Talend is defined, as it may be picking up the new one.
Version: 8.0.1
Build id: R2023-01
OSX
Hello,
Does the job run successfully when ran in Studio? Can you please provide the .eclipse product file from the main Studio directory?
How to set up an environment variables on google kubernetes engine?
Best regards
Sabrina