美文网首页
openedx install error

openedx install error

作者: 法号无涯 | 来源:发表于2018-01-10 23:03 被阅读135次
    make dev.provision
    DOCKER_COMPOSE_FILES="-f docker-compose.yml -f docker-compose-host.yml" ./provision.sh
    + RED='\033[0;31m'
    + GREEN='\033[0;32m'
    + YELLOW='\033[0;33m'
    + NC='\033[0m'
    + docker-compose up -d mysql mongo
    edx.devstack.mongo is up-to-date
    edx.devstack.mysql is up-to-date
    + echo 'Waiting for MySQL'
    Waiting for MySQL
    + docker exec -i edx.devstack.mysql mysql -uroot -se 'SELECT EXISTS(SELECT 1 FROM mysql.user WHERE user = '\''root'\'')'
    + sleep 20
    + echo -e 'MySQL ready'
    MySQL ready
    + echo -e '\033[0;32mCreating databases and users...\033[0m'
    Creating databases and users...
    + docker exec -i edx.devstack.mysql mysql -uroot mysql
    + docker exec -i edx.devstack.mongo mongo
    MongoDB shell version: 3.2.16
    connecting to: test
    connection to 127.0.0.1
    [
        {
            "user" : "admin",
            "pwd" : "password",
            "roles" : [
                "root"
            ],
            "database" : "admin"
        },
        {
            "user" : "cs_comments_service",
            "pwd" : "password",
            "roles" : [
                "readWrite"
            ],
            "database" : "cs_comments_service"
        },
        {
            "user" : "edxapp",
            "pwd" : "password",
            "roles" : [
                "readWrite"
            ],
            "database" : "edxapp"
        }
    ]
    bye
    + ./provision-lms.sh
    ++ apps=(lms studio)
    ++ ./load-db.sh edxapp
    Loading the edxapp database...
    Finished loading the edxapp database!
    ++ ./load-db.sh edxapp_csmh
    Loading the edxapp_csmh database...
    Finished loading the edxapp_csmh database!
    ++ for app in '"${apps[@]}"'
    ++ docker-compose -f docker-compose.yml -f docker-compose-host.yml up -d lms
    edx.devstack.mysql is up-to-date
    edx.devstack.mongo is up-to-date
    edx.devstack.memcached is up-to-date
    edx.devstack.lms is up-to-date
    ++ for app in '"${apps[@]}"'
    ++ docker-compose -f docker-compose.yml -f docker-compose-host.yml up -d studio
    edx.devstack.mongo is up-to-date
    edx.devstack.mysql is up-to-date
    edx.devstack.memcached is up-to-date
    edx.devstack.studio is up-to-date
    ++ docker-compose exec lms bash -c 'source /edx/app/edxapp/edxapp_env && cd /edx/app/edxapp/edx-platform && NO_PYTHON_UNINSTALL=1 paver install_prereqs'
    ---> pavelib.prereqs.install_prereqs
    ---> pavelib.prereqs.install_node_prereqs
    test `npm config get registry` = "https://registry.npmjs.org/" || (echo setting registry; npm config set registry https://registry.npmjs.org/)
    npm install
    
    > node-sass@4.7.2 install /edx/app/edxapp/edx-platform/node_modules/node-sass
    > node scripts/install.js
    
    Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/linux-x64-57_binding.node
    Cannot download "https://github.com/sass/node-sass/releases/download/v4.7.2/linux-x64-57_binding.node":
    
    tunneling socket could not be established, cause=connect EINVAL 0.0.4.63:80 - Local (0.0.0.0:0)
    
    Hint: If github.com is not accessible in your location
          try setting a proxy via HTTP_PROXY, e.g.
    
          export HTTP_PROXY=http://example.com:1234
    
    or configure npm proxy via
    
          npm config set proxy http://example.com:8080
    
    > node-sass@4.7.2 postinstall /edx/app/edxapp/edx-platform/node_modules/node-sass
    > node scripts/build.js
    
    Building: /edx/app/edxapp/nodeenvs/edxapp/bin/node /edx/app/edxapp/edx-platform/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
    gyp info it worked if it ends with ok
    gyp verb cli [ '/edx/app/edxapp/nodeenvs/edxapp/bin/node',
    gyp verb cli   '/edx/app/edxapp/edx-platform/node_modules/node-gyp/bin/node-gyp.js',
    gyp verb cli   'rebuild',
    gyp verb cli   '--verbose',
    gyp verb cli   '--libsass_ext=',
    gyp verb cli   '--libsass_cflags=',
    gyp verb cli   '--libsass_ldflags=',
    gyp verb cli   '--libsass_library=' ]
    gyp info using node-gyp@3.6.2
    gyp info using node@8.9.3 | linux | x64
    gyp verb command rebuild []
    gyp verb command clean []
    gyp verb clean removing "build" directory
    gyp verb command configure []
    gyp verb check python checking for Python executable "python2" in the PATH
    gyp verb `which` succeeded python2 /edx/app/edxapp/venvs/edxapp/bin/python2
    gyp verb check python version `/edx/app/edxapp/venvs/edxapp/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.12\n"
    gyp verb get node dir no --target version specified, falling back to host node version: 8.9.3
    gyp verb command install [ '8.9.3' ]
    gyp verb install input version string "8.9.3"
    gyp verb install installing version: 8.9.3
    gyp verb install --ensure was passed, so won't reinstall if already installed
    gyp verb install version not already installed, continuing with install 8.9.3
    gyp verb ensuring nodedir is created /root/.node-gyp/8.9.3
    gyp verb created nodedir /root/.node-gyp/8.9.3
    gyp http GET https://nodejs.org/download/release/v8.9.3/node-v8.9.3-headers.tar.gz
    gyp WARN download ignoring invalid "proxy" config setting: "docker.for.mac.localhost:1087"
    gyp WARN install got an error, rolling back install
    gyp verb command remove [ '8.9.3' ]
    gyp verb remove using node-gyp dir: /root/.node-gyp
    gyp verb remove removing target version: 8.9.3
    gyp verb remove removing development files for version: 8.9.3
    gyp ERR! configure error
    gyp ERR! stack Error: tunneling socket could not be established, cause=connect EINVAL 0.0.4.63:80 - Local (0.0.0.0:0)
    gyp ERR! stack     at ClientRequest.onError (/edx/app/edxapp/edx-platform/node_modules/tunnel-agent/index.js:176:17)
    gyp ERR! stack     at Object.onceWrapper (events.js:315:30)
    gyp ERR! stack     at emitOne (events.js:116:13)
    gyp ERR! stack     at ClientRequest.emit (events.js:211:7)
    gyp ERR! stack     at Socket.socketErrorListener (_http_client.js:387:9)
    gyp ERR! stack     at emitOne (events.js:116:13)
    gyp ERR! stack     at Socket.emit (events.js:211:7)
    gyp ERR! stack     at emitErrorNT (internal/streams/destroy.js:64:8)
    gyp ERR! stack     at _combinedTickCallback (internal/process/next_tick.js:138:11)
    gyp ERR! stack     at process._tickCallback (internal/process/next_tick.js:180:9)
    gyp ERR! System Linux 4.9.49-moby
    gyp ERR! command "/edx/app/edxapp/nodeenvs/edxapp/bin/node" "/edx/app/edxapp/edx-platform/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
    gyp ERR! cwd /edx/app/edxapp/edx-platform/node_modules/node-sass
    gyp ERR! node -v v8.9.3
    gyp ERR! node-gyp -v v3.6.2
    gyp ERR! not ok
    Build failed with error code: 1
    npm WARN eslint-config-airbnb-base@3.0.1 requires a peer of eslint@^2.9.0 but none is installed. You must install peer dependencies yourself.
    npm WARN karma-selenium-webdriver-launcher@0.0.4 requires a peer of selenium-webdriver@^2.44.0 but none is installed. You must install peer dependencies yourself.
    npm WARN react-paginate@5.0.0 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN edx@0.1.0 No repository field.
    npm WARN edx@0.1.0 No license field.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! node-sass@4.7.2 postinstall: `node scripts/build.js`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the node-sass@4.7.2 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2018-01-10T14_51_11_850Z-debug.log
    npm install error detected. Retrying...
    npm install
    
    > node-sass@4.7.2 install /edx/app/edxapp/edx-platform/node_modules/node-sass
    > node scripts/install.js
    
    Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/linux-x64-57_binding.node
    Cannot download "https://github.com/sass/node-sass/releases/download/v4.7.2/linux-x64-57_binding.node":
    
    tunneling socket could not be established, cause=connect EINVAL 0.0.4.63:80 - Local (0.0.0.0:0)
    
    Hint: If github.com is not accessible in your location
          try setting a proxy via HTTP_PROXY, e.g.
    
          export HTTP_PROXY=http://example.com:1234
    
    or configure npm proxy via
    
          npm config set proxy http://example.com:8080
    
    > node-sass@4.7.2 postinstall /edx/app/edxapp/edx-platform/node_modules/node-sass
    > node scripts/build.js
    
    Building: /edx/app/edxapp/nodeenvs/edxapp/bin/node /edx/app/edxapp/edx-platform/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
    gyp info it worked if it ends with ok
    gyp verb cli [ '/edx/app/edxapp/nodeenvs/edxapp/bin/node',
    gyp verb cli   '/edx/app/edxapp/edx-platform/node_modules/node-gyp/bin/node-gyp.js',
    gyp verb cli   'rebuild',
    gyp verb cli   '--verbose',
    gyp verb cli   '--libsass_ext=',
    gyp verb cli   '--libsass_cflags=',
    gyp verb cli   '--libsass_ldflags=',
    gyp verb cli   '--libsass_library=' ]
    gyp info using node-gyp@3.6.2
    gyp info using node@8.9.3 | linux | x64
    gyp verb command rebuild []
    gyp verb command clean []
    gyp verb clean removing "build" directory
    gyp verb command configure []
    gyp verb check python checking for Python executable "python2" in the PATH
    gyp verb `which` succeeded python2 /edx/app/edxapp/venvs/edxapp/bin/python2
    gyp verb check python version `/edx/app/edxapp/venvs/edxapp/bin/python2 -c "import platform; print(platform.python_version());"` returned: "2.7.12\n"
    gyp verb get node dir no --target version specified, falling back to host node version: 8.9.3
    gyp verb command install [ '8.9.3' ]
    gyp verb install input version string "8.9.3"
    gyp verb install installing version: 8.9.3
    gyp verb install --ensure was passed, so won't reinstall if already installed
    gyp verb install version not already installed, continuing with install 8.9.3
    gyp verb ensuring nodedir is created /root/.node-gyp/8.9.3
    gyp verb created nodedir /root/.node-gyp/8.9.3
    gyp http GET https://nodejs.org/download/release/v8.9.3/node-v8.9.3-headers.tar.gz
    gyp WARN download ignoring invalid "proxy" config setting: "docker.for.mac.localhost:1087"
    gyp WARN install got an error, rolling back install
    gyp verb command remove [ '8.9.3' ]
    gyp verb remove using node-gyp dir: /root/.node-gyp
    gyp verb remove removing target version: 8.9.3
    gyp verb remove removing development files for version: 8.9.3
    gyp ERR! configure error
    gyp ERR! stack Error: tunneling socket could not be established, cause=connect EINVAL 0.0.4.63:80 - Local (0.0.0.0:0)
    gyp ERR! stack     at ClientRequest.onError (/edx/app/edxapp/edx-platform/node_modules/tunnel-agent/index.js:176:17)
    gyp ERR! stack     at Object.onceWrapper (events.js:315:30)
    gyp ERR! stack     at emitOne (events.js:116:13)
    gyp ERR! stack     at ClientRequest.emit (events.js:211:7)
    gyp ERR! stack     at Socket.socketErrorListener (_http_client.js:387:9)
    gyp ERR! stack     at emitOne (events.js:116:13)
    gyp ERR! stack     at Socket.emit (events.js:211:7)
    gyp ERR! stack     at emitErrorNT (internal/streams/destroy.js:64:8)
    gyp ERR! stack     at _combinedTickCallback (internal/process/next_tick.js:138:11)
    gyp ERR! stack     at process._tickCallback (internal/process/next_tick.js:180:9)
    gyp ERR! System Linux 4.9.49-moby
    gyp ERR! command "/edx/app/edxapp/nodeenvs/edxapp/bin/node" "/edx/app/edxapp/edx-platform/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
    gyp ERR! cwd /edx/app/edxapp/edx-platform/node_modules/node-sass
    gyp ERR! node -v v8.9.3
    gyp ERR! node-gyp -v v3.6.2
    gyp ERR! not ok
    Build failed with error code: 1
    npm WARN eslint-config-airbnb-base@3.0.1 requires a peer of eslint@^2.9.0 but none is installed. You must install peer dependencies yourself.
    npm WARN karma-selenium-webdriver-launcher@0.0.4 requires a peer of selenium-webdriver@^2.44.0 but none is installed. You must install peer dependencies yourself.
    npm WARN react-paginate@5.0.0 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
    npm WARN edx@0.1.0 No repository field.
    npm WARN edx@0.1.0 No license field.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! node-sass@4.7.2 postinstall: `node scripts/build.js`
    npm ERR! Exit status 1
    npm ERR!
    

    npm ERR! Failed at the node-sass@4.7.2 postinstall script.

    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2018-01-10T14_52_01_581Z-debug.log

    Captured Task Output:

    ---> pavelib.prereqs.install_prereqs
    ---> pavelib.prereqs.install_node_prereqs
    test npm config get registry = "https://registry.npmjs.org/" || (echo setting registry; npm config set registry https://registry.npmjs.org/)
    npm install
    npm install

    相关文章

      网友评论

          本文标题:openedx install error

          本文链接:https://www.haomeiwen.com/subject/esbanxtx.html