Closed andrekrit closed 2 years ago
Ok, after posting the error, I realized that it might be a permissions issue and did an experiment. In the container, I created a test file while logged in as the seafile user. The uploaded then worked as expected. What would your recommendation be for modifying rights / perms on the NAS so that files created are accessible by the seafile process?
Hi @andrekrit, thanks for reporting!
You can set SEAFILE_UID and SEAFILE_GID environment variables to make sure seafile client is using a specific user id and group id. That way, you can choose the same user id and group id as the owner of the files you like to sync.
Hope this helps.
Thanks for the quick response, much appreciated. Glad to see that I was heading in the right direction. Eventually I had to use the uid and gid of an admin account to get it working. Using the id's of the (normal) user to which the directory belongs to which seafile writes, didn't work.
Any idea what's going on? Syncing only works from Seafile to NAS, but not from NAS to Seafile. In other words, uploading does not work. I see the following errors in the log.
Syncing (one-way) continues after this, but there is no retry of this failed upload. I've tried with different files, even from within the Docker container. The NAS created files are always displayed on the NAS, but they're never uploaded to Seafile.