5

WordPress升级报错“504 Gateway Time-out 另一更新正在进行”解决方法

 2 years ago
source link: https://www.huhexian.com/19195.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

WordPress升级报错“504 Gateway Time-out 另一更新正在进行”解决方法

青山 2021-12-2415:12:13评论479字

wordpress提示我升级版本已经好久了,今儿个决定升级,于是在后台直接点击在线升级,卡了一会,出现了报错,提示“504 Gateway Time-out 另一更新正在进行”的错误,升级之前已经想好了会报错,所以根本不慌,下面就来解决WordPress升级报错的方法。

WordPress升级报错“504 Gateway Time-out 另一更新正在进行”解决方法

可能有的人看见这个就去修改nginx的一些默认配置,当然这个并没有错,如果你修改了有用就行。

但是我觉得应该多数是没用的,毕竟主要是国内服务器的访问引起的。如果是国外服务器,去修改nginx配置应该可以,不过目前我没有遇到。

如果是国内服务器,我们返回来再次升级的时候,会提示“另一更新正在进行”。。

这个时候只需要去删掉数据库里面的数据字段就行了。

在wp_options数据表里面,一般在最后,找到这个字段core_updater.lock。

然后删掉就行,如果不行,就反复来。或者用离线升级。

也可以这样:

删掉core_updater.lock之后,就开始在后台继续升级,升级的同时在数据库这边刷新,看见core_updater.lock又出来没,如果出来了,就又删了。

然后再返回来升级,这就可以了。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK