2016-07-26 79 views
0

所以我的问题就像标题所示。不过,我从本页尝试了以下建议(https://documentation.cpanel.net/display/ALD/Installation+Guide+-+Troubleshoot+Your+Installation#InstallationGuide-TroubleshootYourInstallation-Licenseerrors),但没有结果。CPanel/WHM未知许可证文件错误

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 

任何帮助表示赞赏!运行的/ usr /本地/的cPanel /的

enter image description here

结果等/ 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 /本地/的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 

回答

0

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

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

iptables的保存> /root/current.ipt

的iptables -P INPUT ACCEPT; iptables -P OUTPUT ACCEPT

iptables -F INPUT; iptables -F OUTPUT

ping -c 3 google。COM

的iptables-恢复< /root/current.ipt

RM -f /root/current.ipt

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

如果有效,那意味着更新许可证命令将起作用。

只需运行...

在/ usr /本地/的cPanel/cpkeyclt

,你是好去!

,如果你愿意,你可以使用最后两个命令恢复回来你的规则,

的iptables-恢复< /root/current.ipt

RM -f /root/current.ipt

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