p4 sync parallel on Linux giving "Perforce password (P4PASSWD) invalid or unset." error

2.8k Views Asked by At

I'm trying to improve perforce sync performance on Linux using the --parallel option, but keep getting the error repeated once for each thread I specify:

Perforce password (P4PASSWD) invalid or unset.

If I set P4PORT, P4USER, P4PASSWD and P4CLIENT environment variables and then do a simple p4 sync, it works fine. If I use the following command I get the error message 4 times (once for each thread):

p4 sync --parallel "threads=4,min=1,minsize=1"

If I specify the password as a global on the command line, I get the same:

p4 -P passwd sync --parallel "threads=4,min=1,minsize=1"

If I get the ticket first using p4 login -p and substitute that for the password in the sync command I get the same.

0

There are 0 best solutions below