Bug 1107478 - Folder auto create after the GIT PUSH
Summary: Folder auto create after the GIT PUSH
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Unknown
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-10 03:29 UTC by Ken
Modified: 2015-05-15 02:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-10 03:49:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ken 2014-06-10 03:29:55 UTC
Description of problem:
I had put a .gitignore to the wp-content/uploads folder. After I had GIT PUSH to Openshift, I found that the server auto create the uploads folder, that will cause my deploy script not working on this line:
remote: ln: `/var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads': cannot overwrite directory

I clone the git repo to my local machine there is not uploads folder, but I not sure why my server will auto create the uploads folder right after it GIT PUSH.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. GIT PUSH
2. FOLDER auto create inside wp-content/uploads
3. 

Actual results:
1. wp-content/uploads auto created

Expected results:
1. wp-content/uploads should not be created

Additional info:
I put this line of script under deploy,
ln -sf ${OPENSHIFT_DATA_DIR}uploads   ${OPENSHIFT_REPO_DIR}wp-content/

due to the upload folder auto created, that cause the above code is not working.

I try to delete the file using filezilla also not allowed.

Command:	cd "uploads"
Response:	New directory is: "/var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads"
Command:	ls
Status:	Listing directory /var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads
Status:	Directory listing successful
Status:	Retrieving directory listing...
Command:	cd "2014"
Response:	New directory is: "/var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads/2014"
Command:	ls
Status:	Listing directory /var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads/2014
Status:	Directory listing successful
Status:	Retrieving directory listing...
Command:	cd "06"
Response:	New directory is: "/var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads/2014/06"
Command:	ls
Status:	Listing directory /var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads/2014/06
Status:	Directory listing successful
Command:	rmdir "/var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads/2014/06"
Response:	rmdir /var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads/2014/06: OK
Command:	rmdir "/var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads/2014"
Error:	rmdir /var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads/2014: failure
Command:	rmdir "/var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads"
Error:	rmdir /var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads: failure
Status:	Retrieving directory listing...
Command:	cd "/var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content"
Response:	New directory is: "/var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content"
Command:	ls
Status:	Listing directory /var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content
Status:	Directory listing successful

Comment 1 Ken 2014-06-10 03:55:41 UTC
I think the folder auto generate due to WordPress some one request the wordpress system, it auto generated it. But my problem is I can't delete the uploads folder.

rmdir /var/lib/openshift/5395464b4382eceb150000c5/app-root/runtime/repo/wp-content/uploads: failure

my Filezilla prompting this issue.

Any one can help?


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