Nextcloud and Joplin: synchronization problem

Did you copy the data from the old server? That can cause problems. It is safer to start with a clean slate (don’t copy anything to the new server) then create a new profile, import a jex backup of your data and then sync this data onto the new server.

A bit more details about starting over are here: How to fix synchronisation issues and start over