out of the sudden my database failed yesterday, I worked with it five minutes before and then I got a db error.
I thought "no problem" as I do backups everyday along with checkpoints. The problem is that recovering them simply does not work. I always end up with an empty Perforce server.
Please allow me to go into details.
I create my checkpoints using "p4d -jc". I also backup all data from "C:\Program Files\Perforce\Server".
This is basically what I did. Please keep in mind that I tried around several times with different backups so I am giving you the basic steps that I followed.
- Stop Perforce server
- cd C:\Program Files\Perforce\Server
- p4d -jv c:/restore/snapshot/checkpoint.1 << No output, so I guess this is fine?
- del db.*
- del journal
- p4d -jr c:/restore/snapshot/checkpoint.1 c:/restore/snapshot/journal
Perforce db files in '.' will be created if missing...
Recovering from c:/restore/snapshot/checkpoint.1...
Recovering from c:/restore/snapshot/journal...
So everything is looking fine now. The db files and the journal re where they belong. Also the actual depot data is still there as it was not affected.
Then I start the Perforce server again and try to connect with p4admin it says "No such user". When I create a new user which then is promoted to super user, I can see that my depots do not exist and instead I see an empty "depot" depot.
The server was a case-insensitive unicode server.
Any suggestion what I can still try?
I even tried to recover Perforce on another computer but with the same result.