Environment: Mongosync 1.13
MongoDB Server:Synchronize data from 4.4.28 to 6.0.20
command:
nohup /mongodb/apps/mongosync/bin/mongosync --verbosity ERROR
–logPath /home/mongodb/mongosync --port 27183
–acceptDisclaimer
–cluster0 “mongodb://clusterAdmin:clusterAdmin@192.168.1.90:27017”
–cluster1 “mongodb://clusterAdmin:clusterAdmin@192.168.1.91:27019” > mongosync.log 2>&1 &
error message:
{“time”:“2025-04-08T15:58:10.534980+08:00”,“level”:“fatal”,“serverID”:“f6550aa0”,“mongosyncID”:“coordinator”,“stack”:[{“func”:“Wrap”,“line”:“246”,“source”:“/data/mci/c597ccdbdf6681b507e55b1786d31c54/src/mongosync/internal/labelederror/labelederror_constructors.go”},{“func”:“(*Mongosync).runChangeEventApplicationPhase”,“line”:“402”,“source”:“/data/mci/c597ccdbdf6681b507e55b1786d31c54/src/mongosync/internal/mongosync/mongosync_replicate.go”},{“func”:“(*Mongosync).runPhase”,“line”:“164”,“source”:“/data/mci/c597ccdbdf6681b507e55b1786d31c54/src/mongosync/internal/mongosync/mongosync_replicate.go”},{“func”:“(*Mongosync).runFromCurrentPhase”,“line”:“93”,“source”:“/data/mci/c597ccdbdf6681b507e55b1786d31c54/src/mongosync/internal/mongosync/mongosync_replicate.go”},{“func”:“(*Mongosync).Replicate”,“line”:“77”,“source”:“/data/mci/c597ccdbdf6681b507e55b1786d31c54/src/mongosync/internal/mongosync/mongosync_replicate.go”},{“func”:“(*Mongosync).launchReplicationGoroutines.func1”,“line”:“992”,“source”:“/data/mci/c597ccdbdf6681b507e55b1786d31c54/src/mongosync/internal/mongosync/mongosync.go”},{“func”:“goexit”,“line”:“1700”,“source”:“/root/.local/share/mise/installs/go/1.23.7/src/runtime/asm_amd64.s”}],“error”:{“msErrorLabels”:[“serverError”],“clientType”:“source”,“operationDescription”:“Change Stream Reader (CRUD) is processing change stream.”,“failedCommand”:“Watch”,“message”:“change event application failed: Change Stream Reader (CRUD)
failed: failed to open change stream using resume token: (timestamp = ); filter: : failed to execute a command on the MongoDB server: (InvalidPipelineOperator) Invalid $addFields :: caused by :: Unrecognized expression ‘$_internalKeyStringValue’”},“message”:“Got an error during replication.”}