question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad credentials file causes Pub/Sub topic creation to hang

See original GitHub issue

See: https://github.com/spring-cloud/spring-cloud-gcp/issues/962. I suspect that the root cause is in the client library.

Note that when the same credentials file is used to publish a message to a topic, an appropriate exception is thrown saying java.io.IOException: Error getting access token for service account and 401 Unauthorized.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jlheardcommented, Aug 29, 2018

This repeats over and over in the logs when running an Integration test after the key has been deleted:

15:28:04.944 [grpc-default-worker-ELG-1-6] DEBUG io.grpc.netty.shaded.io.netty.handler.ssl.SslHandler - [id: 0x464293d0, L:/172.21.104.17:50735 - R:spanner.googleapis.com/172.217.5.74:443] HANDSHAKEN: TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
15:28:04.944 [grpc-default-worker-ELG-1-6] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0x464293d0, L:/172.21.104.17:50735 - R:spanner.googleapis.com/172.217.5.74:443] OUTBOUND SETTINGS: ack=false settings={ENABLE_PUSH=0, MAX_CONCURRENT_STREAMS=0, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=32768}
15:28:04.944 [grpc-default-worker-ELG-1-6] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0x464293d0, L:/172.21.104.17:50735 - R:spanner.googleapis.com/172.217.5.74:443] OUTBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=983041
15:28:04.946 [grpc-default-worker-ELG-1-6] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0x464293d0, L:/172.21.104.17:50735 - R:spanner.googleapis.com/172.217.5.74:443] INBOUND SETTINGS: ack=false settings={MAX_CONCURRENT_STREAMS=100, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=16384}
15:28:04.946 [grpc-default-worker-ELG-1-6] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0x464293d0, L:/172.21.104.17:50735 - R:spanner.googleapis.com/172.217.5.74:443] OUTBOUND SETTINGS: ack=true
15:28:04.946 [grpc-default-worker-ELG-1-6] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0x464293d0, L:/172.21.104.17:50735 - R:spanner.googleapis.com/172.217.5.74:443] INBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=983041
15:28:05.011 [grpc-default-worker-ELG-1-6] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0x464293d0, L:/172.21.104.17:50735 - R:spanner.googleapis.com/172.217.5.74:443] INBOUND SETTINGS: ack=true
15:32:04.945 [grpc-default-worker-ELG-1-6] DEBUG io.grpc.netty.shaded.io.grpc.netty.NettyClientHandler - [id: 0x464293d0, L:/172.21.104.17:50735 - R:spanner.googleapis.com/172.217.5.74:443] INBOUND GO_AWAY: lastStreamId=0 errorCode=0 length=17 bytes=73657373696f6e5f74696d65645f6f7574
0reactions
dzoucommented, Nov 9, 2020

Earlier in the year I filed an issue to see if we can fix this problem: https://github.com/grpc/grpc-java/issues/6808

From what it looks like I don’t think the problem will be fixed due to certain technical reasons… I think we’ll just have to live with the 10-minute timeout.

Returning this to closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bad credentials file causes Pub/Sub topic creation to hang #962
Steps to reproduce: Create and download a GCP service account key (JSON file). Make sure the key is actually deleted in the Cloud...
Read more >
Troubleshooting | Cloud Pub/Sub Documentation
Publish operations fail with DEADLINE_EXCEEDED. This is likely caused by a client side bottleneck, such as insufficient service CPUs, bad thread health, or ......
Read more >
Error in trying to create a topic subscription in Google PubSub ...
I found the issue. I re-ran gcloud auth application-default login. and made sure that GOOGLE_APPLICATION_CREDENTIALS was pointed to the new ...
Read more >
Troubleshooting AWS IoT Greengrass V2
Use the troubleshooting information and solutions in this section to help resolve issues with AWS IoT Greengrass Version 2. Topics. View AWS IoT...
Read more >
Spring Framework on Google Cloud
Publish and subscribe to Google Cloud Pub/Sub topics ... The project ID specified in the JSON credentials file pointed by the GOOGLE_APPLICATION_CREDENTIALS ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found