syncthing-lite icon indicating copy to clipboard operation
syncthing-lite copied to clipboard

Can't connect to any devices. IOE: Operation not permitted

Open ilya-epifanov opened this issue 6 years ago • 4 comments

Samsung Galaxy S8 (Android 9, Syncthing Lite v?):

LocalDiscoveryHandler.sendAnnounceMessage
LocalDiscoveryUtil.sendAnnounceMessage
interface: name:wlan0 (wlan0)
address: /192.168.178.18/24 [/192.168.178.255]
broadcast address: /192.168.178.255

net.syncthing.a.c.c.a: java.io.IOException: Operation not permitted
	at net.syncthing.a.d.a.h.a(LocalDiscoveryUtil.kt:134)
	at net.syncthing.a.d.a.e$a.c_(LocalDiscoveryHandler.kt:39)
	at a.c.b.a.a.b(ContinuationImpl.kt:32)
	at kotlinx.coroutines.az$a.a(Dispatched.kt:235)
	at kotlinx.coroutines.aw.run(Dispatched.kt:81)
	at kotlinx.coroutines.c.i.run(Tasks.kt:94)
	at kotlinx.coroutines.c.a.a(CoroutineScheduler.kt:586)
	at kotlinx.coroutines.c.a.a(CoroutineScheduler.kt:60)
	at kotlinx.coroutines.c.a$b.run(CoroutineScheduler.kt:732)
Caused by: java.io.IOException: Operation not permitted
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:696)
	at net.syncthing.a.d.a.h.a(LocalDiscoveryUtil.kt:127)
	... 8 more

Google Pixel 4 (Android 10, Syncthing Lite 0.3.12):

LocalDiscoveryHandler.sendAnnounceMessage
LocalDiscoveryUtil.sendAnnounceMessage
interface: name:wlan0 (wlan0)
address: /192.168.1.41/24 [/192.168.1.255]
broadcast address: /192.168.1.255

net.syncthing.a.c.c.a: java.io.IOException: sendto failed: EPERM (Operation not permitted)
	at net.syncthing.a.d.a.h.a(LocalDiscoveryUtil.kt:134)
	at net.syncthing.a.d.a.e$a.c_(LocalDiscoveryHandler.kt:39)
	at a.c.b.a.a.b(ContinuationImpl.kt:32)
	at kotlinx.coroutines.az$a.a(Dispatched.kt:235)
	at kotlinx.coroutines.aw.run(Dispatched.kt:81)
	at kotlinx.coroutines.c.i.run(Tasks.kt:94)
	at kotlinx.coroutines.c.a.a(CoroutineScheduler.kt:586)
	at kotlinx.coroutines.c.a.a(CoroutineScheduler.kt:60)
	at kotlinx.coroutines.c.a$b.run(CoroutineScheduler.kt:732)
Caused by: java.io.IOException: sendto failed: EPERM (Operation not permitted)
	at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:590)
	at libcore.io.IoBridge.sendto(IoBridge.java:558)
	at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:125)
	at java.net.DatagramSocket.send(DatagramSocket.java:721)
	at net.syncthing.a.d.a.h.a(LocalDiscoveryUtil.kt:127)
	... 8 more
Caused by: android.system.ErrnoException: sendto failed: EPERM (Operation not permitted)
	at libcore.io.Linux.sendtoBytes(Native Method)
	at libcore.io.Linux.sendto(Linux.java:233)
	at libcore.io.ForwardingOs.sendto(ForwardingOs.java:194)
	at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:366)
	at libcore.io.ForwardingOs.sendto(ForwardingOs.java:194)
	at libcore.io.IoBridge.sendto(IoBridge.java:556)
	... 11 more

ilya-epifanov avatar Apr 14 '19 21:04 ilya-epifanov

Same here. It doesnt work at all.

zoj613 avatar Apr 18 '19 21:04 zoj613

Anything specific? Device model? Android version?

l-jonas avatar Apr 19 '19 05:04 l-jonas

Happens on: Pixel 4, Android 10 Samsung Galaxy S8, Android 9 (?)

ilya-epifanov avatar Jan 13 '20 10:01 ilya-epifanov

It also seems to be interfering with global discovery, as it happens very very slowly.

ilya-epifanov avatar Jan 13 '20 10:01 ilya-epifanov