Perforce p4 sync issue
I created a workspace via the GUI using p4v
in the following path:
/home/RND/abrodov/Perforce/abrodov_tlv-cc-32_93
I'm trying to use commands p4
, for example I've tried:
p4 sync -f
and I got the following error:
Client 'tlv-cc-32' unknown - use 'client' command to create it.
This is the environment variable I am using for p4
:
export p4v=/opt/p4v-2014.2.973065/bin
export P4PORT=IP:PORT
export P4USER=$USER
export P4CLIENT=$HOSTNAME
alias p4v="p4v &"
export PATH=$p4v:$PATH
source to share
Since the tlv-cc-32 client is unknown to the server, this does not have to be the correct name of the client you are using with P4V.
Run
p4 clients -u $P4USER
to get a list of all workspace names, then find the one you are using with P4V. (Alternatively, in P4V, use the "Edit Current Connection" menu to see your "Workspace Name:")
Then set P4CLIENT to the correct P4V workspace name and use "p4 info" to make sure the server binds this name to your workstation root.
Then
p4 sync -f
will work fine.
(Though wondering why you feel the need to run "p4 sync -f"?)
source to share