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

问题描述 投票:0回答:1

所以我的问题就像标题所示。不过我从这个页面(https://documentation.cpanel.net/display/ALD/Installation+Guide+-+Troubleshoot+Your+Installation#InstallationGuide-TroubleshootYourInstallation-Licenseerrors)尝试了以下建议但没有结果。

1.)curl -L http://cpanel.net/showip.cgi(显示我在服务器上的ip地址,用于verify.cpanel.net脚本),这也可以在这里验证...(http://verify.cpanel.net/index.cgi?ip=xxx.xxx.xxx.xx)(我不喜欢显示我的IP,但是相信我已经过验证。)

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

所以上面没有用。

然后我尝试了这些命令。

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

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

4.)然后我尝试按照其他帖子的建议运行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

任何帮助表示赞赏!

enter image description here

笔记

运行/ 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

运行/ 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
cpanel whm server-administration
1个回答
0
投票

事实证明答案是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

第一个命令保存防火墙设置的副本。接下来的两个命令使得所有输入/输出都被允许(用于传出和传入连接)最后通过ping日志文件中为cPanel提供问题的ip地址进行测试。

如果它工作,则意味着更新许可证命令将起作用。

简单地运行:

/usr/local/cpanel/cpkeyclt

你很高兴。

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

iptables-restore < /root/current.ipt

rm -f /root/current.ipt

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

© www.soinside.com 2019 - 2024. All rights reserved.