CPanel/WHM 未知的许可文件错误

CPanel/WHM Unknown License File Error

所以我的问题就像标题所暗示的那样。但是我尝试了此页面 (https://documentation.cpanel.net/display/ALD/Installation+Guide+-+Troubleshoot+Your+Installation#InstallationGuide-TroubleshootYourInstallation-Licenseerrors) 中的以下建议,但没有结果。

1.) curl -L http://cpanel.net/showip.cgi (shows my ip address on the server for use on the verify.cpanel.net script), this can be verified also here... (http://verify.cpanel.net/index.cgi?ip=xxx.xxx.xxx.xx)(我不喜欢显示我的 IP,但请相信我它已经过验证。)

2.) /usr/local/cpanel/cpkeyclt 更新 cPanel 许可证...完成。 更新失败! 错误信息: 许可证检查似乎已经 运行ning。 为 cpanel 构建全局缓存...完成

所以上面的方法没有用。

然后我尝试了这些命令。

3.) /usr/local/cpanel/etc/init/stopcpsrvd 然后 /usr/local/cpanel/scripts/upcp --sync 尝试重新同步。

这似乎成功了 运行 但我仍然遇到同样的错误。下面的附件是我尝试登录 WHM 时收到的错误消息。

4.) 然后我按照其他一些帖子中的建议尝试 运行ning rdate -s rdate.cpanel.net 来使时间匹配,然后当我 运行 (/usr/local/cpanel/cpkeyclt) 它似乎超时了,什么也没有发生。

查看 cpanel 许可证的日志 (/usr/local/cpanel/logs/license_log) 我看到了。

Tue Jul 26 16:23:30 2016: Trying server 208.74.125.22
Tue Jul 26 16:23:45 2016: Timed out while connecting to port 2089
Tue Jul 26 16:24:00 2016: Timed out while connecting to port 80
Tue Jul 26 16:24:15 2016: Timed out while connecting to port 110
Tue Jul 26 16:24:30 2016: Timed out while connecting to port 143
Tue Jul 26 16:24:45 2016: Timed out while connecting to port 25
Tue Jul 26 16:25:00 2016: Timed out while connecting to port 23
Tue Jul 26 16:25:15 2016: Timed out while connecting to port 993
Tue Jul 26 16:25:30 2016: Timed out while connecting to port 995
Tue Jul 26 16:30:14 2016: License Update Request
Tue Jul 26 16:30:14 2016: Using full manual DNS resolution
Tue Jul 26 16:30:14 2016: Trying server 208.74.121.85
Tue Jul 26 16:30:29 2016: Timed out while connecting to port 2089

感谢任何帮助!

备注

运行宁/usr/local/cpanel/etc/init/stopcpsrvd

的结果
/usr/local/cpanel/etc/init/stopcpsrvd
Waiting for “cpsrvd” to stop ……Gracefully Terminating processes: cpsrvd: with pids 20842 and owner root.......waited 1 second(s) for 1 process(es) to terminate....Done
…finished.

Startup Log
    Starting PID 20839: /usr/local/cpanel/libexec/cpsrvd-dormant

运行ning /usr/local/cpanel/scripts/upcp –sync 的结果(由于文本字符限制,无法显示所有内容)

[2016-07-26 15:39:39 -0400]   Detected cron=0 (Terminal detected)
----------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
=> Log opened from cPanel Update (upcp) - Slave (21620) at Tue Jul 26 15:41:53 2016
[2016-07-26 15:41:53 -0400]   Maintenance completed successfully
[2016-07-26 15:41:54 -0400]   95% complete
[2016-07-26 15:41:54 -0400]   Running Standardized hooks
[2016-07-26 15:41:54 -0400]   100% complete
[2016-07-26 15:41:54 -0400]   
[2016-07-26 15:41:54 -0400]     cPanel update completed
[2016-07-26 15:41:54 -0400]   A log of this update is available at /var/cpanel/updatelogs/update.1469561979.log
[2016-07-26 15:41:54 -0400]   Removing upcp pidfile
[2016-07-26 15:41:54 -0400]   
[2016-07-26 15:41:54 -0400] Completed all updates
=> Log closed Tue Jul 26 15:41:54 2016

原来答案是IPTables。在此之前,修复它需要 rDate 命令,但我的 IPTables 阻止了连接。

要暂时禁用防火墙,请执行此操作。

iptables-save > /root/current.ipt
iptables -P INPUT ACCEPT; iptables -P OUTPUT ACCEPT
iptables -F INPUT; iptables -F OUTPUT
ping -c 3 google.com
iptables-restore < /root/current.ipt
rm -f /root/current.ipt

第一个命令保存防火墙设置的副本。 接下来的 2 个命令使所有 input/output 都被允许(对于传出和传入连接) 最后通过 ping 日志文件中导致 cPanel 问题的 IP 地址进行测试。

如果有效,则意味着更新许可证命令将有效。

简单运行:

/usr/local/cpanel/cpkeyclt

一切顺利。

如果需要,您可以使用最后 2 个命令恢复规则:

iptables-restore < /root/current.ipt

rm -f /root/current.ipt

请注意,除非您修复防火墙,否则您将再次被阻止。