You can’t use remote paths. You must use local paths. To to do what you
want to do, copy the full repository from box1 to box2 using for example
scp or rsync to another location, like /data/source. Then run the
crx2oak tool on box2 using /data/source as input and
/opt/aem/crx-quickstart/repository/segmentstore.After that, you can
delete /data/source on box2.
Delete existing Cloud Configuration for Brand PortalDelete existing
Replication Agents for Brand Portaland one of the below two or both
steps solves the issue1. Delete the configuration entry responsible for
"Adobe Granite Access Token provider" (factory).2. Create and Delete
configuration for Adobe Granite Replication Http Transport Handler
(com.day.cq.replication.impl.transport.Http)Finally reconfiguring the
brand portal should work.