2015-03-03 160 views
0

尝试使用以下命令从github部署我的项目MEAN.JS,但不起作用。在Openshift中部署MEAN.JS

我到处找,也没有发现它的问题

或以其他方式存在对OpenShift部署MEAN.JS应用

RHC的应用程序创建trendmedia的NodeJS-0.10的mongodb-2.4 --env NODE_ENV =生产--from码https://github.com/meanjs/mean git的--trace

Application Options 
    ------------------- 
    Domain:    meanopen 
Cartridges:   nodejs-0.10, mongodb-2.4 
Source Code:   https://github.com/meanjs/mean.git 
Gear Size:    default 
Scaling:    no 
Environment Variables: NODE_ENV=production 

Creating application 'trendmedia' ... C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1. 
34.2/lib/rhc/rest/client.rb:770:in `handle_error!': The initial build for the ap 
plication failed: Shell command '/sbin/runuser -s /bin/sh 54f5215dfcf93302a10001 
8e -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c3,c770' /bin/ 
sh -c \"gear postreceive --init >> /tmp/initial-build.log 2>&1\""' returned an e 
rror. rc=255 (RHC::Rest::ValidationException) 

.Last 10 kB of build output: 
zee/node_modules/es6-weak-map/node_modules/es6-iterator 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli- 
color/node_modules/memoizee/node_modules/es6-weak-map 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli- 
color/node_modules/memoizee 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info preinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/me 
moizee/node_modules/es6-weak-map/node_modules/es6-iterator/node_modules/es6-symb 
ol 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/me 
moizee/node_modules/es6-weak-map/node_modules/es6-iterator 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/me 
moizee/node_modules/es6-weak-map 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/me 
moizee 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info preinstall [email protected] 
npm info install [email protected] into /var/lib/openshift/54f5215dfcf93302a100 
018e/app-root/runtime/repo/node_modules/bower/node_modules/insight/node_modules/ 
inquirer/node_modules/cli-color/node_modules/es5-ext 
npm info install [email protected] into /var/lib/openshift/54f5215dfcf93302a10001 
8e/app-root/runtime/repo/node_modules/bower/node_modules/insight/node_modules/in 
quirer/node_modules/cli-color/node_modules/es5-ext 
npm info installOne [email protected] 
npm info installOne [email protected] 
npm info /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo/node_ 
modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/ 
node_modules/es5-ext/node_modules/es6-iterator unbuild 
npm info /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo/node_ 
modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli-color/ 
node_modules/es5-ext/node_modules/es6-symbol unbuild 
npm info preinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli- 
color/node_modules/es5-ext/node_modules/es6-symbol 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info preinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli- 
color/node_modules/es5-ext/node_modules/es6-iterator 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli- 
color/node_modules/es5-ext 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/cli- 
color 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/insight/node_modules/inquirer 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/insight 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info preinstall [email protected] 
npm info install [email protected] into /var/lib/openshift/54f5215dfcf93302a100 
018e/app-root/runtime/repo/node_modules/bower/node_modules/inquirer/node_modules 
/cli-color/node_modules/es5-ext 
npm info install [email protected] into /var/lib/openshift/54f5215dfcf93302a10001 
8e/app-root/runtime/repo/node_modules/bower/node_modules/inquirer/node_modules/c 
li-color/node_modules/es5-ext 
npm info installOne [email protected] 
npm info installOne [email protected] 
npm info /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo/node_ 
modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/ 
node_modules/es6-iterator unbuild 
npm info /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo/node_ 
modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/ 
node_modules/es6-symbol unbuild 
npm info preinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es 
5-ext/node_modules/es6-symbol 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info preinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es 
5-ext/node_modules/es6-iterator 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es 
5-ext 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/inquirer/node_modules/cli-color 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower/node_modules/inquirer 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
/node_modules/bower 
npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 
npm info build /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 

npm info linkStuff [email protected] 
npm info install [email protected] 
npm info postinstall [email protected] 

> [email protected] postinstall /var/lib/openshift/54f5215dfcf93302a100018e/app-root/ 
runtime/repo 
> bower install --config.interactive=false 


Error: EACCES, permission denied '/var/lib/openshift/54f5215dfcf93302a100018e/.c 
onfig' 
    at Object.fs.mkdirSync (fs.js:642:18) 
    at sync (/var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo/n 
ode_modules/bower/node_modules/mkdirp/index.js:70:13) 
    at Function.sync (/var/lib/openshift/54f5215dfcf93302a100018e/app-root/runti 
me/repo/node_modules/bower/node_modules/mkdirp/index.js:76:24) 
    at Object.create.all.get (/var/lib/openshift/54f5215dfcf93302a100018e/app-ro 
ot/runtime/repo/node_modules/bower/node_modules/insight/node_modules/configstore 
/index.js:41:13) 
    at Object.Configstore (/var/lib/openshift/54f5215dfcf93302a100018e/app-root/ 
runtime/repo/node_modules/bower/node_modules/insight/node_modules/configstore/in 
dex.js:27:44) 
    at new Insight (/var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime 
/repo/node_modules/bower/node_modules/insight/lib/index.js:26:34) 
    at ensureInsight (/var/lib/openshift/54f5215dfcf93302a100018e/app-root/runti 
me/repo/node_modules/bower/lib/util/analytics.js:26:19) 
    at Object.setup (/var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtim 
e/repo/node_modules/bower/lib/util/analytics.js:43:9) 
    at Object.<anonymous> (/var/lib/openshift/54f5215dfcf93302a100018e/app-root/ 
runtime/repo/node_modules/bower/bin/bower:72:11) 
    at Module._compile (module.js:456:26) 

npm info [email protected] Failed to exec postinstall script 
npm ERR! [email protected] postinstall: `bower install --config.interactive=false` 
npm ERR! Exit status 8 
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script. 
npm ERR! This is most likely a problem with the meanjs package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  bower install --config.interactive=false 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls meanjs 
npm ERR! There is likely additional logging output above. 
npm ERR! System Linux 2.6.32-504.3.3.el6.x86_64 
npm ERR! command "node" "/opt/rh/nodejs010/root/usr/bin/npm" "install" "-d" 
npm ERR! cwd /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo 
npm ERR! node -v v0.10.25 
npm ERR! npm -v 1.3.24 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /var/lib/openshift/54f5215dfcf93302a100018e/app-root/runtime/repo/n 
pm-debug.log 
npm ERR! not ok code 0 
An error occurred executing 'gear postreceive' (exit code: 1) 
Error message: CLIENT_ERROR: Failed to execute: 'control build' for /var/lib/ope 
nshift/54f5215dfcf93302a100018e/nodejs 

For more details about the problem, try running the command again with the '--tr 
ace' option. 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/rest/client. 
rb:423:in `block in request' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/rest/client. 
rb:405:in `block in attempt' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/rest/client. 
rb:404:in `each' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/rest/client. 
rb:404:in `attempt' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/rest/client. 
rb:411:in `request' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/rest/base.rb 
:30:in `rest_method' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/rest/domain. 
rb:68:in `add_application' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/commands/app 
.rb:606:in `create_app' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/commands/app 
.rb:155:in `block in create' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/highline_ext 
ensions.rb:190:in `call' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/highline_ext 
ensions.rb:190:in `section' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/highline_ext 
ensions.rb:204:in `paragraph' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/helpers.rb:3 
37:in `block (2 levels) in <module:Helpers>' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/commands/app 
.rb:151:in `create' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/commands.rb: 
294:in `execute' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/commands.rb: 
285:in `block (3 levels) in to_commander' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/commander-4.3.0/lib/commander/c 
ommand.rb:179:in `call' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/commander-4.3.0/lib/commander/c 
ommand.rb:179:in `call' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/commander-4.3.0/lib/commander/c 
ommand.rb:154:in `run' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/commander-4.3.0/lib/commander/r 
unner.rb:419:in `run_active_command' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/command_runn 
er.rb:100:in `run!' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/commander-4.3.0/lib/commander/d 
elegates.rb:19:in `run!' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/lib/rhc/cli.rb:37:in 
`start' 
     from C:/ruby193/lib/ruby/gems/1.9.1/gems/rhc-1.34.2/bin/rhc:20:in `<top 
(required)>' 
     from C:/ruby193/bin/rhc:23:in `load' 
     from C:/ruby193/bin/rhc:23:in `<main>' 

回答

0

Bower通常用作生成器,以在本地脚手架代码(在您提交并推送您的更改之前)。我不认为bower在OpenShift上可以正常工作,因为它预计$HOME目录是可写的。

我想尝试在本地做这个工作,然后提交并推送结果。