Bug 911320 - Can't install modules on the latest drupal quickstart
Summary: Can't install modules on the latest drupal quickstart
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Templates
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Clayton Coleman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-14 17:48 UTC by Nam Duong
Modified: 2015-05-15 02:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-15 14:00:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
error (276.89 KB, image/png)
2013-02-22 07:50 UTC, Wei Sun
no flags Details
cannot enable (15.26 KB, image/png)
2013-02-22 07:51 UTC, Wei Sun
no flags Details

Description Nam Duong 2013-02-14 17:48:28 UTC
Description of problem:
A user on the forums reported that installing modules on the latest Drupal quickstart app fails:  https://openshift.redhat.com/community/forums/openshift/newbie-trying-to-add-a-module-to-drupal-install-and-it-fails#comment-27498

I reported this today using the same modules.  This worked in the past so figure it's a bug in the way Drupal is installed.

Comment 1 Nam Duong 2013-02-14 17:49:20 UTC
I'll leave my test app running:  https://drupal2-macdomain.rhcloud.com  (default username/password).

Comment 2 Nam Duong 2013-02-14 17:53:49 UTC
Correction on first comment.  I "reproduced" this today.  Not "reported" this today :)

Comment 3 Clayton Coleman 2013-02-19 23:30:50 UTC
I can't reproduce this easily, can you provide some more info about what modules are failing?

Comment 4 Clayton Coleman 2013-02-19 23:31:54 UTC
I was able to install wysiwyg to that app.

Comment 5 Clayton Coleman 2013-02-21 17:46:46 UTC
I need a reproduction or I'm going to have to close this as WORKSFORME.  It's *possible* that something has gotten screwed up, but without more details I have no idea.

Comment 6 Wei Sun 2013-02-22 05:50:50 UTC
Test this bug on devenv_2845
I create  Drupal quickstart app follow: https://github.com/openshift/drupal-quickstart
I can install wysiwyg to my app in the drupal admin UI.

I tried  pathauto module in drush and got:

[drupaltest-wsundev2845.dev.rhcloud.com php]\> which drush
/usr/bin/drush
[drupaltest-wsundev2845.dev.rhcloud.com php]\> /usr/bin/drush pm-download pathauto
Project pathauto (7.x-1.2) downloaded to                                                                                          [success]
/var/lib/openshift/512703fdb18c3ab537000001/app-root/runtime/repo/php/sites/all/modules/pathauto.
[drupaltest-wsundev2845.dev.rhcloud.com php]\> /usr/bin/drush pm-enable  pathauto
Command pm-enable needs a higher bootstrap level to run - you will need invoke drush from a more functional Drupal environment to [error]
run this command.
The drush command 'pm-enable pathauto' could not be executed.                                                                     [error]
Drush was not able to start (bootstrap) the Drupal database.                                                                      [error]
Hint: This error often occurs when Drush is trying to bootstrap a site that has not been installed or does not have a configured
database.

Drush was attempting to connect to : 
  Drupal version    : 7.7
  Site URI          : http://default
  Database driver   : mysql
  Database hostname : 
  Database username : 
  Database name     : 
  Default theme     : garland
  Administration theme: garland
  PHP configuration : /etc/php.ini
  Drush version     : 4.1
  Drush configuration: 
  Drush alias files : 
  Drupal root       : /var/lib/openshift/512703fdb18c3ab537000001/app-root/runtime/repo/php
  Site path         : sites/default
  Modules path      : sites/all/modules
  Themes path       : sites/all/themes
  File directory path: sites/default/files
  Private file directory path: sites/default/files
  %paths            : Array

You can select another site with a working database setup by specifying the URI to use with the --uri parameter on the command
line or $options['uri'] in your drushrc.php file.

Comment 7 Clayton Coleman 2013-02-22 06:20:01 UTC
This error is because of the location you ran drush from.  You either need to be in the PHP dir, or pass --uri /var/lib/openshift/512703fdb18c3ab537000001/app-root/runtime/repo/php

Please give that a try.  You should also be able to install the module from the UI after login.

Comment 8 Wei Sun 2013-02-22 07:50:24 UTC
Created attachment 701034 [details]
error

During installing Pathauto in UI,I met error as attachment.But after that, continue to install,and prompt me that install successfully.
And then,I find I can not enable Pathauto , please refer to attachment.

Comment 9 Wei Sun 2013-02-22 07:51:07 UTC
Created attachment 701035 [details]
cannot enable

Comment 10 Clayton Coleman 2013-02-22 14:28:33 UTC
You're running on drupal 7.7 which means you're using the old quickstart (the one in quickstarts.json hasn't been updated yet).  You need to configure your devenv to set COMMUNITY_QUICKSTART_URL to https://<host of devenv>:8118/api

Comment 11 Wei Sun 2013-02-25 03:04:20 UTC
Verified on devenv_2853.

Step:
1.install new modules in UI
2.install new modules in drush

Result:
1.Installation was completed successfully.
2.[drupalt-wsundev2853.dev.rhcloud.com ~]\> cd app-root/repo/php/
[drupalt-wsundev2853.dev.rhcloud.com php]\> ../../bin/drush pm-download pathauto
Project pathauto (7.x-1.2) downloaded to                                                                                        [success]
/var/lib/openshift/512ad198da0a61399e000006/app-root/data/downloads/drupal-7.20/sites/all/modules/pathauto.
[drupalt-wsundev2853.dev.rhcloud.com php]\> ../../bin/drush pm-enable pathauto
The following projects have unmet dependencies:
pathauto requires token
Would you like to download them? (y/n): y
Project token (7.x-1.5) downloaded to                                                                                           [success]
/var/lib/openshift/512ad198da0a61399e000006/app-root/data/downloads/drupal-7.20/sites/all/modules/token.
The following extensions will be enabled: pathauto, token
Do you really want to continue? (y/n): y
token was enabled successfully.                                                                                                 [ok]
pathauto was enabled successfully.

Comment 12 Nam Duong 2013-02-26 01:12:49 UTC
(In reply to comment #5)
> I need a reproduction or I'm going to have to close this as WORKSFORME. 
> It's *possible* that something has gotten screwed up, but without more
> details I have no idea.

It's working for me now as well (through the admin UI).  Not exactly sure what the issue was outside of the error messages thrown at the time.


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