High CPU usage, log spam (Failed to write attributes)


simon574

Recommended Posts

I have two backup folders synced from my phone as read-only to an NTFS partition mounted in Linux (ntfs-3g).

The log is permanently spammed with error messages like the following excerpt, to the point where it produces >1GB log data per day. This is also because the errors are logged both to systemd journal, as well as /var/lib/rslsync/sync.log

[20161105 12:55:03.981] Update have pieces for file "/d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-28.1.db.crypt12", was: 72, now: 0
[20161105 12:55:03.981] SyncFileEntry: writing file attributes to file "/d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-28.1.db.crypt12", mt:1472256004
[20161105 12:55:03.981] SyncFileEntry: Failed to write attributes for file /d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-28.1.db.crypt12 - 1
[20161105 12:55:03.981] SyncFileEntry: Failed to write attributes for file /d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-28.1.db.crypt12 - 1
[20161105 12:55:03.981] Update have pieces for file "/d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-28.1.db.crypt12", was: 0, now: 72
[20161105 12:55:03.981] JOURNAL[DC36]: comparing file hashes: equal
[20161105 12:55:03.981] JOURNAL[DC36]: detected updated file "Databases/msgstore-2016-08-27.1.db.crypt12". Checking filehash
[20161105 12:55:03.984] Update have pieces for file "/d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-27.1.db.crypt12", was: 0, now: 72
[20161105 12:55:03.984] JOURNAL[DC36]: entry "/d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-27.1.db.crypt12" state: size:2354514 mt:4294967295 t:1478346903 h:BD5025B782081325FFAB240490356EE887FF4120 (new torrent for file)
[20161105 12:55:03.984] Update have pieces for file "/d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-27.1.db.crypt12", was: 72, now: 0
[20161105 12:55:03.984] SyncFileEntry: writing file attributes to file "/d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-27.1.db.crypt12", mt:1472250789
[20161105 12:55:03.984] SyncFileEntry: Failed to write attributes for file /d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-27.1.db.crypt12 - 1
[20161105 12:55:03.984] SyncFileEntry: Failed to write attributes for file /d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-27.1.db.crypt12 - 1
[20161105 12:55:03.984] Update have pieces for file "/d/Stuff/backups/WhatsApp/Databases/msgstore-2016-08-27.1.db.crypt12", was: 0, now: 72
[20161105 12:55:03.984] JOURNAL[DC36]: comparing file hashes: equal

I don't see where the problem is, however, as folders added as read/write do not show the problem, and the underlying file system has permissions 777 for everything. In fact, "touch <somefile>" in the sync folder works without problems, even if I run it as the "rslsync" user.

Any ideas what I could do to resolve the issue?

Link to comment
Share on other sites

  • 3 weeks later...

NTFS does not allow changing files' attributes, that you can see in the log, error 1 = operation not permitted. So Sync just records log and all events. 

Failed to write attributes for file .... - 1

Are your RW shares also located on same partition? 
for RO ones you can enable option "Overwrite any changed files". 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.