Bug 1054421 - NodeJS Cartridge, Can't push, Permission Denied
Summary: NodeJS Cartridge, Can't push, Permission Denied
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OKD
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Paul Morie
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-16 19:12 UTC by Sebastian Mauer
Modified: 2017-05-31 18:22 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-31 18:22:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sebastian Mauer 2014-01-16 19:12:17 UTC
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:

Comment 1 Paul Morie 2014-01-16 19:34:08 UTC
Sebastian-

Would you comment with your login id and app name so that I can take a look at your individual app?

Thanks.

Comment 2 Sebastian Mauer 2014-01-16 20:52:54 UTC
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

Comment 3 Sebastian Mauer 2014-01-20 05:55:21 UTC
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.

Comment 4 Sebastian Mauer 2014-01-23 05:29:57 UTC
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.

Comment 5 Sebastian Mauer 2014-01-30 01:43:23 UTC
Issue is also happening with a recent nightly (28.01.2014)

Comment 6 Rajesh J Advani 2014-05-07 15:29:41 UTC
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 .
...

Comment 7 kinhunt 2014-07-08 13:08:12 UTC
the bug is still there.

Comment 8 kinhunt 2014-07-09 04:53:46 UTC
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.

Comment 9 Kevin Conaway 2014-07-18 19:21:32 UTC
This particular issue has been resolved (perhaps inadvertently) in release 4

http://mirror.openshift.com/pub/origin-server/release/4/images/openshift-origin.tgz

Comment 10 Eric Paris 2017-05-31 18:22:11 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.