# After updating on Android to 1.19.0 I cannot sync anymore

**URL:** https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977
**Category:** Support
**Created:** [February 4, 2022, 10:38am UTC](https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977 "2022-02-04T10:38:18Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![pvvoup](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@pvvoup](https://forum.syncthing.net/u/pvvoup)
#### Post date: [February 4, 2022, 10:38am UTC](https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977/1 "2022-02-04T10:38:18Z")

</div>

I just updated to 1.19.0 on my Pixel 3 XL with Android 12.

I waited for the rescan to be completed, but now my other machine just shows as _Disconnected_.

In the logs I just see one thing appearing over and over again:

```
02-04 11:30:46.298 W/libsyncthing.so( 5666): type=1400 audit(0.0:540): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c225,c256,c512,c768 tcontext=u:r:untrusted_app:s0:c225,c256,c512,c768 tclass=netlink_route_socket permissive=0 bug=b/155595000 app=com.nutomic.syncthingandroid

```

But when searching for this and after reading [this](https://forum.syncthing.net/t/avc-denied-bind-for-scontext-uuntrusted-app/17012) I guess that doesn’t really matter as the lookup of other device should still works even with this message, right?

Where else could I search what is causing this issue?

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [February 4, 2022, 10:42am UTC](https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977/2 "2022-02-04T10:42:53Z")

</div>

I mean that might mean that Syncthing can’t announce it’s own address anymore, but the discovery server should still be able to get the address from the announcement.

Anyway screenshots of the remote devices from both sides are a good way to start debugging this.

---

<div class="post-metadata">

### Author: ![pvvoup](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@pvvoup](https://forum.syncthing.net/u/pvvoup)
#### Post date: [February 6, 2022, 10:34pm UTC](https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977/3 "2022-02-06T22:34:32Z")

</div>

@imsodin Thanks for your quick reply!

Here the screenshot from my Android device:

 ![A1](https://forum-uploads.syncthingcdn.net/original/2X/9/96407e28f0914d55cf6ac16dd4ac9ea41dc7e0d9.png)

And here from my Linux machine:

 ![A2](https://forum-uploads.syncthingcdn.net/original/2X/4/41fe9d7b9dfeac6e9ff6b9264330f7abd23795a3.png)

On my Linux machine I have following iptables config (which I guess now after looking at the screenshots might play a role?). However, with the version \< 1.19.0 I didn’t have any problems with this config though. Did anything in 1.19.0 change, so that I need to adjust my iptables? Or do I still need to have a look somewhere else?

```plaintext
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT ACCEPT
-N TCP
-N UDP
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m conntrack --ctstate INVALID -j DROP
-A INPUT -p icmp -m icmp --icmp-type 8 -m conntrack --ctstate NEW -j ACCEPT
-A INPUT -p udp -m conntrack --ctstate NEW -j UDP
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m conntrack --ctstate NEW -j TCP
-A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
-A INPUT -p tcp -j REJECT --reject-with tcp-reset
-A INPUT -j REJECT --reject-with icmp-proto-unreachable
-A INPUT -p tcp -m tcp --dport 22000 -j ACCEPT
-A INPUT -p udp -m udp --dport 22000 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21027 -j ACCEPT
-A INPUT -p udp -m udp --dport 21027 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22067 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22070 -j ACCEPT

```

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [February 7, 2022, 7:44am UTC](https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977/4 "2022-02-07T07:44:31Z")

</div>

The iptable rules look ok (22000 allowed). Are the ips/ports listed on the android correct? If they are, there still has to be some kind of firewall problem, as it’s correctly discovering the linux machine but still getting connection refused errors.

As for what changed: Likely discovery announcements on android are mostly broken with the upgrade due to new android limitations.

---

<div class="post-metadata">

### Author: ![pvvoup](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@pvvoup](https://forum.syncthing.net/u/pvvoup)
#### Post date: [February 7, 2022, 9:40am UTC](https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977/5 "2022-02-07T09:40:56Z")

</div>

> [@imsodin](#):
>
> As for what changed: Likely discovery announcements on android are mostly broken with the upgrade due to new android limitations.

Okay, this explains why it was working before.

> [@imsodin](#):
>
> Are the ips/ports listed on the android correct?

IPs yes! Ports, I guess yes!? See:

 ![Screenshot 2022-02-07 at 10-34-54 xps Syncthing](https://forum-uploads.syncthingcdn.net/original/2X/3/343a82df012628bd83a3394c0cf2e0dd89473cb8.png)

But you are right, it’s an issue with my iptables config. When allowing everything then syncthing works.

```plaintext
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT

```

But I’m not sure why it is not working with my config in my previous post.

---

<div class="post-metadata">

### Author: ![pvvoup](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@pvvoup](https://forum.syncthing.net/u/pvvoup)
#### Post date: [February 7, 2022, 9:58am UTC](https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977/6 "2022-02-07T09:58:44Z")

</div>

Okay switching lines was necessary. These lines need to come after accepting `22000`.

```
-A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
-A INPUT -p tcp -j REJECT --reject-with tcp-reset
-A INPUT -j REJECT --reject-with icmp-proto-unreachable

```

And it doesn’t seem to be necessary to allow following ports: 21027, 22067, 22070

So finally this iptables config works:

```
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT ACCEPT
-N TCP
-N UDP
-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m conntrack --ctstate INVALID -j DROP
-A INPUT -p icmp -m icmp --icmp-type 8 -m conntrack --ctstate NEW -j ACCEPT
-A INPUT -p udp -m conntrack --ctstate NEW -j UDP
-A INPUT -p tcp -m tcp --tcp-flags FIN,SYN,RST,ACK SYN -m conntrack --ctstate NEW -j TCP
-A INPUT -p tcp -m tcp --dport 22000 -j ACCEPT
-A INPUT -p udp -m udp --dport 22000 -j ACCEPT
-A INPUT -p udp -j REJECT --reject-with icmp-port-unreachable
-A INPUT -p tcp -j REJECT --reject-with tcp-reset
-A INPUT -j REJECT --reject-with icmp-proto-unreachable

```

@imsodin thanks for you patience 😅

---

<div class="post-metadata">

### Author: ![imsodin](https://forum.syncthing.net/user_avatar/forum.syncthing.net/imsodin/32/3317_2.png) [@imsodin](https://forum.syncthing.net/u/imsodin)
#### Post date: [February 7, 2022, 10:00am UTC](https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977/7 "2022-02-07T10:00:01Z")

</div>

21027 is local discovery, which you have enabled in Syncthing, so would make sense to enable it in firewall too. See the docs for all ports and explanations: [Firewall Setup — Syncthing v1 documentation](https://docs.syncthing.net/users/firewall.html#local-firewall)

---

<div class="post-metadata">

### Author: ![pvvoup](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@pvvoup](https://forum.syncthing.net/u/pvvoup)
#### Post date: [February 7, 2022, 10:06am UTC](https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977/8 "2022-02-07T10:06:01Z")

</div>

Perfect, thanks for the hint! I will add that.

---

<div class="post-metadata">

### Author: ![dkidawayogbo](https://forum.syncthing.net/user_avatar/forum.syncthing.net/dkidawayogbo/32/19386_2.png) [@dkidawayogbo](https://forum.syncthing.net/u/dkidawayogbo)
#### Post date: [February 7, 2022, 3:10pm UTC](https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977/9 "2022-02-07T15:10:48Z")

</div>

I just wanted to add a quick note that I’m running into the same problem with my GrapheneOS Android app and Windows 10 Pro (x64) connection: updated to 1.19.0 on my phone and the two devices don’t see each other any more. I’ll run through the above and see if anything helps.

EDIT: I don’t see what’s wrong on my system. But, since I’m using GrapheneOS/Windows 10, let me start my own thread on this.

---

<div class="post-metadata">

### Author: ![system](https://forum-uploads.syncthingcdn.net/original/2X/0/0b50e0a202b22ae6a67190759e8c868805b8ed9f.png) [@system](https://forum.syncthing.net/u/system)
#### Post date: [March 9, 2022, 3:10pm UTC](https://forum.syncthing.net/t/after-updating-on-android-to-1-19-0-i-cannot-sync-anymore/17977/10 "2022-03-09T15:10:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
