Thursday, March 8, 2012

(Solution) p4 Error: Can’t clobber writable file Perforce

Files are read only when they are checked out as a part of perforce. However, if for some reason they become writable you can see this error. I fixed it by changing the file permissions on the entire directory as:

chmod 755 -R *
p4 sync ...
 If you have any open (edited) files, then please move them somewhere else, do a force synch and move them back.