我最近从 ubuntu 8.04 升级到了 10.04,现在又升级到了 12.04,但是我的 plesk 安装却损坏了。
我尝试使用以下方法修复 plesk
/opt/psa/admin/sbin/autoinstaller --select-release-current --upgrade-installed-components
然而这又回来了ERROR: The product with ID plesk is not installed on the server
因此我尝试用以下方法解决这个问题:
cat /opt/psa/version
10.4.4 Ubuntu 8.04 1013111102.18
然后我尝试/opt/psa/admin/sbin/autoinstaller --show-all-releases
release_id (description) (branch) ---
plesk PLESK_11_5_21 (Parallels Plesk Panel 11.5.21 (testing)) (testing)
plesk PLESK_11_0_9 (Parallels Plesk Panel 11.0.9 (stable)) (stable)
plesk PLESK_10_4_4 (Parallels Plesk Panel 10.4.4 (stable)) (stable)
plesk PLESK_10_3_1 (Parallels Plesk Panel 10.3.1) (stable)
plesk PLESK_10_3_0 (Parallels Plesk Panel 10.3.0) (stable)
plesk PLESK_10_2_0 (Parallels Plesk Panel 10.2.0) (stable)
plesk PLESK_10_1_1 (Parallels Plesk Panel 10.1.1) (stable)
plesk PLESK_10_1_0 (Parallels Plesk Panel 10.1.0) (stable)
plesk PLESK_10_0_1 (Parallels Plesk Panel 10.0.1) (stable)
plesk PLESK_10_0_0 (Parallels Plesk Panel 10.0.0) (stable)
plesk PLESK_9_5_4 (Parallels Plesk Panel 9.5.4) (stable)
plesk PLESK_9_5_3 (Parallels Plesk Panel 9.5.3) (stable)
plesk PLESK_9_5_2 (Parallels Plesk Panel 9.5.2) (stable)
plesk PLESK_9_5_1 (Parallels Plesk Panel 9.5.1) (stable)
plesk PLESK_9_5_0 (Parallels Plesk Panel 9.5.0) (stable)
plesk PLESK_9_3_0 (Parallels Plesk Panel 9.3.0) (stable)
plesk PLESK_9_2_3 (Parallels Plesk Panel 9.2.3) (stable)
plesk PLESK_9_2_2 (Parallels Plesk Panel 9.2.2) (stable)
plesk PLESK_9_2_1 (Parallels Plesk Panel 9.2.1) (stable)
plesk PLESK_9_2_0 (Parallels Plesk Panel 9.2.0) (stable)
plesk PLESK_9_0_1 (Parallels Plesk Panel 9.0.1) (stable)
plesk PLESK_9_0_0 (Parallels Plesk Panel 9.0.0) (stable)
plesk PLESK_8_6_0 (Plesk 8.6.0) (stable)
plesk PLESK_8_4_1 (Plesk 8.4.1) (stable)
plesk PLESK_8_4_0 (Plesk 8.4.0) (stable)
plesk PLESK_8_3_0 (Plesk 8.3.0) (stable)
plesk PLESK_8_2_1 (Plesk 8.2.1) (stable)
plesk PLESK_8_2_0 (Plesk 8.2.0) (stable)
plesk PLESK_8_1_1 (Plesk 8.1.1) (stable)
plesk PLESK_8_1_0 (Plesk 8.1.0) (stable)
plesk PLESK_8_0_1 (Plesk 8.0.1) (stable)
plesk PLESK_8_0_0 (Plesk 8.0.0) (stable)
plesk PLESK_7_5_4 (Plesk 7.5.4) (stable)
plesk PLESK_7_1_7 (Plesk 7.1.7) (stable)
ppsmbe PPSMBE_10_2_0 (Parallels Small Business Panel 10.2.0) (stable)
ppsmbe PPSMBE_10_1_0 (Parallels Small Business Panel 10.1.0) (stable)
ppsmbe PPSMBE_10_0_0 (Parallels Small Business Panel 10.0.0) (stable)
sitebuilder SB_4_5_0 (Sitebuilder 4.5.0) (stable)
sso SSO_2_0 (SSO 2.0) (stable)
sso SSO_2_1 (SSO 2.1) (stable)
简而言之,我的 plesk 坏了,无法启动。
root@sub:~# /etc/init.d/psa start
Starting psa... failed
Starting xinetd service... done
Starting bind9 service... done
Starting mysql service... done
Starting postgresql service... done
Starting psa-spamassassin service... not installed
Plesk: Starting Mail Server... not installed
/etc/init.d/psa: line 269: /opt/psa/admin/sbin/websrvmng: No such file or directory
Starting psa... failed
因此我尝试修复 plesk 的安装。
答案1
你能检查psa
系统中软件包的可用性吗?或者更好——检查所有psa*
软件包的可用性?
这ERROR: The product with ID plesk is not installed on the server
(1) 和
Starting psa... failed
(2) 条消息让我认为在操作系统升级期间,您的一些 Plesk 软件包被删除了。可能是因为它们可能需要一些旧操作系统的软件包作为依赖项。请记住,Plesk 发行版是特定于操作系统的,因此不建议升级操作系统。
坏消息是,现在您必须扫描所有已删除软件包的日志并尝试恢复它们(这可能并不那么容易)。好消息是您的数据可能没问题,因此如果您创建新的 Plesk 服务器并使用 Plesk Migration and Transfer Manager(请确保选择安装它),您可能可以将所有数据传输到较新的服务器而不会造成任何损失。
更新:
我注意到您正在尝试更新 Plesk。实际上您可以尝试重新安装它,管理数据库和内容应该会保留。您可以通过以下方式执行此操作
/opt/psa/admin/sbin/autoinstaller --select-product-id=plesk --select-release-current --upgrade-installed-components
如果还是失败了,你可以备份psa
数据库和网站,然后重新安装
/opt/psa/admin/sbin/autoinstaller --所有版本
此后,需要手动恢复数据库和内容。