1034: P4 user run Error

mw44****@gmai***** (Google Code) (Is this you? Claim this profile.)
April 14, 2009
What's the URL of the page containing the problem?
http://localhost/

What steps will reproduce the problem?
1.post-review 12345
2.
3.

What is the expected output? What do you see instead?
new review request is posted

What operating system are you using? What browser?
Ubuntu 8.1 Firefox

Please provide any additional information below.
apache passes username www-data so perforce dose not know that user
my perforce username is "mw44.lee"
error message is "Access for user 'www-data' has not been enabled by 'p4
protect'
if I enter my username in the repositories setting, the error message is
"Perforce password (P4PASSSWD) invalid or unset"
if I enter my username and password in the repositories setting, the error
message is "Password not allowed at this server security level, use 'p4 login'"

what should I do?? ubuntu can't create mw44.lee user :(
#1 eric****@gmai***** (Google Code) (Is this you? Claim this profile.)
Here's an idea for you to try.  Inside the <Location> tag in the apache config where
you set up your python handler (assuming mod_python), you can add a setting:

SetEnv HOME /home/mw44.lee

Or whatever your home directory is.  Make sure you are logged in (you have a
~/.p4tickets file), and restart apache.  The perforce API should look at $HOME to
find the p4tickets file.  Make sure in your reviewboard repository information you
have your username (mw44.lee) set, but with no password.  Also make sure that the
www-data user has access to your tickets file (chown or chmod the .p4tickets file).

You also may want to consider creating a Perforce user account specifically for
reviewboard (or any general user for any automated p4-scripting tasks).
#2 mw44****@gmai***** (Google Code) (Is this you? Claim this profile.)
Thank you ^^. The problem is solved by chmod '.p4tickets'. 
david
#3 david
  • +NotABug