[Perforce]password (P4PASSWD) invalid or unset. 的错误解决
前言
使用 Perforce , 能够使用Perforce 的Client 端。
有时候在编写一些脚本或代码的时候, 可能或使用到 Perforce的命令的方式。
正常状况下。 使用例如以下命令:
p4 -C utf8 -p host:port -u username -p password -c workspace sync //depot_path/...
就能够sync perforce 的源文件了。
登录的帐号和密码直接接在命令的后面。
可是以上的方法并不一定正确, 可能会出现
Perforce password (P4PASSWD) invalid or unset
的错误。
在同一台机器上使用 p4 client 登录之后就正常了。
出现这个的原因基本上是 服务端对于验证设置的原因。
服务端须要 ticket 这种验证方式。
所谓的ticket , p4 client 在登录的时候会在机器的
C:\Documents and Settings\user\下 新建一个 p4tickets.txt 的文件, 里面的内容是一系列的相似防伪码的东西。
搜索到的说明
仔细的说明一下原因:
网络上的解释:
Your server's security level doesn't allow command line passwords.
You can get around this by using a ticket value instead. Use the
login command to get a valid ticket value:
p4 login -p
That will display the ticket value instead of saving it. You should
be able to cut and paste that into your command.
=====
If you are a superuser, you should be able to log in without specifying a
password.
If you have an active ticket for your superuser account, use: p4 login
<build_user>
Otherwise use: p4 -u <superuser_user> -P <superuser_password> login <build_user>
官方:
Problem:
When issuing a p4 command in a trigger on a Windows server, the command returns the error:
Perforce password (P4PASSWD) invalid or unset.
This error indicates that the command did not find a valid ticket for the current user and it needs to log in to create one.
解决方法
1. 方法一
先登录。再运行sync等其它命令
echo %p4passwd%|p4 login
2. 方法二
使用已经有的ticket
Set the location of P4TICKETS with set or p4 set [-s]:
p4 set P4TICKETS=C:\Perforce\tickets.txt
Log in as the trigger user:
p4 login triggeruser
In the trigger, make sure P4TICKETS is set to the same location. You can skip this step if you used p4 set -s to set P4TICKETS:
set P4TICKETS=C:\Perforce\tickets.txt
方法一, 我有实际的使用过, 方法二还未试用
[Perforce]password (P4PASSWD) invalid or unset. 的错误解决的更多相关文章
- java.io.StreamCorruptedException: invalid type code: AC错误的解决方法
问题描述: 在向一个文件写入可序列化对象时,每次只想向文件的末尾添加一个可序列化的对象,于是使用了FileOutputStream(文件名,true)间接的构建了ObjectOutputStream流 ...
- javamail发送邮件及错误解决方法javax.mail.AuthenticationFailedException: failed to connect, no password specified?
javamail发送邮件及错误解决方法javax.mail.AuthenticationFailedException: failed to connect, no password specifie ...
- 运行git提示xcrun: error: invalid active developer path错误
运行git提示xcrun: error: invalid active developer path错误 是xcode的原因 运行如下命令解决: xcode-select --install
- ORA-00911: invalid character 错误解决集锦
转: ORA-00911: invalid character 错误解决集锦 参考https://www.linuxidc.com/Linux/2017-05/144361.htm ORA-00911 ...
- mysql Access denied for user root@localhost错误解决方法总结(转)
mysql Access denied for user root@localhost错误解决方法总结(转) mysql Access denied for user \'root\'@\'local ...
- encfs创建时fuse: failed to exec fusermount: Permission denied错误解决
今天用encfs创建加密文件夹时碰到提示错误fuse: failed to exec fusermount: Permission denied fuse failed. Common problem ...
- CAS SSO:汇集配置过程中的错误解决方法
本教程为gevin.me原创文章,转载请注明: CAS SSO:配置过程中的错误解决方法 | Gevin’s Blog 本文将收集在配置CAS SSO遇到的所有错误,希望对大家有帮助,也方便下次搭建的 ...
- github 提交报403 forbidden的错误解决
github 提交报403 forbidden的错误解决 $ git push error: The requested URL returned error: 403 Forbidden while ...
- Linux 下一个 Mysql error 2002 错误解决
Linux 下一个 Mysql error 2002 错误解决 首先查看 /etc/rc.d/init.d/mysqld status 查看mysql它已开始. 假设启动的的话,先将数 ...
随机推荐
- LintCode: Flatten Binary Tree to Linked List
C++ Traverse /** * Definition of TreeNode: * class TreeNode { * public: * int val; * TreeNode *left, ...
- 【树莓派】在树莓派的Android系统中安装APK应用
树莓派3 Android TV安装APK应用教程 本文摘自:http://www.mz6.net/news/android/6867.html 树莓派3 Android TV怎样安装软件?对于熟悉AD ...
- mysql加减时间-函数-时间加减
select timediff('23:40:00', ' 18:30:00'); -- 两时间相减 SELECT substring( timediff(,) ----“:”相减返回小时:分钟 -- ...
- SQL Server中获取最新插入的自增ID
SCOPE_IDENTITY()函数 返回的是紧跟这个插入语句生成的自增ID, 若果前一个语句不是插入自增ID的,将返回NULL @@IDENTITY 返回全局的最有一个生成的自增ID,全局可用 cr ...
- did not call through to super.onCreate()
android.util.SuperNotCalledException: Activity {com.xkyiliao.xkhospital/com.xkyiliao.xkhospital.acti ...
- Android短轮询解决方案——CountDownTimer+Handler
转载请注明原文地址:http://www.cnblogs.com/ygj0930/p/7657194.html 一:应用场景 在诸如自动售卖机之类的扫码支付场景中,客户端在获得支付二维码或者发出支付请 ...
- 怎样解决WampServer #1405 - Access denied for user 'root'@'localhost' (using password: NO)
转载请注明出处:http://blog.csdn.net/xingjiarong/article/details/47903227 之前一直在用wampserver,然后环境配置也是正确的,可是过了一 ...
- Flink流处理之迭代案例
当前Flink将迭代的重心集中在批处理上,之前我们谈及了批量迭代和增量迭代主要是针对批处理(DataSet)API而言的,而且Flink为批处理中的迭代提供了针对性的优化. 可是对于流处理(DataS ...
- 【Linux】shell编程案例
一.随机生成字符文件名 1.需求描述: 使用for循环在/usr/test目录下创建10个html文件,其中每个文件需要包含10个随机小写字母加固定字符串test,案例名称如下: 以下为示例: 2.代 ...
- (转)Delta3D源码分析
最近学习Delta3D, 2.4版忙着发布,一直不能成功编译SimCore, 索性静下心来看看源码,官网上竟然提供了几个重要组建的软件设计说明书(SDD),虽说基本都是2005版了,不过我看了后觉得 ...