bisheng icon indicating copy to clipboard operation
bisheng copied to clipboard

connection timed out

Open wangyongpenga opened this issue 6 months ago • 3 comments

                           File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 534, in _make_request                                                                                                                                                                         
                             response = conn.getresponse()                                                                                                                                                                                                                                              
                                        |    -> <function HTTPConnection.getresponse at 0x7f622b232b00>                                                                                                                                                                                                 
                                        -> <urllib3.connection.HTTPConnection object at 0x7f62dc5bffa0>                                                                                                                                                                                                 
                           File "/usr/local/lib/python3.10/site-packages/urllib3/connection.py", line 516, in getresponse                                                                                                                                                                               
                             httplib_response = super().getresponse()                                                                                                                                                                                                                                   
                           File "/usr/local/lib/python3.10/http/client.py", line 1375, in getresponse                                                                                                                                                                                                   
                             response.begin()                                                                                                                                                                                                                                                           
                             |        -> <function HTTPResponse.begin at 0x7f622b1ae200>                                                                                                                                                                                                                
                             -> <http.client.HTTPResponse object at 0x7f62dc5bfee0>                                                                                                                                                                                                                     
                           File "/usr/local/lib/python3.10/http/client.py", line 318, in begin                                                                                                                                                                                                          
                             version, status, reason = self._read_status()                                                                                                                                                                                                                              
                                                       |    -> <function HTTPResponse._read_status at 0x7f622b1ae170>                                                                                                                                                                                   
                                                       -> <http.client.HTTPResponse object at 0x7f62dc5bfee0>                                                                                                                                                                                           
                           File "/usr/local/lib/python3.10/http/client.py", line 279, in _read_status                                                                                                                                                                                                   
                             line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")                                                                                                                                                                                                                   
                                        |    |           -> 65536                                                                                                                                                                                                                                       
                                        |    -> None                                                                                                                                                                                                                                                    
                                        -> <http.client.HTTPResponse object at 0x7f62dc5bfee0>                                                                                                                                                                                                          
                           File "/usr/local/lib/python3.10/socket.py", line 717, in readinto                                                                                                                                                                                                            
                             return self._sock.recv_into(b)                                                                                                                                                                                                                                             
                                    |    |               -> <memory at 0x7f62aeed8c40>                                                                                                                                                                                                                  
                                    |    -> None                                                                                                                                                                                                                                                        
                                    -> <socket.SocketIO object at 0x7f62dc5bf550>                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                        
                         TimeoutError: timed out                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                        
                         The above exception was the direct cause of the following exception:                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                        
                         Traceback (most recent call last):                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                                        
                           File "/usr/local/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 167, in perform_request                                                                                                                                                        
                             response = self.pool.urlopen(                                                                                                                                                                                                                                              
                                        |    |    -> <function HTTPConnectionPool.urlopen at 0x7f622b2628c0>                                                                                                                                                                                            
                                        |    -> <urllib3.connectionpool.HTTPConnectionPool object at 0x7f62dbc3c3a0>                                                                                                                                                                                    
                                        -> <Urllib3HttpNode(http://elasticsearch:9200)>                                                                                                                                                                                                                 
                           File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 841, in urlopen                                                                                                                                                                               
                             retries = retries.increment(                                                                                                                                                                                                                                               
                                       |       -> <function Retry.increment at 0x7f622b45f400>                                                                                                                                                                                                          
                                       -> Retry(total=False, connect=None, read=None, redirect=0, status=None)                                                                                                                                                                                          
                           File "/usr/local/lib/python3.10/site-packages/urllib3/util/retry.py", line 449, in increment                                                                                                                                                                                 
                             raise reraise(type(error), error, _stacktrace)                                                                                                                                                                                                                             
                                   |            |       |      -> <traceback object at 0x7f62aed95f00>                                                                                                                                                                                                  
                                   |            |       -> ReadTimeoutError("HTTPConnectionPool(host='elasticsearch', port=9200): Read timed out. (read timeout=9.999890880659223)")                                                                                                                    
                                   |            -> ReadTimeoutError("HTTPConnectionPool(host='elasticsearch', port=9200): Read timed out. (read timeout=9.999890880659223)")                                                                                                                            
                                   -> <function reraise at 0x7f622b45de10>                                                                                                                                                                                                                              
                           File "/usr/local/lib/python3.10/site-packages/urllib3/util/util.py", line 39, in reraise                                                                                                                                                                                     
                             raise value                                                                                                                                                                                                                                                                
                                   -> None                                                                                                                                                                                                                                                              
                           File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen                                                                                                                                                                               
                             response = self._make_request(                                                                                                                                                                                                                                             
                                        |    -> <function HTTPConnectionPool._make_request at 0x7f622b262710>                                                                                                                                                                                           
                                        -> <urllib3.connectionpool.HTTPConnectionPool object at 0x7f62dbc3c3a0>                                                                                                                                                                                         
                           File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 536, in _make_request                                                                                                                                                                         
                             self._raise_timeout(err=e, url=url, timeout_value=read_timeout)                                                                                                                                                                                                            
                             |    |                         |                  -> 9.999890880659223                                                                                                                                                                                                     
                             |    |                         -> '/tmp_workflow_data/_refresh'                                                                                                                                                                                                            
                             |    -> <function HTTPConnectionPool._raise_timeout at 0x7f622b262680>                                                                                                                                                                                                     
                             -> <urllib3.connectionpool.HTTPConnectionPool object at 0x7f62dbc3c3a0>                                                                                                                                                                                                    
                           File "/usr/local/lib/python3.10/site-packages/urllib3/connectionpool.py", line 367, in _raise_timeout                                                                                                                                                                        
                             raise ReadTimeoutError(                                                                                                                                                                                                                                                    
                                   -> <class 'urllib3.exceptions.ReadTimeoutError'>                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                        
                         urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='elasticsearch', port=9200): Read timed out. (read timeout=9.999890880659223)                                                                                                                                     
                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                        
                         The above exception was the direct cause of the following exception:                                                                                                                                                                                                           
                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                        
                                                                                                                                                            
                           File "/usr/local/lib/python3.10/site-packages/elasticsearch/_sync/client/indices.py", line 4205, in refresh                                                                                                                                                                  
                             return self.perform_request(  # type: ignore                                                                                                                                                                                                                               
                                    |    -> <function NamespacedClient.perform_request at 0x7f62dc5e6680>                                                                                                                                                                                               
                                    -> <elasticsearch._sync.client.indices.IndicesClient object at 0x7f62dbc3f910>                                                                                                                                                                                      
                           File "/usr/local/lib/python3.10/site-packages/elasticsearch/_sync/client/_base.py", line 422, in perform_request                                                                                                                                                             
                             return self._client.perform_request(                                                                                                                                                                                                                                       
                                    |    |       -> <function BaseClient.perform_request at 0x7f62dc5e64d0>                                                                                                                                                                                             
                                    |    -> <Elasticsearch(['http://elasticsearch:9200'])>                                                                                                                                                                                                              
                                    -> <elasticsearch._sync.client.indices.IndicesClient object at 0x7f62dbc3f910>                                                                                                                                                                                      
                           File "/usr/local/lib/python3.10/site-packages/elasticsearch/_sync/client/_base.py", line 271, in perform_request                                                                                                                                                             
                             response = self._perform_request(                                                                                                                                                                                                                                          
                                        |    -> <function BaseClient._perform_request at 0x7f62dc5e6560>                                                                                                                                                                                                
                                        -> <Elasticsearch(['http://elasticsearch:9200'])>                                                                                                                                                                                                               
                           File "/usr/local/lib/python3.10/site-packages/elasticsearch/_sync/client/_base.py", line 315, in _perform_request                                                                                                                                                            
                             meta, resp_body = self.transport.perform_request(                                                                                                                                                                                                                          
                                               |    -> <property object at 0x7f62dc745e90>                                                                                                                                                                                                              
                                               -> <Elasticsearch(['http://elasticsearch:9200'])>                                                                                                                                                                                                        
                           File "/usr/local/lib/python3.10/site-packages/elastic_transport/_transport.py", line 342, in perform_request                                                                                                                                                                 
                             resp = node.perform_request(                                                                                                                                                                                                                                               
                                    |    -> <function Urllib3HttpNode.perform_request at 0x7f62dc5cde10>                                                                                                                                                                                                
                                    -> <Urllib3HttpNode(http://elasticsearch:9200)>                                                                                                                                                                                                                     
                           File "/usr/local/lib/python3.10/site-packages/elastic_transport/_node/_http_urllib3.py", line 202, in perform_request                                                                                                                                                        
                             raise err from e                                                                                                                                                                                                                                                           
                                   -> ConnectionTimeout('Connection timed out during request')                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                        
                         elastic_transport.ConnectionTimeout: Connection timed out   

wangyongpenga avatar Jun 12 '25 09:06 wangyongpenga

使用es服务的api,检测下是否可以正常写入数据

zgqgit avatar Jun 12 '25 11:06 zgqgit

大概率是硬盘空间不足 至少 200G

pc007007 avatar Jun 22 '25 14:06 pc007007

问题解决了吗,请教一下

fsh2102 avatar Jun 25 '25 03:06 fsh2102