развернуть MEAN.JS в Openshift

попробуйте развернуть мой проект MEAN.JS из github с помощью следующей команды, но она не работает.

Я искал везде и не нашел, что это проблема

или что в противном случае нужно развернуть приложение MEAN.JS на OpenShift

Приложение rhc создает trendmedia nodejs-0.10 mongodb-2.4 --env NODE_ENV=production --from-code 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>'

person mark martin    schedule 03.03.2015    source источник


Ответы (2)


Почему бы вам не попробовать это Средство быстрого запуска, предназначенное для работы в OpenShift? https://hub.openshift.com/quickstarts/63-mean

person Community    schedule 03.03.2015

Bower обычно используется в качестве генератора для локального формирования кода (перед фиксацией и отправкой изменений). Я не думаю, что Bower правильно работает в OpenShift, поскольку он ожидает, что каталог $HOME будет доступен для записи.

Я бы попробовал выполнить эту работу локально, затем зафиксировал и отправил результат.

person ʀɣαɳĵ    schedule 15.05.2016