Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I delete client from a perforce server that won't start

Tags:

perforce

p4v

I have finally got around to upgrading my perforce server to 2014.

I had a single user Admin Licence, but didn't pay yearly upgrade as I though new free licence would suit me - 20 clients. I just removed the old licence file.

I didn't realise I had 29 clients.

I get this error message

C:\Program Files\Perforce\NewServer>p4d
Perforce server error:
    Unlicensed server cannot start while over user/client quota.
    Try deleting old clients with 'client -d'.
    License count: 29 clients used of 20 licensed.

Is there a way I can select 29 clients to delete? obviously p4 client command won't connect as the server isnt running. Can I run that command against p4d or something similar?

I will contact perforce support on Monday, but wondered if there was anything I could do myself.

like image 655
Toby Allen Avatar asked Dec 21 '14 14:12

Toby Allen


People also ask

How do I delete pending Changelist?

To delete a pending changelist, you must first remove all files and jobs associated with it and then issue the p4 change -d changenum command. Related operations include the following: To move files to another changelist, issue the p4 reopen -c changenum command.

What does Perforce clean do?

Used to cleanup the client workspace after the build. Optionally, setting the global option will delete the workspace files. To delete the workspace files after the build, use the global setting in Perforce: OnDelete Workspace Options, see Perforce: OnDelete Workspace Options.

Can't delete already opened for edit Perforce?

The easiest way to fix this is for the admin to run p4d -xf 925 on the server root; this is a repair command that looks for this exact inconsistency and should repair it by pruning out unmatched db.

How do I unlock my p4 client?

To unlock those files: p4 [g-opts] unlock [-c change | -s shelvedchange | -x] [-f] [file ...] This releases locks that were created explicitly using the p4 lock command, or implicitly during the course of a submit operation.

What does Perforce Remove from workspace do?

The p4v Perforce GUI client has an 'Actions > Remove from Workspace' menu command which removes all files from the workspace that are under version control and were not opened for edit or delete.


2 Answers

We just got hit by this. In the end we issued a

"p4d -n -p 1666" 

which put us into maintenance mode. We could then delete client specs. After deleting a few we could start the server again.

like image 66
PompeyPaul Avatar answered Oct 31 '22 21:10

PompeyPaul


I don't know if there is a solution to what I wanted to do, but this is how i solved it.

I had created a full backup of my perforce directory before upgrade.

  1. Unzip backup
  2. Open 'cmd' in backup dir
  3. run p4dfrom commandline, starting the perforce server
  4. connect with normal p4v client
  5. Delete all the additional clients
  6. Shut down p4d window to kill perforce instance
  7. Create Checkpoint
  8. Delete db.* files from real folder
  9. Restore newly created checkpoint to real folder.

All working now.

like image 22
Toby Allen Avatar answered Oct 31 '22 20:10

Toby Allen