Predis \ Connection \ ConnectionException:无法分配请求的地址[tcp://127.0.0.1:6379]

时间:2019-01-31 18:54:00

标签: laravel redis

最近,我们的一台服务器开始间歇性报告此错误:

Predis\Connection\ConnectionException:
Cannot assign requested address [tcp://127.0.0.1:6379]

在:

vendor/predis/predis/src/Connection/AbstractConnection.php:155
Predis\Connection\AbstractConnection::onConnectionError

触发者:artisan queue:work redis --once

我们是在装有Forge的Ubuntu vm上的标准Laravel 5.7安装。没有任何设置的更改,但是此错误突然出现。关于可能发生的事情有什么想法吗?

运行netstat -vatnl | grep 6379会导致以下结果:

tcp        0      0 0.0.0.0:6379            0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:6379          127.0.0.1:58244         ESTABLISHED
tcp        0      0 127.0.0.1:52098         127.0.0.1:6379          TIME_WAIT
tcp        0      0 127.0.0.1:51171         127.0.0.1:6379          TIME_WAIT
tcp        0      0 127.0.0.1:6379          127.0.0.1:33028         ESTABLISHED
tcp        0      0 127.0.0.1:49731         127.0.0.1:6379          TIME_WAIT
tcp        0      0 127.0.0.1:41169         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:60007         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:51065         127.0.0.1:6379          TIME_WAIT
tcp        0      0 127.0.0.1:52277         127.0.0.1:6379          TIME_WAIT
tcp        0      0 127.0.0.1:47116         127.0.0.1:6379          TIME_WAIT
tcp        0      0 127.0.0.1:56150         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:36441         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:6379          127.0.0.1:35296         ESTABLISHED
tcp        0      0 127.0.0.1:47272         127.0.0.1:6379          TIME_WAIT
tcp        0      0 127.0.0.1:36221         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:6379          127.0.0.1:41169         ESTABLISHED
tcp        0      0 127.0.0.1:49921         127.0.0.1:6379          TIME_WAIT
tcp        0      0 127.0.0.1:6379          127.0.0.1:60007         ESTABLISHED
tcp        0      0 127.0.0.1:45921         127.0.0.1:6379          TIME_WAIT
tcp        0     14 127.0.0.1:6379          127.0.0.1:53708         ESTABLISHED
tcp        0      0 127.0.0.1:6379          127.0.0.1:42849         ESTABLISHED
tcp        0      0 127.0.0.1:6379          127.0.0.1:36441         ESTABLISHED
tcp        0      0 127.0.0.1:6379          127.0.0.1:38599         ESTABLISHED
tcp        0      0 127.0.0.1:6379          127.0.0.1:53578         ESTABLISHED
tcp        0      0 127.0.0.1:6379          127.0.0.1:56150         ESTABLISHED
tcp        0      0 127.0.0.1:38599         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:48411         127.0.0.1:6379          TIME_WAIT
tcp        0      0 127.0.0.1:6379          127.0.0.1:36221         ESTABLISHED
tcp        0      0 127.0.0.1:42849         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:48276         127.0.0.1:6379          TIME_WAIT
tcp        0      0 127.0.0.1:53578         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:35296         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:58244         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:53708         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:33028         127.0.0.1:6379          ESTABLISHED
tcp        0      0 127.0.0.1:46072         127.0.0.1:6379          TIME_WAIT

我不熟悉这里发生的事情,因此非常感谢您对理解的任何帮助。

0 个答案:

没有答案