iPhone app loose connection #1529

Open
opened 2025-11-20 05:32:18 -05:00 by saavagebueno · 5 comments
Owner

Originally created by @ecwio on GitHub (Dec 30, 2024).

Describe the problem

iPhone is connected then goes to sleep.
wake iphone and it is not connected anymore; all network is gone.
app says disconnected, click reconnect and it does not work.
close the app and reopen it; still cannot connect
Server says peer is connected but it is not..
in the app I tap multiple times fast on the connect button and somehow get a "disconnecting"
iphone disconnects then I can reconnect.

To Reproduce
connect and let phone go to sleep
does not happen all the time.

Expected behavior
connection still alive

Are you using NetBird Cloud?
no, self hosted

NetBird version
0.3.5.1
iphone version is dev 0.35.0-dev

not sure how I can provide logs from the iphone app ? Or I get them from the server ? Im using the install script from the doc

Originally created by @ecwio on GitHub (Dec 30, 2024). **Describe the problem** iPhone is connected then goes to sleep. wake iphone and it is not connected anymore; all network is gone. app says disconnected, click reconnect and it does not work. close the app and reopen it; still cannot connect Server says peer is connected but it is not.. in the app I tap multiple times fast on the connect button and somehow get a "disconnecting" iphone disconnects then I can reconnect. **To Reproduce** connect and let phone go to sleep does not happen all the time. **Expected behavior** connection still alive **Are you using NetBird Cloud?** no, self hosted **NetBird version** 0.3.5.1 iphone version is dev 0.35.0-dev not sure how I can provide logs from the iphone app ? Or I get them from the server ? Im using the install script from the doc
saavagebueno added the triage-needed label 2025-11-20 05:32:18 -05:00
Author
Owner

@jiangslee commented on GitHub (Jan 1, 2025):

https://github.com/netbirdio/netbird/issues/1899#issuecomment-2428117870

How many peers you have?

I currently limit the number of peers that can connect to each other through policies to ensure that Netbird can be used temporarily under iOS.

@jiangslee commented on GitHub (Jan 1, 2025): https://github.com/netbirdio/netbird/issues/1899#issuecomment-2428117870 How many peers you have? I currently limit the number of peers that can connect to each other through policies to ensure that Netbird can be used temporarily under iOS.
Author
Owner

@ecwio commented on GitHub (Jan 1, 2025):

I have 7 peers total. It seems that the issue is much more prominent when using the new Networks feature for me.
Here is my testing so far.
Networks alone -> I would say not working; disconnects all the time when it manages to find the networks
Network Routes alone -> solid but still issues from time to time
both Network Routes and Networks -> seems same as previous; like Networks as no effect

@ecwio commented on GitHub (Jan 1, 2025): I have 7 peers total. It seems that the issue is much more prominent when using the new Networks feature for me. Here is my testing so far. Networks alone -> I would say not working; disconnects all the time when it manages to find the networks Network Routes alone -> solid but still issues from time to time both Network Routes and Networks -> seems same as previous; like Networks as no effect
Author
Owner

@jiangslee commented on GitHub (Jan 1, 2025):

https://github.com/netbirdio/netbird/issues/2340#issuecomment-2255726018

try to export the trace logs?

@jiangslee commented on GitHub (Jan 1, 2025): https://github.com/netbirdio/netbird/issues/2340#issuecomment-2255726018 try to export the trace logs?
Author
Owner

@carsten-re commented on GitHub (Jan 2, 2025):

Hi @jiangslee,
I'm encountering the same issue.
Netbird is running on 0.35.2 and iOS client is on latest 0.34.0.
I'll attach the trace logs from my device, there are several issues. One example:
2025-01-02T15:07:56Z ERRO client/internal/rosenpass/netbird_handler.go:73: Failed to get WireGuard device: file does not exist
2025-01-02T15:07:56Z DEBG client/internal/rosenpass/netbird_handler.go:61: Handshake expired

When the connection is not working, the App still shows, that it is "Connected".
netbird-log.txt

@carsten-re commented on GitHub (Jan 2, 2025): Hi @jiangslee, I'm encountering the same issue. Netbird is running on 0.35.2 and iOS client is on latest 0.34.0. I'll attach the trace logs from my device, there are several issues. One example: 2025-01-02T15:07:56Z ERRO client/internal/rosenpass/netbird_handler.go:73: Failed to get WireGuard device: file does not exist 2025-01-02T15:07:56Z DEBG client/internal/rosenpass/netbird_handler.go:61: Handshake expired When the connection is not working, the App still shows, that it is "Connected". [netbird-log.txt](https://github.com/user-attachments/files/18291944/netbird-log.txt)
Author
Owner

@oscarsmendez commented on GitHub (Mar 4, 2025):

Are you all using the iOS betas? I noticed my iPad using the public beta has no issues, meanwhile my iPhone with the developer beta is having the issues you're describing. (both ios 18.4)

@oscarsmendez commented on GitHub (Mar 4, 2025): Are you all using the iOS betas? I noticed my iPad using the public beta has no issues, meanwhile my iPhone with the developer beta is having the issues you're describing. (both ios 18.4)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#1529