Jump to content


How to delete users when p4d is unable to start

ubuntu linux

  • Please log in to reply
3 replies to this topic

#1 AhiyaHiya

AhiyaHiya

    Member

  • Members
  • PipPip
  • 26 posts

Posted 13 April 2017 - 01:49 AM

I recently upgraded my personal perforce server (running Ubuntu 12 LTS) from 2015.x to 2016.2 using the installation instructions on https://www.perforce...ckages.updating

The installation was fine, however, when the server started up, it would exit with error 255.

Taking a look at the log file, I realized that I had more users than the latest Helix server allows for; I forgot that helix now only allows 5 users, and I had 9 on my system before the upgrade.

Now, I'm in a situation where the server can't start up unless I delete those users but I can't delete those users unless I start up the server.

So... how do I go about getting the server back online so I can delete the users?

Thanks!

#2 Mailman Sync

Mailman Sync

    Advanced Member

  • Maillist Aggregator
  • 2495 posts

Posted 13 April 2017 - 02:35 PM

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


I think you can delete the db.user file and get the number of users to 0.
See if it helps.

--
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 AhiyaHiya
Sent: Wednesday, April 12, 2017 9:50 PM
To: perforce-user@perforce.com
Subject: [p4] How to delete users when p4d is unable to start

Posted on behalf of forum user 'AhiyaHiya'.

I recently upgraded my personal perforce server (running Ubuntu 12 LTS)
from
2015.x to 2016.2 using the installation instructions on
https://www.perforce...4sag/chapter.in
stall.html#install.linux.packages.updating

The installation was fine, however, when the server started up, it would exit
with error 255.

Taking a look at the log file, I realized that I had more users than the latest
Helix server allows for; I forgot that helix now only allows 5 users, and I had
9 on my system before the upgrade.

Now, I'm in a situation where the server can't start up unless I delete
those users but I can't delete those users unless I start up the server.

So... how do I go about getting the server back online so I can delete the
users?

Thanks!



--
Please click here to see the post in its original format:
  http://forums.perfor...o-delete-users-
when-p4d-is-unable-to-start
_______________________________________________
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



#3 AhiyaHiya

AhiyaHiya

    Member

  • Members
  • PipPip
  • 26 posts

Posted 13 April 2017 - 04:24 PM

My first impression of that solution is that it may affect the permissions that are associated with the depot's.

Would that action affect any of those permissions?

#4 Matt Janulewicz

Matt Janulewicz

    Advanced Member

  • Members
  • PipPipPip
  • 230 posts
  • LocationSan Diego, CA

Posted 13 April 2017 - 05:10 PM

The protections table is stored elsewhere and will ignore mention of users that don't exist, so this will work fine. I've done it plenty. :)

Maybe dump a checkpoint first then rename db.user to be safe.
-Matt Janulewicz
Currently unemployed, looking for work in Boise, ID!





Also tagged with one or more of these keywords: ubuntu, linux

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users