heroku+redis云:名称解析暂时失败

rseugnpd  于 2021-06-10  发布在  Redis
关注(0)|答案(0)|浏览(252)

我在我的heroku应用程序上使用redis云外接程序,我偶尔会遇到这个错误。我尝试过刷新redis数据库和重启dynos,这似乎解决了它,但我很好奇为什么这是经常发生。
我运行的worker dynos使用这个redis db,我使用pythonrq在worker队列上调度作业。

File "/usr/local/lib/python3.8/site-packages/redis/connection.py", line 563, in connect
raise ConnectionError(self._error_message(e))
2020-08-05T17:12:25.451733+00:00 app[worker_proc.5]: redis.exceptions.ConnectionError: Error -3 connecting to redis-13618.c73.us-east-1-2.ec2.cloud.redislabs.com:13618. Temporary failure in name resolution.
2020-08-05 17:12:25,461 INFO exited: worker_proc-0 (exit status 1; not expected)

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/redis/connection.py", line 559, in connect
sock = self._connect()
File "/usr/local/lib/python3.8/site-packages/redis/connection.py", line 584, in _connect
for res in socket.getaddrinfo(self.host, self.port, self.socket_type,
File "/usr/local/lib/python3.8/socket.py", line 918, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题