Jump to content


Revert if Unchanged Does Not Function


  • Please log in to reply
9 replies to this topic

#1 Doug Rogers

Doug Rogers

    Member

  • Members
  • PipPip
  • 11 posts

Posted 12 July 2017 - 11:06 PM

I updated the database using 'p4d -r p:/ -xu' as per the log file to update the database.  Revert if Unchanged no longer functions.  I have 34,323 files in my changelist now.  If I select a checkout file and 'Diff against have revision' it shows as identical.   If I revert if unchanged the file, nothing happens.

How do I solve this?

#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 254 posts

Posted 13 July 2017 - 12:05 AM

What version of the server did you upgrade to?

Did you run a "p4 verify -q" after the upgrade?  (If not, you could try just running it on one of these files now.)

What is the exact message you get when you run "p4 revert -a" on a single file?

#3 Doug Rogers

Doug Rogers

    Member

  • Members
  • PipPip
  • 11 posts

Posted 13 July 2017 - 03:36 AM

P4V version: Helix Visual Client/NTX64/2017.2/1518788

Nothing is printed out after p4 verify.

p4 revert on a file just hangs on the command line. Update: It finally came back with 'file(s) not opened on this client'

P4 has been scanning files for hours, but I don't know what it's doing.

#4 Mailman Sync

Mailman Sync

    Advanced Member

  • Maillist Aggregator
  • 2461 posts

Posted 13 July 2017 - 12:35 PM

Originally posted to the perforce-user mailing list by: Michael Mirman


How many files does it have to scan?
What happens if you run
p4 opened
p4 status
from the command line from the top of the workspace?
Are there any locks present? (p4 lockstat; p4 lockstat -C)
Is it possible there are other p4 commands running somewhere in the background? They may be holding/needing the same db table.

Is it possible it's a filer problem and not Perforce?
If the process on the server side is not doing anything (waiting for the data from the client), the problem is on the client side.

We just deployed 2017.2 P4V, so I am interested to see what this problem is.

--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555

Quote

-----Original Message-----
From: perforce-user [mailto:perforce-user-bounces@perforce.com] On
Behalf Of Doug Rogers
Sent: Wednesday, July 12, 2017 11:40 PM
To: perforce-user@perforce.com
Subject: Re: [p4] Revert if Unchanged Does Not Function

Posted on behalf of forum user 'Doug Rogers'.

P4V version: Helix Visual Client/NTX64/2017.2/1518788

Nothing is printed out after p4 verify.

p4 revert on a file just hangs on the command line.

P4 has been scanning files for hours, but I don't know what it's doing.



--
Please click here to see the post in its original format:
  http://forums.perfor...t-if-unchanged-
does-not-function
_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user
_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user



#5 Mailman Sync

Mailman Sync

    Advanced Member

  • Maillist Aggregator
  • 2461 posts

Posted 13 July 2017 - 02:10 PM

Originally posted to the perforce-user mailing list by: Michael Mirman


A couple more questions:
What server version are you running?
Do you have any renames in the opened files? If so, a few or a lot of renames?

We have just discovered that a certain revert command is hanging against 2017.1/1511680.
We are still investigating what's going on, but I wonder if you are running the same server.

--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555

Quote

-----Original Message-----
From: Michael Mirman
Sent: Thursday, July 13, 2017 8:34 AM
To: 'perforce-user@perforce.com' <perforce-user@perforce.com>
Subject: RE: [p4] Revert if Unchanged Does Not Function

How many files does it have to scan?
What happens if you run
p4 opened
p4 status
from the command line from the top of the workspace?
Are there any locks present? (p4 lockstat; p4 lockstat -C)
Is it possible there are other p4 commands running somewhere in the
background? They may be holding/needing the same db table.

Is it possible it's a filer problem and not Perforce?
If the process on the server side is not doing anything (waiting for the data
from the client), the problem is on the client side.

We just deployed 2017.2 P4V, so I am interested to see what this problem is.

--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555

Quote

-----Original Message-----
From: perforce-user [mailto:perforce-user-bounces@perforce.com] On
Behalf Of Doug Rogers
Sent: Wednesday, July 12, 2017 11:40 PM
To: perforce-user@perforce.com
Subject: Re: [p4] Revert if Unchanged Does Not Function

Posted on behalf of forum user 'Doug Rogers'.

P4V version: Helix Visual Client/NTX64/2017.2/1518788

Nothing is printed out after p4 verify.

p4 revert on a file just hangs on the command line.

P4 has been scanning files for hours, but I don't know what it's doing.



--
Please click here to see the post in its original format:
  http://forums.perfor...t-if-unchanged-
does-not-function
_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user
_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user




#6 Doug Rogers

Doug Rogers

    Member

  • Members
  • PipPip
  • 11 posts

Posted 13 July 2017 - 03:15 PM

p4 status prints:
Client 'DROGERS-DESKTOP' unknown - use 'client' command to create it.

#7 Mailman Sync

Mailman Sync

    Advanced Member

  • Maillist Aggregator
  • 2461 posts

Posted 13 July 2017 - 03:30 PM

Originally posted to the perforce-user mailing list by: Michael Mirman


That doesn't count. :)
You'd need to pass -c clientname, and you need to know the client name.
P4V does this for you automatically, but if you don’t have P4CONFIG file, you need to specify the client name like this:
p4 -c clientname status

In any case, I wonder if you have files opened for move in your client, and what server version you are using.
All this information is available in P4V, but you can also get it from CLI -
p4 -c clientname opened | grep -c move/
p4 -c clientname info | grep Server

--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555

Quote

-----Original Message-----
From: perforce-user [mailto:perforce-user-bounces@perforce.com] On
Behalf Of Doug Rogers
Sent: Thursday, July 13, 2017 11:15 AM
To: perforce-user@perforce.com
Subject: Re: [p4] Revert if Unchanged Does Not Function

Posted on behalf of forum user 'Doug Rogers'.

p4 status prints:
Client 'DROGERS-DESKTOP' unknown - use 'client' command to
create it.



--
Please click here to see the post in its original format:
  http://forums.perfor...t-if-unchanged-
does-not-function
_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user
_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user



#8 Mailman Sync

Mailman Sync

    Advanced Member

  • Maillist Aggregator
  • 2461 posts

Posted 13 July 2017 - 03:35 PM

Originally posted to the perforce-user mailing list by: Michael Mirman


I just realized you are probably on a Windows machine.
If you don’t have Unix commands on the path, you don’t have grep.
Just go back to P4V, look at the pending changes and see if there are moves. If so, are there just a few or many?
Then go to Help -> System Info and see what server version you are running against.

--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555

Quote

-----Original Message-----
From: perforce-user [mailto:perforce-user-bounces@perforce.com] On
Behalf Of Michael Mirman
Sent: Thursday, July 13, 2017 11:28 AM
To: perforce-user@perforce.com
Subject: Re: [p4] Revert if Unchanged Does Not Function

That doesn't count. :)
You'd need to pass -c clientname, and you need to know the client name.
P4V does this for you automatically, but if you don’t have P4CONFIG file, you
need to specify the client name like this:
p4 -c clientname status

In any case, I wonder if you have files opened for move in your client, and
what server version you are using.
All this information is available in P4V, but you can also get it from CLI -
p4 -c clientname opened | grep -c move/
p4 -c clientname info | grep Server

--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555

Quote

-----Original Message-----
From: perforce-user [mailto:perforce-user-bounces@perforce.com] On
Behalf Of Doug Rogers
Sent: Thursday, July 13, 2017 11:15 AM
To: perforce-user@perforce.com
Subject: Re: [p4] Revert if Unchanged Does Not Function

Posted on behalf of forum user 'Doug Rogers'.

p4 status prints:
Client 'DROGERS-DESKTOP' unknown - use 'client' command to
create it.



--
Please click here to see the post in its original format:
  http://forums.perfor...t-if-unchanged-
does-not-function
_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user
_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user
_______________________________________________
perforce-user mailing list  -  perforce-user@perforce.com
http://maillist.perf...o/perforce-user




#9 Doug Rogers

Doug Rogers

    Member

  • Members
  • PipPip
  • 11 posts

Posted 13 July 2017 - 03:58 PM

Resolved: Somehow a new client was added, so I had to delete the new client and replace it with the old client.  I had a hang on revert again at a specific file.  I renamed that file and it worked.

#10 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 254 posts

Posted 13 July 2017 - 04:53 PM

View PostDoug Rogers, on 13 July 2017 - 03:58 PM, said:

Resolved: Somehow a new client was added, so I had to delete the new client and replace it with the old client.  I had a hang on revert again at a specific file.  I renamed that file and it worked.

Does the file have a special reserved name like "CON" or "NUL" or etc?  (Does Windows still have those?)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users