Development discussion of WireGuard
 help / color / mirror / Atom feed
* Android Client Won't Disconnect Tunnel
@ 2021-05-05  7:47 tomt
  2021-05-06  8:55 ` Jason A. Donenfeld
  0 siblings, 1 reply; 2+ messages in thread
From: tomt @ 2021-05-05  7:47 UTC (permalink / raw)
  To: wireguard

Hi,

I've installed WireGuard for Android v1.0.20210211 ( Go userspace 
backend v0.0.20201118 ) on to my Huawei P30 running Android 10 and my 
Lenovo Tab4 8Plus running Lineage OS Android 10

Both clients can connect to my OPNsense firewall via WireGuard and 
traffic routes as expected. OPNsense shows the connection in List 
Configuration and Handshake. When the VPN is active the 'key' is shown 
in the status bar and all is working fine.

When I disable the client using the slider the 'key' disappears from the 
statue bar, but OPNsense still shows the connection as active and data 
can still route from the phone or tablet via the VPN, even though I've 
disabled it.

If I check the client log, they both contain entries similar to the 
following:

05-05 08:32:08.180 31602 31629 I WireGuard/GoBackend: Bringing tunnel 
RemoteAccesss DOWN
05-05 08:32:08.181 31602 31629 D WireGuard/GoBackend/RemoteAccesss: 
Device closing
05-05 08:32:08.182 31602 32422 D WireGuard/GoBackend/RemoteAccesss: 
Routine: event worker - stopped
05-05 08:32:08.186 31602 31602 E WireGuard/ObservableTunnel: 
java.lang.NullPointerException: Attempt to invoke virtual method 
'java.lang.String[] java.lang.String.split(java.lang.String)' on a null 
object reference
05-05 08:32:08.186 31602 31602 E WireGuard/ObservableTunnel: 	at 
com.wireguard.android.backend.GoBackend.getStatistics(GoBackend.java:4)
05-05 08:32:08.186 31602 31602 E WireGuard/ObservableTunnel: 	at 
com.wireguard.android.model.TunnelManager$getTunnelStatistics$2$1.invokeSuspend(TunnelManager.kt:5)
05-05 08:32:08.186 31602 31602 E WireGuard/ObservableTunnel: 	at 
kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:3)
05-05 08:32:08.186 31602 31602 E WireGuard/ObservableTunnel: 	at 
kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:15)
05-05 08:32:08.186 31602 31602 E WireGuard/ObservableTunnel: 	at 
kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:1)
05-05 08:32:08.186 31602 31602 E WireGuard/ObservableTunnel: 	at 
kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:11)
05-05 08:32:08.227 31602 32198 D WireGuard/GoBackend/RemoteAccesss: 
Routine: TUN reader - stopped
05-05 08:32:08.228 31602 32198 D WireGuard/GoBackend/RemoteAccesss: 
Routine: receive incoming IPv4 - stopped
05-05 08:32:08.228 31602 32199 D WireGuard/GoBackend/RemoteAccesss: 
Routine: receive incoming IPv6 - stopped
05-05 08:32:08.228 31602 31629 D WireGuard/GoBackend/RemoteAccesss: 
peer(MqVe…+q28) - Stopping...
05-05 08:32:08.228 31602 32198 D WireGuard/GoBackend/RemoteAccesss: 
peer(MqVe…+q28) - Routine: sequential receiver - stopped
05-05 08:32:08.229 31602 32198 D WireGuard/GoBackend/RemoteAccesss: 
peer(MqVe…+q28) - Routine: sequential sender - stopped
05-05 08:32:08.229 31602 31629 D WireGuard/GoBackend/RemoteAccesss: 
Device closed
05-05 08:32:08.229 31602 32422 D WireGuard/GoBackend/RemoteAccesss: 
Routine: decryption worker - stopped

Would that affect the disconnecting of the tunnel ?
Has anyone had this issue with the client not actually disconnecting ?
Any way to get this resolved ?

Thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Android Client Won't Disconnect Tunnel
  2021-05-05  7:47 Android Client Won't Disconnect Tunnel tomt
@ 2021-05-06  8:55 ` Jason A. Donenfeld
  0 siblings, 0 replies; 2+ messages in thread
From: Jason A. Donenfeld @ 2021-05-06  8:55 UTC (permalink / raw)
  To: tomt; +Cc: WireGuard mailing list

https://git.zx2c4.com/wireguard-android/commit/?id=d6a8e9d4dc8d6b5eb5b2e0341ef6e43aeb9c5c49
This should fix the exception in that log. The actual shutdown hang
will hopefully be solved by the bump we pushed yesterday (still
waiting Play Store approval).

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-06  8:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-05  7:47 Android Client Won't Disconnect Tunnel tomt
2021-05-06  8:55 ` Jason A. Donenfeld

Development discussion of WireGuard

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/wireguard/0 wireguard/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 wireguard wireguard/ http://inbox.vuxu.org/wireguard \
		wireguard@lists.zx2c4.com
	public-inbox-index wireguard

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.wireguard


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git