Closed Jenselme closed 8 years ago
You can add the symlink in question to seafile-ignore.txt.
They are. It was working fine until some days ago: the client tried to upload the directory they were in. It reminds me of what is described in #826 and #1037 .
With this proposal, failure in the ignore mechanism would not use all the CPU and filling the disk with logs while trying to follow symlinks.
See also .. https://github.com/haiwen/seafile/issues/130 https://github.com/haiwen/seafile/issues/288
But yes, seafile following the symlinks is quite broken for a number of use cases. We have some action happening to create some alternate solutions/options.
I can confirm that putting symlink in ignore-seafile.txt can result in Seafile still following the symlink and start syncing stuff.
For now, my fix was to remove the symlink for the synced folder.
@Fly0s that's exactly the documented behaviour for seafile-ignore.txt
Notes The seafile-ignore.txt file only controls which files to exclude on the client side. You can still create a file from seahub web interface that's excluded on the client. In this case,
- The created file will still be synced back to clients. But any later local changes to those files will be ignored.
- If the file is modified on seahub, the new version will also be synced back to clients; If the file on the client is also modified, a conflict file will be generated on the client.
seafile-ignore.txt only ignores files that are not synced yet. If a file is already synced, and some time later you add it to the ignore list, its existing versions won't be removed. -> See: http://seafile.com/en/help/ignore/ (Notes)
Sorry, but I fail to see where symlinks are mentioned in this. Of course, I followed the instructions on this link, and made Seafile ignore the symlink as a file, not a folder.
In case this was not clear, I of course took care of the fact that the symlink was not on the server when I put it in ignore-seafile.txt. Indeed, it hasn't been synced until some time ago, where, after some activity within the symlinked folder, Seafle suddenly started to sync some files... Then I removed the symlink to avoid such a mess to happen again.
Duplicate with #288
Today I tried to sync a folder which contains link to itself. Seafile started using all the processor and I saw the following message in
~/.ccnet/logs/seafile.log
.I think it would be better for seafile just to sync the link but don't try to follow them.