Could use some help solving this. Goal is to allow TrueNAS syncthing app to use TrueNAS SMB Share as storage for a standard syncthing folder endpoint.
Can’t add Additional Storage to Syncthing app, for an existing SMB Share.
Default syncthing “Config Storage” is working. And other syncthing clients can use it at /var/syncthing/Sync.
But TrueNAS syncthing app won’t even start when I try to add another storage pool that is an existing SMB Share, using the Type picker: SMB/CIFS Share (Mounts a volume to an SMB share) at TrueNAS:Apps:syncthing:Edit:Storage Configuration:Additional Storage (url 192.168.0.31/ui/apps/installed/stable/syncthing/edit)
The SMB Share login is working (I get a different error message otherwise). But TrueNAS Syncthing app won’t start when attempting to add the SMB Share. Here’s the error message in TrueNAS app_lifecycle.log
app_lifecycle.log:
[2025/02/22 16:08:47] (ERROR) app_lifecycle.compose_action():56 - Failed 'up' action for 'syncthing' app: Network ix-syncthing_default Creating
Network ix-syncthing_default Created
Container ix-syncthing-syncthing-1 Creating
Container ix-syncthing-syncthing-1 Created
Container ix-syncthing-syncthing-1 Starting
Error response from daemon: error while mounting volume '/mnt/.ix-apps/docker/volumes/ix-syncthing_cifs_d9dcc4fc9098e6258ce57b76d9d254b2f6d83817d4bab46e97cd8da610bb7432/_data': failed to mount local volume: mount //0.0.0.0/mnt/pool1/smb_share:/mnt/.ix-apps/docker/volumes/ix-syncthing_cifs_d9dcc4fc9098e6258ce57b76d9d254b2f6d83817d4bab46e97cd8da610bb7432/_data, data: noperm,password=********,user=brobbins: no such file or directory
I’ve tried re-creating the SMB Share from scratch, and deleting and reinstalling the syncthing app from scratch (all defaults). The SMB share is working inasmuch as my other computers can access it.
As an another experiment, I also tried adding additional storage of type ixVolume. In this case, TrueNAS’ Syncthing app will start, but syncthing client itself can’t use it with error message (url 192.168.0.31:20910/#):
2025-02-22 17:00:13: Failed to create folder marker: mkdir /var/xyz/.stfolder: permission denied
2025-02-22 17:00:13: Error on folder "/var/xyz" (mfhzq-bv4tq): folder marker missing (this indicates potential data loss, search docs/forum to get information about how to proceed)
Note this was just an experiment to see if a different type of Additional Storage would work. Apparently there are permissions problems with this.
I’ve perused this forum, including url forums dor truenas dot com/t/tn-scale-setup-syncthing-for-smb-share/10659.
System Information:
TrueNAS Scale ElectricEel-24.10.2
Syncthing via TrueNAS Apps:
Name: syncthing
App Version: 1.29.2
Version: 1.1.11
Source: syncthing.net, github.com/syncthing/syncthing, hub.docker.com/r/syncthing/syncthing
Train: stable
SMB via TrueNAS Shares setup:
Dataset Details
Type: FILESYSTEM
Sync: STANDARD
Compression Level: Inherit (LZ4)
Enable Atime: OFF
ZFS Deduplication: OFF
Case Sensitivity: OFF
Path: pool1/smb_share