Turn off the secondary truncation point for the duration of the upgrade and when you upgrade a primary database, the Replication Agent cannot be running.
use database
go
dbcc settrunc ("ltm", "ignore")
go
Repeat step 3 for each primary database and each primary RSSD.