在更新Hueman Addons时发生了错误:下载失败。 cURL error 18: transfer closed with 2183267 bytes remaining to read,在后台的自动更新实现

1、在更新Hueman Addons时发生了错误:下载失败。 cURL error 18: transfer closed with 2183267 bytes remaining to read。cURL 错误 18:传输已关闭,还有 2183267 个字节可供读取。如图1

在更新Hueman Addons时发生了错误:下载失败。 cURL error 18: transfer closed with 2183267 bytes remaining to read。cURL 错误 18:传输已关闭,还有 2183267 个字节可供读取。

图1

2、参考网址:https://www.shuijingwanwq.com/2021/02/19/4734/ 。其解决方案是在服务器中下载并放至插件目录。当时计划后续有更为充裕的时间后,或者说下一次升级 Hueman Addons 时,再来从根源上解决此问题,实现在后台的自动更新。

3、查看服务器的 Nginx 日志。如图2

查看服务器的 Nginx 日志

图2

101.207.139.251 - - [29/Jul/2021:10:56:14 +0800] "POST /wp-admin/update-core.php?action=do-plugin-upgrade HTTP/2.0" 200 10598 "https://www.shuijingwanwq.com/wp-admin/update-core.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
101.207.139.251 - - [29/Jul/2021:10:56:18 +0800] "GET /wp-admin/update.php?action=update-selected&plugins=hueman-addons%2Fha-fire.php&_wpnonce=f03e5a1e5e HTTP/2.0" 200 6126 "https://www.shuijingwanwq.com/wp-admin/update-core.php?action=do-plugin-upgrade" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
106.11.157.44 - - [29/Jul/2021:10:56:24 +0800] "GET /tag/clause/ HTTP/1.1" 200 17772 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 YisouSpider/5.0 Safari/537.36"
106.11.159.36 - - [29/Jul/2021:10:56:24 +0800] "GET /wp-content/themes/hueman/assets/front/webfonts/fa-regular-400.woff2?v=5.15.2 HTTP/1.1" 200 13588 "https://www.shuijingwanwq.com/tag/clause/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 YisouSpider/5.0 Safari/537.36"
106.11.158.57 - - [29/Jul/2021:10:56:24 +0800] "GET /wp-content/themes/hueman/assets/front/webfonts/fa-solid-900.woff2?v=5.15.2 HTTP/1.1" 200 80252 "https://www.shuijingwanwq.com/tag/clause/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 YisouSpider/5.0 Safari/537.36"
203.208.60.67 - - [29/Jul/2021:10:56:25 +0800] "GET /2021/07/29/5104/ HTTP/1.1" 200 21518 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.90 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
106.11.159.35 - - [29/Jul/2021:10:56:27 +0800] "GET /wp-content/themes/hueman/assets/front/webfonts/fa-brands-400.woff2?v=5.15.2 HTTP/1.1" 200 78472 "https://www.shuijingwanwq.com/tag/clause/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 YisouSpider/5.0 Safari/537.36"
203.208.60.72 - - [29/Jul/2021:10:56:32 +0800] "GET /category/development-tool/php-development-tool/ HTTP/1.1" 200 22206 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

4、在 WordPress 后台删除插件 Hueman Addons 后,再安装 Hueman Addons。仍然报同样的错误。如图3

在 WordPress 后台删除插件 Hueman Addons 后,再安装 Hueman Addons。仍然报同样的错误

图3

5、参考网址:https://www.admincolumns.com/forums/topic/plugin-does-not-update-anymore/ 。建议多次尝试安装或者更新,最终能够成功。在安装时候,尝试至第 4 次,安装成功。注:在安装前,已经禁用插件:Kill 429,不确定之间是否有所关联。查看 Nginx 日志。如图4

参考网址:https://www.admincolumns.com/forums/topic/plugin-does-not-update-anymore/ 。建议多次尝试安装或者更新,最终能够成功。在安装时候,尝试至第 4 次,安装成功。注:在安装前,已经禁用插件:Kill 429,不确定之间是否有所关联。查看 Nginx 日志

图4

161.117.86.184 - - [29/Jul/2021:11:25:23 +0800] "GET /wp-content/themes/hueman/assets/front/webfonts/fa-brands-400.woff2?v=5.15.2 HTTP/2.0" 200 78472 "https://www.shuijingwanwq.com/2019/01/28/3146/" "DX_2.3.0.43641 / 5.0 (Windows; U; Windows NT 6.1; en-US; rv [Other]: 1.9.1.7 ) Gecko YHZ_Client_Test/2.9.0050.46994"
161.117.86.184 - - [29/Jul/2021:11:25:23 +0800] "GET /wp-content/themes/hueman/assets/front/webfonts/fa-regular-400.woff2?v=5.15.2 HTTP/2.0" 200 13588 "https://www.shuijingwanwq.com/2019/01/28/3146/" "DX_2.3.0.43641 / 5.0 (Windows; U; Windows NT 6.1; en-US; rv [Other]: 1.9.1.7 ) Gecko YHZ_Client_Test/2.9.0050.46994"
161.117.86.184 - - [29/Jul/2021:11:25:23 +0800] "GET /wp-content/themes/hueman/assets/front/webfonts/fa-solid-900.woff2?v=5.15.2 HTTP/2.0" 200 80252 "https://www.shuijingwanwq.com/2019/01/28/3146/" "DX_2.3.0.43641 / 5.0 (Windows; U; Windows NT 6.1; en-US; rv [Other]: 1.9.1.7 ) Gecko YHZ_Client_Test/2.9.0050.46994"
106.11.158.40 - - [29/Jul/2021:11:25:26 +0800] "GET /2020/01/13/ HTTP/1.1" 200 17894 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 YisouSpider/5.0 Safari/537.36"
106.11.156.37 - - [29/Jul/2021:11:25:26 +0800] "GET /wp-content/themes/hueman/assets/front/webfonts/fa-regular-400.woff2?v=5.15.2 HTTP/1.1" 200 13588 "https://www.shuijingwanwq.com/2020/01/13/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 YisouSpider/5.0 Safari/537.36"
106.11.157.39 - - [29/Jul/2021:11:25:26 +0800] "GET /wp-content/themes/hueman/assets/front/webfonts/fa-solid-900.woff2?v=5.15.2 HTTP/1.1" 200 80252 "https://www.shuijingwanwq.com/2020/01/13/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 YisouSpider/5.0 Safari/537.36"
106.11.155.70 - - [29/Jul/2021:11:25:28 +0800] "GET /wp-content/themes/hueman/assets/front/webfonts/fa-brands-400.woff2?v=5.15.2 HTTP/1.1" 200 78472 "https://www.shuijingwanwq.com/2020/01/13/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 YisouSpider/5.0 Safari/537.36"

6、查看插件目录:/data/wwwroot/www.shuijingwanwq.com/wp-content/plugins,其中存在目录:hueman-addons。如图5

查看插件目录:/data/wwwroot/www.shuijingwanwq.com/wp-content/plugins,其中存在目录:hueman-addons

图5

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/181677.html

(0)
上一篇 2021年11月1日
下一篇 2021年11月1日

相关推荐

发表回复

登录后才能评论