opendevops-cn / opendevops

CODO是一款为用户提供企业多混合云、全球一站式DevOps、自动化运维、完全开源的云管理平台、自动化运维平台
http://www.opendevops.cn/
GNU General Public License v3.0
3.77k stars 1.02k forks source link

拉取资产报错 #23

Closed leoiceo closed 5 years ago

leoiceo commented 5 years ago

Failed to establish a new connection: [Errno 110] Connection timed out',

leoiceo commented 5 years ago

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='cvm.tencentcloudapi.com', port=443): Max retries exceeded with url: /?Action=DescribeInstances&Limit=100&Nonce=448&Offset=0&Region=ap-guangzhou&SecretId=AKIDCS111120icNyXmQth5I9&Timestamp=1565836360&Version=2017-03-12&Signature=Y5QDCooGygMAMXdjy1zU%3D (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f31df2d4e48>: Failed to establish a new connection: [Errno 110] Connection timed out',))

leoiceo commented 5 years ago

原因是docker无法连网,已经解决:

  1. sysctl.conf 增加以下配置 net.ipv4.ip_forward = 1 net.bridge.bridge-nf-call-arptables = 1 net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1
  2. 执行sysctl -p
  3. 重启docker