Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Perforce sync error

Discussion in 'Unity Build Automation' started by max605b, Aug 29, 2014.

  1. max605b

    max605b

    Joined:
    Jan 10, 2014
    Posts:
    6
    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...]
     
  2. hypeNate

    hypeNate

    Unity Technologies

    Joined:
    Apr 4, 2014
    Posts:
    272
    @max605b - You're absolutely correct. We have fixed this error in your project and restarted your builds. Please let us know if this happens again. Thanks!
     
  3. vinodjam

    vinodjam

    Joined:
    Jan 9, 2015
    Posts:
    1
    @hypeNate: I would like to know the fix as I m facing same error in my build. I would be very grateful to you if you could tell me that
     
  4. hypeNate

    hypeNate

    Unity Technologies

    Joined:
    Apr 4, 2014
    Posts:
    272
  5. max605b

    max605b

    Joined:
    Jan 10, 2014
    Posts:
    6
    @vinodjam, glad to see support is on this for you. Hopefully that helps you move forward. Let us know the status in this thread.