Bug 990678 - Drupal 8 quickstart is failing with error: "Unexpected error: Cartridge created the following directories in the gear home directory"
Summary: Drupal 8 quickstart is failing with error: "Unexpected error: Cartridge crea...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Templates
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Vojtech Vitek
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-31 17:50 UTC by Nam Duong
Modified: 2015-05-15 02:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-02 15:56:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nam Duong 2013-07-31 17:50:02 UTC
Description of problem:
This was reported by a user here:  https://www.openshift.com/quickstarts/drupal-8-quickstart#comment-32793  

https://www.openshift.com/quickstarts/drupal-8-quickstart fails on creation with the error: "Unexpected error: Cartridge created the following directories in the gear home directory: /var/lib/openshift/51f94b9ce0b8cdced100049e/usr"

This is easily reproducible:
1) Navigate to https://www.openshift.com/quickstarts/drupal-8-quickstart
2) Click Deploy Now
3) Give it a name and click "Create Application"

Comment 1 steven.merrill 2013-07-31 20:41:30 UTC
Hi - cartridge author here. I can confirm that that is the case.

I am speaking with Dan Mace in #openshift-dev about this, and it appears that some recent changes to cartridge initialization code have happened and OpenShift Online throws an exception when the vendored PHP and mod_fastcgi get ungzipped into ~/usr.

Dan is investigating when this change happened and what the best course of action will be.

Comment 2 Dan Mace 2013-07-31 21:30:35 UTC
The cartridge authors documentation/specification has always described the rules for writing to $OPENSHIFT_HOMEDIR:

http://openshift.github.io/documentation/oo_cartridge_developers_guide.html#reserved-directories

However, these restrictions weren't always properly enforced in code. This recent commit enforces the restriction in question:

https://github.com/openshift/origin-server/commit/addfed8d72fa1df3fb1e152b3c0b5969e7997f26

Comment 3 steven.merrill 2013-07-31 22:36:47 UTC
Dan and Jhon gave me some great help today and as a result, the Drupal 8 quickstart (and more specifically, the PHP 5.4 cartridge) rides again.


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