Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

perforce p4 sync issue

I've created a workspace through the GUI using p4v in the following path:

/home/RND/abrodov/Perforce/abrodov_tlv-cc-32_93

I'm trying to use the p4 commands, 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 that i'm 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
like image 398
Alex Brodov Avatar asked Jan 13 '15 12:01

Alex Brodov


1 Answers

Since client 'tlv-cc-32' is unknown to the server, that must not be the correct name of the client you're using with P4V.

Run

p4 clients -u $P4USER

to get a list of all your workspace names, then find the one that you're using with P4V. (Alternatively, in P4V, use the "Edit Current Connection" menu to see your "Workspace name:")

Then set P4CLIENT to the correct name of your P4V workspace, and use 'p4 info' to verify that the server associates that client name with your workstation's root directory.

Then

p4 sync -f

will work just fine.

(Though, one wonders, why do you feel the need to run 'p4 sync -f'?)

like image 144
Bryan Pendleton Avatar answered Oct 04 '22 02:10

Bryan Pendleton