PubSub grpc configuration error
See original GitHub issueHello. I’m using PubSub 0.20.0-beta but I have this problem since few versions. I’m using it with spring boot with Tomcat and deploying to kubernetes on compute engine with COS image.
When trying to push message I get error “Jetty ALPN/NPN has not been properly configured”. I have tried to use Jetty but I got the same error. What’s weird, locally it’s ok and everything is working.
I saw there is #2039 where upgrade of grpc lib is mentioned but there is no separate issue for this error.
2017-06-24T16:20:34.20659867Z java.lang.IllegalArgumentException: Jetty ALPN/NPN has not been properly configured.
2017-06-24T16:20:34.206602706Z at io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:174) ~[grpc-netty-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.20660692Z at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:151) ~[grpc-netty-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206610273Z at io.grpc.netty.GrpcSslContexts.configure(GrpcSslContexts.java:139) ~[grpc-netty-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206613683Z at io.grpc.netty.GrpcSslContexts.forClient(GrpcSslContexts.java:109) ~[grpc-netty-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206617344Z at io.grpc.netty.NettyChannelBuilder.createProtocolNegotiatorByType(NettyChannelBuilder.java:335) ~[grpc-netty-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206620776Z at io.grpc.netty.NettyChannelBuilder.createProtocolNegotiator(NettyChannelBuilder.java:308) ~[grpc-netty-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206624331Z at io.grpc.netty.NettyChannelBuilder$NettyTransportFactory$DynamicNettyTransportParams.getProtocolNegotiator(NettyChannelBuilder.java:499) ~[grpc-netty-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206627826Z at io.grpc.netty.NettyChannelBuilder$NettyTransportFactory.newClientTransport(NettyChannelBuilder.java:448) ~[grpc-netty-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206632384Z at io.grpc.internal.CallCredentialsApplyingTransportFactory.newClientTransport(CallCredentialsApplyingTransportFactory.java:61) ~[grpc-core-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.20663599Z at io.grpc.internal.InternalSubchannel.startNewTransport(InternalSubchannel.java:209) ~[grpc-core-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206639526Z at io.grpc.internal.InternalSubchannel.obtainActiveTransport(InternalSubchannel.java:186) ~[grpc-core-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206658614Z at io.grpc.internal.ManagedChannelImpl$SubchannelImplImpl.obtainActiveTransport(ManagedChannelImpl.java:806) ~[grpc-core-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.20666273Z at io.grpc.internal.GrpcUtil.getTransportFromPickResult(GrpcUtil.java:568) ~[grpc-core-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206666037Z at io.grpc.internal.DelayedClientTransport.reprocess(DelayedClientTransport.java:296) ~[grpc-core-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206669031Z at io.grpc.internal.ManagedChannelImpl$LbHelperImpl$5.run(ManagedChannelImpl.java:724) ~[grpc-core-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206672086Z at io.grpc.internal.ChannelExecutor.drain(ChannelExecutor.java:87) ~[grpc-core-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206675044Z at io.grpc.internal.ManagedChannelImpl$LbHelperImpl.runSerialized(ManagedChannelImpl.java:715) [grpc-core-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206678244Z at io.grpc.internal.ManagedChannelImpl$NameResolverListenerImpl.onUpdate(ManagedChannelImpl.java:752) [grpc-core-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.20668125Z at io.grpc.internal.DnsNameResolver$1.run(DnsNameResolver.java:174) [grpc-core-1.2.0.jar!/:1.2.0]
2017-06-24T16:20:34.206684289Z at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_111-internal]
2017-06-24T16:20:34.206687236Z at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_111-internal]
2017-06-24T16:20:34.206690707Z at java.lang.Thread.run(Thread.java:745) [na:1.8.0_111-internal]
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error Codes | Cloud Pub/Sub Documentation
Error HTTP Code Description
UNAUTHENTICATED 401 The client is not authenticated properly.
UNAVAILABLE 503 The service was unable to process a request.
Read more >Unable to Publish Message to Pub/Sub due to error ... - GitHub
If possible, provide a recipe for reproducing the error. No functional channel service provider found. Try adding a dependency on the grpc- ...
Read more >GRPC Permission denied on Google Pub/Sub [ERROR 7]
I would like to publish message to a topic on Google Cloud pubsub. But I get a Error: 7 ...
Read more >Google.PubSub.V1 .NET Proxy Related Error for Publish ...
Problem you have encountered: NET Nuget Package Google. PubSub. V1 behind a proxy for version 3.0 and 3.1 and attempting to PublisherClient -> ......
Read more >PubSub gRPC certificate issue - Google Groups
Hi everyone,. I am a newbie in pubsub gRPC, I do have several questions, if you don't mind answering them: a. Just clarifying...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found problem and solution. For docker I’m using openjdk:8u131-jre-alpine and to make grpc working you need to install libc6-compat
I am running into same issue on mac, spring boot with jetty container. is there a solution ?