Sleeping Syncthing (after some time running)

Hi everybody!

I’m using syncthing for relatively short period of time (2 weeks) and I’m experiencing a weird situation between a mac mini (macos yosemite 10.10.2) and a raspberry pi 2 (raspbian kernel 3.18.7-v7), both with syncthing 0.10.29. I’ve got several (7) directories with sizes from 0.5 GB to 112 GB and having a max of 25600 files on one dir.

The issue I’m experiencing is that when started both clients everything works fine for about 3-4 minutes (transfers of 5-10 MBit/sec over wifi). But after that both (mac and raspberry) cpu loads, disk, network transfers go idle. In this situation restarting the mac client makes everything work at full speed again for 3-4 minutes more…

The mac client is running with launchctl, but running it from command line gets same results. I’ve tried changing several options, folder reload times, but no improvement at all.

Do anyone know what I could/should do? any ideas?

thanks for your help,

Maybe it’s http://www.maclife.com/article/howtos/easy_mac_hacks_disable_app_nap

Any interesting log output froms syncthing? Does the gui still say “syncing” or something else?

@AudriusButkevicius I’ve tried disabling the autonap feature but same result.

This is the log from the mac:

[monitor] 20:59:03 INFO: Starting syncthing
[4HMGE] 20:59:03 INFO: syncthing v0.10.30 (go1.4.2 darwin-amd64 default) unknown-user@syncthing-builder 2015-03-29 07:46:44 UTC
[4HMGE] 20:59:03 INFO: My ID: 0000000-0000000-0000000-0000000-0000000-0000000-0000000-0000000
[4HMGE] 20:59:05 INFO: Starting web GUI on http://127.0.0.1:8080/
[4HMGE] 20:59:06 INFO: Starting UPnP discovery...
[4HMGE] 20:59:09 INFO: Invalid IGD response: invalid device UUID 0000000-0000000-0000000-0000000-0000000 (continuing anyway)
[4HMGE] 20:59:12 INFO: UPnP discovery complete (found 1 device).
[4HMGE] 20:59:12 INFO: Created UPnP port mapping for external port 54558 on UPnP device 'Vodafone xDSL Router' (0.0.0.1).
[4HMGE] 20:59:12 INFO: Starting local discovery announcements
[4HMGE] 20:59:12 INFO: Local discovery over IPv6 unavailable
[4HMGE] 20:59:12 INFO: Starting global discovery announcements
[4HMGE] 20:59:12 OK: Ready to synchronize xxxxxx (read only; no external updates accepted)
[4HMGE] 20:59:12 OK: Ready to synchronize xxxxxxxxxx (read-write)
[4HMGE] 20:59:12 OK: Ready to synchronize xxxxxxxxx (read-write)
[4HMGE] 20:59:12 OK: Ready to synchronize xxxxxxxx (read only; no external updates accepted)
[4HMGE] 20:59:12 OK: Ready to synchronize xxxxxx (read-write)
[4HMGE] 20:59:12 OK: Ready to synchronize xxxxx (read-write)
[4HMGE] 20:59:12 OK: Ready to synchronize xxxxxxx (read-write)
[4HMGE] 20:59:12 INFO: Device 0000000-0000000-0000000-0000000-0000000-0000000-0000000-0000000 is "xxxxxxxx" at [pipi.martinezn.com]
[4HMGE] 20:59:12 INFO: Device 0000000-0000000-0000000-0000000-0000000-0000000-0000000-0000000 is "xxxxxxxx" at [dynamic]
[4HMGE] 20:59:12 INFO: Device 0000000-0000000-0000000-0000000-0000000-0000000-0000000-0000000 is "xxxxxxxx 5" at [dynamic]
[4HMGE] 20:59:12 INFO: Device 0000000-0000000-0000000-0000000-0000000-0000000-0000000-0000000 is "xxxxxxxx" at [dynamic]
[4HMGE] 20:59:12 INFO: Device 0000000-0000000-0000000-0000000-0000000-0000000-0000000-0000000 is "xxxxxxxx " at [dynamic]
[4HMGE] 20:59:12 INFO: Completed initial scan (rw) of folder xxxxxx
[4HMGE] 20:59:12 INFO: Completed initial scan (rw) of folder xxxxxx
[4HMGE] 20:59:12 INFO: Completed initial scan (rw) of folder xxxxxx
[4HMGE] 20:59:12 INFO: Completed initial scan (rw) of folder xxxxxx
[4HMGE] 20:59:12 INFO: Completed initial scan (rw) of folder xxxxxx
[4HMGE] 20:59:13 INFO: Completed initial scan (ro) of folder xxxxxx
[4HMGE] 20:59:13 INFO: Completed initial scan (ro) of folder xxxxxx
[4HMGE] 20:59:44 INFO: Established secure connection to 0000000-0000000-0000000-0000000-0000000-0000000-0000000-0000000 at 0.0.0.227:49746-0.0.0.2:22000
[4HMGE] 20:59:44 INFO: Device 0000000-0000000-0000000-0000000-0000000-0000000-0000000-0000000 client is "syncthing v0.10.30"
[4HMGE] 20:59:44 INFO: Device 0000000-0000000-0000000-0000000-0000000-0000000-0000000-0000000 name is "xxxxxxxxxxx"

The log from the raspberry is almost identical.

Thanks guys for your comments and help.

So I don’t see any disconnections or anything which to me implies that it should work fine. Is the web UI accessible when this mysterious state kicks in?

Yes, web interfaces always work.

I’ve tried to launch a third client (linux mint laptop) while idle state was on scene. When running this linux laptop everything seems to work. When I shut down the linux syncthing the raspberry does lots of disk operations and cpu all by itself (without network communication with the mac). The linux client is just a receiver (just empty folders to fill from the raspberry or the mac).

I’m going to let sync the linux laptop for a long run, let’s see how this ends… I tell you when something new happens.

Thanks guys.

Perhaps RPI is just under heavy load (as we do alot of crypto and RPI is bad at that), hence nothing is happening as RPI is indexing/cleaning up indexes or something.

Weird stuff… :confused:

Well, after a couple of days with the three computers running, the raspberry seems to be awake. I don’t know the cause, maybe it was I originally setup all the three computers to begin to work at same time (the mac was the source of the files) and then I switch off the laptop. Anyway without much effort everything is in working order.

Thanks for your help again, congrats for such a good piece of program guys!

1 Like