2014-04-16 1 views
0

https://github.com/edx/configuration/wiki/edX-Ubuntu-12.04-64-bit-Installation 다음에 EdX를 설치하려고합니다.EDx 설치 작업이 시간 초과로 항상 실패했습니다.

심지어 난 그냥 "localhost"를을 지역 ./edx_sandbox.yml -i -c sudo는 ansible-작전을 실행하고 기다릴 필요가 않습니다.

그것은 항상 다음 ansible 작업에 실패했습니다

# Install the python modules into {{ edxapp_venv_dir }} 
- name : install python base-requirements 
    # Need to use shell rather than pip so that we can maintain the context of our current working directory; some 
    # requirements are pathed relative to the edx-platform repo. Using the pip from inside the virtual environment implicitly 
    # installs everything into that virtual environment. 
    shell: > 
    {{ edxapp_venv_dir }}/bin/pip install -i {{ COMMON_PYPI_MIRROR_URL }} --exists-action w --use-mirrors -r {{ base_requirements_file }} 
    chdir={{ edxapp_code_dir }} 
    environment: "{{ edxapp_environment }}" 
    sudo_user: "{{ edxapp_user }}" 
    notify: 
    - "restart edxapp" 
    - "restart edxapp_workers" 
    when: not inst.stat.exists or new.stat.md5 != inst.stat.md5 

은 왜 실패하고 다른 핍 설치 내가 작업 수정을 사용하여 동일한 목표를 얻을 수 있습니다, 잘 작동된다?

오류를 보여주는 것입니다 : 여기서 문제는 미러의 값이

***Traceback (most recent call last): 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/req.py", line 1197, in prepare_files do_download, 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/req.py", line 1375, in unpack_url self.session, 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/download.py", line 546, in unpack_http_url resp = session.get(target_url, stream=True) 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 395, in get return self.request('GET', url, **kwargs) 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/download.py", line 237, in request  return super(PipSession, self).request(method, url, *args, **kwargs) 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 383, in request resp = self.send(prep, **send_kwargs) 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 486, in send r = adapter.send(request, **kwargs) 
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py", line 387, in send raise Timeout(e) 
Timeout: (<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x295a6d0>, 'Connection to pypi.python.org timed out. (connect timeout=15)')*** 

답변

0

하고 그것을 찾을 수 없습니다 : 그 값이 edx-west/roles/common/defaults/main.yml 여기에 설정되어

{{ COMMON_PYPI_MIRROR_URL }} 

을 파일 :

COMMON_PYPI_MIRROR_URL: 'https://pypi.python.org/simple' 

나는 특별히 다른 미러로 변경하려고합니다. 그들이 언급 어디 documentation에 따라

-i {{ COMMON_PYPI_MIRROR_URL }} 

:

http://b.pypi.python.org/simple or 
http://c.pypi.python.org/simple or 
http://d.pypi.python.org/simple 

은 또한 당신이 당신의 작전에서 옵션을 생략 시도 할 수 있습니다 : (로그에서 https에 문제가있을 수 있으므로) http 노래 --use-mirrors 또는 셸에서 export PIP_USE_MIRRORS=true으로 설정하면 충분합니다.

관련 문제