Given:
- Installed 64bit Windows perforce plugin
- My workspace root: "c:\source"
- Set "Add workspace root" from plugin preferences
- Right click on file in "c:\source\project1" select check out
- No status icons visible (checked in/out/, out of date, etc,)
Error:
Client '' unknown - use 'client' command to create it.
Set environmental variable P4CLIENT to your workspace name. Your workspace name is stored in p4 visual client under Connection->Edit Current Workspace
You need to create the client by running p4 client on the command line or using P4V.
I had the same problem. Using
set P4CLIENT=my_workspace_name
in the terminal and then using p4 commnd has worked for me.
In my case the ~/.p4enviro config file was using an outdated value for the P4CLIENT. I updated the value to the correct name of my current workspace and it fixed the problem.
Related
hi i am trying to link source control to perforce in redgate tool for sql server management studio but it throws error like
Command:
P4 -c C:\myworkspace_name-LT_2632\webteam\SANDBOXES\sandboxname -s sync "C:\myworkspace_name-LT_2632..."
Output:
error: Client 'C:\myworkspace_name-LT_2632\webteam\SANDBOXES\sandboxname' unknown - use 'client' command to create it.
exit: 1
The -c argument to p4 specifies the name of a client workspace. As the error message indicates, you are telling it to run the sync command in a client named 'C:\myworkspace_name-LT_2632\webteam\SANDBOXES\sandboxname'. From your comment on the original question, I think you need to change myworkspace in the example to the name of the client workspace that maps the path you listed.
I'm just getting started with Yii2 and I am following a tutorial here about setting up Yii2/AdminLTE and I am unable to finish the setup as I am getting errors in Terminal on the last step.
The part I am not able to finish is:
finaly we create rbac dbmanager with simple code, you can see in
folder "console/RbacController" with specific level for :
Admin : can do everything Editor : can edit, add and view Author : can
add and view viewer ; just viewer create rbac :
"yii migrate --migrationPath=#yii/rbac/migrations"
"yii rbac/init"
dont forget to chmod -R 777 on your web/assets if linux environment
and please free to update your setting on menu setting.
So in terminal on my mac, I tried both:
yii migrate --migrationPath=#yii/rbac/migrations
with the error: -bash: yii: command not found
and
/.yii migrate --migrationPath=#yii/rbac/migrations
with error: -bash: /.yii: No such file or directory.
I was able to complete the beginning of the tutorial, it is just this last step. I am already working in my yii2-advanced-adminlte directory
UPDATED:
Added screenshot of terminal window
Normally the yii command is located in
fro advanced template in project directory parent of backend, frontend, console and not in console
be sure of find the right dir and then accessing this try launche your command
yii migrate --migrationPath=#yii/rbac/migrations
eventually adjust your path to rbac/ migrations
Found it out, the problem was using MAMP I had to manually set the php bin to 5.5.23 in terminal because once I started down the path scaisEdge showed me I was getting a No such File or Folder error.
Eventually this is the command that worked for me (check your php MAMP path):
/Applications/MAMP/bin/php/php5.5.23/bin/php yii migrate
Source link: http://www.yiiframework.com/forum/index.php/topic/47043-error-on-using-db-migration-w-mysql#entry222568
Suddenly, when I run p4 info in terminal, I notice that the client root is not set (not sure why it got unset all of a sudden. Following is the output which shows "client unknown" in place of client root. What is the command through which I can set the same? I have tried p4 client and p4 set but may be, with wrong syntaxes.
BANL121b92746:Applications bagarwal2$ p4 info
User name: bagarwal2
Client name: BANL121b92746
Client host: BANL121b92746.local
Client unknown.
Current directory: /Applications
And is the value of this client root be the same as "Workspace Root" set in my P4V client under Connections->Edit Workspace . My P4V client is working perfectly. I found this problem with p4 info when my Intellij IDEA started showing connection problems in P4. On testing the connection in IDEA, below is the error screenshot, which is same as when I do p4 info in terminal.
Regarding my p4settings.txt config, below are the configs which were working for months till now:
P4HOST=<hidden hostname>:2500
P4CLIENT=bagarwal2_BANL121b92746_trunk
P4USER=bagarwal2
P4POST=<hidden hostname>:2500
My P4V connection (which works all fine), uses the same details/config which are mentioned above, still I find this problem in terminal and hence in Intellij IDEA.
Try p4 set p4client=my_client.
This stores your preferred client in the registry. There are other ways to set your client, with different precedence and scope:
environment variables (potentially different per process)
P4CONFIG files (potentially different per filesystem location)
command-line options (potentially different for every invocation of p4.exe)
but for simplicity, using p4 set is all you should need.
BTW, P4V uses its own setting (there's a dialog that comes up by default when you start P4V).
It looks like your p4settings.txt config file isn't being used; otherwise the client name returned by "p4 info" would match the P4CLIENT value in the config file. Run:
p4 set P4CONFIG=p4settings.txt
and make sure that when you run "p4 info" you're doing it from a directory underneath ~/dev/trunk. (Your "p4 info" output in the question shows your current directory as /Applications, so that might explain the problem on its own -- just do "cd ~/dev/trunk" and try again.)
The "client unknown" error suggests that maybe your client spec got deleted (this is assuming you're connecting to the same server and using the same client name you were successfully using before). If that's what happened you can create a new one with the same name by running:
p4 client
UNIX: bash, ksh, sh,
P4CLIENT=value ; export P4CLIENT
UNIX: csh
setenv P4CLIENT value
Mac OS X (bash)
P4CLIENT=value ; export P4CLIENT
Windows
p4 set P4CLIENT=value
Windows administrators running Helix Server as a service can set variables for use by a specific service with p4 set -S svcnamevar=value, or set variables for all users on the local machine with p4 set -s var=value.
More details here:
https://www.perforce.com/manuals/cmdref/Content/CmdRef/envars.html
SET P4PORT in the environment variable.
then when you try P4 info
client unknown error will be gone & it will show the p4root value which is set in perforce.
It worked for me.
I ran into this issue, and come to find out the perforce registry keys under Computer\HKEY_CURRENT_USER\SOFTWARE\Perforce\Environment are case sensitive! Somehow, someway, the P4CLIENT key was set to p4client. Setting it to upper case and then running p4 client command solved the issue for me.
I use perforce as sourcesafe, my desktop client is working fine.
I just install P4Web, perforce web client and when I try to open a file I get the following error:
P4CHARSET must be set in order to connect to a unicode server
I already add P4CHARSET registry key set to utf8 under
HKEY_CURRENT_USER\Software\perforce\environment
What more can I do?
Thanks!
You probably need to set it for the P4Web service. Check out this KB article:
http://kb.perforce.com/article/231/p4web-as-a-windows-service
There are examples of setting other parameters like the port number; you can follow those guidelines for setting P4CHARSET.
you need to run the following line on cmd:
p4 set -S "Perforce Web" P4CHARSET=utf8
Im having trouble creating a workspace and downloading the files from a Team Foundation Server using the Team Explorer Everywhere command line client (TEE-CLC-10.0.0). I've gotten as far as creating workspace:
$ ../tfs/TEE-CLC-10.0.0/tf -login:secretUsername,secretPassword -server:http://secretHost:8080 workspace -new KOLOBI
Workspace 'KOLOBI2' created.
Then I want to download files from the server to my workspace:
$ ../tfs/TEE-CLC-10.0.0/tf -login:secretUsername,secretPassword -server:http://secretHost:8080 get -recursive -all -force .
An argument error occurred: Items must reside in a workspace that has been previously used on this computer.
I guess I'm missing one step which is to add local directories to the workspace or something like that. But I can't figure out how to do it to be able to download the files.
You'll need to create working folder mappings between your local folder and the server items you wish to correspond to.
For example:
tf workfold -map -login:secretUsername,secretPassword -server:http://secretHost:8080 -workspace:KOLOBI '$/TeamProject/Project' '/home/me/project'
Then from the /home/me/project directory (or whatever you pick), you can just execute tf get .