TrueNAS + NextCloud sync fails on network error 7

TrueNAS Scale 24.04 with brand new Nextcloud 30.0.4 installation, Windows 10 & 11 Nextcloud clients up to date. All seems fine, with one user able to completely sync all files, but the other user got through about 99% of the sync process and then it just stalled. Restarting TrueNAS, restarting Nextcloud client, no change. Watching the sync process on the client shows the next file to sync (only a few MB in size) and then the transfer rate drops down, down, down to 0 and then nothing. Log shows network errors 1, 7, 99. There’s plenty of space available on the TrueNAS disks.

Let me know if there’s more information I can provide. I’m at a loss.

Thx.

A selection of the errors in the log:

...2947.png|8|1|1674313671||2855411||2|Network error: 1|0|0|0||
...fer7.jpg|8|1|1728777966||27259||2|Network error: 7|0|0|0||
...6_005.png|8|1|1674314878||3416056||3|Network error: 99|0|0|0||

Configuration

Nextcloud

[General]
clientVersion=3.15.2 (build 20241216)
isVfsEnabled=false
updateSegment=37
confirmExternalStorage=true
newBigFolderSizeLimit=500
optionalServerNotifications=true
overrideLocalDir=
overrideServerUrl=
showCallNotifications=true
showInExplorerNavigationPane=true
useNewBigFolderSizeLimit=true
launchOnSystemStartup=true
promptDeleteAllFiles=false
showChatNotifications=true

[Accounts]
version=2
0\version=1
0\url=https://192.168.....
0\dav_user=maggie
0\displayName=Maggie
0\serverVersion=30.0.4.1
0\serverColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0gg\x9e\x9e\0\0)
0\serverTextColor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
0\webflow_user=maggie
0\authType=webflow
0\General\CaCertificates=...
0\user=@Invalid()
0\serverHasValidSubscription=false
0\networkProxySetting=0
0\networkProxyType=0
0\networkProxyHostName=
0\networkProxyPort=0
0\networkProxyNeedsAuth=false
0\networkProxyUser=
0\networkUploadLimitSetting=-2
0\networkDownloadLimitSetting=-2
0\networkUploadLimit=0
0\networkDownloadLimit=0
0\Folders\3\localPath=...
0\Folders\3\journalPath=.sync_ce0e395f7160.db
0\Folders\3\targetPath=...
0\Folders\3\paused=false
0\Folders\3\ignoreHiddenFiles=false
0\Folders\3\virtualFilesMode=off
0\Folders\3\version=2
0\Folders\3\navigationPaneClsid=@Variant(\0\0\0\x7f\0\0\0\x6QUuid\0\x18\xf1\xef\"\x1b\xffN\x1\x84\x32\xddG\xe9\xa8\xad\xa6)
0\Folders\1\localPath=...
0\Folders\2\localPath=...
0\Folders\1\journalPath=.sync_862857989361.db
0\Folders\2\journalPath=.sync_d6546ff56eaf.db
0\Folders\1\targetPath=...
0\Folders\2\targetPath=...
0\Folders\1\paused=false
0\Folders\2\paused=true
0\Folders\1\ignoreHiddenFiles=false
0\Folders\2\ignoreHiddenFiles=false
0\Folders\1\virtualFilesMode=off
0\Folders\2\virtualFilesMode=off
0\Folders\1\version=2
0\Folders\2\version=2
0\Folders\1\navigationPaneClsid=@Variant(\0\0\0\x7f\0\0\0\x6QUuid\0+\xfe\x34j\xf1\aI\xd8\xb6\x66\x19\xc7\x7f?0@)
0\Folders\2\navigationPaneClsid=@Variant(\0\0\0\x7f\0\0\0\x6QUuid\0wPM\x99\x44\xf7K{\x8a\xcc\x63&X\x18~8)

[Settings]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x1M\xff\xff\xff\xfb\0\0\x4\x46\0\0\x2\xcf\0\0\x1M\0\0\0\x18\0\0\x4\x46\0\0\x2\xcf\0\0\0\0\0\0\0\0\x5(\0\0\x1M\0\0\0\x18\0\0\x4\x46\0\0\x2\xcf)

[Proxy]
type=2

How are your clients connecting to your installation - local LAN only, via Intenet, both - and how did you install NextCloud in TrueNAS? Do you have any remote access tools like Tailscale in use? Are the file permissions in TrueNAS set up correctly? Are your filesize limits set appropriately in php.ini for Apache? Is file locking set up for Redis?

Thx for the reply. I’ll answer your questions as best I can.

For the moment, connection is local LAN only. Eventually I will want internet connectivity as well, but that can wait. I installed NextCloud in TrueNAS using the recommended method, via the Apps functionality. I don’t have any remote access tools in use. I think file permissions must be correct, because 99% of files have properly sync’d. I don’t know how to adjust filesize limits in php.ini for Apache under TrueNAS. I don’t know how to check for file locking in Redis.

Update: It seems that the sync process is not actually completely stalled, just incredibly slow, as in a few BITS per second. What could account for this throttling?

Hi SupperDad, I had the same problem with a similar configuration (TrueNAS Scale, brand new NextCloud install, Windows 10 client). When I checked the server-side logs, I saw repeating errors about “Computed md5 has is incorrect.” I was able to fix the issue by disabling bulk upload in the server config.php and downgrading the Client version to 3.14.3.

GitHub page with related issues & info about bulkupload.enabled config setting:

Page with old client versions to download:

Make sure to disable the “automatically check for updates” in the settings if you go this route, otherwise it will revert to the lastest.

Hope this helps…