Truenas Scale Folder Permission Question

I am looking for a guide on how to set dataset permissions in Truenas Scale for the official Syncthing app.

Problem:

Syncing a file to the System does not work. I get a .tmp file at the correct location, but then the Sync stops and Syncthing reports “Out of Sync”.

What I found out:

I do not want to touch Syncthings config dataset and leave it owned by root. Syncthing seems to set permissions itself.

What I do not know:

How I set the permissions on the data folders I wish to sync.

Specs:

  • TrueNAS Scale 22.12.0
  • Syncthing App from the Official Catalogue
  • Configuration and Data folders set as host paths
  • User “apps” has full control over the data set it tries to write to.

output from log:

  • 2023-02-25 15:28:28 Adding folder “test” (test)
  • 2023-02-25 15:28:28 Ready to synchronize “test” (test) (receiveonly)
  • 2023-02-25 15:28:28 Failed initial scan of receiveonly folder “test” (test)
  • 2023-02-25 15:28:28 Error on folder “test” (test): folder marker missing (this indicates potential data loss, search docs/forum to get information about how to proceed)
  • 2023-02-25 15:28:46 Cleared error on folder “test” (test)
  • 2023-02-25 15:30:25 Puller (folder “test” (test), item “Avatar ext. 1.1.mkv”): syncing: finishing: setting perms on temp file: chmod /test/.syncthing.Avatar ext. 1.1.mkv.tmp: operation not permitted
  • 2023-02-25 15:30:25 “test” (test): Failed to sync 1 items
  • 2023-02-25 15:30:25 Folder “test” (test) isn’t making sync progress - retrying in 2m39s.
  • 2023-02-25 15:34:16 Puller (folder “test” (test), item “Avatar ext. 1.1.mkv”): syncing: finishing: setting perms on temp file: chmod /test/.syncthing.Avatar ext. 1.1.mkv.tmp: operation not permitted

With TrueNAS SCALE, the majority of the add-on apps are inside containers (almost like running a computer inside another computer), so getting file and directory permissions right requires more care. See the following documentation about working with storage and apps in TrueNAS SCALE:

The Syncthing app in the TrueNAS catalog isn’t packaged by the Syncthing project, but there are a number of other posts on this forum regarding Syncthing on TrueNAS Core and TrueNAS SCALE which might be helpful.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.