Linux应用程序服务上的间歇性301重定向 [英] Intermittent 301 redirect on linux app service

查看:65
本文介绍了Linux应用程序服务上的间歇性301重定向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在Linux应用服务上运行的WordPress docker容器。 Pingdom持续报告间歇性301重定向错误(当天随机时间每周4或5次)。

I have a WordPress docker container running on a Linux app service. Pingdom keeps reporting intermittent 301 redirect errors (4 or 5 per week at random times in the day).

当对应Pingdom错误时,错误日志中有一个条目

There's an entry in the error log when corresponding to the Pingdom errors

发送QUERY数据包时出错。 2007年/home/site/wwwroot/wp-includes/wp-db.php中的PID = 1108

Error while sending QUERY packet. PID=1108 in /home/site/wwwroot/wp-includes/wp-db.php on line 2007

Stackoverflow上提到的建议(https://stackoverflow.com/questions/ 30753674 / error-while-sending-query-packet)与我无关,因为max_allowed_pa​​cket设置高于推荐值。

The suggestion mentioned on Stackoverflow (https://stackoverflow.com/questions/30753674/error-while-sending-query-packet) is not relevant to me as the max_allowed_packet setting is higher than the recommended value.

该网站的流量非常低,所以我'我真的很难看出是什么导致了这个问题。

The site has very low volumes of traffic so I'm really struggling to see what's causing this issue.

推荐答案

您使用的是Azure数据库MySQL,还是使用WordPress运行MySQL作为包含的数据库? 

Are you using Azure Database for MySQL or are you running MySQL as a contained database with the WordPress? 

讨论了三个值:

max_allowed_pa​​cket for MySQL,是/etc/mysql/my.cnf文件的一部分,或者在Azure Database for MySQL的情况下通过Azure门户公开。 


在php.ini中的
post_max_size和upload_max_filesize< - 这些配置值是否在WordPress配置中?

max_allowed_packet for MySQL and is part of the /etc/mysql/my.cnf file, or exposed via the Azure Portal in the case of Azure Database for MySQL. 

post_max_size and upload_max_filesize in php.ini <- Are these configuration values in the WordPress configuration?

如果数据包大小超过t对于max_allowed_pa​​cket,my.cnf值,你可能会看到一个更具体的错误,例如: 

If the packet size exceeded the my.cnf value for max_allowed_packet, you problably would have seen a more specific error such as: 

SQLSTATE[08S01]: Communication link failure: 1153 Got a packet bigger than 
'max_allowed_packet' bytes

所以,有可能发生其他事情。当这个错误发生时,Pingdom特别做了什么?

So, it is possible that something else is going on. What specifically is Pingdom doing when this error occurs?





这篇关于Linux应用程序服务上的间歇性301重定向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆