I’m trying to setup UCB for the first time and I’m having trouble getting the initial sync with our Perforce repository to work.
I’m getting the following error:
Caught exception communicating with perforce. Errors encountered while force syncing: error: Usage: sync [ -n -N -p -q ] [-m max] [files…]
2: com.tek42.perforce.PerforceException: Errors encountered while force syncing: error: Usage: sync [ -n -N -p -q ] [-m max] [files…]
3: ERROR: Unable to communicate with perforce. Errors encountered while force syncing: error: Usage: sync [ -n -N -p -q ] [-m max] [files…]
Looking at my Perforce error log, it looks like the build system is generating the following Perforce command:
‘user-sync -f -p //UCB_Stormdefault-web–1618916508/…@947’
I think -f and -p are mutually exclusive. If I try to run this on the command line, I get the same error:
$ p4 sync -f -p //UCB_Stormdefault-web–1618916508/…@947
Usage: sync [ -n -N -p -q ] [-m max] [files…]