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

dev.morling.kccli.service.KafkaConnectException: Request timed out #65

Open
sekhar-ops opened this issue Aug 30, 2021 · 16 comments
Open
Labels
good first issue Good for newcomers

Comments

@sekhar-ops
Copy link

sekhar-ops commented Aug 30, 2021

Hi Team,

Am getting timeouts for kcctl describe connector * or kcctl get connectors
Let me know how I can increase timeout

@sekhar-ops sekhar-ops changed the title In MAC kcctl binary is not working dev.morling.kccli.service.KafkaConnectException: Request timed out Aug 30, 2021
@gunnarmorling
Copy link
Collaborator

Can you actually reach Kafka Connect from the machine where you're running kcctl? There should be no need for increasing any time-outs really, any requests should be fast and short-lived.

@sekhar-ops
Copy link
Author

Thanks for the reply

With INS environment , I can see get connectors working fine
But describe connector giving below error
javax.ws.rs.ProcessingException: RESTEASY003145: Unable to find a MessageBodyReader of content-type / and type class dev.morling.kccli.service.ErrorResponse
at org.jboss.resteasy.core.interception.jaxrs.ClientReaderInterceptorContext.throwReaderNotFound(ClientReaderInterceptorContext.java:47)
at org.jboss.resteasy.core.interception.jaxrs.AbstractReaderInterceptorContext.getReader(AbstractReaderInterceptorContext.java:133)
at org.jboss.resteasy.core.interception.jaxrs.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:75)
at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readFrom(ClientResponse.java:217)
at org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:90)
at org.jboss.resteasy.specimpl.AbstractBuiltResponse.readEntity(AbstractBuiltResponse.java:262)
at dev.morling.kccli.service.KafkaConnectResponseExceptionMapper.toThrowable(KafkaConnectResponseExceptionMapper.java:26)
at dev.morling.kccli.service.KafkaConnectResponseExceptionMapper.toThrowable(KafkaConnectResponseExceptionMapper.java:22)
at org.jboss.resteasy.microprofile.client.ExceptionMapping$HandlerException.mapException(ExceptionMapping.java:41)
at org.jboss.resteasy.microprofile.client.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:153)
at com.sun.proxy.$Proxy219.getConnectorTopics(Unknown Source)
at dev.morling.kccli.command.DescribeConnectorCommand.call(DescribeConnectorCommand.java:81)
at dev.morling.kccli.command.DescribeConnectorCommand.call(DescribeConnectorCommand.java:49)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at io.quarkus.picocli.runtime.PicocliRunner$EventExecutionStrategy.execute(PicocliRunner.java:26)
at picocli.CommandLine.execute(CommandLine.java:2078)
at io.quarkus.picocli.runtime.PicocliRunner.run(PicocliRunner.java:39)
at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:123)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:66)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:42)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:30)

@sekhar-ops
Copy link
Author

From Kafka, I received below logs

[2021-08-31 13:43:59,973] ERROR Uncaught exception in REST call to /connectors//topics (org.apache.kafka.connect.runtime.rest.errors.ConnectExceptionMapper:61)
javax.ws.rs.NotFoundException: HTTP 404 Not Found
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:250)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244)
at org.glassfish.jersey.internal.Errors.process(Errors.java:292)
at org.glassfish.jersey.internal.Errors.process(Errors.java:274)
at org.glassfish.jersey.internal.Errors.process(Errors.java:244)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:232)

@gunnarmorling
Copy link
Collaborator

Which version of Kafka Connect are you running? Something old by any chance?

@sekhar-ops
Copy link
Author

I use below version
kafka_2.12-2.4.0.tgz
"version":"2.4.0",

@gunnarmorling
Copy link
Collaborator

gunnarmorling commented Sep 1, 2021

Ok, thanks, I can reproduce this now. The topics endpoint doesn't exist in Kafka Connect 2.4 yet. So we should make sure to only query it if it actually is supported by the backend version in question. @SiddiqueAhmad, @karim-elngr, perhaps something interesting for one of you to pick up, if you're still interested?

@SiddiqueAhmad
Copy link
Contributor

I am interested just taking up new job so kind of occupancy. I will do it asap.

@gunnarmorling
Copy link
Collaborator

Congrats on the new job, @SiddiqueAhmad! And no worries, I thought I'd ping you just in case.

@gunnarmorling gunnarmorling added the good first issue Good for newcomers label Sep 3, 2021
@sekhar-ops
Copy link
Author

Hi @gunnarmorling

just wanted to know If above issue fixed ....

@gunnarmorling
Copy link
Collaborator

gunnarmorling commented Sep 17, 2021 via email

@sekhar-ops
Copy link
Author

sekhar-ops commented Sep 17, 2021

Oh i see, Thanks @gunnarmorling for the quick update , Haa sorry to say am not at all coding guy so far...
I just work on Infra side tools like ansible , jenkins
Anyway For now, using Jenkins we written pipeline using HTTP REST API directly with all needed functionality's like create/update,delete, pause,status,resume so for my business use-case covered as the Kafka-Connect UI came under commercial use recently for large set of kafka servers

SiddiqueAhmad added a commit to SiddiqueAhmad/kcctl that referenced this issue Sep 27, 2021
@SiddiqueAhmad
Copy link
Contributor

@gunnarmorling thanks for your wishes, and today I got time so sent the pull request, please review and comment

SiddiqueAhmad added a commit to SiddiqueAhmad/kcctl that referenced this issue Sep 27, 2021
@gunnarmorling
Copy link
Collaborator

Applied. Thx a lot, @SiddiqueAhmad!

@sekhar-ops
Copy link
Author

Thank you @SiddiqueAhmad @gunnarmorling , let me test all use-cases again , Have a good day

@sekhar-ops
Copy link
Author

$ kcctl get connectors
javax.ws.rs.ProcessingException: RESTEASY003145: Unable to find a MessageBodyReader of content-type text/html and type class dev.morling.kccli.service.ErrorResponse
at org.jboss.resteasy.core.interception.jaxrs.ClientReaderInterceptorContext.throwReaderNotFound(ClientReaderInterceptorContext.java:47)
at org.jboss.resteasy.core.interception.jaxrs.AbstractReaderInterceptorContext.getReader(AbstractReaderInterceptorContext.java:133)
at org.jboss.resteasy.core.interception.jaxrs.AbstractReaderInterceptorContext.proceed(AbstractReaderInterceptorContext.java:75)
at org.jboss.resteasy.client.jaxrs.internal.ClientResponse.readFrom(ClientResponse.java:217)
at org.jboss.resteasy.specimpl.BuiltResponse.readEntity(BuiltResponse.java:90)
at org.jboss.resteasy.specimpl.AbstractBuiltResponse.readEntity(AbstractBuiltResponse.java:262)
at dev.morling.kccli.service.KafkaConnectResponseExceptionMapper.toThrowable(KafkaConnectResponseExceptionMapper.java:26)
at dev.morling.kccli.service.KafkaConnectResponseExceptionMapper.toThrowable(KafkaConnectResponseExceptionMapper.java:22)
at org.jboss.resteasy.microprofile.client.ExceptionMapping$HandlerException.mapException(ExceptionMapping.java:41)
at org.jboss.resteasy.microprofile.client.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:153)
at com.sun.proxy.$Proxy219.getConnectorStatus(Unknown Source)
at dev.morling.kccli.command.GetConnectorsCommand.run(GetConnectorsCommand.java:55)
at picocli.CommandLine.executeUserObject(CommandLine.java:1939)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at io.quarkus.picocli.runtime.PicocliRunner$EventExecutionStrategy.execute(PicocliRunner.java:26)
at picocli.CommandLine.execute(CommandLine.java:2078)
at io.quarkus.picocli.runtime.PicocliRunner.run(PicocliRunner.java:39)
at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:123)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:66)
at io.quarkus.runtime.Quarkus.run(Quarkus.java:42)
at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:30)

@sekhar-ops
Copy link
Author

sekhar-ops commented Sep 29, 2021

Am seeing above error for get connectors & describe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants