在更新Hueman Addons时发生了错误:下载失败。 cURL error 18: transfer closed with 2118455 bytes remaining to read 的分析解决

1、在更新Hueman Addons时发生了错误:下载失败。 cURL error 18: transfer closed with 2118455 bytes remaining to read。如图1

在更新Hueman Addons时发生了错误:下载失败。 cURL error 18: transfer closed with 2118455 bytes remaining to read。

图1

2、在浏览器中打开插件网址:https://downloads.wordpress.org/plugin/hueman-addons.2.3.0.zip 。下载插件成功。其大小为 2.01 MB。如图2

在浏览器中打开插件网址:https://downloads.wordpress.org/plugin/hueman-addons.2.3.0.zip 。下载插件成功。其大小为 2.01 MB。

图2

3、在本地 Windows 10 中执行命令:curl https://downloads.wordpress.org/plugin/hueman-addons.2.3.0.zip 。下载成功。

PS E:/Develop> curl https://downloads.wordpress.org/plugin/hueman-addons.2.3.0.zip


StatusCode        : 200
StatusDescription : OK
Content           : {80, 75, 3, 4...}
RawContent        : HTTP/1.1 200 OK
                    Connection: keep-alive
                    Content-Disposition: attachment; filename=hueman-addons.2.3.0.zip
                    X-Frame-Options: SAMEORIGIN
                    X-nc: MISS ord 3
                    Accept-Ranges: bytes
                    Content-Length: 2118455...
Headers           : {[Connection, keep-alive], [Content-Disposition, attachment; filename=hueman-addons.2.3.0.zip], [X-
                    Frame-Options, SAMEORIGIN], [X-nc, MISS ord 3]...}
RawContentLength  : 2118455



4、在生产服务器 CentOS 7 中,下载 hueman-addons.2.3.0.zip 并解压至目录:/data/wwwroot/www.shuijingwanwq.com/wp-content/plugins/hueman-addons 。如图3

在生产服务器 CentOS 7 中,下载 hueman-addons.2.3.0.zip 并解压至目录:/data/wwwroot/www.shuijingwanwq.com/wp-content/plugins/hueman-addons 。

图3

[root@iZ23wv7v5ggZ ~]# ls
auto_fdisk.sh  oneinstack  oneinstack-full.tar.gz
[root@iZ23wv7v5ggZ ~]# wget -c https://downloads.wordpress.org/plugin/hueman-addons.2.3.0.zip
--2021-02-19 11:12:38--  https://downloads.wordpress.org/plugin/hueman-addons.2.3.0.zip
Resolving downloads.wordpress.org (downloads.wordpress.org)... 198.143.164.250
Connecting to downloads.wordpress.org (downloads.wordpress.org)|198.143.164.250|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2118455 (2.0M) [application/octet-stream]
Saving to: ‘hueman-addons.2.3.0.zip’

100%[======================================>] 2,118,455   67.9KB/s   in 31s

2021-02-19 11:13:10 (66.3 KB/s) - ‘hueman-addons.2.3.0.zip’ saved [2118455/2118455]

[root@iZ23wv7v5ggZ ~]# ls
auto_fdisk.sh  hueman-addons.2.3.0.zip  oneinstack  oneinstack-full.tar.gz
[root@iZ23wv7v5ggZ ~]# cd ..
[root@iZ23wv7v5ggZ /]# ls
bin   data  etc   lib    lost+found  mnt  proc  run   srv       sys  usr
boot  dev   home  lib64  media       opt  root  sbin  swapfile  tmp  var
[root@iZ23wv7v5ggZ /]# cd data
[root@iZ23wv7v5ggZ data]# ls
lost+found  wwwlogs  wwwroot
[root@iZ23wv7v5ggZ data]# cd wwwroot/
[root@iZ23wv7v5ggZ wwwroot]# ls
default  www.shuijingwanwq.com
[root@iZ23wv7v5ggZ wwwroot]# cd www.shuijingwanwq.com/
[root@iZ23wv7v5ggZ www.shuijingwanwq.com]# ls
1311aeca4e764c48afb3665fb02f3537.html  readme.html           wp-cron.php
Adobe AIR_3.6.exe                      report                wp-includes
baidu_verify_U5mywj2jTv.html           root.txt              wp-links-opml.php
bdunion.txt                            webscan_360_cn.html   wp-load.php
google6ef993c34e9a65a9.html            wp-activate.php       wp-login.php
hosts                                  wp-admin              wp-mail.php
index.php                              wp-blog-header.php    wp-settings.php
license.txt                            wp-comments-post.php  wp-signup.php
logreport                              wp-config.php         wp-trackback.php
nbproject                              wp-config-sample.php  xmlrpc.php
nginx-1.10.1.zip                       wp-content
[root@iZ23wv7v5ggZ www.shuijingwanwq.com]# cd wp-content/
[root@iZ23wv7v5ggZ wp-content]# ls
backupwordpress-e4a504c79e-backups  plugins                     upgrade
index.php                           temp-write-test-1565457605  uploads
languages                           themes
[root@iZ23wv7v5ggZ wp-content]# cd plugins/
[root@iZ23wv7v5ggZ plugins]# ls
akismet                                     index.php
backupwordpress                             kill-429
classic-editor                              light
contact-form-7                              nimble-builder
disable-google-fonts                        regenerate-thumbnails
golang-brush-for-syntaxhighlighter-evolved  syntaxhighlighter
gutenberg                                   wp-cumulus
hello-dolly                                 wp-pagenavi
hueman-addons
[root@iZ23wv7v5ggZ plugins]# cd hueman-addons/
[root@iZ23wv7v5ggZ hueman-addons]# ls
addons  contextualizer  ha-fire.php  inc  lang  license.txt  readme.txt
[root@iZ23wv7v5ggZ hueman-addons]# rm -rf *
[root@iZ23wv7v5ggZ hueman-addons]# ls
[root@iZ23wv7v5ggZ hueman-addons]# cp ~/hueman-addons.2.3.0.zip hueman-addons.2.3.0.zip
[root@iZ23wv7v5ggZ hueman-addons]# ls
hueman-addons.2.3.0.zip
[root@iZ23wv7v5ggZ hueman-addons]# pwd
/data/wwwroot/www.shuijingwanwq.com/wp-content/plugins/hueman-addons
[root@iZ23wv7v5ggZ hueman-addons]# ls
hueman-addons.2.3.0.zip
[root@iZ23wv7v5ggZ hueman-addons]# unzip -oq hueman-addons.2.3.0.zip -d /data/wwwroot/www.shuijingwanwq.com/wp-content/plugins
[root@iZ23wv7v5ggZ hueman-addons]# ls
addons          ha-fire.php              inc   license.txt
contextualizer  hueman-addons.2.3.0.zip  lang  readme.txt
[root@iZ23wv7v5ggZ hueman-addons]# rm -rf hueman-addons.2.3.0.zip
[root@iZ23wv7v5ggZ hueman-addons]# ls
addons  contextualizer  ha-fire.php  inc  lang  license.txt  readme.txt
[root@iZ23wv7v5ggZ hueman-addons]#

5、在插件页面,Hueman Addons 已经升级至版本:2.3.0。如图4

在插件页面,Hueman Addons 已经升级至版本:2.3.0。

图4

6、后续有更为充裕的时间后,或者说下一次升级 Hueman Addons 时,再来从根源上解决此问题,实现在后台的自动更新。

 

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/courses/250828.html

(0)
上一篇 2022年5月1日 05:32
下一篇 2022年5月1日 05:36

相关推荐

发表回复

登录后才能评论