如何从版本文件恢复perforce?
我尝试从 perforce 2005 迁移到 2010,但失败了。我创建了检查点和日志文件(使用 p4d -jc 命令),在旧计算机上复制版本文件。但在新机器上恢复失败。第一次尝试时我得到 “日志文件‘日志’重放在第 9680 行失败! 错误的操作码“日志记录!” 错误。我在日志文件中发现零字节并将其删除。第二次尝试时出现错误: “强制服务器错误 1 乱序日志未重播”
接下来做什么? 如何修复日志文件? 我可以仅使用版本文件在没有日志文件的情况下恢复 Perforce 数据库吗?
PS Perforce 仍然可以在旧机器上运行。
I tryed migrate from perforce 2005 to 2010 and failed. I created checkpoint and journal files (with p4d -jc command), copy version files on old machine. But failed restore it on new machine. On first try i get
"Journal file 'journal' replay failed at line 9680!
Bad opcode '' journal record!"
error. I found in journal file zero bytes and remove it. On second try I get error:
"Perforce server error
1 out of sequence journals were not replayed"
What do next? How to repair journal file? Can I restore Perforce database without journal file using only version files?
P.S. Perforce still work on old machine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的日记在某个时候被损坏了。由于 perforce 仍在旧机器上运行,我建议您开始迁移,并确保每一步都没有任何损坏。例如,查看生成后的日志大小,或者最好对其进行 md5 或 sha1,然后检查新机器上是否一切正常。还要确保在复制任何文件之前停止 p4d。
由于您从 p4 2005 升级到 p4 2010,您可能有一个特定的过程,您遵循了吗?
Your journal got corrupted at some point. Since perforce is still running on the old machine I suggest you to start the migration over ensuring at each step that nothing got corrupted. For instance look at the journal size after generation, or better make a md5 or an sha1 of it, and check everything is still ok on the new machine. Also ensure that p4d is stopped before copying any file.
Since you upgrade from p4 2005 to p4 2010 you probably have a specific procedure, did you follow it?