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.
| Comment | File | Size | Author |
|---|---|---|---|
| #23 | get_data_use_file.patch | 1.47 KB | dmitrig01 |
| #4 | featureserver.make_.txt | 326 bytes | RockSoup |
| #2 | drush_make.jpg | 127.26 KB | RockSoup |
| Screenshot-1.png | 73.09 KB | RockSoup |
Comments
Comment #1
dmitrig01 commentedI doubt you have the latest version of drush. please run drush_make with --debug
Comment #2
RockSoup commentedI think I am using the newest version of both drush and drush_make. I ran
drush make --debug makefile.makeand 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.
Comment #3
dmitrig01 commentedcna you upload the makefile?
Comment #4
RockSoup commentedhere it is.
thanks for the help, I appreciate it.
Comment #5
dmitrig01 commentedYou 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.
Comment #6
RockSoup commentedI added
projects[] = drupalto the make file and the same errors occur.Comment #7
dmitrig01 commentedI committed a check to make sure there is a core project.
Comment #8
dmitrig01 commentedOh. Can your server reach drupal.org? does the command line PHP have simplexml installed?
Comment #9
dmitrig01 commentedTry the latest dev vrsion and see what it tells you.
Comment #10
dmitrig01 commented(from CVS, it will take a few hours before it's on drupal.org
Comment #11
RockSoup commentedI will try it later tonight.
Thanks
Comment #12
RockSoup commentedI 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_makeand 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
Comment #13
RockSoup commentedI 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.
Comment #14
dmitrig01 commentedcvs -z6 checkout -d drush_make -r DRUPAL-6--2 contributions/modules/drush_make/
Comment #15
RockSoup commentedOkay. 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:
So, I added it to the /commands dir and ran:
and got this:
this is different from the previous error.
Unfortunately this means nothing to me, does it to you?
Thanks
Comment #16
dmitrig01 commentedIt looks like your simplexml_load_file is not loading a remote file. Try re-checking out from cvs now.
Comment #17
RockSoup commentednew error
Comment #18
dmitrig01 commented"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.
Comment #19
dmitrig01 commentedGoing to have to mark this won't fix at least for the tme being because there isn't much we can do about this.
Comment #20
RockSoup commentedthanks.
Looks like this is an issue with my server and I will see what my host can do for me.
Thanks for the help.
Comment #21
barrapontocan'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?
Comment #22
dmitrig01 commentedThis is a somewhat separate issue, but it can stay here
Comment #23
dmitrig01 commentedtry this patch
Comment #24
dmitrig01 commentedComment #25
dmitrig01 commentedI knew something was wrong with this patch, which is why I didn't commit it immediately. However,, I fixed and committed just now.