2014-03-13 2 views
1

OpenShift 플랫폼에 내 응용 프로그램을 배포하는 데 문제가 있습니다.
bcrypt가 실패한 것처럼 보이지만 모든 것이 올바르게 설치되는 것 같습니다.
내가 사용하고자하는 모든 노드 모듈에서 동일한 문제가 발생할 수 있습니다.
나는 그 문제가 노드 모듈의 버전에 있다고 생각했다.성공적인 설치 후 bcrypt가 실패합니다.

아직 단서가 없습니다. 누군가가 나에게 무슨 일이 일어나는지 알 수있게되기를 바랍니다.
나는 전체 Jenkins 콘솔 출력 (필자는 OpenShift 서버에서 처음으로 git push 한 후 정확히 동일한 출력을 가졌음)을 복사합니다.

Started by user Jenkins Admin Building remotely on nodejsbldr in workspace /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo Checkout:repo//var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo - [email protected]:nodejsbldr Using strategy: Default Checkout:repo//var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo - [email protected] Wiping out workspace first. Cloning the remote Git repository Cloning repository origin Fetching upstream changes from ssh://[email protected]/~/git/nodejs.git Seen branch in repository origin/HEAD Seen branch in repository origin/alpha Seen branch in repository origin/master Commencing build of Revision 26cbed22880b5ac3b5bab4b016dbc5fe75579792 (origin/alpha) Checking out Revision 26cbed22880b5ac3b5bab4b016dbc5fe75579792 (origin/alpha) No change to record in branch origin/alpha [repo] $ /bin/sh -xe /tmp/hudson154161094843280943.sh 
+ source /usr/lib/openshift/cartridge_sdk/bash/sdk 
++ '[' false == true ']' 
++ OO_BASH_SDK=true 
+ alias 'rsync=rsync --delete-after -az -e '\''/usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh'\''' 
+ [email protected] 
+ rm -f /var/lib/openshift/myPrivateWorkSpace//app-deployments/current/metadata.json 
+ marker_present force_clean_build 
+ '[' -f /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo//.openshift/markers/force_clean_build ']' 
+ set +e 
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh '[email protected]:$OPENSHIFT_BUILD_DEPENDENCIES_DIR' /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/build-dependencies/ 
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh '[email protected]:$OPENSHIFT_DEPENDENCIES_DIR' /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/dependencies/ 
+ set -e 
+ gear build Building git ref 'origin/alpha', commit 26cbed2 Building NodeJS cartridge npm info it worked if it ends with ok npm info using [email protected] npm info using [email protected] npm info preinstall [email protected] npm info build /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo npm info linkStuff [email protected] npm info build /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo/node_modules/csrf npm info preinstall [email protected] npm info linkStuff [email protected] npm info install [email protected] npm info postinstall [email protected] npm info build /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo/node_modules/session-mongoose npm info preinstall [email protected] npm info linkStuff [email protected] npm info install [email protected] npm info postinstall [email protected] npm info install [email protected] npm info postinstall [email protected] npm info prepublish [email protected] npm info ok 
+ /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh [email protected] 'gear stop --conditional 
--exclude-web-proxy --git-ref gtiRefNum' Stopping gear... Stopping MongoDB cartridge Stopping NodeJS cartridge 
++ /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh [email protected] 'gear create-deployment-dir' 
+ deployment_dir=2014-03-12_22-42-14.111 
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh /var/lib/openshift/myPrivateWorkSpace//app-deployments/current/metadata.json [email protected]:app-deployments/2014-03-12_22-42-14.111/metadata.json 
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh 
--exclude .git /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/repo/ [email protected]:app-root/runtime/repo/ 
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/build-dependencies/ [email protected]:app-root/runtime/build-dependencies/ 
+ rsync --delete-after -az -e /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh /var/lib/openshift/myPrivateWorkSpace/app-root/runtime/dependencies/ [email protected]:app-root/runtime/dependencies/ 
+ /usr/libexec/openshift/cartridges/jenkins/bin/git_ssh_wrapper.sh [email protected] 'gear remotedeploy 
--deployment-datetime 2014-03-12_22-42-14.111' Preparing build for deployment Deployment id is aa14cca3 Activating deployment Starting MongoDB cartridge Starting NodeJS cartridge 

DEBUG: Running node-supervisor with DEBUG: program 'app.js' DEBUG: 
--watch '.' DEBUG: --ignore 'undefined' DEBUG: --extensions 'node|js|coffee' DEBUG: --exec 'node' 

DEBUG: Starting child process with 'node app.js' DEBUG: Watching directory '/var/lib/openshift/mySshPrivateId/app-root/runtime/repo' for changes. Failed to load c++ bson extension, using pure JS version 

/var/lib/openshift/mySshPrivateId/app-root/runtime/repo/node_modules/bcrypt/node_modules/bindings/bindings.js:79 
     throw e 
      ^Error: /var/lib/openshift/mySshPrivateId/app-root/runtime/repo/node_modules/bcrypt/build/Release/bcrypt_lib.node: invalid ELF header 
    at Module.load (module.js:356:32) 
    at Function.Module._load (module.js:312:12) 
    at Module.require (module.js:364:17) 
    at require (module.js:380:17) 
    at bindings (/var/lib/openshift/mySshPrivateId/app-root/runtime/repo/node_modules/bcrypt/node_modules/bindings/bindings.js:74:15) 
    at Object.<anonymous> (/var/lib/openshift/mySshPrivateId/app-root/runtime/repo/node_modules/bcrypt/bcrypt.js:1:97) 
    at Module._compile (module.js:456:26) 
    at Object.Module._extensions..js (module.js:474:10) 
    at Module.load (module.js:356:32) 
    at Function.Module._load (module.js:312:12) DEBUG: Program node app.js exited with code 8 

DEBUG: Starting child process with 'node app.js' Archiving artifacts Finished: SUCCESS 

버전에 대한 추출 인용 :

"dependencies": { 
    "express": "3.4.8", 
    "jade": "1.1.5", 
    "socket.io": "0.9.16", 
    "bcrypt": "0.7.7", 
    "colors": "0.6.2", 
    "connect": "2.13.0", 
    "connect-mongo": "0.4.0", 
    "cookie": "0.1.1", 
    "mongodb": "1.3.23", 
    "mongoose": "3.8.6" 
}, 
:

[email protected]에게

그리고 내 응용 프로그램 종속성 목록을 사용하여 NPM 정보를 [email protected] 사용

미리 자신의 위험을 감수할만한 용감한 사람을 보내 주셔서 감사합니다. infos. :)

답변

0

나는 동일한 문제를 겪었습니다. 나는 Mac에서 작업 중이므로 here으로 묘사 된 OSX bcrypt 컴파일 문제와 관련이 있다고 생각합니다.
node_modules 디렉토리를 제거하고 OpenShift에서 npm을 실행하고 종속성을 다시 다운로드하려고했지만 어떤 이유로 그것이 저를 위해 작동하지 않았습니다.

내 문제를 해결 한 node_module 폴더를 제외하면서 새 응용 프로그램을 만들고 내 저장소를 커밋했습니다.

+0

안녕하세요 Nimrod, 죄송합니다. 귀하의 답변을 발견하지 못했습니다. 무슨 일이 있었는지 기억이 나지 않지만 결국 영웅으로 바뀌게되었습니다. 소규모 개인 테스트를위한 훌륭한 공급자입니다. 어쨌든 고마워, ! – rmNyro

관련 문제