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

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

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

  1. [root@open dashboard]# ./env/bin/pip install -r pip_requirements.txt -i http://pypi.doubanio.com/simple
  2. Downloading/unpacking Flask==0.10.1 (from -r pip_requirements.txt (line 1))
  3. Downloading Flask-0.10.1.tar.gz (544kB): 544kB downloaded
  4. Running setup.py egg_info for package Flask
  5. warning: no files found matching '*' under directory 'tests'
  6. warning: no previously-included files matching '*.pyc' found under directory 'docs'
  7. warning: no previously-included files matching '*.pyo' found under directory 'docs'
  8. warning: no previously-included files matching '*.pyc' found under directory 'tests'
  9. warning: no previously-included files matching '*.pyo' found under directory 'tests'
  10. warning: no previously-included files matching '*.pyc' found under directory 'examples'
  11. warning: no previously-included files matching '*.pyo' found under directory 'examples'
  12. no previously-included directories found matching 'docs/_build'
  13. no previously-included directories found matching 'docs/_themes/.git'
  14. Downloading/unpacking Jinja2==2.7.2 (from -r pip_requirements.txt (line 2))
  15. Downloading Jinja2-2.7.2.tar.gz (378kB): 378kB downloaded
  16. Running setup.py egg_info for package Jinja2
  17. warning: no files found matching '*' under directory 'custom_fixers'
  18. warning: no previously-included files matching '*' found under directory 'docs/_build'
  19. warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
  20. warning: no previously-included files matching '*.pyc' found under directory 'docs'
  21. warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
  22. warning: no previously-included files matching '*.pyo' found under directory 'docs'
  23. Downloading/unpacking Werkzeug==0.9.4 (from -r pip_requirements.txt (line 3))
  24. Downloading Werkzeug-0.9.4.tar.gz (1.1MB): 1.1MB downloaded
  25. Running setup.py egg_info for package Werkzeug
  26. warning: no files found matching '*' under directory 'werkzeug/debug/templates'
  27. warning: no files found matching '*' under directory 'tests'
  28. warning: no previously-included files matching '*.pyc' found under directory 'docs'
  29. warning: no previously-included files matching '*.pyo' found under directory 'docs'
  30. warning: no previously-included files matching '*.pyc' found under directory 'tests'
  31. warning: no previously-included files matching '*.pyo' found under directory 'tests'
  32. warning: no previously-included files matching '*.pyc' found under directory 'examples'
  33. warning: no previously-included files matching '*.pyo' found under directory 'examples'
  34. no previously-included directories found matching 'docs/_build'
  35. Downloading/unpacking gunicorn==18.0 (from -r pip_requirements.txt (line 4))
  36. Downloading gunicorn-18.0.tar.gz (366kB): 366kB downloaded
  37. Running setup.py egg_info for package gunicorn
  38. warning: no previously-included files matching '*.pyc' found under directory 'docs'
  39. warning: no previously-included files matching '*.pyo' found under directory 'docs'
  40. warning: no previously-included files matching '*.pyc' found under directory 'tests'
  41. warning: no previously-included files matching '*.pyo' found under directory 'tests'
  42. warning: no previously-included files matching '*.pyc' found under directory 'examples'
  43. warning: no previously-included files matching '*.pyo' found under directory 'examples'
  44. Downloading/unpacking python-dateutil==2.2 (from -r pip_requirements.txt (line 5))
  45. Downloading python-dateutil-2.2.tar.gz (259kB): 259kB downloaded
  46. Running setup.py egg_info for package python-dateutil
  47. Downloading/unpacking requests==2.3.0 (from -r pip_requirements.txt (line 6))
  48. Downloading requests-2.3.0.tar.gz (429kB): 429kB downloaded
  49. Running setup.py egg_info for package requests
  50. Downloading/unpacking mysql-python (from -r pip_requirements.txt (line 7))
  51. Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
  52. Running setup.py egg_info for package mysql-python
  53. Downloading/unpacking itsdangerous>=0.21 (from Flask==0.10.1->-r pip_requirements.txt (line 1))
  54. Downloading itsdangerous-0.24.tar.gz (46kB): 46kB downloaded
  55. Running setup.py egg_info for package itsdangerous
  56. warning: no previously-included files matching '*' found under directory 'docs/_build'
  57. Downloading/unpacking markupsafe (from Jinja2==2.7.2->-r pip_requirements.txt (line 2))
  58. Downloading MarkupSafe-1.0.tar.gz
  59. Running setup.py egg_info for package markupsafe
  60. Downloading/unpacking six (from python-dateutil==2.2->-r pip_requirements.txt (line 5))
  61. Downloading six-1.10.0.tar.gz
  62. Running setup.py egg_info for package six
  63. no previously-included directories found matching 'documentation/_build'
  64. Installing collected packages: Flask, Jinja2, Werkzeug, gunicorn, python-dateutil, requests, mysql-python, itsdangerous, markupsafe, six
  65. Running setup.py install for Flask
  66. warning: no files found matching '*' under directory 'tests'
  67. warning: no previously-included files matching '*.pyc' found under directory 'docs'
  68. warning: no previously-included files matching '*.pyo' found under directory 'docs'
  69. warning: no previously-included files matching '*.pyc' found under directory 'tests'
  70. warning: no previously-included files matching '*.pyo' found under directory 'tests'
  71. warning: no previously-included files matching '*.pyc' found under directory 'examples'
  72. warning: no previously-included files matching '*.pyo' found under directory 'examples'
  73. no previously-included directories found matching 'docs/_build'
  74. no previously-included directories found matching 'docs/_themes/.git'
  75. Running setup.py install for Jinja2
  76. warning: no files found matching '*' under directory 'custom_fixers'
  77. warning: no previously-included files matching '*' found under directory 'docs/_build'
  78. warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
  79. warning: no previously-included files matching '*.pyc' found under directory 'docs'
  80. warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
  81. warning: no previously-included files matching '*.pyo' found under directory 'docs'
  82. Running setup.py install for Werkzeug
  83. warning: no files found matching '*' under directory 'werkzeug/debug/templates'
  84. warning: no files found matching '*' under directory 'tests'
  85. warning: no previously-included files matching '*.pyc' found under directory 'docs'
  86. warning: no previously-included files matching '*.pyo' found under directory 'docs'
  87. warning: no previously-included files matching '*.pyc' found under directory 'tests'
  88. warning: no previously-included files matching '*.pyo' found under directory 'tests'
  89. warning: no previously-included files matching '*.pyc' found under directory 'examples'
  90. warning: no previously-included files matching '*.pyo' found under directory 'examples'
  91. no previously-included directories found matching 'docs/_build'
  92. Running setup.py install for gunicorn
  93. warning: no previously-included files matching '*.pyc' found under directory 'docs'
  94. warning: no previously-included files matching '*.pyo' found under directory 'docs'
  95. warning: no previously-included files matching '*.pyc' found under directory 'tests'
  96. warning: no previously-included files matching '*.pyo' found under directory 'tests'
  97. warning: no previously-included files matching '*.pyc' found under directory 'examples'
  98. warning: no previously-included files matching '*.pyo' found under directory 'examples'
  99. Installing gunicorn_paster script to /data/work/open-falcon/dashboard/env/bin
  100. Installing gunicorn script to /data/work/open-falcon/dashboard/env/bin
  101. Installing gunicorn_django script to /data/work/open-falcon/dashboard/env/bin
  102. Running setup.py install for python-dateutil
  103. Running setup.py install for requests
  104. Running setup.py install for mysql-python
  105. building '_mysql' extension
  106. 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
  107. In file included from /usr/include/mysql/my_config.h:14,
  108. from _mysql.c:44:
  109. /usr/include/mysql/my_config_x86_64.h:1082:1: warning: "HAVE_WCSCOLL" redefined
  110. In file included from /usr/include/python2.6/pyconfig.h:6,
  111. from /usr/include/python2.6/Python.h:8,
  112. from _mysql.c:29:
  113. /usr/include/python2.6/pyconfig-64.h:808:1: warning: this is the location of the previous definition
  114. 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
  115. Running setup.py install for itsdangerous
  116. warning: no previously-included files matching '*' found under directory 'docs/_build'
  117. Running setup.py install for markupsafe
  118. building 'markupsafe._speedups' extension
  119. 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
  120. 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
  121. Running setup.py install for six
  122. no previously-included directories found matching 'documentation/_build'
  123. Successfully installed Flask Jinja2 Werkzeug gunicorn python-dateutil requests mysql-python itsdangerous markupsafe six
  124. Cleaning up...

open-falcon ---安装Dashboard时候报错"SSLError: The read operation timed out"的更多相关文章

  1. LINUX下编译安装PHP各种报错大集合

    本文为大家整理汇总了一些linux下编译安装php各种报错大集合 ,感兴趣的同学参考下. nginx1.6.2-mysql5.5.32二进制,php安装报错解决: 123456 [root@clien ...

  2. 在把webpack作为本地开发依赖安装的时候报错

    在把webpack作为本地开发依赖安装的时候报错 Refusing to install webpack as a dependency of itself 原因是package.json里的name ...

  3. python 3.5.2安装mysql驱动报错

    python 3.5.2安装mysql驱动报错 python 3.5.2安装mysql驱动时出现如下异常: [root@localhost www]# pip install mysql-connec ...

  4. Heka 编译安装后 运行报错 panic: runtime error: cgo argument has Go pointer to Go pointer

    Heka 编译安装后 运行报错 panic: runtime error: cgo argument has Go pointer to Go pointer 解决办法: 1.  Start heka ...

  5. windows 8 安装 oracle 11g 报错:command line option syntax error,type command/? for help

    windows 8 安装 oracle 11g 报错:command line option syntax error,type command/? for help 在windows8操作系统上安装 ...

  6. 安装SQl Server 报错 "需要 Microsoft.NET Framework 3.5 ServicePack 1" 解决方法

    前言 之前装Sql Server都没遇到过这样的问题, 昨天重装了系统之后, 然后安装SQl Server 报错,提示 "需要 Microsoft.NET Framework 3.5 Ser ...

  7. 【问题与解决】Mac OS通过 npm 安装 React Native 报错(checkPermissions Missing write access to /usr/local/lib/node_modules)

    报错情况: 当Mac OS通过 npm 安装 React Native 报错,警告文字为:checkPermissions Missing write access to /usr/local/lib ...

  8. 【pycharm】pycharm上安装tensorflow,报错:AttributeError: module 'pip' has no attribute 'main' 解决方法

    pycharm上安装tensorflow,报错:AttributeError: module 'pip' has no attribute 'main' 解决方法 解决方法: 在pycharm的安装目 ...

  9. vue-cli 安装时 npm 报错 errno -4048

    如何解决vue-cli 安装时  npm 报错 errno -4048 第一种解决方法:以管理身份运行cmd.exe 第二种解决办法:在dos窗口输入命令  npm cache clean  --fo ...

随机推荐

  1. 比较分析C++、Java、Python、R语言的面向对象特征,这些特征如何实现的?有什么相同点?

    一门课的课后题答案,在这里备份一下: 面向对象程序设计语言 –  比较分析C++.Java.Python.R语言的面向对象特征,这些特征如何实现的?有什么相同点? C++ 语言的面向对象特征: 对象模 ...

  2. tkinter学习系列(四)之Button 控件

    目录 目录 前言 (一)基本用法和可选属性 ==1.基本用法== ==2.可选属性== (二)属性的具体实现和案例 ==1.常用属性== ==案例一== ==2.按钮里的图片== ==案例二== == ...

  3. Java设计模式之十三 ---- 观察者模式和空对象模式

    前言 在上一篇中我们学习了行为型模式的备忘录模式(Memento Pattern)和状态模式(Memento Pattern).本篇则来学习下行为型模式的最后两个模式,观察者模式(Observer P ...

  4. jQuery实现全选/反选和批量删除

    <%@ page language="java" contentType="text/html; charset=utf-8"     pageEncod ...

  5. Mac OS X 下优化 Terminal,一篇就够了!

    先上最终效果图: 目录 目录 1. 相关工具介绍 2. 配置总览 3. 安装步骤 3.1. 安装 iTerm2 3.2. 安装XCode's Command line tools 3.3. 检查 zs ...

  6. 玩转FusionCharts:Y轴数字形式(如去掉K)

    玩转FusionCharts:Y轴数字形式(如去掉K) 如果运行FusionCharts带的例子,你会发现FusionCharts表中的数字(通常是Y轴)会带上’k’,也就是如20000,会变成20k ...

  7. javascript中DOM0,DOM2,DOM3级事件模型解析

    DOM 即 文档对象模型. 文档对象模型是一种与编程语言及平台无关的API(Application programming Interface),借助于它,程序能够动态地访问和修改文档内容.结构或显示 ...

  8. 马哥Python视频

    链接:https://pan.baidu.com/s/1KMXqdXlaIjZ3OaZ-PUwE9A 密码私聊我

  9. MATLAB——神经网络pureline激活函数

  10. nodeJS---URL相关模块用法(url和querystring)

    nodeJS---URL相关模块用法(url和querystring) 一: URL模块: URL模块用于解析和处理URL的字符串,提供了如下三个方法: 1. parse 2. format 3. r ...