我按照以下说明安装了 mwoffliner 1.6.0这些说明在 Ubuntu 18.10 (cosmic,桌面版) 中。有些程序缺失,我似乎设法安装了所有程序。
我成功运行了命令行并下载了一个外部 Wiki(即 ts.wikipedia.org),但是当我尝试下载本地 wiki(本地托管,在 Ubuntu 18.10 内)时,却彻底失败了。以下是我发出的命令行:
mwoffliner --mwUrl=http://192.168.56.5/UnifiedICTDoc [email protected] --verbose --redis=redis://127.0.0.1:6379 --mwWikiPath=/ --mwApiPath=api.php
根据错误报告,是zimwriterfs
(由 调用mwoffliner
) 无法找到welcome page at '
。它似乎在寻找Main_Page.html
,而 wiki 只有Main_Page
。我尝试输入Main_Page.html
(而http://192.168.56.5/UnifiedICTDoc/index.php/Main_Page.html
不是http://192.168.56.5/UnifiedICTDoc/index.php/Main_Page
),但 wiki 没有找到它。
我不知道如何给出zimwriterfs
一个--welcome=Main_Page
参数来代替--welcome=Main_Page.html
错误输出中出现的参数。事实上,如果查看发送到的代码,会发现zimwriterfs
有两个--welcome=
参数,这似乎很奇怪而且自相矛盾。在给出的输出末尾找到--verbose
(我将输出的末尾放在错误开始的地方,但在这种情况下可能只有结尾才是相关的)。
关于如何解决这个问题的任何想法都将非常感激。
Create main page redirection...
Saving articles...
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&oldid=68
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Main_Page&oldid=68...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IT&oldid=69
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IT&oldid=69...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IT&oldid=69 at /home/pit/Downloads/cac/192_en/6a89ec3991120c028d52...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IT_Procedures&oldid=70
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IT_Procedures&oldid=70...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IT_Procedures&oldid=70 at /home/pit/Downloads/cac/192_en/e222c242065891deecb2...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Apple&oldid=94
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Apple&oldid=94...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Apple&oldid=94 at /home/pit/Downloads/cac/192_en/8974a0b093782a04efea...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=AS_Server&oldid=79
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=AS_Server&oldid=79...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=AS_Server&oldid=79 at /home/pit/Downloads/cac/192_en/9cf768ef56612ddd8cd7...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=ASL_Server&oldid=89
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=ASL_Server&oldid=89...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=ASL_Server&oldid=89 at /home/pit/Downloads/cac/192_en/c0b5e21df4c78b2fb7f6...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Additional_Restricted_or_Tools_Software_Installation&oldid=87
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Additional_Restricted_or_Tools_Software_Installation&oldid=87...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Additional_Restricted_or_Tools_Software_Installation&oldid=87 at /home/pit/Downloads/cac/192_en/54e0ea0e4ef2e50a1c51...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=ICRC_WAN_to_Connect_WAN_Migration&oldid=51
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=ICRC_WAN_to_Connect_WAN_Migration&oldid=51...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=ICRC_WAN_to_Connect_WAN_Migration&oldid=51 at /home/pit/Downloads/cac/192_en/4ef68e32b02ffd66d731...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Network_Installation&oldid=85
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Network_Installation&oldid=85...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Network_Installation&oldid=85 at /home/pit/Downloads/cac/192_en/816eddcf9574bcca187f...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Peripheral_Installation&oldid=78
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Peripheral_Installation&oldid=78...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Peripheral_Installation&oldid=78 at /home/pit/Downloads/cac/192_en/b4e70d7a3187dc0fa857...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Site_Migration&oldid=80
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Site_Migration&oldid=80...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Site_Migration&oldid=80 at /home/pit/Downloads/cac/192_en/d4fb71c124eb9cedbd02...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Unified_Workstation&oldid=32
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Unified_Workstation&oldid=32...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Unified_Workstation&oldid=32 at /home/pit/Downloads/cac/192_en/f8dec06be846056ae4e8...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Virus_infection_and_DRP_Infrastructure_Recover&oldid=81
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Virus_infection_and_DRP_Infrastructure_Recover&oldid=81...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Virus_infection_and_DRP_Infrastructure_Recover&oldid=81 at /home/pit/Downloads/cac/192_en/b2f1f1ce29172b75e9c6...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Xtended_Storage&oldid=33
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Xtended_Storage&oldid=33...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Xtended_Storage&oldid=33 at /home/pit/Downloads/cac/192_en/17b3845e62854eb06a89...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IT_Standards&oldid=34
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IT_Standards&oldid=34...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IT_Standards&oldid=34 at /home/pit/Downloads/cac/192_en/b4476cde1f4c51aa7f0c...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Baseline&oldid=82
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Baseline&oldid=82...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Baseline&oldid=82 at /home/pit/Downloads/cac/192_en/5f118fff319e794f5ccf...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Network&oldid=90
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Network&oldid=90...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Network&oldid=90 at /home/pit/Downloads/cac/192_en/7237405ef5efd9b1caad...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Telecom&oldid=92
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Telecom&oldid=92...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Telecom&oldid=92 at /home/pit/Downloads/cac/192_en/02acdad51aa3a5b34331...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Other_Standards&oldid=91
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Other_Standards&oldid=91...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Other_Standards&oldid=91 at /home/pit/Downloads/cac/192_en/03fdafacd18212177c2b...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IMac-About&oldid=97
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IMac-About&oldid=97...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IMac-About&oldid=97 at /home/pit/Downloads/cac/192_en/4c1555b04b0ccd1a1520...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Managed_Switches&oldid=46
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Managed_Switches&oldid=46...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Managed_Switches&oldid=46 at /home/pit/Downloads/cac/192_en/e1c0d8a7e3b95f948582...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IMac-About-Collapsible&oldid=150
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IMac-About-Collapsible&oldid=150...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=IMac-About-Collapsible&oldid=150 at /home/pit/Downloads/cac/192_en/1ecadf62e667dee7d064...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
Getting (desktop) article from http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Cisco_Aironet_1300_Series_Outdoor_Wireless_Bridge&oldid=148
Downloading http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Cisco_Aironet_1300_Series_Outdoor_Wireless_Bridge&oldid=148...
Caching http://192.168.56.5/UnifiedICTDoc/api.php?action=visualeditor&format=json&paction=parse&page=Cisco_Aironet_1300_Series_Outdoor_Wireless_Bridge&oldid=148 at /home/pit/Downloads/cac/192_en/e13201f13a1089b452c7...
Error by retrieving article: Unrecognized value for parameter "action": visualeditor.
All articles were retrieved and saved.
0 files still to be downloaded.
Process still downloading images...
All images successfuly downloaded
0 images still to be optimized.
Process still optimizing images...
All images successfuly optimized
Building ZIM file /home/pit/Downloads/out/192_en_all_2019-01.zim (zimwriterfs --welcome=index.htm --favicon=favicon.png --language=eng --welcome=Main_Page.html --verbose --tags="56" --name="kiwix.192_en_all" --redirects="/home/pit/Downloads/cac/192_en/192_en_all.redirects" --title="Unified ICT Doc" --description="From Unified ICT Doc" --creator="192" --publisher="Kiwix" "/home/pit/Downloads/tmp/192_en_all_2019-01/" "/home/pit/Downloads/out/192_en_all_2019-01.zim")...
RAID: kiwix.192_en_all
zimwriterfs: unable to find welcome page at '
/home/pit/Downloads/tmp/192_en_all_2019-01
/
Main_Page.html
'. --welcome path/value must be relative to HTML_DIRECTORY.
Failed to run mwoffliner after [105s]: "Failed to build successfuly the ZIM file /home/pit/Downloads/out/192_en_all_2019-01.zim (Error when executing zimwriterfs)"
答案1
添加参数--localParsoid
解决了问题。因此整个命令现在如下所示:
mwoffliner --mwUrl=http://192.168.56.5/UnifiedICTDoc [email protected] --verbose --redis=redis://127.0.0.1:6379 --mwWikiPath=/ --mwApiPath=api.php --localParsoid