Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Perforce admin To find out files is being submitted by user

rajeshkumar created the topic: perforce admin To find out files is being submitted by user
Questions: perforce admin To find out files is being submitted by user
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Purely numeric name not allowed

rajeshkumar created the topic: Purely numeric name not allowed
Issues : Purely numeric name not allowed.

Solution:

This error can be happen when Purely numeric name is mentioned in Group name, Specname, Username etc.

This should be verified using “p4 info”

Also, check if following hostname has numeric value which was set in p4 info by default So you need to set P4CLEINT= in Linux and p4 set -s/S P4CLIENT= in windows.

If you found somthing where all pure numeric name, issues need to be fixed as Purely numeric name not allowed anywhere except jobs.

There are some more findings and supporting classes there…

www.perforcechronicle.com/docs/api/class…date___key_name.html
Here is the class file validation in red which is not allowing you to go further.
// test for purely numeric name.
if (!$this->_allowPurelyNumeric && preg_match('/^[0-9]+$/', $value)) {
$this->_error(static::IS_NUMERIC);
return false;

However, there are google results are found where users were able to fix the issues by disabling DHCP. I have not tried this and doubt about this solutions.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Configuring line-ending settings in perforce

rajeshkumar created the topic: Configuring line-ending settings in perforce
Unix uses one byte, 0x0A (LineFeed), while windows uses two bytes, 0x0D 0x0A (Carriage Return, Line feed).

To Find the files which has Windows line endings
egrep -l $’\r\n’ * in Bash

To Convert files from DOS TO unix
dos2unix -U

file
if the file has regular LF line endings, then it won’t print any output. But if the file has CRLF, bare CR, or mixed line endings, it will tell you that

Configuring line-ending settings in perforce
kb.perforce.com/article/63
kb.perforce.com/article/63
kb.perforce.com/article/71/perforce-macintosh-platform-notes
www.perforce.com/perforce/r10.1/manuals/p4guide/02_config.html
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Shutting Down the Perforce Server

rajeshkumar created the topic: Shutting Down the Perforce Server
very useful links for Shutting Down the Perforce Server safely…..

answers.perforce.com/articles/KB_Article…-the-Perforce-Server
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Killing Perforce Server Child Processes

rajeshkumar created the topic: Killing Perforce Server Child Processes
Very good articles on Killing Perforce Server Child Processes….

answers.perforce.com/articles/KB_Article…rver-Child-Processes

but the next questions is – How to Identify whether a command is in its compute phase or not before kiling?
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Balaji.scm replied the topic: Moving only specific projects from perforce server to another server.Hi,

I like to move specific projects from my perforce server to another existing perforce server without losing any revision history , not the entire depot. Can you please help me how to move from one server to another perforce server only specific project. please help with details to do by step by step process.

Regards,
Balaji M

rajeshkumar replied the topic: Moving only specific projects from perforce server to another server.
Here are good inputs discussion on perforce moving few depots from one to another without loosing history. Please do let me know if you are stuck to some place….

stackoverflow.com/questions/13238503/how…uch-that-revision-hi
forums.perforce.com/index.php?/topic/166…ne-depot-to-another/
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Perforce The file name is too long.

scmuser created the topic: Perforce The file name is too long.
I am getting following error while syncing long path files in Windows 7

” The file name is too long. ”

Any workaround?

rajeshkumar replied the topic: Perforce The file name is too long.
The answer can be found in – answers.perforce.com/articles/KB_Article…with-Long-Path-Names
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

How to add files in perforce with characters @, #, *, and %?

rajeshkumar created the topic: How to add files in perforce with characters @, #, *, and %?

How to add files in perforce with characters @, #, *, and %?
To add files containing the characters @, #, *, and %, use the -f flag. This flag forces literal interpretation of characters otherwise used by Perforce as wildcards.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Some Common Perforce Error

rajeshkumar created the topic: Some Common Perforce Error
Problem:

Perforce client error:
TCP send failed.
write: socket: Connection reset by peer

Solutions:
These issues occur only when perforce client and perforce server is not able to receive or sent data packets to each other. This can be due to various reason.
Check following…

1. Fix this file ownership problem of the repository. It should be same user by which p4d services has been re-started.
2. Please check network issues.

Problem

Perforce client error:
RpcTransport: partial message read
TCP receive failed.
read: socket: Connection reset by peer”

Solutions:
Connection reset be peer” generally suggests a network issue. this could be due to either misconfigured or faulty network hardware. OR An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, the host or remote network interface is disabled, or the remote host uses a hard close (see setsockopt for more information on the SO_LINGER option on the remote socket).

More Info can be found in
kb.perforce.com/article/410/wsaeconnreset-error-description

Perforce client error:

TO BE WRITTEN

RpcTransport: partial message read

TO BE WRITTEN

TCP receive failed.

The TCP errors indicate that of something being killed on the server( may be some triggers/ network issues / process / jobs / services and hence the connection to your client drops.

read: socket: WSAECONNABORTED

TO BE WRITTEN

error: read: socket: Connection reset by peer

TO BE WRITTEN

Perforce command exited abnormally with error code 1!

TO BE WRITTEN

Partner exited unexpectedly.

TO BE WRITTEN

WSAECONNABORTED or WSAECONNREFUSED or WSAETIMEDOUT Error

This kind of error occur on Windows systems due to some network issues. to bebug more, please refer following url..
kb.perforce.com/article/905/common-windo…erver-network-errors
www.scmgalaxy.com/perforce/perforce-netw…eshooting-hints.html
kb.perforce.com/article/410/wsaeconnreset-error-description

Unicode server permits only unicode enabled clients.

TO BE WRITTEN

Problem
RpcTransport: partial message read
TCP receive failed.
read: socket: WSAECONNABORTED
Perforce::executePerforceCommand – Perforce command exited abnormally with error code 1!
error: RpcTransport: partial message read

Solution
1. Check if you have DOt extention files. Windows does not support “DOT” extension files so it could be releated to this.
2. Network drop out for few second may also cause issues.

Problem:
An issue with older Perforce Windows clients with an artificially low send window size would appear as:
rpc send receive errors, duplexing F/R 1249/0 in perforce.log

Solution: Clients need to be upgdraded

Problem: protected namespace – access denied

This means user is not assigned with access to the perforce or specific depot path

Error –
Large files integration using p4v somtime givs following error.
Error in change specification.
Can’t include file(s) not already opened.
Open new files with p4 add, p4 edit, etc.

Solution:
Post integration, you just fetch the changelist number and run over the command line.
p4 submit -c #changelost

or

try integrating using new clientspec

Error –
RpcTransport: partial message read
TCP receive exceeded maximum configured duration of 300 seconds.\

Solution:
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Some Common Perforce Error
Journal record replay failed!
perforce@perforce:~/1/logs$ more checkpoint.log
Fri Jul 4 03:00:02 PDT 2014 : Start p4_1 Checkpoint
Fri Jul 4 03:00:02 PDT 2014 : Truncating journal…
Rotating /p4/1/logs/journal to /p4/1/checkpoints/p4_1.jnl.5453…

real 0m0.180s
user 0m0.000s
sys 0m0.020s
Fri Jul 4 03:00:03 PDT 2014 : Replay journal to offline db.
Recovering from /p4/1/checkpoints/p4_1.jnl.5453…
Fri Jul 4 04:17:09 PDT 2014 : Recreate offline db files for quick recovery process.
Perforce db files in ‘/p4/1/offline_db’ will be created if missing…
Recovering from /p4/1/checkpoints/p4_1.ckp.5453.gz…
Perforce server error:
Journal file ‘/p4/1/checkpoints/p4_1.jnl.5453’ replay failed at line 216307!
Journal record replay failed!
In table db.desc, the following row was not present or could not be deleted. It may be possible to use the
‘-f’ flag to proceed beyond this point. Row data: “1253455 @@ ”

real 77m30.886s
user 0m0.828s
sys 0m19.789s
Fri Jul 4 04:17:33 PDT 2014 : Journal replay failed. Abort!

Answer
You’re getting this error because Perforce is trying to replay a @dv@ line (a database record to delete) when the expected database record is not present in the current state of the database that has been replayed so far.

Usually this is not necessary an issue as the end result is for this record not to be present in your database and as mentioned in the error, you can replay the journal using the -f flag (e,g, p4d -r offline_P4ROOT -jr -f /p4/1/checkpoints/p4_1.jnl.5453).

Although this error is not serious, it is not expected and I would like to check the integrity of your database from a logical database point of view. Could you run the following command:

p4d -r offline_P4ROOT -xx

Send the command output and the jnl.fix it will produce. Also send me line 216307 (a db.desc record) of /p4/1/checkpoints/p4_1.jnl.5453 for review.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Script to remove Perforce user which is LDAP disable

rajeshkumar created the topic: Script to remove Perforce user which is LDAP disable
>> p4 users | cut -f 1 -d " " | grep -v ^user | xargs -n 1 /var/tmp/ldaplookupuser.pl

Content of ldaplookupuser.pl
#!/usr/bin/perl

my ($InUser) = shift;
# print "[INFO] Validating Perforce user - ${InUser}\n";

my ($LookupUser)=`ldapsearch -LLL -x uid=${InUser} uid`;

print "User ${InUser} no longer works at Company\n" if `ldapsearch -LLL -x uid=${InUser} uid` !~ /${InUser}/i;

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :