# Android frozen syncs

**URL:** https://forum.syncthing.net/t/android-frozen-syncs/741
**Category:** Android
**Created:** [August 20, 2014, 4:55pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741 "2014-08-20T16:55:02Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![kahun](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@kahun](https://forum.syncthing.net/u/kahun)
#### Post date: [August 20, 2014, 4:55pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/1 "2014-08-20T16:55:02Z")

</div>

I outlined the actual issue under

> [@Frozen syncs, still not done in 2 days (mobileA-desktopA-mobileB)](https://forum.syncthing.net/t/frozen-syncs-still-not-done-in-2-days-mobilea-desktopa-mobileb/738):
>
> Hi I have 3 devices one being a desktop and the rest are android cyanogen mod on 4.4.4 (arm7). I started sync between these devices, all seem to be able see eachother. I also got an initial sync done (mobile to desktop). I then added bunch of more files and folders on mobile. Then I added the second mobile (2nd sees the desktop directly). Now my sync has been stuck on mobiles for 2 days, not much moving is happening. The desktop seems to have the initial file number alright (but is still try…

The main issue is that the mobile clients starts syncing then they stop syncing even though it says “syncing %80” for almost 2 days (and for that node it says %30 for a while on the other node which is a desktop). The responsible nodes seems connected. So it is not a connection issue as far as I can tell

I want to provide specific details-logs on the mobiles. I hope the logs below are helpful

sys log

> **[Legobet88 \> Daftar Link Agen Situs Bet88 Slot Gacor Online Terpercaya...](https://mcgeadystownpub.com/)**
>
> Legobet88 merupakan penyedia layanan link alternatif daftar bet88 slot login serta memiliki situs slot gacor RTP terbaik dan terpercaya di Indonesia 2024.

mainlog

> **[Legobet88 \> Daftar Link Agen Situs Bet88 Slot Gacor Online Terpercaya...](https://mcgeadystownpub.com/)**
>
> Legobet88 merupakan penyedia layanan link alternatif daftar bet88 slot login serta memiliki situs slot gacor RTP terbaik dan terpercaya di Indonesia 2024.

event log

> **[Legobet88 \> Daftar Link Agen Situs Bet88 Slot Gacor Online Terpercaya...](https://mcgeadystownpub.com/)**
>
> Legobet88 merupakan penyedia layanan link alternatif daftar bet88 slot login serta memiliki situs slot gacor RTP terbaik dan terpercaya di Indonesia 2024.

---

<div class="post-metadata">

### Author: ![kahun](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@kahun](https://forum.syncthing.net/u/kahun)
#### Post date: [August 20, 2014, 6:12pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/2 "2014-08-20T18:12:05Z")

</div>

It seems to me like the Android ST syncs about 100 files than stop syncing while pretending that it is syncing. I am using 0.4.8

---

<div class="post-metadata">

### Author: ![Nutomic](https://forum.syncthing.net/user_avatar/forum.syncthing.net/nutomic/32/270_2.png) [@Nutomic](https://forum.syncthing.net/u/Nutomic)
#### Post date: [August 20, 2014, 11:28pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/3 "2014-08-20T23:28:29Z")

</div>

Could you check if the web GUI on Android says anything unusual? The native GUI isn’t working perfectly atm.

---

<div class="post-metadata">

### Author: ![kahun](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@kahun](https://forum.syncthing.net/u/kahun)
#### Post date: [August 21, 2014, 1:19am UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/4 "2014-08-21T01:19:09Z")

</div>

@Nutomic

The web GUi shows the same, it pretends that it is syncing. So far it is tiny steps.

Have you checked the logs I pasted here? Do you see anything weird there?

Also could compression be the culprit here?

---

<div class="post-metadata">

### Author: ![Nutomic](https://forum.syncthing.net/user_avatar/forum.syncthing.net/nutomic/32/270_2.png) [@Nutomic](https://forum.syncthing.net/u/Nutomic)
#### Post date: [August 21, 2014, 10:56am UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/5 "2014-08-21T10:56:49Z")

</div>

@calmh Another bug apparently 😉

---

<div class="post-metadata">

### Author: ![stas2k](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/s/f17d59/32.png) [@stas2k](https://forum.syncthing.net/u/stas2k)
#### Post date: [August 21, 2014, 12:17pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/6 "2014-08-21T12:17:53Z")

</div>

I have the same issue. Small repo(45MB) containing photos syncs fine. But the repository having 9.1 GB stops at around 9GB and syncs forever. I even see incoming traffic into Android. Let me know how I can send you more debug info.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 26, 2014, 5:59pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/7 "2014-08-26T17:59:20Z")

</div>

Needs logs. “Syncs forever” sounds like something is failing when it writes files to disk.

---

<div class="post-metadata">

### Author: ![kahun](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@kahun](https://forum.syncthing.net/u/kahun)
#### Post date: [August 26, 2014, 6:31pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/8 "2014-08-26T18:31:12Z")

</div>

Well hope this log helps

both of my devices sitting there doing nothing, same with the server(desktop node)

Here is what the main node (desktop says ) says about the shared repo which seems wrong to me

Global Repository 2061 items, ~3.27 GiB Local Repository 1965 items, ~2.75 GiB Out Of Sync 1509 items, ~2.78 GiB

one of the android node says, global 2056 local 2046

the other android global 1970 local 1970

I/ActivityManager( 1465): Start proc com.nutomic.syncthingandroid for broadcast com.nutomic.syncthingandroid/.syncthing.BatteryReceiver: pid=2031 uid=10295 gids={50295, 1028, 1015, 3003} D/ActivityThread( 2031): handleBindApplication:com.nutomic.syncthingandroid I/SyncthingService( 2031): Web GUI will be available at [http://127.0.0.1:8080](http://127.0.0.1:8080) W/PostTask( 2031): at com.nutomic.syncthingandroid.syncthing.PostTask.doInBackground(PostTask.java:44) W/PostTask( 2031): at com.nutomic.syncthingandroid.syncthing.PostTask.doInBackground(PostTask.java:17) W/PostTask( 2031): at android.os.AsyncTask$2.call(AsyncTask.java:288) W/PostTask( 2031): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231) D/BluetoothTethering( 1465): CMD\_CHANNEL\_HALF\_CONNECTED: com.android.internal.util.AsyncChannel@43266558 I/SyncthingNativeCode( 2031): [2JOJA] 18:15:29 INFO: syncthing v0.9.7 (go1.3.1 linux-arm android) felix@T420 2014-08-23 08:52:12 UTC I/SyncthingNativeCode( 2031): [2JOJA] 18:15:29 INFO: My ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx I/SyncthingNativeCode( 2031): [2JOJA] 18:15:29 INFO: Starting web GUI on [http://127.0.0.1:8080/](http://127.0.0.1:8080/) I/SyncthingService( 2031): Web GUI has come online at [http://127.0.0.1:8080](http://127.0.0.1:8080) I/RestApi ( 2031): Syncthing version is v0.9.7 I/SyncthingNativeCode( 2031): [2JOJA] 18:15:32 INFO: Performing initial repository scan I/SyncthingNativeCode( 2031): [2JOJA] 18:15:37 INFO: No UPnP gateway detected I/SyncthingNativeCode( 2031): [2JOJA] 18:15:37 INFO: Starting local discovery announcements I/SyncthingNativeCode( 2031): [2JOJA] 18:15:37 INFO: Starting global discovery announcements I/SyncthingNativeCode( 2031): [2JOJA] 18:15:37 OK: Ready to synchronize camera~1 (read only; no external updates accepted) I/SyncthingNativeCode( 2031): [2JOJA] 18:15:37 OK: Ready to synchronize xxxxx (read-write) I/SyncthingNativeCode( 2031): [2JOJA] 18:15:37 INFO: Node xxxxxxxxxxxxxxxxxxx is “localhost” at [dynamic] I/SyncthingNativeCode( 2031): [2JOJA] 18:15:37 INFO: Node xxxxxxxxxxxxxxxxxxx is “xxxxx” at [dynamic] I/ActivityManager( 1465): START u0 {cmp=com.nutomic.syncthingandroid/.activities.MainActivity bnds=[64,848][956,976]} from pid -1 W/ActivityManager( 1465): startActivity called from non-Activity context; forcing Intent.FLAG\_ACTIVITY\_NEW\_TASK for: Intent { cmp=com.nutomic.syncthingandroid/.activities.MainActivity bnds=[64,848][956,976] } I/ActivityManager( 1465): Displayed com.nutomic.syncthingandroid/.activities.MainActivity: +483ms I/Timeline( 1465): Timeline: Activity\_windows\_visible id: ActivityRecord{42de05e8 u0 com.nutomic.syncthingandroid/.activities.MainActivity t2} time:285117 I/SyncthingNativeCode( 2031): [2JOJA] 18:15:41 INFO: Established secure connection to xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx at 192.168.4.101:48553-65.26.70.231:41304 I/SyncthingNativeCode( 2031): [2JOJA] 18:15:42 INFO: Node xxxxxxxxxxxxxxxxxxx client is "syncthing v0.9.7" I/SyncthingNativeCode( 2031): [2JOJA] 18:15:42 INFO: Node xxxxxxxxxxxxxxxxxxx hostname is "xxxxxxx" I/Timeline( 2031): Timeline: Activity\_launch\_request id:com.nutomic.syncthingandroid time:309909 I/ActivityManager( 1465): START u0 {cmp=com.nutomic.syncthingandroid/.activities.WebGuiActivity} from pid 2031 I/ActivityManager( 1465): Displayed com.nutomic.syncthingandroid/.activities.WebGuiActivity: +343ms I/Timeline( 1465): Timeline: Activity\_windows\_visible id: ActivityRecord{435fe140 u0 com.nutomic.syncthingandroid/.activities.WebGuiActivity t2} time:310602

I/SyncthingNativeCode( 2031): [2JOJA] 18:19:24 INFO: chtimes: error: “xxxxxxx” / “DELETE.tar”: chtimes /storage/emulated/0/XXXXXXXX/.syncthing.DELETE.tar: operation not permitted I/Timeline( 1465): Timeline: Activity\_windows\_visible id: ActivityRecord{435fe140 u0 com.nutomic.syncthingandroid/.activities.WebGuiActivity t2} time:564064 I/Timeline( 1465): Timeline: Activity\_windows\_visible id: ActivityRecord{435fe140 u0 com.nutomic.syncthingandroid/.activities.WebGuiActivity t2} time:694747

---

<div class="post-metadata">

### Author: ![kahun](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@kahun](https://forum.syncthing.net/u/kahun)
#### Post date: [August 26, 2014, 6:41pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/9 "2014-08-26T18:41:08Z")

</div>

One other issue I see if I restart ST android is this line below.

I/SyncthingNativeCode( 2031): [2JOJA] 18:36:24 INFO: chtimes: error: “xxxxxx” / “NEX/DCIM/.thumbnails/1407904472310.jpg”: chtimes /storage/emulated/0/\_MOBILE\_SYNC/NEX/DCIM/.thumbnails/xxxxx.jpg: operation not permitted

I have alot of these. Not sure if such permission thing would cause actual errors.

Also ST And supposed to ignore permissions (how I set on all devices).

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 26, 2014, 6:48pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/10 "2014-08-26T18:48:12Z")

</div>

Soo, some clues here…

> [@kahun](#):
>
> Here is what the main node (desktop says ) says about the shared repo which seems wrong to me
> 
> Global Repository 2061 items, ~3.27 GiB Local Repository 1965 items, ~2.75 GiB Out Of Sync 1509 items, ~2.78 GiB

Is this configured as a “master repository”, possibly?

> [@kahun](#):
>
> 18:19:24 INFO: chtimes: error: “xxxxxxx” / “DELETE.tar”: chtimes /storage/emulated/0/XXXXXXXX/.syncthing.DELETE.tar: operation not permitted

The phone doesn’t allow syncthing to change the modification timestamp of the file. Hence, next time it scans for changes, it’ll consider the file modified because the timestamp is newer than it should be. It’ll announce that change to it’s peers, which will sync the file back (with no changed blocks) or, in case you have them set as “master repo”, remain out of sync.

In general, something is crappy about that setup on the phone; if syncthing can’t set modification times, syncing won’t work properly.

---

<div class="post-metadata">

### Author: ![kahun](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@kahun](https://forum.syncthing.net/u/kahun)
#### Post date: [August 26, 2014, 6:53pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/11 "2014-08-26T18:53:09Z")

</div>

@calmh

Yes the workstation is the middle man between those 2 android devices.

I am using Cyanogenmod11. It is not something I messed up. I myself created the master repo folder. I do not know why ST having hard time changing modif times. Please bear in mind that most sdcards on Android devices are fat32 compatible I think.

The system is able to change modif times. So I doubt that its a problem with the filesystem. Other programs read and write to the sdcard all the time as well and clearly they are able to modify time stamps. At least that is how it seems to be overall.

Here is the permissions for the sync folder drwxrwx— 14 root sdcard\_r 4.0K Aug 26 13:19 \_XXXXXX\_SYNC

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 26, 2014, 7:00pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/12 "2014-08-26T19:00:09Z")

</div>

Yeah, I don’t know. Apparently there’s been some changes lately in how Android manages storage and it’s all [piped through a userspace daemon](http://www.doubleencore.com/2014/03/android-external-storage/); perhaps that screws something up when you’re not using the official API:s? I don’t think I can help here, not being an Android developer or having an Android device. 😕

---

<div class="post-metadata">

### Author: ![kahun](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@kahun](https://forum.syncthing.net/u/kahun)
#### Post date: [August 26, 2014, 7:04pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/13 "2014-08-26T19:04:19Z")

</div>

@calmh

it sounds like that is a good article for @Nutomic to read ☹ It explains it fine though not touching the modif time changes.

Maybe it is failing because you are using a straight linux style time modification? I do not know how it is done with ST on android.

It might also help to ask this guy about these chtimes issues on Google+. I do not have such accounts.

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 26, 2014, 7:09pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/14 "2014-08-26T19:09:48Z")

</div>

Actually, this seems to be by design;

[https://code.google.com/p/android/issues/detail?id=1699](https://code.google.com/p/android/issues/detail?id=1699)[https://code.google.com/p/android/issues/detail?id=1992](https://code.google.com/p/android/issues/detail?id=1992)

![](https://forum.syncthing.net/uploads/default/324/d93b19bdd4208979.gif)

Making syncthing work correctly on these kinds of devices would require some compatibility code, perhaps we can record the modification time that we got when we wrote the file and remember that as the “unchanged” time.

---

<div class="post-metadata">

### Author: ![Nutomic](https://forum.syncthing.net/user_avatar/forum.syncthing.net/nutomic/32/270_2.png) [@Nutomic](https://forum.syncthing.net/u/Nutomic)
#### Post date: [August 26, 2014, 7:22pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/15 "2014-08-26T19:22:41Z")

</div>

Looks like this is also the cause for [#69](https://github.com/Nutomic/syncthing-android/issues/69).

Can we do something like the “ignore permissions” setting? Or maybe as an environment variable or flag?

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 26, 2014, 7:24pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/16 "2014-08-26T19:24:29Z")

</div>

(#69) Looks like it, yeah. (ignore permissions) No, not that easily since the modification time is the primary indicator of whether the file has changed. Not impossible, obviously, but requires some hacking and testing.

---

<div class="post-metadata">

### Author: ![kahun](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@kahun](https://forum.syncthing.net/u/kahun)
#### Post date: [August 26, 2014, 8:26pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/17 "2014-08-26T20:26:05Z")

</div>

Also it still tries to chmod on Android. Again I have thousands of these. I thought that the permissions were ignored on Android. Or some another operation is failing at the same time.

I/SyncthingNativeCode( 2031): [2JOJA] 20:20:58 INFO: mkdir: error: “xxxxx” / “data/xxxx/xxxx - xxx Words \_ xxxx.db-journal”: chmod /storage/emulated/0/xxxxxx/data/xxxxxx: operation not permitted

---

<div class="post-metadata">

### Author: ![calmh](https://forum.syncthing.net/user_avatar/forum.syncthing.net/calmh/32/15311_2.png) [@calmh](https://forum.syncthing.net/u/calmh)
#### Post date: [August 26, 2014, 8:35pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/18 "2014-08-26T20:35:30Z")

</div>

They are ignored if the “Ignore permissions” checkbox is checked, among the repo settings.

---

<div class="post-metadata">

### Author: ![kahun](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@kahun](https://forum.syncthing.net/u/kahun)
#### Post date: [August 26, 2014, 8:48pm UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/19 "2014-08-26T20:48:13Z")

</div>

@calmh

That is what I am saying, it is already checked and ignoring permissions is a permanent behavior with android version.

---

<div class="post-metadata">

### Author: ![kahun](https://forum.syncthing.net/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@kahun](https://forum.syncthing.net/u/kahun)
#### Post date: [August 27, 2014, 2:47am UTC](https://forum.syncthing.net/t/android-frozen-syncs/741/20 "2014-08-27T02:47:21Z")

</div>

One thing is interesting that ST creates “dot” files and tries to chmod them and then it fails to chmod them. Is the dot files part of the process at all?

I delete them but they come back in a flash.

“data/xxxx/x.db-journal”: chmod /storage/emulated/0/xxxx/data/xx: operation not permitted

See in this line it says not permitted, actually the file is not there but there is a “dot” file version of it.

I/SyncthingNativeCode( 964): [2JOJA] 02:45:09 INFO: mkdir: error: “NameOfTheSync” / “data/xxx/xxxx.1-5.txt.db-journal”: chmod /storage/emulated/0/xxxx/data/xxxxx: operation not permitted

I do not even know why it is failing to create a folder since it seems to me that it is trying to deal with a file (xxx.1-5.txt.db-journal) rather than a folder .

Pretty convoluted situation

[Next page](https://forum.syncthing.net/t/android-frozen-syncs/741.md?page=2)
