Description of problem: Pushing to a NodeJS cartridge fails with: remote: Stopping NodeJS cartridge[K remote: Permission denied - /var/lib/openshift/52d8248bfa7f707a3d00003d/app-deployments/2014-01-16_18-27-29.097/dependencies/nodejs/node_modules/mime I think this might be releated to Bug #1020553 Version-Release number of selected component (if applicable): OpenShift Release 3, openshift-origin-cartridge-nodejs-1.19.0.1-1.fc19.noarch.rpm How reproducible: Always Steps to Reproduce: 1. Create an app with the NodeJS Cartridge 2. Checkout the app via Git and make a change 3. Push that change Actual results: remote: Stopping NodeJS cartridge[K remote: Permission denied - /var/lib/openshift/52d8248bfa7f707a3d00003d/app-deployments/2014-01-16_18-27-29.097/dependencies/nodejs/node_modules/mime ! [remote rejected] master -> master (pre-receive hook declined) Expected results: Successful push. Additional info:
Sebastian- Would you comment with your login id and app name so that I can take a look at your individual app? Thanks.
Hi Paul, this is occuring on my personal installation of OpenShift Origin done via oo-install (http://install.openshift.com) on Google ComputeEngine Instances running FC19, how can I make that available to you? Cheers, Sebastian
Just reinstalled my OS Cluster to make sure this bug/incident isn't just a fluke. Same result. I am not able to push to a newly created nodejs-0.10 app.
Somehow the cartridge seems to link all node_modules with the global module storage in /lib/node_modules. I really don't now how to fix this.
Issue is also happening with a recent nightly (28.01.2014)
I'm getting the same error on an OpenShift Origin 3.0 VM image. In my case the permission denied is on Permission denied - /var/lib/openshift/[user-id]/app-deployments/2014-05-07_07-30-09.309/dependencies/nodejs/node_modules/express The "express" directory above is a symlink to /lib/node_modules/express which is owned by root. I'm guessing that the app-deployment causes the git hook to try to update the express directory, which is, of course, updatable only by root. # ls -al /var/lib/openshift/[user-id]/app-deployments/2014-05-07_07-30-09.309/dependencies/nodejs/node_modules/ lrwxrwxrwx. 1 [user-id] [user-id] 25 May 7 07:30 express -> /lib/node_modules/express # ls -al /var/lib/openshift/[user-id]/app-deployments/2014-05-07_07-30-09.309/dependencies/nodejs/node_modules/express/ total 28 drwxr-xr-x. 5 root root 4096 Dec 19 14:08 . ...
the bug is still there.
I can git push on the app on openshift cloud service without any problem. the differences between cloud and origin is: cloud is using /var/lib/openshift/.cartridge_repository/redhat-nodejs/0.0.19 my fedora 19 /var/lib/openshift/.cartridge_repository/redhat-nodejs/0.0.8/ the latest version 4 of origin-server is only available for rhel 6 but fedora http://mirror.openshift.com/pub/origin-server/release/3/ http://mirror.openshift.com/pub/origin-server/release/4/ I tried to find out being done by "gear prerecieve" which is the command in git/nodejs.git/pre-receive causing the problem. I cannot find anything about this on google.
This particular issue has been resolved (perhaps inadvertently) in release 4 http://mirror.openshift.com/pub/origin-server/release/4/images/openshift-origin.tgz
We apologize, however, we do not plan to address this report at this time. The majority of our active development is for the v3 version of OpenShift. If you would like for Red Hat to reconsider this decision, please reach out to your support representative. We are very sorry for any inconvenience this may cause.