Syncthing android (Fork) suddenly not connecting for the past two weeks.

I’ve noticed that, after working fine for a couple of years, my syncthing isn’t connecting between my phone and my desktop, and hasn’t been since the 15th of October.

The device IDs are still correct, and both devices see the local network for other software. None of the front ends show any issues except that the other device hasn’t been seen 'round these parts lately.

I suspect it’s the android app (syncthing-fork) as the desktop has no odd logs but the app does. However, there are no error logs, only warning logs. Below is what happens when I force start ignoring run conditions.

16:54:07I/SyncthingService shouldRun decision changed to true according to configured run conditions.

16:54:07I/Util     runShellCommandGetOutput: Exited with code 1

16:54:07I/SyncthingService onServiceStateChange: from DISABLED to STARTING

16:54:07I/SyncthingService Web GUI will be available at https://127.0.0.1:8384

16:54:07I/PollWebGuiAvailableTask Starting to poll for web gui availability

16:54:08W/libsyncthingnat type=1400 audit(0.0:6074): avc:  denied  { search } for  name="tests" dev="dm-15" ino=105 scontext=u:r:untrusted_app:s0:c153,c256,c512,c768 tcontext=u:object_r:shell_test_data_file:s0 tclass=dir permissive=0 bug=b/305600845 app=com.github.catfriend1.syncthingfork

16:54:08W/libsyncthingnat type=1400 audit(0.0:6075): avc:  denied  { search } for  name="tests" dev="dm-15" ino=105 scontext=u:r:untrusted_app:s0:c153,c256,c512,c768 tcontext=u:object_r:shell_test_data_file:s0 tclass=dir permissive=0 bug=b/305600845 app=com.github.catfriend1.syncthingfork

16:54:08W/libsyncthingnat type=1400 audit(0.0:6076): avc:  denied  { search } for  name="tests" dev="dm-15" ino=105 scontext=u:r:untrusted_app:s0:c153,c256,c512,c768 tcontext=u:object_r:shell_test_data_file:s0 tclass=dir permissive=0 bug=b/305600845 app=com.github.catfriend1.syncthingfork

16:54:08W/libsyncthingnat type=1400 audit(0.0:6077): avc:  denied  { search } for  name="tests" dev="dm-15" ino=105 scontext=u:r:untrusted_app:s0:c153,c256,c512,c768 tcontext=u:object_r:shell_test_data_file:s0 tclass=dir permissive=0 bug=b/305600845 app=com.github.catfriend1.syncthingfork

16:54:08W/libsyncthingnat type=1400 audit(0.0:6078): avc:  denied  { search } for  name="/" dev="cgroup" ino=1 scontext=u:r:untrusted_app:s0:c153,c256,c512,c768 tcontext=u:object_r:cgroup:s0 tclass=dir permissive=0 app=com.github.catfriend1.syncthingfork

16:54:08W/libsyncthingnat type=1400 audit(0.0:6079): avc:  denied  { read } for  name="somaxconn" dev="proc" ino=2508698 scontext=u:r:untrusted_app:s0:c153,c256,c512,c768 tcontext=u:object_r:proc_net:s0 tclass=file permissive=0 app=com.github.catfriend1.syncthingfork

16:54:08I/SyncthingService Web GUI has come online at https://127.0.0.1:8384

16:54:08W/libsyncthingnat type=1400 audit(0.0:6080): avc:  denied  { search } for  name="/" dev="cgroup2" ino=1 scontext=u:r:untrusted_app:s0:c153,c256,c512,c768 tcontext=u:object_r:cgroup_v2:s0 tclass=dir permissive=0 app=com.github.catfriend1.syncthingfork

16:54:08W/libsyncthingnat type=1400 audit(0.0:6081): avc:  denied  { read } for  name="osrelease" dev="proc" ino=2502678 scontext=u:r:untrusted_app:s0:c153,c256,c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0 app=com.github.catfriend1.syncthingfork

16:54:08I/SyncthingService onServiceStateChange: from STARTING to ACTIVE

I noticed that the f-droid repo had an updated version on the 13th, and I don’t always get updates immediately, so that may be related?

What could be happening?

The “avc: denied” is the key here, it means the Access Vector Cache on your phone is denying access to those resources. I don’t run Android so this is as far as I can help you, but this appears to be an Android security issue.

2 Likes

Ah, thankyou, that was enough to figure out the issue. Turns out, when my Android (Graphene OS) updated to Andoid 17, Syncthing now requires explicit permission to talk to other devices on the LAN. But because I always opened the app via the persistent notification, I always bypassed the message that asked me for this additional permission. This has now been solved. :sparkles:

3 Likes

Fantastic!