Need help getting Nextcloud to sync files from NAS.

Job ID: 32406202

Budget: $30 – $250 USD

I'm trying to sync files from a cifs mounted NAS on my Linux Mint system to my Nextcloud server. However, I'm getting the following errors:

* From the server logs, "Sabre\DAV\Exception\BadRequest: Expected filesize of 2628222 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 704512 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."

* From the client on the specific folder sync connection it says, "Unable to open or create the local sync database. Make sure you have write access in the sync folder."

I have another folder sync connection which syncs the same data but is located on my hard drive and not an NAS. It doesn't run into any problems.

The NAS is attached to an OpenWRT router and can be accessed via SSH. I'm not an expert but I'm guessing this might be a permissions issue? Whether it is or not, I'd like someone to diagnose the problem and see if there's a way to fix it. I can do a remote session by TeamViewer or AnyDesk.