由于超出用户计数限制和版本不匹配,Perforce 版本服务器无法启动

Perforce version server won't start because of exceeded user count limit and version mismatch

我今天发现我的 Perforce 服务器无法访问,经过大量挖掘,我认为服务器一定是自动升级了 p4 服务器程序。现在 p4d 不是 运行ning,所以我不能用它做任何事情。

此服务器是为一组大学生设置的,当时他们提供了 20 个用户的免费许可证。看起来他们已经放弃了那个选项,而且我没有看到任何选项可以恢复到该许可下的版本。如果需要,我可以接受新的 5 个用户限制,但前提是我能够克服我所处的情况。

以下是让我束手无策的命令和响应。如您所见,我遇到了循环问题。我不能 运行 p4d,因为超过了许可数。我无法 运行 服务器处于维护模式,因为数据库需要升级,而且我无法 运行 升级,因为我没有足够的许可证。

我的第一选择是降级到 运行ning 的版本。如果那不可能,那么删除一些用户,这样我至少可以让事情正常进行也是可以接受的。

服务器是 运行ning Ubuntu 14.04LTS

感谢您的帮助。

root@ubuntu14-server:/opt/perforce/servers/p4test# p4d
Perforce server error:
        Warning! You have exceeded the usage limits of Perforce Helix. Version 16.1 allows up to five users without commercial licenses. You may continue your current usage with previous versions of our software.

        Try deleting old users with 'user -d'.
        License count: 11 users used of 5 licensed.

        For additional licenses, contact Perforce Sales at sales@perforce.com.
root@ubuntu14-server:/opt/perforce/servers/p4test# p4d -n
Perforce server error:
        Database is at old upgrade level 23.  Use 'p4d -r /opt/perforce/servers/p4test -xu' to upgrade to level 25.
root@ubuntu14-server:/opt/perforce/servers/p4test# p4d -r /opt/perforce/servers/p4test -xu
Perforce server error:
        Warning! You have exceeded the usage limits of Perforce Helix. Version 16.1 allows up to five users without commercial licenses. You may continue your current usage with previous versions of our software.

        Try deleting old users with 'user -d'.
        License count: 11 users used of 5 licensed.

        For additional licenses, contact Perforce Sales at sales@perforce.com.

/var/log/dpkg. 两周前的日志显示正在进行更新:

2016-10-11 20:41:01 upgrade perforce-p4dctl:amd64 2015.1-1227227~trusty 2015.2-1443805~trusty
2016-10-11 20:41:01 status half-configured perforce-p4dctl:amd64 2015.1-1227227~trusty
2016-10-11 20:41:04 status unpacked perforce-p4dctl:amd64 2015.1-1227227~trusty
2016-10-11 20:41:04 status half-installed perforce-p4dctl:amd64 2015.1-1227227~trusty
2016-10-11 20:41:04 status half-installed perforce-p4dctl:amd64 2015.1-1227227~trusty
2016-10-11 20:41:05 status unpacked perforce-p4dctl:amd64 2015.2-1443805~trusty
2016-10-11 20:41:05 status unpacked perforce-p4dctl:amd64 2015.2-1443805~trusty
2016-10-11 20:41:06 install helix-p4dctl:amd64 <none> 2016.1-1446835~trusty
2016-10-11 20:41:06 status half-installed helix-p4dctl:amd64 2016.1-1446835~trusty
2016-10-11 20:41:07 status triggers-pending ureadahead:amd64 0.100.0-16
2016-10-11 20:41:07 status half-installed helix-p4dctl:amd64 2016.1-1446835~trusty
2016-10-11 20:41:08 status unpacked helix-p4dctl:amd64 2016.1-1446835~trusty
2016-10-11 20:41:08 status unpacked helix-p4dctl:amd64 2016.1-1446835~trusty

我遇到了同样的问题

如果您已通过包管理器更新:

Centos

yum downgrade helix

Ubuntu

apt-get install «pkg»=«version»

手动

http://ftp.perforce.com/perforce/

16.1 版本将限制从 20 更改为 5。

要注意的是,即使降级到 2015.2 版,它仍然不会开始抱怨 5 用户许可证。 (呃?)

但是如果你 运行 p4 -n 你将能够登录,访问管理并删除一些用户继续(我希望到 gitlab,大声笑)