netbirdio / netbird

Connect your devices into a single secure private WireGuard®-based mesh network with SSO/MFA and simple access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
9.81k stars 426 forks source link

Slow or intermittent connection on Android #2158

Open JonathanHohimer opened 1 week ago

JonathanHohimer commented 1 week ago

Describe the problem

Slow or intermittent connection.

To Reproduce

Steps to reproduce the behavior:

  1. Connect to Netbird
  2. Try accessing resource.
  3. Resource attempts to load and stops multiple times after finally loading.

Expected behavior

Resource to load without issues.

Are you using NetBird Cloud?

I've tried this on both selfhosted and managed.

NetBird version

Android version 0.0.23

NetBird status -d output:

N/A

Screenshots

N/A

Additional context

I don't have this issue on my iPhone connected to the same Netbird network.

I'm using a Pixel 7 Pro running Android 14.

Attached redacted log. netbird-1718764251475.log.redacted.txt

pascal-fischer commented 1 week ago

Hi @JonathanHohimer,

I don't see a clear indicator of why this happens. The permission-denied errors or the signal disconnects might be. We released a new version that should handle the interface handling better. Could you download and test this version and send new logs if the issue persists? Thanks.

RockSolidBrawler commented 1 week ago

I'm having some similar issue at least since a couple of weeks. The "download speed" ist extremly slow. Like 100kbit/s while upload is as expected. It's leading to an extremely slow connection or even timeouts. Tested in multiple networks (wifi an mobile data). No problems with "plain wireguard".

I got an Pixel 6a with Android 14. On another Android Tablet (Lenovo) no Problems. Maybe some Google Pixel specific issue?

Netbird Screenshot_20240620-151020

"Plain wireguard" Screenshot_20240620-151119

Edit: issue still occurs in 0.28

JonathanHohimer commented 1 week ago

@pascal-fischer

netbird-1718891876523.log.redacted.txt

This is from the debug apk on 0.28.

purepani commented 1 week ago

I'm using a pixel 6 and have noticed similarly slow behavior netbird-1718987482120.log.txt

bc547 commented 1 week ago

Also similar behaviour here on a pixel 6 with android 14: unusable slow connection to other netbird peers since a while.

JonathanHohimer commented 1 week ago

Strangely enough, I also have a pixel 5a on android 14 and this doesn't happen. Maybe only affects pixels after the 5?

DalaMicke commented 1 week ago

I am also experiencing this problem. I have a Samsung Galaxy S22 with Andriod 14. The download speed is very slow when I am using NetBird

I also have a Galaxy S10 with Android 12, and with that phone everything works as it should. The speed is normal.

So for me, if I'm using a phone with Android 14, the download speed is really slow. If I use a phone with Android 12, the speed is OK

RockSolidBrawler commented 1 week ago

At first it was ok with Android 14. So maybe some of the latest security patches?

purepani commented 1 week ago

This has been happening for me basically since I installed the app a long time ago, so it's possible that code that was originally on pixels has been pushed to general android in the android 14

JonathanHohimer commented 4 days ago

Update: I've wiped my pixel7pro and installed the latest Lineage OS and I still have the same issue. So I'm not sure what it could be. :(

otaconix commented 3 days ago

Not sure this helps, but I have a few things to add:

  1. It doesn't necessarily happen with every peer.
  2. Depending on the connection my phone is on, a connection to a peer may be absolutely fine, or slow as molasses. Meaning: I could be having a fine experience connecting to peer X on WiFi, but then have a very slow connection to X when on mobile data, or vice-versa.
  3. As far as I can tell, it doesn't seem to be impacted by whether the peer connection is "relayed" or "P2P" (I checked by doing netbird status -d --filter-by-names android-peer-name on the host I'm connecting to). At first I thought it might, because the first time this happened to me was when I was on mobile data, so I thought it could have something to do with my TURN servers.
OminousLama commented 1 hour ago

I also see this issue. No problems at all on iOS, Linux or Windows devices as far as i can tell, but on Android traffic is unbearably slow and basically unusable.