open-falcon ---安装Dashboard时候报错"SSLError: The read operation timed out"

简介:

在部署open-falcon环境过程中,安装Dashboard时候报错"SSLError: The read operation timed out"。如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[root@ open  dashboard] # ./env/bin/pip install -r pip_requirements.txt
Downloading /unpacking  Flask==0.10.1 (from -r pip_requirements.txt (line 1))
   Downloading Flask-0.10.1. tar .gz (544kB): 544kB downloaded
   Running setup.py egg_info  for  package Flask
     warning: no files found matching  '*'  under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyo'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyc'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyo'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'examples'
     warning: no previously-included files matching  '*.pyo'  found under directory  'examples'
     no previously-included directories found matching  'docs/_build'
     no previously-included directories found matching  'docs/_themes/.git'
Downloading /unpacking  Jinja2==2.7.2 (from -r pip_requirements.txt (line 2))
   Downloading Jinja2-2.7.2. tar .gz (378kB): 184kB downloaded
Cleaning up...
Exception:
Traceback (most recent call last):
   File  "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/basecommand.py" , line 134,  in  main
     status = self.run(options, args)
   File  "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/commands/install.py" , line 236,  in  run
     requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
   File  "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/req.py" , line 1092,  in  prepare_files
     self.unpack_url(url, location, self.is_download)
   File  "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/req.py" , line 1238,  in  unpack_url
     retval = unpack_http_url(link, location, self.download_cache, self.download_dir)
   File  "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/download.py" , line 622,  in  unpack_http_url
     download_hash = _download_url(resp, link, temp_location)
   File  "/data/work/open-falcon/dashboard/env/lib/python2.6/site-packages/pip/download.py" , line 495,  in  _download_url
     chunk = resp. read (4096)
   File  "/usr/lib64/python2.6/socket.py" , line 383,  in  read
     data = self._sock.recv(left)
   File  "/usr/lib64/python2.6/httplib.py" , line 587,  in  read
     s = self.fp. read (amt)
   File  "/usr/lib64/python2.6/socket.py" , line 383,  in  read
     data = self._sock.recv(left)
   File  "/usr/lib64/python2.6/ssl.py" , line 215,  in  recv
     return  self. read (buflen)
   File  "/usr/lib64/python2.6/ssl.py" , line 136,  in  read
     return  self._sslobj. read (len)
SSLError: The  read  operation timed out

解决办法:在命令后面追加"-i http://pypi.doubanio.com/simple"

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[root@ open  dashboard] # ./env/bin/pip install -r pip_requirements.txt -i http://pypi.doubanio.com/simple
Downloading /unpacking  Flask==0.10.1 (from -r pip_requirements.txt (line 1))
   Downloading Flask-0.10.1. tar .gz (544kB): 544kB downloaded
   Running setup.py egg_info  for  package Flask
     warning: no files found matching  '*'  under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyo'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyc'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyo'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'examples'
     warning: no previously-included files matching  '*.pyo'  found under directory  'examples'
     no previously-included directories found matching  'docs/_build'
     no previously-included directories found matching  'docs/_themes/.git'
Downloading /unpacking  Jinja2==2.7.2 (from -r pip_requirements.txt (line 2))
   Downloading Jinja2-2.7.2. tar .gz (378kB): 378kB downloaded
   Running setup.py egg_info  for  package Jinja2
     warning: no files found matching  '*'  under directory  'custom_fixers'
     warning: no previously-included files matching  '*'  found under directory  'docs/_build'
     warning: no previously-included files matching  '*.pyc'  found under directory  'jinja2'
     warning: no previously-included files matching  '*.pyc'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyo'  found under directory  'jinja2'
     warning: no previously-included files matching  '*.pyo'  found under directory  'docs'
Downloading /unpacking  Werkzeug==0.9.4 (from -r pip_requirements.txt (line 3))
   Downloading Werkzeug-0.9.4. tar .gz (1.1MB): 1.1MB downloaded
   Running setup.py egg_info  for  package Werkzeug
     warning: no files found matching  '*'  under directory  'werkzeug/debug/templates'
     warning: no files found matching  '*'  under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyo'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyc'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyo'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'examples'
     warning: no previously-included files matching  '*.pyo'  found under directory  'examples'
     no previously-included directories found matching  'docs/_build'
Downloading /unpacking  gunicorn==18.0 (from -r pip_requirements.txt (line 4))
   Downloading gunicorn-18.0. tar .gz (366kB): 366kB downloaded
   Running setup.py egg_info  for  package gunicorn
     warning: no previously-included files matching  '*.pyc'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyo'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyc'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyo'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'examples'
     warning: no previously-included files matching  '*.pyo'  found under directory  'examples'
Downloading /unpacking  python-dateutil==2.2 (from -r pip_requirements.txt (line 5))
   Downloading python-dateutil-2.2. tar .gz (259kB): 259kB downloaded
   Running setup.py egg_info  for  package python-dateutil
Downloading /unpacking  requests==2.3.0 (from -r pip_requirements.txt (line 6))
   Downloading requests-2.3.0. tar .gz (429kB): 429kB downloaded
   Running setup.py egg_info  for  package requests
Downloading /unpacking  mysql-python (from -r pip_requirements.txt (line 7))
   Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
   Running setup.py egg_info  for  package mysql-python
Downloading /unpacking  itsdangerous>=0.21 (from Flask==0.10.1->-r pip_requirements.txt (line 1))
   Downloading itsdangerous-0.24. tar .gz (46kB): 46kB downloaded
   Running setup.py egg_info  for  package itsdangerous
     warning: no previously-included files matching  '*'  found under directory  'docs/_build'
Downloading /unpacking  markupsafe (from Jinja2==2.7.2->-r pip_requirements.txt (line 2))
   Downloading MarkupSafe-1.0. tar .gz
   Running setup.py egg_info  for  package markupsafe
Downloading /unpacking  six (from python-dateutil==2.2->-r pip_requirements.txt (line 5))
   Downloading six-1.10.0. tar .gz
   Running setup.py egg_info  for  package six
     no previously-included directories found matching  'documentation/_build'
Installing collected packages: Flask, Jinja2, Werkzeug, gunicorn, python-dateutil, requests, mysql-python, itsdangerous, markupsafe, six
   Running setup.py  install  for  Flask
     warning: no files found matching  '*'  under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyo'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyc'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyo'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'examples'
     warning: no previously-included files matching  '*.pyo'  found under directory  'examples'
     no previously-included directories found matching  'docs/_build'
     no previously-included directories found matching  'docs/_themes/.git'
   Running setup.py  install  for  Jinja2
     warning: no files found matching  '*'  under directory  'custom_fixers'
     warning: no previously-included files matching  '*'  found under directory  'docs/_build'
     warning: no previously-included files matching  '*.pyc'  found under directory  'jinja2'
     warning: no previously-included files matching  '*.pyc'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyo'  found under directory  'jinja2'
     warning: no previously-included files matching  '*.pyo'  found under directory  'docs'
   Running setup.py  install  for  Werkzeug
     warning: no files found matching  '*'  under directory  'werkzeug/debug/templates'
     warning: no files found matching  '*'  under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyo'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyc'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyo'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'examples'
     warning: no previously-included files matching  '*.pyo'  found under directory  'examples'
     no previously-included directories found matching  'docs/_build'
   Running setup.py  install  for  gunicorn
     warning: no previously-included files matching  '*.pyc'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyo'  found under directory  'docs'
     warning: no previously-included files matching  '*.pyc'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyo'  found under directory  'tests'
     warning: no previously-included files matching  '*.pyc'  found under directory  'examples'
     warning: no previously-included files matching  '*.pyo'  found under directory  'examples'
     Installing gunicorn_paster script to  /data/work/open-falcon/dashboard/env/bin
     Installing gunicorn script to  /data/work/open-falcon/dashboard/env/bin
     Installing gunicorn_django script to  /data/work/open-falcon/dashboard/env/bin
   Running setup.py  install  for  python-dateutil
   Running setup.py  install  for  requests
   Running setup.py  install  for  mysql-python
     building  '_mysql'  extension
     gcc  -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5, 'final' ,1) -D__version__=1.2.5 -I /usr/include/mysql  -I /usr/include/python2 .6 -c _mysql.c -o build /temp .linux-x86_64-2.6 /_mysql .o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv -fPIC -DUNIV_LINUX -DUNIV_LINUX
     In  file  included from  /usr/include/mysql/my_config .h:14,
                      from _mysql.c:44:
     /usr/include/mysql/my_config_x86_64 .h:1082:1: warning:  "HAVE_WCSCOLL"  redefined
     In  file  included from  /usr/include/python2 .6 /pyconfig .h:6,
                      from  /usr/include/python2 .6 /Python .h:8,
                      from _mysql.c:29:
     /usr/include/python2 .6 /pyconfig-64 .h:808:1: warning: this is the location of the previous definition
     gcc  -pthread -shared build /temp .linux-x86_64-2.6 /_mysql .o -L /usr/lib64/mysql  -L /usr/lib64  -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -lssl -lcrypto -lpython2.6 -o build /lib .linux-x86_64-2.6 /_mysql .so
   Running setup.py  install  for  itsdangerous
     warning: no previously-included files matching  '*'  found under directory  'docs/_build'
   Running setup.py  install  for  markupsafe
     building  'markupsafe._speedups'  extension
     gcc  -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I /usr/include/python2 .6 -c markupsafe /_speedups .c -o build /temp .linux-x86_64-2.6 /markupsafe/_speedups .o
     gcc  -pthread -shared build /temp .linux-x86_64-2.6 /markupsafe/_speedups .o -L /usr/lib64  -lpython2.6 -o build /lib .linux-x86_64-2.6 /markupsafe/_speedups .so
   Running setup.py  install  for  six
     no previously-included directories found matching  'documentation/_build'
Successfully installed Flask Jinja2 Werkzeug gunicorn python-dateutil requests mysql-python itsdangerous markupsafe six
Cleaning up...
***************当你发现自己的才华撑不起野心时,就请安静下来学习吧***************

本文转自散尽浮华博客园博客,原文链接:http://www.cnblogs.com/kevingrace/p/7355272.html,如需转载请自行联系原作者
相关实践学习
每个IT人都想学的“Web应用上云经典架构”实战
本实验从Web应用上云这个最基本的、最普遍的需求出发,帮助IT从业者们通过“阿里云Web应用上云解决方案”,了解一个企业级Web应用上云的常见架构,了解如何构建一个高可用、可扩展的企业级应用架构。
MySQL数据库入门学习
本课程通过最流行的开源数据库MySQL带你了解数据库的世界。   相关的阿里云产品:云数据库RDS MySQL 版 阿里云关系型数据库RDS(Relational Database Service)是一种稳定可靠、可弹性伸缩的在线数据库服务,提供容灾、备份、恢复、迁移等方面的全套解决方案,彻底解决数据库运维的烦恼。 了解产品详情: https://www.aliyun.com/product/rds/mysql 
相关文章
|
监控 数据库
open-falcon 安装以及配置
环境准备 请参考环境准备 同时,请再次检查当前的工作目录设置: export HOME=/home/work export WORKSPACE=$HOME/open-falcon mkdir -p $WORKSPACE 安装Transfer transfer默认监听在:8433端口上,agent会通过jsonrpc的方式来push数据上来。
2684 0
|
存储 监控 关系型数据库
|
监控 关系型数据库 MySQL
falcon服务器文件监控平台安装配置及报错解决
Falcon是一款基于inotify-tools 开发的Web服务器文件监控平台能够实时监控Web目录文件变化(新增,修改,删除),判断文件内容是否包含恶意代码,自动隔离常见Webshell,保证Web目录文件安全。
1523 0
|
12月前
|
存储 算法 中间件
基于移动端 1440P 成像的高精度皮肤分析方案
基于 1440P 成像与多任务蒸馏网络,HD Skin Analysis 在 700 ms 内完成 5 维皮肤指标输出,并与多光谱设备保持中高度相关。方案已在阿里云函数计算规模化部署,可为电商、医美、护肤品牌提供即插即用的“云端皮肤检测中间件”。
882 0
|
8月前
|
Arthas Java 测试技术
Maven 依赖冲突解决
本文深入剖析Java开发中Maven依赖冲突的根源与解决方案。首先解析Maven依赖调解规则(最短路径优先和声明优先)及JVM类加载机制,揭示冲突本质。随后介绍全链路排查工具链,包括Maven命令行、IDEA插件和线上诊断工具Arthas。重点提出7大解决方案,按优先级排序:1)dependencyManagement统一版本管理;2)直接声明目标版本;3)精准排除冲突依赖;4)调整依赖声明顺序;5)可选依赖标记;6)合理设置scope;7)类加载器隔离。
1159 5
|
12月前
|
移动开发 小程序 前端开发
告别年费,拥抱源码:一次投入,用Uni+Php源码搭建属于你自己终身的圈子小程序/H5/App
本文详解源码自建全流程:后端通过Git部署,配置数据库与OSS,优化PHP、Nginx及MySQL性能;前端支持小程序与H5,分别编译调试并发布。附技术架构图,涵盖前后端技术栈,助力高效搭建。
|
11月前
|
弹性计算 负载均衡 网络协议
。全球加速GA实战:为出海游戏业务降低延迟的架构方案
阿里云全球加速(GA)为出海游戏提供低延迟、高稳定网络方案,通过智能路由与全球70+地区边缘节点,优化TCP/UDP协议传输,解决跨境延迟高、公网不稳定难题。分层架构支持四层加速、智能调度与混合云部署,结合CDN与游戏盾,实现全球玩家流畅对战,助力打造无国界沉浸式体验。(239字)
|
存储 人工智能 自然语言处理
游戏云,市场份额第一!
IDC最新报告显示,阿里云稳居中国游戏云市场第一,整体份额达41%。依托AI与云计算融合创新,助力米哈游、网易等企业出海,推动游戏研发、运营升级,持续引领行业发展。
938 0
游戏云,市场份额第一!
|
存储 关系型数据库 MySQL
mysql数据库查询时用到的分页方法有哪些
【8月更文挑战第16天】在MySQL中,实现分页的主要方法包括:1)使用`LIMIT`子句,简单直接但随页数增加性能下降;2)通过子查询优化`LIMIT`分页,提高大页码时的查询效率;3)利用存储过程封装分页逻辑,便于复用但需额外维护;4)借助MySQL变量实现,可能提供更好的性能但实现较复杂。这些方法各有优缺点,可根据实际需求选择适用方案。
1432 2