runtime error

Exit code: 1. Reason: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 559, in connect sock = self._connect() File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 851, in _connect sock = super(SSLConnection, self)._connect() File "/usr/local/lib/python3.10/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.10/socket.py", line 967, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name or service not known During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/app.py", line 49, in create_redis_pool client.ping() # 成功会返回True File "/usr/local/lib/python3.10/site-packages/redis/client.py", line 1378, in ping return self.execute_command('PING') File "/usr/local/lib/python3.10/site-packages/redis/client.py", line 898, in execute_command conn = self.connection or pool.get_connection(command_name, **options) File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 1192, in get_connection connection.connect() File "/usr/local/lib/python3.10/site-packages/redis/connection.py", line 563, in connect raise ConnectionError(self._error_message(e)) redis.exceptions.ConnectionError: Error -2 connecting to capable-cat-39128.upstash.io:6380. Name or service not known. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/user/app/app.py", line 56, in <module> redis_pool = create_redis_pool() File "/home/user/app/app.py", line 53, in create_redis_pool raise RuntimeError(f"Redis连接池初始化失败:{str(e)}") RuntimeError: Redis连接池初始化失败:Error -2 connecting to capable-cat-39128.upstash.io:6380. Name or service not known.

Container logs:

Fetching error logs...