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

Unable to resolve host firestore.googleapis.com (due to grpc?) #6741

Open
RohovDmytro opened this issue Mar 6, 2025 · 6 comments
Open

Unable to resolve host firestore.googleapis.com (due to grpc?) #6741

RohovDmytro opened this issue Mar 6, 2025 · 6 comments
Assignees

Comments

@RohovDmytro
Copy link

[READ] Step 1: Are you in the right place?

[REQUIRED] Step 2: Describe your environment

For the last 1.5 I have a problem that creates errors in logs.

Unable to resolve host firestore.googleapis.com

[REQUIRED] Step 3: Describe the problem

The error happns when the app goes background.

Steps to reproduce:

Open app, press "Home".

Relevant

I've noticed we are using the 1.62.2 version of grpc. Version 1.65.0

services: restore //services:binarylog bazel target (grpc/grpc-java#11292) (grpc/grpc-java@d57f271). This fixes a regression introduced in 1.62.2

THis might be a relevant bug fix.

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@RohovDmytro
Copy link
Author

The logs:

(25.1.2) [WatchStream]: (58c753a) Stream closed with status: Status{code=UNAVAILABLE, description=Unable to resolve host firestore.googleapis.com, cause=java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
                                                                                                    	at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:222)
                                                                                                    	at io.grpc.internal.DnsNameResolver.doResolve(DnsNameResolver.java:281)
                                                                                                    	at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:318)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
                                                                                                    	at java.lang.Thread.run(Thread.java:1012)
                                                                                                    Caused by: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
                                                                                                    	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156)
                                                                                                    	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103)
                                                                                                    	at java.net.InetAddress.getAllByName(InetAddress.java:1152)
                                                                                                    	at io.grpc.internal.DnsNameResolver$JdkAddressResolver.resolveAddress(DnsNameResolver.java:642)
                                                                                                    	at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:218)
                                                                                                    	at io.grpc.internal.DnsNameResolver.doResolve(DnsNameResolver.java:281) 
                                                                                                    	at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:318) 
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) 
                                                                                                    	at java.lang.Thread.run(Thread.java:1012) 
                                                                                                    Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
                                                                                                    	at libcore.io.Linux.android_getaddrinfo(Native Method)
                                                                                                    	at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:133)
                                                                                                    	at libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:222)
                                                                                                    	at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:133)
                                                                                                    	at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135)
                                                                                                    	at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103) 
                                                                                                    	at java.net.InetAddress.getAllByName(InetAddress.java:1152) 
                                                                                                    	at io.grpc.internal.DnsNameResolver$JdkAddressResolver.resolveAddress(DnsNameResolver.java:642) 
                                                                                                    	at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:218) 
                                                                                                    	at io.grpc.internal.DnsNameResolver.doResolve(DnsNameResolver.java:281) 
                                                                                                    	at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:318) 
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
                                                                                                    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) 
                                                                                                    	at java.lang.Thread.run(Thread.java:1012) 
                                                                                                    }.

@RohovDmytro RohovDmytro changed the title Update grpc to resolve Unable to resolve host firestore.googleapis.com Unable to resolve host firestore.googleapis.com (due to grpc?) Mar 6, 2025
@lehcar09
Copy link
Contributor

lehcar09 commented Mar 6, 2025

Hi @RohovDmytro, thank you for reaching out and reporting the issue. I was able to reproduce the issue. Let me raise this to our engineers and see what we can do here. Thanks!

@wu-hui
Copy link
Contributor

wu-hui commented Mar 6, 2025

Hi @RohovDmytro

May I ask what makes you think this is the fix to the issue?

@RohovDmytro
Copy link
Author

@wu-hui That's the best guess. It took me a while to investigate without any good solutions. The closest is grpc. I was checking the changelog and there were mentions of stability of connection while going background (1.65.* version).

@wu-hui wu-hui self-assigned this Mar 10, 2025
@wu-hui
Copy link
Contributor

wu-hui commented Mar 10, 2025

I have created a PR to upgrade: #6744

Would you give it a try to see if this fixes your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants