4831: rbt post fails during command execution "p4 fstat //depot/file" with: Perforce password (P4PASSWD) invalid or unset

andrewb

What version are you running?

RBTools 1.0.2

What steps will reproduce the problem?

  1. rbt post -d [changelist number]

What is the expected output? What do you see instead?

Expected the diff to be posted to ReviewBoard server, but got the error instead.

What operating system are you using?

Windows 10

Attach the debug out from the command.

post = rbtools.commands.post:Post

RBTools 1.0.2
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:22:17) [MSC v.1500 32 bit (Intel)]
Running on Windows-10-10.0.16299
Home = C:\Users\AndrewB\AppData\Roaming
Current directory = C:\ib\NCMS_3.0
Command line: rbt post -d 665942
Running: tf vc help
Checking for a Subversion repository...
Unable to execute "svn help": skipping SVN
Checking for a Git repository...
Unable to execute "git --help" or "git.cmd --help": skipping Git
Checking for a Mercurial repository...
Unable to execute "hg --help": skipping Mercurial
Checking for a CVS repository...
Unable to execute "cvs": skipping CVS
Checking for a Perforce repository...
Running: p4 info
Running: diff --version
Repository info: Path: perforcea101.elogex.com:1666, Base path: None, Supports changesets: True
Checking for a Plastic repository...
Unable to execute "cm version": skipping Plastic
Checking for a ClearCase repository...
Unable to execute "cleartool help": skipping ClearCase
Checking for a Bazaar repository...
Unable to execute "bzr help": skipping Bazaar
Checking for a Team Foundation Server repository...
Unable to execute "tf help": skipping TFS
Making HTTP GET request to http://reviews.resolvesp.com/api/
Running: p4 info
Generating diff for pending changeset 665942
Processing add of //ncms-depot/NCMS-3.0/NCMS/ddl/ScanTransactionNumberSequence.sql
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmpo3t0id c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\ddl\ScanTransactionNumberSequence.sql
Processing edit of //ncms-depot/NCMS-3.0/NCMS/models/NCMS.enums
Writing "//ncms-depot/NCMS-3.0/NCMS/models/NCMS.enums#6" to "c:\users\andrewb\appdata\local\temp\tmp3qnutx"
Running: p4 print -o c:\users\andrewb\appdata\local\temp\tmp3qnutx -q //ncms-depot/NCMS-3.0/NCMS/models/NCMS.enums#6
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmp3qnutx c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\models\NCMS.enums
Command exited with rc 1: [u'diff', u'-urNp', 'c:\users\andrewb\appdata\local\temp\tmp3qnutx', 'c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\models\NCMS.enums']
Processing add of //ncms-depot/NCMS-3.0/NCMS/models/ScanLog.model
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmpcjwdm5 c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\models\ScanLog.model
Processing add of //ncms-depot/NCMS-3.0/NCMS/Module Process Template.mpt.files/NCMS.ScanLog.modelDef
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmp4sbout "c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\Module Process Template.mpt.files\NCMS.ScanLog.modelDef"
Processing add of //ncms-depot/NCMS-3.0/NCMS/sql/Sequence.sqlDefs
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmpy1qjc6 c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\sql\Sequence.sqlDefs
Processing edit of //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/constants/Module.java
Writing "//ncms-depot/NCMS-3.0/NCMS/src/com/ncms/constants/Module.java#14" to "c:\users\andrewb\appdata\local\temp\tmpzwoo10"
Running: p4 print -o c:\users\andrewb\appdata\local\temp\tmpzwoo10 -q //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/constants/Module.java#14
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmpzwoo10 c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\constants\Module.java
Command exited with rc 1: [u'diff', u'-urNp', 'c:\users\andrewb\appdata\local\temp\tmpzwoo10', 'c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\constants\Module.java']
Processing add of //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/mpt/ScanLog/Impl/ScanLogServiceImpl.java
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmphmek5e c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\mpt\ScanLog\Impl\ScanLogServiceImpl.java
Processing add of //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/mpt/ScanLog/ScanLogService.java
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmp9bt8rk c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\mpt\ScanLog\ScanLogService.java
Processing edit of //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/BaseScannerApiRestResource.java
Writing "//ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/BaseScannerApiRestResource.java#4" to "c:\users\andrewb\appdata\local\temp\tmppu0qxt"
Running: p4 print -o c:\users\andrewb\appdata\local\temp\tmppu0qxt -q //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/BaseScannerApiRestResource.java#4
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmppu0qxt c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\rest\scanner\api\BaseScannerApiRestResource.java
Command exited with rc 1: [u'diff', u'-urNp', 'c:\users\andrewb\appdata\local\temp\tmppu0qxt', 'c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\rest\scanner\api\BaseScannerApiRestResource.java']
Processing delete of //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/packackge-info.java
Writing "//ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/packackge-info.java#1" to "c:\users\andrewb\appdata\local\temp\tmpdkhm8d"
Running: p4 print -o c:\users\andrewb\appdata\local\temp\tmpdkhm8d -q //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/packackge-info.java#1
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmpdkhm8d c:\users\andrewb\appdata\local\temp\tmpku0coi
Command exited with rc 1: [u'diff', u'-urNp', 'c:\users\andrewb\appdata\local\temp\tmpdkhm8d', 'c:\users\andrewb\appdata\local\temp\tmpku0coi']
Processing add of //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/ScannerApi.java
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmpqowptx c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\rest\scanner\api\ScannerApi.java
Processing edit of //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/ServerRestResource.java
Writing "//ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/ServerRestResource.java#2" to "c:\users\andrewb\appdata\local\temp\tmp8scqx8"
Running: p4 print -o c:\users\andrewb\appdata\local\temp\tmp8scqx8 -q //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/ServerRestResource.java#2
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmp8scqx8 c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\rest\scanner\api\ServerRestResource.java
Command exited with rc 1: [u'diff', u'-urNp', 'c:\users\andrewb\appdata\local\temp\tmp8scqx8', 'c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\rest\scanner\api\ServerRestResource.java']
Processing edit of //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/SingletonRestResource.java
Writing "//ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/SingletonRestResource.java#20" to "c:\users\andrewb\appdata\local\temp\tmpo0eyxt"
Running: p4 print -o c:\users\andrewb\appdata\local\temp\tmpo0eyxt -q //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/rest/scanner/api/SingletonRestResource.java#20
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmpo0eyxt c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\rest\scanner\api\SingletonRestResource.java
Command exited with rc 1: [u'diff', u'-urNp', 'c:\users\andrewb\appdata\local\temp\tmpo0eyxt', 'c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\rest\scanner\api\SingletonRestResource.java']
Processing add of //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/taskperformer/LogScanTaskPerformer.java
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmplw59nl c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\taskperformer\LogScanTaskPerformer.java
Processing edit of //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/web/ModuleContextListener.java
Writing "//ncms-depot/NCMS-3.0/NCMS/src/com/ncms/web/ModuleContextListener.java#3" to "c:\users\andrewb\appdata\local\temp\tmprwjdes"
Running: p4 print -o c:\users\andrewb\appdata\local\temp\tmprwjdes -q //ncms-depot/NCMS-3.0/NCMS/src/com/ncms/web/ModuleContextListener.java#3
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmprwjdes c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\web\ModuleContextListener.java
Command exited with rc 1: [u'diff', u'-urNp', 'c:\users\andrewb\appdata\local\temp\tmprwjdes', 'c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\src\com\ncms\web\ModuleContextListener.java']
Processing edit of //ncms-depot/NCMS-3.0/NCMS/test-src/com/ncms/rest/scanner/api/SingletonRestResourceServerTest.groovy
Writing "//ncms-depot/NCMS-3.0/NCMS/test-src/com/ncms/rest/scanner/api/SingletonRestResourceServerTest.groovy#2" to "c:\users\andrewb\appdata\local\temp\tmpms_hbt"
Running: p4 print -o c:\users\andrewb\appdata\local\temp\tmpms_hbt -q //ncms-depot/NCMS-3.0/NCMS/test-src/com/ncms/rest/scanner/api/SingletonRestResourceServerTest.groovy#2
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmpms_hbt c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\test-src\com\ncms\rest\scanner\api\SingletonRestResourceServerTest.groovy
Command exited with rc 1: [u'diff', u'-urNp', 'c:\users\andrewb\appdata\local\temp\tmpms_hbt', 'c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\test-src\com\ncms\rest\scanner\api\SingletonRestResourceServerTest.groovy']
Processing edit of //ncms-depot/NCMS-3.0/NCMS/test-src/com/ncms/test/note_processing/processing_plan/ProcessingPlanServerTest.groovy
Writing "//ncms-depot/NCMS-3.0/NCMS/test-src/com/ncms/test/note_processing/processing_plan/ProcessingPlanServerTest.groovy#22" to "c:\users\andrewb\appdata\local\temp\tmpgeivrz"
Running: p4 print -o c:\users\andrewb\appdata\local\temp\tmpgeivrz -q //ncms-depot/NCMS-3.0/NCMS/test-src/com/ncms/test/note_processing/processing_plan/ProcessingPlanServerTest.groovy#22
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmpgeivrz c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\test-src\com\ncms\test\note_processing\processing_plan\ProcessingPlanServerTest.groovy
Command exited with rc 1: [u'diff', u'-urNp', 'c:\users\andrewb\appdata\local\temp\tmpgeivrz', 'c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\test-src\com\ncms\test\note_processing\processing_plan\ProcessingPlanServerTest.groovy']
Processing edit of //ncms-depot/NCMS-3.0/NCMS/web/cfg/war/bundle/messages.properties
Writing "//ncms-depot/NCMS-3.0/NCMS/web/cfg/war/bundle/messages.properties#53" to "c:\users\andrewb\appdata\local\temp\tmptd9v4l"
Running: p4 print -o c:\users\andrewb\appdata\local\temp\tmptd9v4l -q //ncms-depot/NCMS-3.0/NCMS/web/cfg/war/bundle/messages.properties#53
Running: diff -urNp c:\users\andrewb\appdata\local\temp\tmptd9v4l c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\web\cfg\war\bundle\messages.properties
Command exited with rc 1: [u'diff', u'-urNp', 'c:\users\andrewb\appdata\local\temp\tmptd9v4l', 'c:\ib\NCMS_3.0\ncms-depot\NCMS-3.0\NCMS\web\cfg\war\bundle\messages.properties']
Generated diff size: 333190 bytes
Making HTTP GET request to http://reviews.resolvesp.com/api/validation/diffs/
Cached response for HTTP GET http://reviews.resolvesp.com/api/validation/diffs/ expired and was modified
Making HTTP POST request to http://reviews.resolvesp.com/api/validation/diffs/

Please log in to the Review Board server at reviews.resolvesp.com.
Username: abrits
Password:

Got API Error 224 (HTTP code 400): [P4#run] Errors during command execution( "p4 fstat //ncms-depot/NCMS-3.0/NCMS/models/NCMS.enums#6" )

    [Error]: 'Perforce password (P4PASSWD) invalid or unset.'

Error data: {u'stat': u'fail', u'err': {u'msg': u'[P4#run] Errors during command execution( "p4 fstat //ncms-depot/NCMS-3.0/NCMS/models/NCMS.enums#6" )\n\n\t[Error]: \'Perforce password (P4PASSWD) invalid or unset.\'\n\n', u'code': 224}}
Traceback (most recent call last):
File "C:\Program Files (x86)\RBTools\bin..\Python27\Scripts\rbt-script.py", line 11, in <module>
load_entry_point('RBTools==1.0.2', 'console_scripts', 'rbt')()
File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-1.0.2-py2.7.egg\rbtools\commands\main.py", line 120, in main
command.run_from_argv([RB_MAIN, command_name] + args)
File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-1.0.2-py2.7.egg\rbtools\commands__init__.py", line 725, in run_from_argv
exit_code = self.main(*args) or 0
File "C:\Program Files (x86)\RBTools\Python27\lib\site-packages\rbtools-1.0.2-py2.7.egg\rbtools\commands\post.py", line 875, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

[P4#run] Errors during command execution( "p4 fstat //ncms-depot/NCMS-3.0/NCMS/models/NCMS.enums#6" )

    [Error]: 'Perforce password (P4PASSWD) invalid or unset.'

(HTTP 400, API Error 224)

Please provide any additional information below.

If I manually run p4 fstat //ncms-depot/NCMS-3.0/NCMS/models/NCMS.enums#6, the result returns just fine.

I have a .p4config file with P4PORT, P4USER, P4PASSWD and P4CLIENT values set, and I have a P4PASSWD environment variable set (just in case)...

andrewb
#1 andrewb

Found the issue - it was the configuration on the Review Board server - not the local config on the PC. You can close this ticket, thanks!

chipx86
#2 chipx86

Thanks for letting us know!

  • -New
    +SetupIssue