Skip to content
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

Facing issue while launching the task #6103

Open
yogesh-jha-miq opened this issue Jan 24, 2025 · 0 comments
Open

Facing issue while launching the task #6103

yogesh-jha-miq opened this issue Jan 24, 2025 · 0 comments
Labels
status/need-triage Team needs to triage and take a first look

Comments

@yogesh-jha-miq
Copy link

Description:
We are getting kubernates Client exception while we click on launch task button.
Request:- https://{hosturl}/tasks/executions/launch?name=appnexus-comp-task-admeta&properties=app.admeta.spring.batch.jdbc.table-prefix=BATCH_, app.admeta.spring.cloud.deployer.bootVersion=2, app.admeta.spring.cloud.task.initialize-enabled=false, app.admeta.spring.cloud.task.schemaTarget=boot2, app.admeta.spring.cloud.task.tablePrefix=TASK_, spring.cloud.dataflow.task.platformName=default

Response:- ```
{
"_embedded": {
"errors": [
{
"message": "An error has occurred.",
"logref": "KubernetesClientException",
"_links": {
"self": {
"href": "/"
}
}
}
]
}
}


Logs:-

<img width="1171" alt="Image" src="https://github.com/user-attachments/assets/6c64d254-ca70-4cf6-a3be-0be81c00546b" />

2025-01-24 07:49:48.605 ERROR 1 --- [nio-8080-exec-4] o.s.c.d.s.k.KubernetesTaskLauncher : An error has occurred.
io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.
at io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:129)
at io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:122)
at io.fabric8.kubernetes.client.dsl.base.CreateOnlyResourceOperation.create(CreateOnlyResourceOperation.java:63)
at org.springframework.cloud.deployer.spi.kubernetes.KubernetesTaskLauncher.launch(KubernetesTaskLauncher.java:284)
at org.springframework.cloud.deployer.spi.kubernetes.KubernetesTaskLauncher.launch(KubernetesTaskLauncher.java:124)
at org.springframework.cloud.dataflow.server.service.impl.DefaultTaskExecutionService.executeTask(DefaultTaskExecutionService.java:513)
at org.springframework.cloud.dataflow.server.service.impl.DefaultTaskExecutionService$$FastClassBySpringCGLIB$$422cda43.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:792)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:762)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)


**Release versions:**
We are using Bitnami image tag:- bitnami/spring-cloud-dataflow:2.11.5-debian-12-r2


**Screenshots:**

<img width="1171" alt="Image" src="https://github.com/user-attachments/assets/5c168e14-c833-47ae-9688-6e56edf30197" />

**Additional context:**
Earlier it was working fine with these configs

server:
metadata:
annotations: <iam/role>
image:
registry: docker.io
repository: bitnami/spring-cloud-dataflow
tag: 2.11.5-debian-12-r2
digest: ""
pullPolicy: IfNotPresent
pullSecrets: []
debug: false
composedTaskRunner:
image:
registry: docker.io
repository: bitnami/spring-cloud-dataflow-composed-task-runner
tag: 2.11.5-debian-12-r2
digest: ""
configuration:
streamingEnabled: false
batchEnabled: true
accountName: spring-cloud-dataflow-preprod
trustK8sCerts: false
extraEnvVars:
name: 'SPRING_CLOUD_DATAFLOW_TASK_PLATFORM_KUBERNETES_ACCOUNTS_DEFAULT_MAXIMUM_CONCURRENT_TASKS'
value: 50
extraEnvVars:
- name: 'SPRING_CLOUD_DATAFLOW_TASK_PLATFORM_KUBERNETES_ACCOUNTS_DEFAULT_PODANNOTATIONS'
value:
- name: 'SPRING_CLOUD_DATAFLOW_TASK_PLATFORM_KUBERNETES_ACCOUNTS_DEFAULT_JOBANNOTATIONS'
value:
- name: 'SPRING_CLOUD_DATAFLOW_TASK_PLATFORM_KUBERNETES_ACCOUNTS_DEFAULT_MAXIMUM_CONCURRENT_TASKS'
value: "100"
- name: 'SPRING_CLOUD_DATAFLOW_TASK_PLATFORM_KUBERNETES_ACCOUNTS_DEFAULT_IMAGEPULLPOLICY'
value: "Always"
podSecurityContext:
enabled: true
fsGroupChangePolicy: Always
fsGroup: 0
containerPorts:
http: 8080
jdwp: 5005
replicaCount: 1
updateStrategy:
type: RollingUpdate
startupProbe:
enabled: false
initialDelaySeconds: 120
timeoutSeconds: 1
periodSeconds: 20
failureThreshold: 6
successThreshold: 1
livenessProbe:
enabled: true
initialDelaySeconds: 120
timeoutSeconds: 1
periodSeconds: 20
failureThreshold: 6
successThreshold: 1
readinessProbe:
enabled: true
initialDelaySeconds: 120
timeoutSeconds: 1
periodSeconds: 20
failureThreshold: 6
successThreshold: 1
networkPolicy:
enabled: false
allowExternal: false
allowExternalEgress: false
service:
type: ClusterIP
ports:
http: 80
ingress:
enabled: true
path: /*
pathType: ImplementationSpecific
hostname:
annotations:
alb.ingress.kubernetes.io/certificate-arn: “<“arn:aws>”
alb.ingress.kubernetes.io/group.name: campaign-management
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/ssl-policy:
alb.ingress.kubernetes.io/target-type: ip
tls: false
certManager: false
ingressClassName:
initContainers: []
sidecars: []
pdb:
create: false
minAvailable: ""
maxUnavailable: ""
skipper:
enabled: false
rabbitmq:
enabled: false
mariadb:
enabled: false
metrics:
enabled: false
pdb:
create: false
externalDatabase:
driver: org.mariadb.jdbc.Driver
deployer:
podSecurityContext:
enabled: true
runAsUser: 0
fsGroup: 0
resourcesPreset: "xlarge"

@github-actions github-actions bot added the status/need-triage Team needs to triage and take a first look label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/need-triage Team needs to triage and take a first look
Projects
None yet
Development

No branches or pull requests

1 participant