I am using Drush on shared hosting, Media Temple Grid Service. I have been using Drush in the shell on my host and love it. I am now loving drush make as well and am using it on my local development sandbox with no issues. I am having a problem getting Drush_make to work on my shared hosting.

I do not have access to the preferred directory to place the drush_make directory so I am putting it in drush/commands per the INSTALL.txt. I made a make file which I have tested on my sandbox and works great. I moved the make file to the server and when I run drush make filename.make I get a list of all the packages and for each one it says "Could not retrieve version information for [name of module]" [error] (see attached screenshot).

I am confused because I can run drush just fine from the same directory; drush dl downloads drupal just fine.

I am using the newest version of drush and drush make. I am a bit new to the command line and linux too, I am sure this is a straightforward thing like I have misplaced the directory, but I am stumped.

Comments

dmitrig01’s picture

I doubt you have the latest version of drush. please run drush_make with --debug

RockSoup’s picture

StatusFileSize
new127.26 KB

I think I am using the newest version of both drush and drush_make. I ran drush make --debug makefile.make and have attached a screenshot of the output.

I am totally new to this, and there is a real possibility that there could be limitations on the cmd line with this shared host that are contributing to this.

The thing that is weird is that drush works great, and I have drush_make working well on my sandbox, I ftp'd the drush and drush_make files from my local machine to the server and get the errors on the attached screenshot.

Thanks for the help.

dmitrig01’s picture

cna you upload the makefile?

RockSoup’s picture

StatusFileSize
new326 bytes

here it is.

thanks for the help, I appreciate it.

dmitrig01’s picture

You didn't include a core project. Not sure how much of a problem that is, but you'll need a projects[] = drupal in the beginning.

RockSoup’s picture

I added projects[] = drupal to the make file and the same errors occur.

dmitrig01’s picture

I committed a check to make sure there is a core project.

dmitrig01’s picture

Oh. Can your server reach drupal.org? does the command line PHP have simplexml installed?

dmitrig01’s picture

Try the latest dev vrsion and see what it tells you.

dmitrig01’s picture

(from CVS, it will take a few hours before it's on drupal.org

RockSoup’s picture

I will try it later tonight.

Thanks

RockSoup’s picture

I am still waiting to see the update on D.O.

Any chance you could give me the commend to checkout the right version via CVS?

Can I check it out with Drush? I just did a drush dl drush_make and it checked out 6.x-2.0-beta2.

I am not sure if the command line PHP has simplexml installed, if I am able to use Drush does that mean it does?

I have a request to support about whether or not simplxml is installed.

thanks

RockSoup’s picture

I received this message from the host support:

"simplexml is compiled in PHP on the (gs) Grid-Service" so I would guess that is not the issue.

dmitrig01’s picture

cvs -z6 checkout -d drush_make -r DRUPAL-6--2 contributions/modules/drush_make/

RockSoup’s picture

Okay. I used the code above to checkout drush_make from CVS, but had to modify it a bit to get it to checkout, I used:

cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r DRUPAL-6--2 -d  drush_make contributions/modules/drush_make

So, I added it to the /commands dir and ran:

drush make featureserver.make --debug   

and got this:

Make new site in the current directory? (y/n): y
Calling mkdir(/tmp/drush_make_tmp_1259034576)
Created directory temporary directory /tmp/drush_make_tmp_1259034576 [1.665 sec]                                                       [notice]
simplexml_load_file(): URL file-access is disabled in the server configuration [1.666 sec]                                          [warning]
simplexml_load_file(http://updates.drupal.org/release-history/cck/6.x): failed to open stream: no suitable wrapper could be found   [warning]
[1.666 sec]
simplexml_load_file(): I/O warning : failed to load external entity "http://updates.drupal.org/release-history/cck/6.x" [1.666 sec] [warning]
Could not retrieve version information for cck. [1.667 sec]                                                                         [error]
simplexml_load_file(): URL file-access is disabled in the server configuration [1.667 sec]                                          [warning]
simplexml_load_file(http://updates.drupal.org/release-history/context/6.x): failed to open stream: no suitable wrapper could be     [warning]
found [1.667 sec]
simplexml_load_file(): I/O warning : failed to load external entity "http://updates.drupal.org/release-history/context/6.x" [1.667  [warning]
sec]
Could not retrieve version information for context. [1.667 sec]                                                                     [error]
simplexml_load_file(): URL file-access is disabled in the server configuration [1.668 sec]                                          [warning]
simplexml_load_file(http://updates.drupal.org/release-history/features/6.x): failed to open stream: no suitable wrapper could be    [warning]
found [1.668 sec]
simplexml_load_file(): I/O warning : failed to load external entity "http://updates.drupal.org/release-history/features/6.x" [1.668 [warning]
sec]
Could not retrieve version information for features. [1.668 sec]                                                                    [error]
simplexml_load_file(): URL file-access is disabled in the server configuration [1.668 sec]                                          [warning]
simplexml_load_file(http://updates.drupal.org/release-history/filefield/6.x): failed to open stream: no suitable wrapper could be   [warning]
found [1.668 sec]
simplexml_load_file(): I/O warning : failed to load external entity "http://updates.drupal.org/release-history/filefield/6.x" [1.668[warning]
sec]
Could not retrieve version information for filefield. [1.668 sec]                                                                   [error]
simplexml_load_file(): URL file-access is disabled in the server configuration [1.669 sec]                                          [warning]
simplexml_load_file(http://updates.drupal.org/release-history/views/6.x): failed to open stream: no suitable wrapper could be found [warning]
[1.669 sec]
simplexml_load_file(): I/O warning : failed to load external entity "http://updates.drupal.org/release-history/views/6.x" [1.669    [warning]
sec]
Could not retrieve version information for views. [1.669 sec]                                                                       [error]
simplexml_load_file(): URL file-access is disabled in the server configuration [1.669 sec]                                          [warning]
simplexml_load_file(http://code.developmentseed.org/fserver/fserver/6.x): failed to open stream: no suitable wrapper could be found [warning]
[1.669 sec]
simplexml_load_file(): I/O warning : failed to load external entity "http://code.developmentseed.org/fserver/fserver/6.x" [1.67 sec][warning]
Could not retrieve version information for fserver. [1.67 sec]                                                                      [error]
simplexml_load_file(): URL file-access is disabled in the server configuration [1.67 sec]                                           [warning]
simplexml_load_file(http://code.developmentseed.org/fserver/singular/6.x): failed to open stream: no suitable wrapper could be found[warning]
[1.67 sec]
simplexml_load_file(): I/O warning : failed to load external entity "http://code.developmentseed.org/fserver/singular/6.x" [1.67    [warning]
sec]
Could not retrieve version information for singular. [1.67 sec]                                                                     [error]
simplexml_load_file(): URL file-access is disabled in the server configuration [1.671 sec]                                          [warning]
simplexml_load_file(http://code.developmentseed.org/fserver/tao/6.x): failed to open stream: no suitable wrapper could be found     [warning]
[1.671 sec]
simplexml_load_file(): I/O warning : failed to load external entity "http://code.developmentseed.org/fserver/tao/6.x" [1.671 sec]   [warning]
Could not retrieve version information for tao. [1.671 sec]                                                                         [error]
No core project specified. [1.671 sec]                                                                                              [error]
An error occurred at function : drush_drush_make_make [1.672 sec]                                                                   [error]
Command dispatch complete [1.672 sec]      

this is different from the previous error.

Unfortunately this means nothing to me, does it to you?

Thanks

dmitrig01’s picture

It looks like your simplexml_load_file is not loading a remote file. Try re-checking out from cvs now.

RockSoup’s picture

new error

Found command: make [0.109 sec]                                                                                [bootstrap]
Make new site in the current directory? (y/n): y
Calling mkdir(/tmp/drush_make_tmp_1259214183)
Created directory temporary directory /tmp/drush_make_tmp_1259214183 [2.593 sec]                                  [notice]
file_get_contents(): URL file-access is disabled in the server configuration [2.594 sec]                       [warning]
file_get_contents(http://updates.drupal.org/release-history/cck/6.x): failed to open stream: no suitable       [warning]
wrapper could be found [2.594 sec]
Could not retrieve version information for cck. [2.594 sec]                                                    [error]
file_get_contents(): URL file-access is disabled in the server configuration [2.594 sec]                       [warning]
file_get_contents(http://updates.drupal.org/release-history/context/6.x): failed to open stream: no suitable   [warning]
wrapper could be found [2.594 sec]
Could not retrieve version information for context. [2.594 sec]                                                [error]
file_get_contents(): URL file-access is disabled in the server configuration [2.595 sec]                       [warning]
file_get_contents(http://updates.drupal.org/release-history/features/6.x): failed to open stream: no suitable  [warning]
wrapper could be found [2.595 sec]
Could not retrieve version information for features. [2.595 sec]                                               [error]
file_get_contents(): URL file-access is disabled in the server configuration [2.595 sec]                       [warning]
file_get_contents(http://updates.drupal.org/release-history/filefield/6.x): failed to open stream: no suitable [warning]
wrapper could be found [2.595 sec]
Could not retrieve version information for filefield. [2.595 sec]                                              [error]
file_get_contents(): URL file-access is disabled in the server configuration [2.596 sec]                       [warning]
file_get_contents(http://updates.drupal.org/release-history/views/6.x): failed to open stream: no suitable     [warning]
wrapper could be found [2.596 sec]
Could not retrieve version information for views. [2.596 sec]                                                  [error]
file_get_contents(): URL file-access is disabled in the server configuration [2.596 sec]                       [warning]
file_get_contents(http://code.developmentseed.org/fserver/fserver/6.x): failed to open stream: no suitable     [warning]
wrapper could be found [2.596 sec]
Could not retrieve version information for fserver. [2.596 sec]                                                [error]
file_get_contents(): URL file-access is disabled in the server configuration [2.597 sec]                       [warning]
file_get_contents(http://code.developmentseed.org/fserver/singular/6.x): failed to open stream: no suitable    [warning]
wrapper could be found [2.597 sec]
Could not retrieve version information for singular. [2.597 sec]                                               [error]
file_get_contents(): URL file-access is disabled in the server configuration [2.597 sec]                       [warning]
file_get_contents(http://code.developmentseed.org/fserver/tao/6.x): failed to open stream: no suitable wrapper [warning]
could be found [2.597 sec]
Could not retrieve version information for tao. [2.597 sec]                                                    [error]
No core project specified. [2.598 sec]                                                                         [error]
An error occurred at function : drush_drush_make_make [2.598 sec]                                              [error]
Command dispatch complete [2.598 sec]                       
dmitrig01’s picture

"URL file-access is disabled in the server configuration" yeah so that's your problem. Not sure there's much I can do about that.

dmitrig01’s picture

Status: Active » Closed (won't fix)

Going to have to mark this won't fix at least for the tme being because there isn't much we can do about this.

RockSoup’s picture

thanks.

Looks like this is an issue with my server and I will see what my host can do for me.

Thanks for the help.

barraponto’s picture

Title: Error "Could not retrieve version information for [xxx]" » Error "URL file-access is disabled in the server configuration"
Status: Closed (won't fix) » Needs work

can't we use drush_make_download_file?

i noticed my server won't let me set include from URLS in the make file, because of "URL file-access is disabled in the server configuration". yet it applies patches from URLs!

i researched a little bit and noticed that on drush_make.utilities.inc:418, drush_make_get_data uses file_get_contents, which returns the error. but on drush_make.project.inc, applypatches uses, and it works flawlessly.

so i guess we could use the same approach and have drush make working on any environment, right?

dmitrig01’s picture

Title: Error "URL file-access is disabled in the server configuration" » make drush_make_get_data use drush_make_download_file

This is a somewhat separate issue, but it can stay here

dmitrig01’s picture

StatusFileSize
new1.47 KB

try this patch

dmitrig01’s picture

Status: Needs work » Needs review
dmitrig01’s picture

Status: Needs review » Fixed

I knew something was wrong with this patch, which is why I didn't commit it immediately. However,, I fixed and committed just now.

Status: Fixed » Closed (fixed)
Issue tags: -drush drush_make

Automatically closed -- issue fixed for 2 weeks with no activity.