Hi Stephen Waigi •,
Welcome to Microsoft Q&A forum.
As I understand, you are trying to restore a publishing database in a replication configuration. Now an getting the error when publisher to distributor stage. the distributor to subscriber step is okay.
Please enable logging and let us know the details of the error if appears there:
Check if solutions mentioned here could help in your case:
Please share more details about the steps you follow so that we can help better.
Thanks