Bug 999064

Summary: Drupal quickstart fails to deploy wtih "remote: mv: cannot stat `~/app-root/data/downloads/drupal-7.23/sites': No such file or directory"
Product: OpenShift Online Reporter: Sten Turpin <sten>
Component: TemplatesAssignee: Vojtech Vitek <vvitek>
Status: CLOSED DUPLICATE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: dmcphers, fotios, hripps, jhonce
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-20 20:12:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sten Turpin 2013-08-20 16:14:20 UTC
Description of problem: Deploying Drupal quickstart fails


Version-Release number of selected component (if applicable): happens as of https://github.com/openshift/drupal-quickstart/commit/b409cb238ab7ff22f5e1b6763a250e2746a16e9f


How reproducible:
always

Steps to Reproduce:
1. Deploy Drupal quickstart

Actual results:
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 212 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: httpd (no pid file) not running
remote: CLIENT_RESULT: Stopping CRON cart
remote: CLIENT_RESULT: cron scheduling service is already disabled
remote: Checking pear: pear.drush.org/drush
remote:
remote: Nothing to upgrade
remote:
remote: Run '. ${OPENSHIFT_DATA_DIR}.bash_profile' to load Drush into your SSH shell.
remote:
remote: Download and install the latest stable version of Drupal
remote:
remote: The directory /var/lib/openshift/521388de5973ca316b000137/app-root/data/downloads does not exist.
remote: Would you like to create it? (y/n): y
remote: Project drupal (7.23) downloaded to                                    [success]
remote: /var/lib/openshift/521388de5973ca316b000137/app-root/data/downloads/drupal-7.23.
remote: Project drupal contains:                                               [success]
remote:  - 3 profiles: minimal, standard, testing
remote:  - 4 themes: stark, garland, bartik, seven
remote:  - 47 modules: drupal_system_listing_compatible_test,
remote: drupal_system_listing_incompatible_test, poll, translation, dblog,
remote: system, book, profile, toolbar, help, dashboard, locale, filter,
remote: image, user, php, contact, comment, list, text, number,
remote: field_sql_storage, options, field, update, field_ui, path, syslog,
remote: contextual, blog, menu, node, search, simpletest, aggregator,
remote: taxonomy, overlay, file, color, forum, rdf, statistics, tracker,
remote: openid, block, trigger, shortcut
remote:
remote: mv: cannot stat `~/app-root/data/downloads/drupal-7.23/sites': No such file or directory
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: Failed to execute action hook 'build' for 521388de5973ca316b000137 application drupal
remote:
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://521388de5973ca316b000137.com/~/git/drupal.git/
   fff6f4e..95eb213  master -> master

Expected results:
Working Drupal install

Additional info:
Revering git to 972f662 produces a working install

Comment 1 Fotios Lindiakos 2013-08-20 16:20:30 UTC
After some investigation, we determined this was caused by: https://github.com/openshift/drupal-quickstart/pull/6

Assigning this to Vojtech since he was the author of the PR and might have a good idea of what's causing this.

Comment 2 Vojtech Vitek 2013-08-20 19:35:37 UTC
The bug was caused by bad tilde auto-expansion because of some sort of restrictive shell option that was reflected only in non-interactive mode (probably something like `set expand-tilde off' or `shopt -u extglob').

The problematic commit was reverted https://github.com/openshift/drupal-quickstart/commit/0ed3953a53f67db1998e50123f130e0ab499fc59, so QE can close this bug right away.

Comment 3 Jhon Honce 2013-08-20 20:12:14 UTC

*** This bug has been marked as a duplicate of bug 998751 ***