techineer54

Locking files?

Recommended Posts

Just before I wrote the comment, I updated everything to 2.5.12 (1911)

When I add a file on Syno1 (using FileStation) it syncs fine. Everything syncs fine on my Macs. When I add files through Finder (onto the Syno Mount) it doesn't sync.

I just saw, that most of the files have the correct rights and some has a user rslsync... Do I explicitely add a user rslsync to the Synologies?

Share this post


Link to post
Share on other sites

OK - here's how I got it working:

- I just mount my shared volumes on the Mac as AFP (not SMB)

Now everything works fine on all machines... (it might have something to do with Synology's SMB 'opportunistic locking' ... dunno)

Share this post


Link to post
Share on other sites

So the locking problem is back :( 

I try to sync on 2 x Macs and 2 x Synology, where all have the latest Resilio Sync version and identical Date/Time-settings and NTP-connections.

There are a couple of files which won't sync. If I delete these files and re-upload (even under a different name), the problem appears again. But it seems to be dependent on: from WHERE I upload the file.

Both Macs are synching fine!

The log on Synology 1 sais:

[20180301 08:13:43.528] Entry "/volume2/OFFICE 2016/Testfile.csv" was updated, current state: pvi[type:1 s:120203 mt:1519831315 h:], expected: pvi[NULL]
[20180301 08:13:43.528] FC[AD41]: fs event for entry "/volume2/OFFICE 2016/Testfile.csv" t:1519831315 s:120203 id:2307:108437560 type:1
[20180301 08:13:43.529] TorrentController: (reading) failed to open file "/volume2/OFFICE 2016/Testfile.csv" - 13
[20180301 08:13:43.529] JOURNAL[AD41]: cancelling new entry job for "/volume2/OFFICE 2016/Testfile.csv" - failed to init tf
[20180301 08:13:43.529] JOURNAL[AD41]: repost fs event for path "/volume2/OFFICE 2016/Testfile.csv"  - torrent creation aborted
[20180301 08:13:53.093] Entry "/volume2/OFFICE 2016/Testfile.csv" was updated, current state: pvi[type:1 s:120203 mt:1519831315 h:], expected: pvi[NULL]
[20180301 08:13:53.093] FC[AD41]: fs event for entry "/volume2/OFFICE 2016/Testfile.csv" t:1519831315 s:120203 id:2307:108437560 type:1
[20180301 08:13:53.093] TorrentController: (reading) failed to open file "/volume2/OFFICE 2016/Testfile.csv" - 13
[20180301 08:13:53.093] JOURNAL[AD41]: cancelling new entry job for "/volume2/OFFICE 2016/Testfile.csv" - failed to init tf
[20180301 08:13:53.113] JOURNAL[AD41]: repost fs event for path "/volume2/OFFICE 2016/Testfile.csv"  - torrent creation aborted

The log on Synology 2 (btrf):

I already re-verified users/groups/file- and folder-permissions... Now I'm running out of ideas. Anyone can help?

And I think, this one could be related:

[20180301 08:13:43.523] JOURNAL[AD41]: won't perform job for entry "andy/2018/18-D-156.pdf" - parent has fs error
[20180301 08:13:43.524] JOURNAL[AD41]: won't perform job for entry "andy/2018/18-D-159.pdf" - parent has fs error

Re-uploading the files doesn't help - after a minute the problem appears again. But there are more files in the folder, which sync fine. It seems to be dependent on from where the file was added (or to which device).

Any ideas with that??

Any info appreciated!

andy

Share this post


Link to post
Share on other sites

@Gane O'dwyerInterestingly this is only for *some* files and not for others. Sometimes it helps if I copy the file to Synology2 and then it syncs over to Synology1 - sometimes not. The mileage varies...

So - why do I get a -13 error from 1 of 10 files I copy from my Mac to one of the Synologies? 

After some days of working fine, today I had the problem again: I can't upload a file without getting the error.

- If I copy the file to my Mac's Sync folder, it sometimes works, but sometimes it happens, that one of the Synologies gets the file and the other throws the 'file locked' message and doesn't sync the file.

- If I copy the file to one of the Synologies using their own File-Manager, it mostly works, but sometimes the other Synology throws the 'file locked' message.

- The behaviour is random - I couldn't find a pattern

-> In all cases, my Macs get the file without any problems

Could it be that the file gets locked when the Synology is indexing (or whatever)?

Share this post


Link to post
Share on other sites

@tiptronic  You need to check folders permissions on both sides and especially in the NAS. If you are 100% sure that everything works as it have to be please send logs to the customer support team for the further issue investigation. Also please make sure that file are not in use while do you observe such app behaviour.

Share this post


Link to post
Share on other sites

@Gane O'dwyer What are the proper folder permissions?

The current situation is like this:

  • If I copy to the NAS using AFP or SMB, the files/folders are copied using my user/group.
  • If I copy to a sync-folder on my Mac, the files are saved to the NAS as rslsync/rslsync.
  • Both users have full access to the synced folder(s) and the hierarchy up.

Generally this work fine - except when the 'locked' message appears. Unfortunately I can't find out, what makes Sync to see the file as 'locked', because it is somwhat random.

Any other idea what this could be? (Btw. the two NASes have different users)

In the logs all I see is what I sent in my previous question.

Share this post


Link to post
Share on other sites

I'm having a similar issue with locked files. There have been some data files that have come up locked, but the ones that I can't seem to get to unlock are from Word and Excel. I've tried restarting Resilio, rebooting the computer where the file resides, rebooting all computers, and still can not get them to transfer over to a computer that didn't have them.

The only solution I found was to rename the problem files and then they would sync over fine.

Any other ideas? Using Sync 2.6.2 (1330) on all machines. Windows 10 64 bit everywhere.

Share this post


Link to post
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.